Server : Apache System : Linux 122.228.205.92.host.secureserver.net 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 User : ondostategov ( 1002) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/ondostategov/public_html/wp-includes/js/dist/ |
/*! This file is auto-generated */
(()=>{var e,t,o={3533:e=>{"use strict";e.exports=window.wp.latexToMathml},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(!e(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(t[r]!==o[r])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,a[r]))return!1;for(r=n;0!=r--;){var i=a[r];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"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",Ţ:"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",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),r=new RegExp(o,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(a,i),a},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";r.r(a),r.d(a,{__experimentalGetCoreBlocks:()=>nP,__experimentalRegisterExperimentalCoreBlocks:()=>aP,privateApis:()=>oP,registerCoreBlocks:()=>rP});var e={};r.r(e),r.d(e,{init:()=>Pt,metadata:()=>Ct,name:()=>Tt,settings:()=>Nt});var t={};r.r(t),r.d(t,{init:()=>Ht,metadata:()=>Mt,name:()=>At,settings:()=>Lt});var o={};r.r(o),r.d(o,{init:()=>$t,metadata:()=>Rt,name:()=>Ot,settings:()=>Gt});var n={};r.r(n),r.d(n,{init:()=>Jt,metadata:()=>Ut,name:()=>Wt,settings:()=>Zt});var i={};r.r(i),r.d(i,{init:()=>eo,metadata:()=>Kt,name:()=>Yt,settings:()=>Xt});var s={};r.r(s),r.d(s,{init:()=>ho,metadata:()=>oo,name:()=>mo,settings:()=>go});var l={};r.r(l),r.d(l,{init:()=>Eo,metadata:()=>Ho,name:()=>Vo,settings:()=>Fo});var c={};r.r(c),r.d(c,{init:()=>Jo,metadata:()=>Go,name:()=>Wo,settings:()=>Zo});var u={};r.r(u),r.d(u,{init:()=>wn,metadata:()=>yn,name:()=>vn,settings:()=>kn});var d={};r.r(d),r.d(d,{init:()=>Hn,metadata:()=>zn,name:()=>An,settings:()=>Ln});var p={};r.r(p),r.d(p,{init:()=>$n,metadata:()=>Vn,name:()=>On,settings:()=>Gn});var m={};r.r(m),r.d(m,{init:()=>Yn,metadata:()=>qn,name:()=>Qn,settings:()=>Kn});var g={};r.r(g),r.d(g,{init:()=>ur,metadata:()=>sr,name:()=>lr,settings:()=>cr});var h={};r.r(h),r.d(h,{init:()=>fr,metadata:()=>pr,name:()=>xr,settings:()=>br});var _={};r.r(_),r.d(_,{init:()=>Tr,metadata:()=>jr,name:()=>Sr,settings:()=>Br});var x={};r.r(x),r.d(x,{init:()=>Wr,metadata:()=>Er,name:()=>Ur,settings:()=>qr});var b={};r.r(b),r.d(b,{init:()=>ia,metadata:()=>Jr,name:()=>ra,settings:()=>aa});var f={};r.r(f),r.d(f,{init:()=>ua,metadata:()=>sa,name:()=>la,settings:()=>ca});var y={};r.r(y),r.d(y,{init:()=>xa,metadata:()=>pa,name:()=>ha,settings:()=>_a});var v={};r.r(v),r.d(v,{init:()=>ka,metadata:()=>fa,name:()=>ya,settings:()=>va});var k={};r.r(k),r.d(k,{init:()=>Pa,metadata:()=>Ca,name:()=>Ta,settings:()=>Na});var w={};r.r(w),r.d(w,{init:()=>Aa,metadata:()=>Da,name:()=>Ma,settings:()=>za});var C={};r.r(C),r.d(C,{init:()=>Ea,metadata:()=>Ha,name:()=>Va,settings:()=>Fa});var j={};r.r(j),r.d(j,{init:()=>Xa,metadata:()=>Ga,name:()=>Ka,settings:()=>Ya});var S={};r.r(S),r.d(S,{init:()=>ai,metadata:()=>ti,name:()=>ni,settings:()=>ri});var B={};r.r(B),r.d(B,{init:()=>pi,metadata:()=>si,name:()=>ui,settings:()=>di});var T={};r.r(T),r.d(T,{init:()=>bi,metadata:()=>gi,name:()=>_i,settings:()=>xi});var N={};r.r(N),r.d(N,{init:()=>Ci,metadata:()=>yi,name:()=>ki,settings:()=>wi});var P={};r.r(P),r.d(P,{init:()=>Di,metadata:()=>Si,name:()=>Pi,settings:()=>Ii});var I={};r.r(I),r.d(I,{init:()=>zl,metadata:()=>Bl,name:()=>Dl,settings:()=>Ml});var D={};r.r(D),r.d(D,{init:()=>Gl,metadata:()=>Ll,name:()=>El,settings:()=>Ol});var M={};r.r(M),r.d(M,{init:()=>Pc,metadata:()=>yo,name:()=>Tc,settings:()=>Nc});var z={};r.r(z),r.d(z,{init:()=>Wc,metadata:()=>Oc,name:()=>Uc,settings:()=>qc});var A={};r.r(A),r.d(A,{init:()=>au,metadata:()=>Yc,name:()=>nu,settings:()=>ru});var L={};r.r(L),r.d(L,{init:()=>fu,metadata:()=>gu,name:()=>xu,settings:()=>bu});var H={};r.r(H),r.d(H,{init:()=>ju,metadata:()=>ku,name:()=>wu,settings:()=>Cu});var R={};r.r(R),r.d(R,{init:()=>zu,metadata:()=>Nu,name:()=>Du,settings:()=>Mu});var V={};r.r(V),r.d(V,{init:()=>Md,metadata:()=>Td,name:()=>Id,settings:()=>Dd});var F={};r.r(F),r.d(F,{init:()=>Kd,metadata:()=>Od,name:()=>Jd,settings:()=>Qd});var E={};r.r(E),r.d(E,{init:()=>kp,metadata:()=>hp,name:()=>yp,settings:()=>vp});var O={};r.r(O),r.d(O,{init:()=>Tp,metadata:()=>Cp,name:()=>Sp,settings:()=>Bp});var G={};r.r(G),r.d(G,{init:()=>Ap,metadata:()=>Ip,name:()=>Mp,settings:()=>zp});var $={};r.r($),r.d($,{init:()=>mm,metadata:()=>im,name:()=>dm,settings:()=>pm});var U={};r.r(U),r.d(U,{init:()=>bm,metadata:()=>hm,name:()=>_m,settings:()=>xm});var q={};r.r(q),r.d(q,{init:()=>zm,metadata:()=>ym,name:()=>Dm,settings:()=>Mm});var W={};r.r(W),r.d(W,{init:()=>cg,metadata:()=>og,name:()=>sg,settings:()=>lg});var Z={};r.r(Z),r.d(Z,{init:()=>bg,metadata:()=>mg,name:()=>_g,settings:()=>xg});var J={};r.r(J),r.d(J,{init:()=>Ig,metadata:()=>yg,name:()=>Ng,settings:()=>Pg});var Q={};r.r(Q),r.d(Q,{init:()=>Lg,metadata:()=>Mg,name:()=>zg,settings:()=>Ag});var K={};r.r(K),r.d(K,{init:()=>Bh,metadata:()=>vh,name:()=>jh,settings:()=>Sh});var Y={};r.r(Y),r.d(Y,{init:()=>Ih,metadata:()=>Th,name:()=>Nh,settings:()=>Ph});var X={};r.r(X),r.d(X,{init:()=>Rh,metadata:()=>zh,name:()=>Lh,settings:()=>Hh});var ee={};r.r(ee),r.d(ee,{init:()=>Sx,metadata:()=>Fh,name:()=>Cx,settings:()=>jx});var te={};r.r(te),r.d(te,{init:()=>Gx,metadata:()=>Bx,name:()=>Ex,settings:()=>Ox});var oe={};r.r(oe),r.d(oe,{init:()=>Yx,metadata:()=>$x,name:()=>Qx,settings:()=>Kx});var ne={};r.r(ne),r.d(ne,{init:()=>rb,metadata:()=>eb,name:()=>ob,settings:()=>nb});var re={};r.r(re),r.d(re,{init:()=>gb,metadata:()=>ab,name:()=>pb,settings:()=>mb});var ae={};r.r(ae),r.d(ae,{init:()=>Sb,metadata:()=>_b,name:()=>Cb,settings:()=>jb});var ie={};r.r(ie),r.d(ie,{init:()=>Ib,metadata:()=>Bb,name:()=>Nb,settings:()=>Pb});var se={};r.r(se),r.d(se,{init:()=>Xb,metadata:()=>qb,name:()=>Kb,settings:()=>Yb});var le={};r.r(le),r.d(le,{init:()=>lf,metadata:()=>tf,name:()=>af,settings:()=>sf});var ce={};r.r(ce),r.d(ce,{init:()=>gf,metadata:()=>cf,name:()=>pf,settings:()=>mf});var ue={};r.r(ue),r.d(ue,{init:()=>ff,metadata:()=>hf,name:()=>xf,settings:()=>bf});var de={};r.r(de),r.d(de,{init:()=>jf,metadata:()=>yf,name:()=>wf,settings:()=>Cf});var pe={};r.r(pe),r.d(pe,{init:()=>If,metadata:()=>Bf,name:()=>Nf,settings:()=>Pf});var me={};r.r(me),r.d(me,{init:()=>Lf,metadata:()=>Mf,name:()=>zf,settings:()=>Af});var ge={};r.r(ge),r.d(ge,{init:()=>Of,metadata:()=>Hf,name:()=>Ff,settings:()=>Ef});var he={};r.r(he),r.d(he,{init:()=>ey,metadata:()=>$f,name:()=>Yf,settings:()=>Xf});var _e={};r.r(_e),r.d(_e,{init:()=>dy,metadata:()=>ty,name:()=>cy,settings:()=>uy});var xe={};r.r(xe),r.d(xe,{init:()=>xy,metadata:()=>my,name:()=>hy,settings:()=>_y});var be={};r.r(be),r.d(be,{init:()=>Dy,metadata:()=>fy,name:()=>Py,settings:()=>Iy});var fe={};r.r(fe),r.d(fe,{init:()=>Fy,metadata:()=>My,name:()=>Ry,settings:()=>Vy});var ye={};r.r(ye),r.d(ye,{init:()=>Wy,metadata:()=>Ey,name:()=>Uy,settings:()=>qy});var ve={};r.r(ve),r.d(ve,{init:()=>nv,metadata:()=>Jy,name:()=>tv,settings:()=>ov});var ke={};r.r(ke),r.d(ke,{init:()=>mv,metadata:()=>av,name:()=>dv,settings:()=>pv});var we={};r.r(we),r.d(we,{init:()=>fv,metadata:()=>gv,name:()=>xv,settings:()=>bv});var Ce={};r.r(Ce),r.d(Ce,{init:()=>Sv,metadata:()=>vv,name:()=>Cv,settings:()=>jv});var je={};r.r(je),r.d(je,{init:()=>qv,metadata:()=>Ev,name:()=>$v,settings:()=>Uv});var Se={};r.r(Se),r.d(Se,{init:()=>aw,metadata:()=>Zv,name:()=>nw,settings:()=>rw});var Be={};r.r(Be),r.d(Be,{init:()=>uw,metadata:()=>iw,name:()=>lw,settings:()=>cw});var Te={};r.r(Te),r.d(Te,{init:()=>bw,metadata:()=>dw,name:()=>_w,settings:()=>xw});var Ne={};r.r(Ne),r.d(Ne,{init:()=>ww,metadata:()=>fw,name:()=>vw,settings:()=>kw});var Pe={};r.r(Pe),r.d(Pe,{init:()=>Tw,metadata:()=>Cw,name:()=>Sw,settings:()=>Bw});var Ie={};r.r(Ie),r.d(Ie,{init:()=>Mw,metadata:()=>Nw,name:()=>Iw,settings:()=>Dw});var De={};r.r(De),r.d(De,{init:()=>Ow,metadata:()=>zw,name:()=>Fw,settings:()=>Ew});var Me={};r.r(Me),r.d(Me,{init:()=>Jw,metadata:()=>Gw,name:()=>Ww,settings:()=>Zw});var ze={};r.r(ze),r.d(ze,{init:()=>gC,metadata:()=>cC,name:()=>pC,settings:()=>mC});var Ae={};r.r(Ae),r.d(Ae,{init:()=>PC,metadata:()=>_C,name:()=>TC,settings:()=>NC});var Le={};r.r(Le),r.d(Le,{init:()=>zC,metadata:()=>IC,name:()=>DC,settings:()=>MC});var He={};r.r(He),r.d(He,{init:()=>VC,metadata:()=>LC,name:()=>HC,settings:()=>RC});var Re={};r.r(Re),r.d(Re,{init:()=>WC,metadata:()=>EC,name:()=>UC,settings:()=>qC});var Ve={};r.r(Ve),r.d(Ve,{init:()=>oj,metadata:()=>QC,name:()=>ej,settings:()=>tj});var Fe={};r.r(Fe),r.d(Fe,{init:()=>cj,metadata:()=>ij,name:()=>sj,settings:()=>lj});var Ee={};r.r(Ee),r.d(Ee,{init:()=>yj,metadata:()=>dj,name:()=>bj,settings:()=>fj});var Oe={};r.r(Oe),r.d(Oe,{init:()=>Bj,metadata:()=>vj,name:()=>jj,settings:()=>Sj});var Ge={};r.r(Ge),r.d(Ge,{init:()=>Aj,metadata:()=>Nj,name:()=>Mj,settings:()=>zj});var $e={};r.r($e),r.d($e,{init:()=>qj,metadata:()=>Ej,name:()=>$j,settings:()=>Uj});var Ue={};r.r(Ue),r.d(Ue,{init:()=>eS,metadata:()=>Kj,name:()=>Yj,settings:()=>Xj});var qe={};r.r(qe),r.d(qe,{init:()=>gS,metadata:()=>uS,name:()=>pS,settings:()=>mS});var We={};r.r(We),r.d(We,{init:()=>eB,metadata:()=>WS,name:()=>YS,settings:()=>XS});var Ze={};r.r(Ze),r.d(Ze,{init:()=>dB,metadata:()=>oB,name:()=>cB,settings:()=>uB});var Je={};r.r(Je),r.d(Je,{init:()=>xB,metadata:()=>mB,name:()=>hB,settings:()=>_B});var Qe={};r.r(Qe),r.d(Qe,{init:()=>QB,metadata:()=>jB,name:()=>ZB,settings:()=>JB});var Ke={};r.r(Ke),r.d(Ke,{init:()=>lT,metadata:()=>YB,name:()=>iT,settings:()=>sT});var Ye={};r.r(Ye),r.d(Ye,{init:()=>gT,metadata:()=>uT,name:()=>pT,settings:()=>mT});var Xe={};r.r(Xe),r.d(Xe,{init:()=>yT,metadata:()=>_T,name:()=>bT,settings:()=>fT});var et={};r.r(et),r.d(et,{init:()=>UT,metadata:()=>vT,name:()=>GT,settings:()=>$T});var tt={};r.r(tt),r.d(tt,{init:()=>YT,metadata:()=>qT,name:()=>QT,settings:()=>KT});var ot={};r.r(ot),r.d(ot,{init:()=>nN,metadata:()=>XT,name:()=>tN,settings:()=>oN});var nt={};r.r(nt),r.d(nt,{init:()=>pN,metadata:()=>sN,name:()=>uN,settings:()=>dN});var rt={};r.r(rt),r.d(rt,{init:()=>zN,metadata:()=>gN,name:()=>DN,settings:()=>MN});var at={};r.r(at),r.d(at,{init:()=>JN,metadata:()=>AN,name:()=>WN,settings:()=>ZN});const it=window.ReactJSXRuntime,st=window.wp.blocks,lt=window.wp.data,ct=window.wp.blockEditor,ut=window.wp.serverSideRender;var dt=r.n(ut);const pt=window.wp.i18n,mt=window.wp.components,gt=window.wp.element,ht=window.wp.blob,_t=window.wp.coreData,xt=window.wp.compose;function bt(e,t,o){return(0,lt.useSelect)((n=>n(_t.store).canUser("update",{kind:e,name:t,id:o})),[e,t,o])}function ft(e={}){const t=(0,gt.useRef)(e),o=(0,gt.useRef)(!1),{getSettings:n}=(0,lt.useSelect)(ct.store);(0,gt.useLayoutEffect)((()=>{t.current=e})),(0,gt.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,ht.isBlobURL)(t.current.url))return;const e=(0,ht.getBlobByURL)(t.current.url);if(!e)return;const{url:r,allowedTypes:a,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();l&&(o.current=!0,l({filesList:[e],allowedTypes:a,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)||((0,ht.revokeBlobURL)(r),i(e),o.current=!1)},onError:e=>{(0,ht.revokeBlobURL)(r),s(e),o.current=!1}}))}),[n])}function yt(){const{avatarURL:e}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}function vt(){return(0,xt.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const kt="core/accordion-item",wt={name:kt};const Ct=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion","title":"Accordion","category":"design","description":"Displays a foldable layout that groups content in collapsible sections.","example":{},"supports":{"anchor":true,"html":false,"align":["wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"background":true,"gradients":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true},"shadow":true,"layout":true,"ariaLabel":true,"interactivity":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"iconPosition":{"type":"string","default":"right"},"showIcon":{"type":"boolean","default":true},"autoclose":{"type":"boolean","default":false},"headingLevel":{"type":"number","default":3},"levelOptions":{"type":"array"}},"providesContext":{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},"allowedBlocks":["core/accordion-item"],"textdomain":"default","viewScriptModule":"@wordpress/block-library/accordion/view"}');function jt(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,st.registerBlockType)({name:n,...t},o)}const St=window.wp.primitives;var Bt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});const{name:Tt}=Ct,Nt={icon:Bt,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:function({attributes:{autoclose:e,iconPosition:t,showIcon:o,headingLevel:n,levelOptions:r},clientId:a,setAttributes:i,isSelected:s}){const l=(0,lt.useRegistry)(),{getBlockOrder:c}=(0,lt.useSelect)(ct.store),u=(0,ct.useBlockProps)({role:"group"}),d=vt(),{updateBlockAttributes:p,insertBlock:m}=(0,lt.useDispatch)(ct.store),g="contentOnly"===(0,ct.useBlockEditingMode)(),h=(0,ct.useInnerBlocksProps)(u,{template:[[kt]],defaultBlock:wt,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[s&&!g&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>{const t=c(a),o=[];t.forEach((e=>{const t=c(e);o.push(...t)})),l.batch((()=>{i({headingLevel:e}),p(o,{level:e})}))}})})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{const e=(0,st.createBlock)(kt,{},[(0,st.createBlock)("core/accordion-heading",{level:n}),(0,st.createBlock)("core/accordion-panel",{})]);m(e,void 0,a)},children:(0,pt.__)("Add item")})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>i({autoclose:!1}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Auto-close"),onChange:e=>{i({autoclose:e})},checked:e,help:(0,pt.__)("Automatically close accordions when a new one is opened.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i({showIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon"),onChange:e=>{i({showIcon:e,iconPosition:e?t:"right"})},checked:o,help:(0,pt.__)("Display a plus icon next to the accordion header.")})}),o&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>"right"!==t,onDeselect:()=>i({iconPosition:"right"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:(0,pt.__)("Icon Position"),value:t,onChange:e=>{i({iconPosition:e})},children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Left"),value:"left"}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Right"),value:"right"})]})})]})},"setting"),(0,it.jsx)("div",{...h})]})},save:function(){const e=ct.useBlockProps.save({role:"group"});return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(e)})}},Pt=()=>jt({name:Tt,metadata:Ct,settings:Nt});function It(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=It(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}const Dt=function(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=It(e))&&(n&&(n+=" "),n+=t);return n};const Mt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-item","title":"Accordion Item","category":"design","description":"Wraps the heading and panel in one unit.","parent":["core/accordion"],"allowedBlocks":["core/accordion-heading","core/accordion-panel"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"margin":["top","bottom"],"blockGap":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"shadow":true,"layout":{"allowEditing":false},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"openByDefault":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-item"}');var zt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});const{name:At}=Mt,Lt={icon:zt,edit:function({attributes:e,clientId:t,setAttributes:o,context:n}){const{openByDefault:r}=e,a=vt(),{isSelected:i,getBlockOrder:s}=(0,lt.useSelect)((e=>{const{isBlockSelected:o,hasSelectedInnerBlock:n,getBlockOrder:r}=e(ct.store);return{isSelected:o(t)||n(t,!0),getBlockOrder:r}}),[t]),l=s(t)[1],{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{l&&(u(),c(l,{isSelected:i}))}),[i,l,u,c]);const d=(0,ct.useBlockProps)({className:Dt({"is-open":r||i})}),p=n&&n["core/accordion-heading-level"],m=(0,ct.useInnerBlocksProps)(d,{template:[["core/accordion-heading",p?{level:p}:{}],["core/accordion-panel",{openByDefault:r}]],templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},children:(0,it.jsx)(mt.ToggleControl,{label:(0,pt.__)("Open by default"),__nextHasNoMarginBottom:!0,onChange:e=>{o({openByDefault:e}),l&&c(l,{openByDefault:e})},checked:r,help:(0,pt.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,it.jsx)("div",{...m})]})},save:function({attributes:e}){const{openByDefault:t}=e,o=ct.useBlockProps.save({className:Dt({"is-open":t})}),n=ct.useInnerBlocksProps.save(o);return(0,it.jsx)("div",{...n})}},Ht=()=>jt({name:At,metadata:Mt,settings:Lt});const Rt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-heading","title":"Accordion Heading","category":"design","description":"Displays a heading that toggles the accordion panel.","parent":["core/accordion-item"],"usesContext":["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],"supports":{"anchor":true,"color":{"background":true,"gradients":true},"align":false,"interactivity":true,"spacing":{"padding":true,"__experimentalDefaultControls":{"padding":true},"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-accordion-heading__toggle"},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"__experimentalSkipSerialization":["textDecoration","letterSpacing"],"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"fontFamily":true}},"shadow":true,"visibility":false,"lock":false},"selectors":{"typography":{"letterSpacing":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title","textDecoration":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},"attributes":{"openByDefault":{"type":"boolean","default":false},"title":{"type":"rich-text","source":"rich-text","selector":".wp-block-accordion-heading__toggle-title","role":"content"},"level":{"type":"number"},"iconPosition":{"type":"string","enum":["left","right"],"default":"right"},"showIcon":{"type":"boolean","default":true}},"textdomain":"default"}');var Vt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});const Ft={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=ct.useBlockProps.save(),s=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...i,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}};var Et=[Ft];const{name:Ot}=Rt,Gt={icon:Vt,edit:function({attributes:e,setAttributes:t,context:o}){const{title:n}=e,{"core/accordion-icon-position":r,"core/accordion-show-icon":a,"core/accordion-heading-level":i}=o,s="h"+i;(0,gt.useEffect)((()=>{void 0!==r&&void 0!==a&&t({iconPosition:r,showIcon:a})}),[r,a,t]);const[l,c]=(0,ct.useSettings)("typography.fluid","layout"),u=(0,ct.getTypographyClassesAndStyles)(e,{typography:{fluid:l},layout:{wideSize:c?.wideSize}}),d=(0,ct.useBlockProps)(),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(s,{...d,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:p.style,tabIndex:"-1",children:[a&&"left"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:n,onChange:e=>t({title:e}),placeholder:(0,pt.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:u.style.letterSpacing,textDecoration:u.style.textDecoration}}),a&&"right"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},save:function({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=(0,ct.getTypographyClassesAndStyles)(e),s=ct.useBlockProps.save(),l=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...s,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o,style:{letterSpacing:i.style.letterSpacing,textDecoration:i.style.textDecoration}}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},deprecated:Et},$t=()=>jt({name:Ot,metadata:Rt,settings:Gt});const Ut=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-panel","title":"Accordion Panel","category":"design","description":"Contains the hidden or revealed content beneath the heading.","parent":["core/accordion-item"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"shadow":true,"layout":{"allowEditing":false},"visibility":false,"contentRole":true,"allowedBlocks":true,"lock":false},"attributes":{"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false],"default":false},"openByDefault":{"type":"boolean","default":false},"isSelected":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-panel"}');var qt=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});const{name:Wt}=Ut,Zt={icon:qt,edit:function({attributes:e}){const{allowedBlocks:t,templateLock:o,openByDefault:n,isSelected:r}=e,a=(0,ct.useBlockProps)({"aria-hidden":!r&&!n,role:"region"}),i=(0,ct.useInnerBlocksProps)(a,{allowedBlocks:t,template:[["core/paragraph",{}]],templateLock:o});return(0,it.jsx)("div",{...i})},save:function(){const e=ct.useBlockProps.save({role:"region"}),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},Jt=()=>jt({name:Wt,metadata:Ut,settings:Zt});var Qt=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});const Kt=JSON.parse('{"$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":false},"showLabel":{"type":"boolean","default":true},"showPostCounts":{"type":"boolean","default":false},"type":{"type":"string","default":"monthly"}},"supports":{"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-archives-editor"}');const{name:Yt}=Kt,Xt={icon:Qt,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:r,type:a}=e,i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Group by"),isShownByDefault:!0,hasValue:()=>"monthly"!==a,onDeselect:()=>t({type:"monthly"}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Group by"),options:[{label:(0,pt.__)("Year"),value:"yearly"},{label:(0,pt.__)("Month"),value:"monthly"},{label:(0,pt.__)("Week"),value:"weekly"},{label:(0,pt.__)("Day"),value:"daily"}],value:a,onChange:e=>t({type:e})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},eo=()=>jt({name:Yt,metadata:Kt,settings:Xt});var to=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const oo=JSON.parse('{"$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":false},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postType","postId","commentId"],"supports":{"html":false,"align":true,"alignWide":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"radius":true,"width":true,"color":true,"style":true,"__experimentalDefaultControls":{"radius":true}},"color":{"text":false,"background":false},"filter":{"duotone":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-avatar img","filter":{"duotone":".wp-block-avatar img"}},"editorStyle":"wp-block-avatar-editor","style":"wp-block-avatar"}'),no=window.wp.url;function ro(e){const t=e?e[0]:24,o=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*o)}}const ao=window.wp.htmlEntities,io={who:"authors",per_page:100,_fields:"id,name",context:"view"};function so({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...io};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)})))),[r]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("User"),help:(0,pt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:i,onFilterValueChange:(0,xt.debounce)(n,300),isLoading:a})}const lo=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Image size"),isShownByDefault:!0,hasValue:()=>96!==o?.size,onDeselect:()=>e({size:96}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>o?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink})}),o.isLink&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==o?.linkTarget,onDeselect:()=>e({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("User"),isShownByDefault:!0,hasValue:()=>!!o?.userId,onDeselect:()=>e({userId:void 0}),children:(0,it.jsx)(so,{value:o?.userId,onChange:t=>{e({userId:t})}})})]})})},co=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:r})=>{const a=(0,ct.__experimentalUseBorderProps)(t),i=(0,no.addQueryArgs)((0,no.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.ResizableBox,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(o,n,r,a)=>{e({size:parseInt(t.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,it.jsx)("img",{src:i,alt:o.alt,className:Dt("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",a.className),style:a.style})})})},uo=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:r}=t,a=(0,ct.useBlockProps)(),i=function({commentId:e}){const[t]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,_t.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:a,maxSize:i}=ro(r),s=yt();return{src:n?n[n.length-1]:s,minSize:a,maxSize:i,alt:o?(0,pt.sprintf)((0,pt.__)("%s Avatar"),o):(0,pt.__)("Default Avatar")}}({commentId:r});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})]})},po=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:r,postType:a}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,lt.useSelect)((n=>{const{getEditedEntityRecord:r,getUser:a}=n(_t.store);if(e)return{authorDetails:a(e)};const i=r("postType",o,t)?.author;return{authorDetails:i?a(i):null}}),[o,t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=ro(a),l=yt();return{src:r?r[r.length-1]:l,minSize:i,maxSize:s,alt:n?(0,pt.sprintf)((0,pt.__)("%s Avatar"),n?.name):(0,pt.__)("Default Avatar")}}({userId:e?.userId,postId:r,postType:a}),s=(0,ct.useBlockProps)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const{name:mo}=oo,go={icon:to,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,it.jsx)(uo,{...e}):(0,it.jsx)(po,{...e})},example:{}},ho=()=>jt({name:mo,metadata:oo,settings:go});var _o=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),xo=[{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:o,loop:n,preload:r,src:a}=e;return(0,it.jsxs)("figure",{children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}}];const bo=window.wp.notices;function fo(e,t){var o,n,r=0;function a(){var a,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev).next=null:r++,o=s,s.val}return t=t||{},a.clear=function(){o=null,n=null,r=0},a}const yo=JSON.parse('{"$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","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"type":{"type":"string","role":"content"},"providerNameSlug":{"type":"string","role":"content"},"allowResponsive":{"type":"boolean","default":true},"responsive":{"type":"boolean","default":false,"role":"content"},"previewable":{"type":"boolean","default":true,"role":"content"}},"supports":{"align":true,"spacing":{"margin":true},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-embed-editor","style":"wp-block-embed"}'),vo=[{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"}],ko="wp-embed",wo=window.wp.privateApis,{lock:Co,unlock:jo}=(0,wo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),{name:So}=yo,{kebabCase:Bo}=jo(mt.privateApis),To=e=>e&&e.includes('class="wp-embedded-content"'),No=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:r,providerNameSlug:a,type:i,...s}=n;if(!r||!(0,st.getBlockType)(So))return;const l=(e=>(0,st.getBlockVariations)(So)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(r),c="wordpress"===a||i===ko;if(!c&&l&&(l.attributes.providerNameSlug!==a||!a))return(0,st.createBlock)(So,{url:r,...s,...l.attributes});const u=(0,st.getBlockVariations)(So)?.find((({name:e})=>"wordpress"===e));return u&&o&&To(o.html)&&!c?(0,st.createBlock)(So,{url:r,...u.attributes,...t}):void 0},Po=e=>{if(!e)return e;const t=vo.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function Io(e,t,o=!0){if(!o)return Po(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o<vo.length;o++){const n=vo[o];if(e>=n.ratio){return e-n.ratio>.1?Po(t):Dt(Po(t),n.className,"wp-has-aspect-ratio")}}}return t}const Do=fo(((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Bo((l||t).toLowerCase());return To(s)&&(i=ko),(s||"photo"===i)&&(a.type=i,a.providerNameSlug=c),(u=o)&&vo.some((({className:e})=>u.includes(e)))||(a.className=Io(s,o,n&&r)),a;var u}));var Mo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});function zo({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,placeholder:a=(0,pt.__)("Add caption"),label:i=(0,pt.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,pt.__)("Add caption"),removeLabel:m=(0,pt.__)("Remove caption"),icon:g=Mo,...h}){const _=t[e],x=(0,xt.usePrevious)(_),{PrivateRichText:b}=jo(ct.privateApis),f=b.isEmpty(_),y=b.isEmpty(x),[v,k]=(0,gt.useState)(!f);(0,gt.useEffect)((()=>{!f&&y&&k(!0)}),[f,y]),(0,gt.useEffect)((()=>{!n&&f&&k(!1)}),[n,f]);const w=(0,gt.useCallback)((e=>{e&&f&&e.focus()}),[f]);return(0,it.jsxs)(it.Fragment,{children:[s&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{k(!v),v&&_&&o({[e]:void 0})},icon:g,isPressed:v,label:v?m:p})}),v&&(!b.isEmpty(_)||n)&&(0,it.jsx)(b,{identifier:e,tagName:d,className:Dt(c,l?"":(0,ct.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:a,value:_,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)())),readOnly:u,...h})]})}const Ao=["audio"];var Lo=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:r,insertBlocksAfter:a}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,[d,p]=(0,gt.useState)(e.blob),m="default"===(0,ct.useBlockEditingMode)();function g(e){return t=>{o({[e]:t})}}function h(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0,blob:void 0}),p()}}ft({url:d,allowedTypes:Ao,onChange:b,onError:x});const{createErrorNotice:_}=(0,lt.useDispatch)(bo.store);function x(e){_(e,{type:"snackbar"})}function b(e){if(!e||!e.url)return o({src:void 0,id:void 0,caption:void 0,blob:void 0}),void p();(0,ht.isBlobURL)(e.url)?p(e.url):(o({blob:void 0,src:e.url,id:e.id,caption:e.caption}),p())}const f=Dt(t,{"is-transient":!!d}),y=(0,ct.useBlockProps)({className:f}),v=vt();return u||d?(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Ao,accept:"audio/*",onSelect:b,onSelectURL:h,onError:x,onReset:()=>b(void 0)})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({autoplay:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:function(e){return e?(0,pt.__)("Autoplay may cause usability issues for some users."):null}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>o({loop:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:g("loop"),checked:!!l})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>o({preload:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,pt.__)("Browser default")},{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}]})})]})}),(0,it.jsxs)("figure",{...y,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!r,children:(0,it.jsx)("audio",{controls:"controls",src:u??d})}),!!d&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:e,setAttributes:o,isSelected:r,insertBlocksAfter:a,label:(0,pt.__)("Audio caption text"),showToolbarButton:r&&m})]})]}):(0,it.jsx)("div",{...y,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:_o}),onSelect:b,onSelectURL:h,accept:"audio/*",allowedTypes:Ao,value:e,onError:x})})};const Ho=JSON.parse('{"$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":{"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"audio","attribute":"src","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"id":{"type":"number","role":"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":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-audio-editor","style":"wp-block-audio"}');var Ro={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const{name:Vo}=Ho,Fo={icon:_o,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ro,deprecated:xo,edit:Lo,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},Eo=()=>jt({name:Vo,metadata:Ho,settings:Fo});var Oo=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});const Go=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/breadcrumbs","title":"Breadcrumbs","__experimental":true,"category":"theme","description":"Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.","textdomain":"default","attributes":{"type":{"type":"string","default":"auto","enum":["auto","postWithTerms","postWithAncestors"]},"separator":{"type":"string","default":"/"},"showHomeLink":{"type":"boolean","default":true}},"usesContext":["postId","postType","templateSlug"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":true,"width":true,"style":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-breadcrumbs"}'),$o="/",Uo="auto",qo={auto:{help:(0,pt.__)("Try to automatically determine the best type of breadcrumb for the template.")},postWithAncestors:{help:(0,pt.__)("Shows breadcrumbs based on post hierarchy. Only works for hierarchical post types."),placeholderItems:[(0,pt.__)("Ancestor"),(0,pt.__)("Parent")]},postWithTerms:{help:(0,pt.__)("Shows breadcrumbs based on taxonomy terms. Chooses the first taxonomy with assigned terms and includes ancestors if the taxonomy is hierarchical."),placeholderItems:[(0,pt.__)("Category")]}};const{name:Wo}=Go,Zo={icon:Oo,edit:function({attributes:e,setAttributes:t,context:{postId:o,postType:n,templateSlug:r}}){const{separator:a,showHomeLink:i,type:s}=e,{post:l,isPostTypeHierarchical:c,hasTermsAssigned:u,isLoading:d}=(0,lt.useSelect)((e=>{if(!n)return{};const t=e(_t.store).getEntityRecord("postType",n,o),r=e(_t.store).getPostType(n),a=r&&r.taxonomies.length;let i;return a&&(i=e(_t.store).getTaxonomies({type:n,per_page:-1})),{post:t,isPostTypeHierarchical:r?.hierarchical,hasTermsAssigned:t&&(i||[]).filter((({visibility:e})=>e?.publicly_queryable)).some((e=>!!t[e.rest_base]?.length)),isLoading:!t||!r||a&&!i}}),[n,o]),[p,m]=(0,gt.useState)(0);(0,gt.useEffect)((()=>{m((e=>e+1))}),[l]);const g=(0,ct.useBlockProps)(),h=vt(),{content:_}=(0,ut.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:"core/breadcrumbs",urlQueryArgs:{post_id:o,invalidationKey:p}});if(d)return(0,it.jsx)("div",{...g,children:(0,it.jsx)(mt.Spinner,{})});let x;const b=["postWithAncestors","postWithTerms"].includes(s);x=b?s:c?"postWithAncestors":"postWithTerms";let f=null;const y=!o||!n||r&&!n||"postWithAncestors"===x&&!c||"postWithTerms"===x&&!u;if(y){const e=[i&&(0,pt.__)("Home"),...r&&!b?[(0,pt.__)("Page")]:qo[x].placeholderItems].filter(Boolean);f=(0,it.jsx)("nav",{style:{"--separator":`'${a}'`},inert:"true",children:(0,it.jsxs)("ol",{children:[e.map(((e,t)=>(0,it.jsx)("li",{children:(0,it.jsx)("a",{href:`#breadcrumbs-pseudo-link-${t}`,children:e})},t))),(0,it.jsx)("li",{children:(0,it.jsx)("span",{"aria-current":"page",children:(0,pt.__)("Current")})})]})})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({separator:$o,showHomeLink:!0,type:Uo})},dropdownMenuProps:h,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Type"),isShownByDefault:!0,hasValue:()=>s!==Uo,onDeselect:()=>t({type:Uo}),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Type"),value:s,onChange:e=>t({type:e}),options:[{label:(0,pt.__)("Auto"),value:"auto"},{label:(0,pt.__)("Post with ancestors"),value:"postWithAncestors"},{label:(0,pt.__)("Post with terms"),value:"postWithTerms"}],help:qo[s].help})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show home link"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>t({showHomeLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show home link"),onChange:e=>t({showHomeLink:e}),checked:i})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Separator"),isShownByDefault:!0,hasValue:()=>a!==$o,onDeselect:()=>t({separator:$o}),children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:a,onChange:e=>t({separator:e}),onBlur:()=>{a||t({separator:$o})}})})]})}),(0,it.jsx)("div",{...g,children:y?f:(0,it.jsx)(gt.RawHTML,{inert:"true",children:_})})]})}},Jo=()=>jt({name:Wo,metadata:Go,settings:Zo});var Qo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const{cleanEmptyObject:Ko}=jo(ct.privateApis);function Yo(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:Ko({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const Xo=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const en=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:o,customBackgroundColor:n,customGradient:r,...a}=e;return{...a,style:t}},tn=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return en(n)},on={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"}},nn={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},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,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!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__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt("wp-block-button__link",x.className,_.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius},(0,ct.__experimentalGetElementClassName)("button")),v={..._.style,...x.style,...b.style,...f.style},k=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":a||l?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:k}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:y,href:g?null:d,title:u,style:v,value:c,target:g?null:i,rel:g?null:s})})}},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:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})}},an={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:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},sn=[nn,rn,an,{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:{...on,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})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=a?.border?.radius,d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=Dt("wp-block-button__link",d.className,{"no-border-radius":0===a?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:g}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,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:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,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:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...on,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:o,rel:n,text:r,title:a,url:i}=e,s=Dt("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:l,value:r,target:o,rel:n})},migrate:Xo},{supports:{align:!0,alignWide:!1},attributes:{...on,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,xt.compose)(Xo,en,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:Dt(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,ct.getColorClassName)("color",u),g=!a&&(0,ct.getColorClassName)("background-color",t),h=(0,ct.__experimentalGetGradientClass)(s),_=Dt("wp-block-button__link",{"has-text-color":u||r,[m]:m,"has-background":t||n||a||s,[g]:g,"no-border-radius":0===o,[h]:h}),x={background:a||void 0,backgroundColor:g||a||s?void 0:n,color:m?void 0:r,borderRadius:o?o+"px":void 0};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:_,href:p,title:d,style:x,value:c,target:i,rel:l})})}},{attributes:{...on,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=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Xo(en({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:i,textColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("color",s),d=(0,ct.getColorClassName)("background-color",t),p=Dt("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:r,rel:a})})}},{attributes:{...on,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:tn,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s}=e,l=(0,ct.getColorClassName)("color",a),c=(0,ct.getColorClassName)("background-color",r),u=Dt("wp-block-button__link",{"has-text-color":a||s,[l]:l,"has-background":r||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e,s={backgroundColor:a,color:i};return(0,it.jsx)("div",{className:`align${r}`,children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:tn},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e;return(0,it.jsx)("div",{className:`align${r}`,style:{backgroundColor:a},children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:tn}];var ln=sn;const cn="noreferrer noopener",un="_blank",dn="nofollow";function pn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const mn=window.wp.keycodes;var gn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),hn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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{HTMLElementControl:_n}=jo(ct.privateApis),xn=[...ct.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,pt.__)("Mark as nofollow")}];function bn({selectedWidth:e,setAttributes:t}){const o=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Width"),value:e,onChange:e=>t({width:e}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})})})}var fn=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:r,onReplace:a,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:_,width:x,metadata:b}=t,f=c||"a",[y,v]=(0,gt.useState)(null),k=(0,ct.__experimentalUseBorderProps)(t),w=(0,ct.__experimentalUseColorProps)(t),C=(0,ct.__experimentalGetSpacingClassesAndStyles)(t),j=(0,ct.__experimentalGetShadowClassesAndStyles)(t),S=(0,gt.useRef)(),B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,S]),onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")?V(e):mn.isKeyboardEvent.primaryShift(e,"k")&&(F(),B.current?.focus())}}),N=(0,ct.useBlockEditingMode)(),[P,I]=(0,gt.useState)(!1),D=!!_,M=d===un,z=!!m?.includes(dn),A="a"===f,{createPageEntity:L,userCanCreatePages:H,lockUrlControls:R=!1}=(0,lt.useSelect)((e=>{if(!r)return{};const t=e(ct.store).getSettings(),o=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:t.__experimentalCreatePageEntity,userCanCreatePages:t.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!o?.canUserEditValue?.({select:e,context:l,args:b?.bindings?.url?.args})}}),[l,r,b?.bindings?.url]);function V(e){e.preventDefault(),I(!0)}function F(){o({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,gt.useEffect)((()=>{r||I(!1)}),[r]);const E=(0,gt.useMemo)((()=>({url:_,opensInNewTab:M,nofollow:z})),[_,M,z]),O=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a}=(0,lt.useSelect)(ct.store),i=(0,gt.useRef)(e);return i.current=e,(0,xt.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(r(l)),u=a(l),d=(0,st.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,st.createBlock)((0,st.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,st.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),G=(0,xt.useMergeRefs)([O,B]),[$,U]=(0,ct.useSettings)("typography.fluid","layout"),q=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:$},layout:{wideSize:U?.wideSize}}),W="default"===N,Z=W||A&&!R;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...T,className:Dt(T.className,{[`has-custom-width wp-block-button__width-${x}`]:x}),children:(0,it.jsx)(ct.RichText,{ref:G,"aria-label":(0,pt.__)("Button text"),placeholder:p||(0,pt.__)("Add text…"),value:h,onChange:e=>o({text:pn(e)}),withoutInteractiveFormatting:!0,className:Dt(n,"wp-block-button__link",w.className,k.className,q.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius,"has-custom-font-size":T.style.fontSize},(0,ct.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style,...q.style,writingMode:void 0},onReplace:a,onMerge:i,identifier:"text"})}),Z&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[W&&(0,it.jsx)(ct.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),A&&!R&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:D?hn:gn,title:D?(0,pt.__)("Unlink"):(0,pt.__)("Link"),shortcut:D?mn.displayShortcut.primaryShift("k"):mn.displayShortcut.primary("k"),onClick:D?F:V,isActive:D})]}),A&&r&&(P||D)&&!R&&(0,it.jsx)(mt.Popover,{placement:"bottom",onClose:()=>{I(!1),B.current?.focus()},anchor:y,focusOnMount:!!P&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,it.jsx)(ct.LinkControl,{value:E,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let r,a=e;if(o)r=un,a=a?.includes(cn)?a:a+` ${cn}`;else{const e=new RegExp(`\\b${cn}\\s*`,"g");a=a?.replace(e,"").trim()}if(n)a=a?.includes(dn)?a:(a+` ${dn}`).trim();else{const e=new RegExp(`\\b${dn}\\s*`,"g");a=a?.replace(e,"").trim()}return{url:(0,no.prependHTTP)(t),linkTarget:r,rel:a||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{F(),B.current?.focus()},forceIsEditingLink:P,settings:xn,createSuggestion:L&&async function(e){const t=await L({title:e,status:"draft"});return{id:t.id,type:t.type,title:t.title.rendered,url:t.link,kind:"post-type"}},withCreateSuggestion:H,createSuggestionButtonText:function(e){return(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("Create page: <mark>%s</mark>"),e),{mark:(0,it.jsx)("mark",{})})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(bn,{selectedWidth:x,setAttributes:o})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(_n,{tagName:c,onChange:e=>o({tagName:e}),options:[{label:(0,pt.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),A&&(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>o({rel:e})})]})]})};const yn=JSON.parse('{"$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":{"tagName":{"type":"string","enum":["a","button"],"default":"a"},"type":{"type":"string","default":"button"},"textAlign":{"type":"string"},"url":{"type":"string","source":"attribute","selector":"a","attribute":"href","role":"content"},"title":{"type":"string","source":"attribute","selector":"a,button","attribute":"title","role":"content"},"text":{"type":"rich-text","source":"rich-text","selector":"a,button","role":"content"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target","role":"content"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel","role":"content"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"splitting":true,"align":false,"alignWide":false,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"__experimentalSkipSerialization":["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"reusable":false,"shadow":{"__experimentalSkipSerialization":true},"spacing":{"__experimentalSkipSerialization":true,"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"editorStyle":"wp-block-button-editor","style":"wp-block-button","selectors":{"root":".wp-block-button .wp-block-button__link","typography":{"writingMode":".wp-block-button"}}}');const{name:vn}=yn,kn={icon:Qo,example:{attributes:{className:"is-style-fill",text:(0,pt.__)("Call to action")}},edit:fn,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=(0,ct.getTypographyClassesAndStyles)(e),v=Dt("wp-block-button__link",x.className,_.className,y.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius,"has-custom-font-size":a||l?.typography?.fontSize},(0,ct.__experimentalGetElementClassName)("button")),k={..._.style,...x.style,...b.style,...f.style,...y.style,writingMode:void 0},w=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:w}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:v,href:g?null:d,title:u,style:k,value:c,target:g?null:i,rel:g?null:s})})},deprecated:ln,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},wn=()=>jt({name:vn,metadata:yn,settings:kn});var Cn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 jn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},Sn=[{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:jn,save:({attributes:{contentJustification:e,orientation:t}})=>(0,it.jsx)("div",{...ct.useBlockProps.save({className:Dt({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,it.jsx)("div",{children:(0,it.jsx)(ct.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>jn({...e,align:void 0,contentJustification:e.align})}];var Bn=Sn;const Tn=window.wp.richText;function Nn(e,t,o=null){if(!e)return;const n=(0,st.getBlockType)(t);if(!n)return;const r={};if((0,st.hasBlockSupport)(n,"anchor")&&e.anchor&&(r.anchor=e.anchor),(0,st.hasBlockSupport)(n,"ariaLabel")&&e.ariaLabel&&(r.ariaLabel=e.ariaLabel),e.metadata){const t=[];if(o&&t.push("id","bindings"),t.length>0){const n=Object.entries(e.metadata).reduce(((e,[n,r])=>t.includes(n)?(e[n]="bindings"===n?o(r):r,e):e),{});Object.keys(n).length>0&&(r.metadata=n)}}return 0!==Object.keys(r).length?r:void 0}const Pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>(0,st.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>{const{content:t}=e,o=(0,Tn.__unstableCreateElement)(document,t),n=o.innerText||"",r=o.querySelector("a"),a=r?.getAttribute("href");return(0,st.createBlock)("core/button",{...e,...Nn(e,"core/button",(({content:e})=>({text:e}))),text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Tn.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]};var In=Pn;const Dn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Mn=function({attributes:e,className:t}){const{fontSize:o,layout:n,style:r}=e,a=(0,ct.useBlockProps)({className:Dt(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),{hasButtonVariations:i}=(0,lt.useSelect)((e=>({hasButtonVariations:e(st.store).getBlockVariations("core/button","inserter").length>0})),[]),s=(0,ct.useInnerBlocksProps)(a,{defaultBlock:Dn,directInsert:!i,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:n?.orientation??"horizontal"});return(0,it.jsx)("div",{...s})};const zn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/buttons","title":"Buttons","category":"design","allowedBlocks":["core/button"],"description":"Prompt visitors to take action with a group of button-style links.","keywords":["link"],"textdomain":"default","supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalExposeControlsToChildren":true,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"blockGap":["horizontal","vertical"],"padding":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true},"contentRole":true},"editorStyle":"wp-block-buttons-editor","style":"wp-block-buttons"}');const{name:An}=zn,Ln={icon:Cn,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,pt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,pt.__)("Contact us")}}]},deprecated:Bn,transforms:In,edit:Mn,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,r=ct.useBlockProps.save({className:Dt(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})}},Hn=()=>jt({name:An,metadata:zn,settings:Ln});var Rn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Vn=JSON.parse('{"$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":true,"html":false,"color":{"link":true,"__experimentalSkipSerialization":["text","background"],"__experimentalDefaultControls":{"background":true,"text":true},"__experimentalSelector":"table, th"},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-calendar"}'),Fn=fo((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var En={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/archives")}]};const{name:On}=Vn,Gn={icon:Rn,example:{},edit:function({attributes:e}){const t=(0,ct.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:r}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(_t.store),n={status:"publish",per_page:1},r=t("postType","post",n),a=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:a,hasPosts:a&&1===r?.length}}),[]);return n?(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/calendar",attributes:{...e,...Fn(o)}})})}):(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Placeholder,{icon:Rn,label:(0,pt.__)("Calendar"),children:r?(0,pt.__)("No published posts found."):(0,it.jsx)(mt.Spinner,{})})})},transforms:En},$n=()=>jt({name:On,metadata:Vn,settings:Gn});var Un=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const qn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/categories","title":"Terms List","category":"widgets","description":"Display a list of all terms of a given taxonomy.","keywords":["categories"],"textdomain":"default","attributes":{"taxonomy":{"type":"string","default":"category"},"displayAsDropdown":{"type":"boolean","default":false},"showHierarchy":{"type":"boolean","default":false},"showPostCounts":{"type":"boolean","default":false},"showOnlyTopLevel":{"type":"boolean","default":false},"showEmpty":{"type":"boolean","default":false},"label":{"type":"string","role":"content"},"showLabel":{"type":"boolean","default":true}},"usesContext":["enhancedPagination"],"supports":{"align":true,"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-categories-editor","style":"wp-block-categories"}');var Wn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Zn=[{name:"terms",title:(0,pt.__)("Terms List"),icon:Un,attributes:{taxonomy:"post_tag"},isActive:e=>"category"!==e.taxonomy},{name:"categories",title:(0,pt.__)("Categories List"),description:(0,pt.__)("Display a list of all categories."),icon:Un,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}];var Jn=Zn;const{name:Qn}=qn,Kn={icon:Un,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:r,showEmpty:a,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u,clientId:d}){const p=(0,xt.useInstanceId)(e,"blocks-category-select"),{records:m,isResolvingTaxonomies:g}=(0,_t.useEntityRecords)("root","taxonomy",{per_page:-1}),h=m?.filter((e=>e.visibility.public)),_=h?.find((e=>e.slug===l)),x=!g&&_?.hierarchical,b={per_page:-1,hide_empty:!a,context:"view"};x&&r&&(b.parent=0);const{records:f,isResolving:y}=(0,_t.useEntityRecords)("taxonomy",l,b),{createWarningNotice:v}=(0,lt.useDispatch)(bo.store),k=e=>{e.preventDefault(),v((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},w=e=>f?.length?null===e?f:f.filter((({parent:t})=>t===e)):[],C=e=>t=>c({[e]:t}),j=e=>e?(0,ao.decodeEntities)(e).trim():(0,pt.__)("(Untitled)"),S=e=>{const t=w(e.id),{id:r,link:a,count:i,name:s}=e;return(0,it.jsxs)("li",{className:`cat-item cat-item-${r}`,children:[(0,it.jsx)("a",{href:a,onClick:k,children:j(s)}),n&&` (${i})`,x&&o&&!!t.length&&(0,it.jsx)("ul",{className:"children",children:t.map((e=>S(e)))})]},r)},B=(e,t)=>{const{id:r,count:a,name:i}=e,s=w(r);return[(0,it.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),j(i),n&&` (${a})`]},r),x&&o&&!!s.length&&s.map((e=>B(e,t+1)))]},T=!f?.length||t||y?"div":"ul",N=Dt(u,{"wp-block-categories-list":!!f?.length&&!t&&!y,"wp-block-categories-dropdown":!!f?.length&&t&&!y}),P=(0,ct.useBlockProps)({className:N}),I=vt();return(0,it.jsxs)(T,{...P,children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:I,children:[Array.isArray(h)&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==l,label:(0,pt.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:h.map((e=>({label:e.name,value:e.slug}))),value:l,onChange:e=>c({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:t,onChange:C("displayAsDropdown")})}),t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,pt.__)("Show label"),checked:s,onChange:C("showLabel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:C("showPostCounts")})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show only top level terms"),checked:r,onChange:C("showOnlyTopLevel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show empty terms"),checked:a,onChange:C("showEmpty")})}),x&&!r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show hierarchy"),checked:o,onChange:C("showHierarchy")})})]})}),y&&(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Terms"),children:(0,it.jsx)(mt.Spinner,{})}),!y&&0===f?.length&&(0,it.jsx)("p",{children:_.labels.no_terms}),!y&&f?.length>0&&(t?(()=>{const e=w(x&&o?0:null);return(0,it.jsxs)(it.Fragment,{children:[s?(0,it.jsx)(ct.RichText,{className:"wp-block-categories__label","aria-label":(0,pt.__)("Label text"),placeholder:_?.name,withoutInteractiveFormatting:!0,value:i,onChange:e=>c({label:e})}):(0,it.jsx)(mt.VisuallyHidden,{as:"label",htmlFor:p,children:i||_?.name}),(0,it.jsxs)("select",{id:p,children:[(0,it.jsx)("option",{children:(0,pt.sprintf)((0,pt.__)("Select %s"),_?.labels?.singular_name)}),e.map((e=>B(e,0)))]})]})})():w(x&&o?0:null).map((e=>S(e))))]})},variations:Jn},Yn=()=>jt({name:Qn,metadata:qn,settings:Kn});var Xn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 er=({clientId:e})=>{const{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),o=(0,lt.useSelect)((t=>t(ct.store).getBlock(e)),[e]);return(0,it.jsx)(mt.ToolbarButton,{onClick:()=>t(o.clientId,(0,st.rawHandler)({HTML:(0,st.serialize)(o)})),children:(0,pt.__)("Convert to blocks")})},tr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function or({onClick:e,isModalFullScreen:t}){return(0,xt.useViewportMatch)("small","<")?null:(0,it.jsx)(mt.Button,{size:"compact",onClick:e,icon:tr,isPressed:t,label:t?(0,pt.__)("Exit fullscreen"):(0,pt.__)("Enter fullscreen")})}function nr(e){const t=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles));return(0,gt.useEffect)((()=>{const{baseURL:o,suffix:n,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,it.jsx)("textarea",{...e})}function rr(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:r}=e,[a,i]=(0,gt.useState)(!1),[s,l]=(0,gt.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):r([]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>i(!0),children:(0,pt.__)("Edit")})})}),o&&(0,it.jsx)(gt.RawHTML,{children:o}),(a||!o)&&(0,it.jsxs)(mt.Modal,{title:(0,pt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,it.jsx)(or,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,it.jsx)(nr,{id:c,defaultValue:o}),(0,it.jsxs)(mt.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:u,children:(0,pt.__)("Cancel")})}),(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,pt.__)("Save")})})]})]})]})}const{wp:ar}=window;function ir({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:r}=(0,lt.useSelect)(ct.store),a=(0,gt.useRef)(!1);return(0,gt.useEffect)((()=>{if(!a.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,gt.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let a;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{a=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return r()?.length||o({content:e.getContent()}),e.once("focus",(()=>{a&&(e.selection.moveToBookmark(a),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{a=null}));const i=(0,xt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{mn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==mn.BACKSPACE&&t.keyCode!==mn.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)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===mn.F10&&t.stopPropagation()})),e.on("paste",(e=>{e.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;ar.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),ar.oldEditor.remove(`editor-${e}`),a.current=!1}}),[]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,pt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,it.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const sr=JSON.parse('{"$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":{"html":false,"className":false,"customClassName":false,"lock":false,"reusable":false,"renaming":false,"visibility":false},"editorStyle":"wp-block-freeform-editor"}');const{name:lr}=sr,cr={icon:Xn,edit:function(e){const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).canRemoveBlock(t)),[t]),[n,r]=(0,gt.useState)(!1),a=(0,xt.useRefEffect)((e=>{r(e.ownerDocument!==document)}),[]);return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(er,{clientId:t})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({ref:a}),children:n?(0,it.jsx)(rr,{...e}):(0,it.jsx)(ir,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)(gt.RawHTML,{children:t})}},ur=()=>jt({name:lr,metadata:sr,settings:cr});var dr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const pr=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"code","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"align":["wide"],"anchor":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"width":true,"color":true}},"color":{"text":true,"background":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-code"}');function mr(e){return e.replace(/\[/g,"[")}function gr(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const hr={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,st.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:(0,Tn.toHTMLString)({value:(0,Tn.create)({text:t})})})}},{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:e=>{const{content:t}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph"),content:t})}}]};var _r=hr;const{name:xr}=pr,br={icon:dr,example:{attributes:{content:(0,pt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:_r,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:r}){const a=(0,ct.useBlockProps)();return(0,it.jsx)("pre",{...a,children:(0,it.jsx)(ct.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:r,placeholder:(0,pt.__)("Write code…"),"aria-label":(0,pt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,xt.pipe)(mr,gr)(t||""))})});var t}},fr=()=>jt({name:xr,metadata:pr,settings:br});var yr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 vr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:o+"%"};return(0,it.jsx)("div",{className:n,style:r,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var kr=vr;function wr({width:e,setAttributes:t}){const[o]=(0,ct.useSettings)("spacing.units"),n=(0,mt.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),r=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==e,label:(0,pt.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})})}var Cr=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:r,clientId:a}){const i=Dt("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,lt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ct.store),n=o(a);return{hasChildBlocks:t(a).length>0,rootClientId:n,columnsIds:t(n)}}),[a]),{updateBlockAttributes:u}=(0,lt.useDispatch)(ct.store),d=Number.isFinite(t)?t+"%":t,p=(0,ct.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(a)+1,h=(0,pt.sprintf)((0,pt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),_=(0,ct.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(wr,{width:t,setAttributes:r})}),(0,it.jsx)("div",{..._})]})};const jr=JSON.parse('{"$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"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"__experimentalOnEnter":true,"anchor":true,"reusable":false,"html":false,"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"blockGap":true,"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":true,"interactivity":{"clientNavigation":true},"allowedBlocks":true}}');const{name:Sr}=jr,Br={icon:yr,edit:Cr,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t});let r;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}r={flexBasis:e}}const a=ct.useBlockProps.save({className:n,style:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsx)("div",{...i})},deprecated:kr},Tr=()=>jt({name:Sr,metadata:jr,settings:Br});var Nr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function Pr(e){let t,{doc:o}=Pr;o||(o=document.implementation.createHTMLDocument(""),Pr.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Ir=[{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:o,customBackgroundColor:n,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,i=(0,ct.getColorClassName)("background-color",o),s=(0,ct.getColorClassName)("color",r),l=Dt({"has-background":o||n,"has-text-color":r||a,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:a};return(0,it.jsx)("div",{className:l||void 0,style:c,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Pr(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=Pr(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,st.createBlock)("core/column",{},e))),{columns:n,...r}=e;return[{...r,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,it.jsx)("div",{className:`has-${t}-columns`,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=Dt(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,it.jsx)("div",{className:n,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const Dr=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Mr(e,t){const{width:o=100/t}=e.attributes;return Dr(o)}function zr(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+Mr(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=Mr(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,Dr(t*o/n)])))}function Ar(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Lr={name:"core/column"};function Hr({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:r,minCount:a}=(0,lt.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlockOrder:r}=t(ct.store),a=r(e),i=a.reduce(((e,t,o)=>(n(t)||e.push(o),e)),[]);return{count:a.length,canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,lt.useSelect)(ct.store),{replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store);function l(t,o){let n=i(e);const r=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const a=o>t;if(a&&r){const e=Dr(100/o),r=o-t;n=[...Ar(n,zr(n,100-e*r)),...Array.from({length:r}).map((()=>(0,st.createBlock)("core/column",{width:`${e}%`})))]}else if(a)n=[...n,...Array.from({length:o-t}).map((()=>(0,st.createBlock)("core/column")))];else if(o<t&&(n=n.slice(0,-(t-o)),r)){n=Ar(n,zr(n,100))}s(e,n)}const c=vt();return(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:c,children:[r&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:n,onChange:e=>l(n,Math.max(a,e)),min:Math.max(1,a),max:Math.max(6,n)}),n>6&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!0!==o,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function Rr({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:r,templateLock:a}=e,i=(0,lt.useRegistry)(),{getBlockOrder:s}=(0,lt.useSelect)(ct.store),{updateBlockAttributes:l}=(0,lt.useDispatch)(ct.store),c=Dt({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!n}),u=(0,ct.useBlockProps)({className:c}),d=(0,ct.useInnerBlocksProps)(u,{defaultBlock:Lr,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:r})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Hr,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,it.jsx)("div",{...d})]})}function Vr({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=(0,lt.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(st.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,lt.useDispatch)(ct.store),s=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...s,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:a,instructions:(0,pt.__)("Divide into columns. Select a layout:"),onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}var Fr=e=>{const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).getBlocks(t).length>0),[t])?Rr:Vr;return(0,it.jsx)(o,{...e})};const Er=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/columns","title":"Columns","category":"design","allowedBlocks":["core/column"],"description":"Display content in multiple columns, with blocks added to each column.","textdomain":"default","attributes":{"verticalAlignment":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"anchor":true,"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"heading":true,"button":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"blockGap":{"__experimentalDefault":"2em","sides":["horizontal","vertical"]},"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex","flexWrap":"nowrap"}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"shadow":true},"editorStyle":"wp-block-columns-editor","style":"wp-block-columns"}');var Or=[{name:"one-column-full",title:(0,pt.__)("100"),description:(0,pt.__)("One column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,pt.__)("50 / 50"),description:(0,pt.__)("Two columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,pt.__)("33 / 66"),description:(0,pt.__)("Two columns; one-third, two-thirds split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,pt.__)("66 / 33"),description:(0,pt.__)("Two columns; two-thirds, one-third split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,pt.__)("33 / 33 / 33"),description:(0,pt.__)("Three columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,pt.__)("25 / 50 / 25"),description:(0,pt.__)("Three columns; wide center column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Gr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,st.createBlock)("core/columns",{},(0,st.createBlocksFromInnerBlocksTemplate)(o))},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:o,backgroundColor:n,textColor:r,style:a,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,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"===l&&h.reverse(),(0,st.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:m},(0,st.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var $r=Gr;const{name:Ur}=Er,qr={icon:Nr,variations:Or,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("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,pt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("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,pt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Ir,edit:Fr,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=Dt({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),r=ct.useBlockProps.save({className:n}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})},transforms:$r},Wr=()=>jt({name:Ur,metadata:Er,settings:qr});var Zr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Jr=JSON.parse('{"$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":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-comments-editor","usesContext":["postId","postType"]}');var Qr=[{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=ct.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],r=n?.filter((e=>"wp-block-comments"!==e)),a={...t,className:r.join(" ")};return(0,it.jsx)(e,{...a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const{HTMLElementControl:Kr}=jo(ct.privateApis);function Yr({attributes:{tagName:e},setAttributes:t}){return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Kr,{tagName:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}const Xr=()=>{const e=(0,xt.useInstanceId)(Xr);return(0,it.jsxs)("div",{className:"comment-respond",children:[(0,it.jsx)("h3",{className:"comment-reply-title",children:(0,pt.__)("Leave a Reply")}),(0,it.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault(),children:[(0,it.jsxs)("p",{children:[(0,it.jsx)("label",{htmlFor:`comment-${e}`,children:(0,pt.__)("Comment")}),(0,it.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,it.jsx)("p",{className:"form-submit wp-block-button",children:(0,it.jsx)("input",{name:"submit",type:"submit",className:Dt("wp-block-button__link",(0,ct.__experimentalGetElementClassName)("button")),label:(0,pt.__)("Post Comment"),value:(0,pt.__)("Post Comment"),"aria-disabled":"true"})})]})]})};var ea=({postId:e,postType:t})=>{const[o,n]=(0,_t.useEntityProp)("postType",t,"comment_status",e),r=void 0===t||void 0===e,{defaultCommentStatus:a}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings)),i=(0,lt.useSelect)((e=>!!t&&!!e(_t.store).getPostType(t)?.supports.comments));if(!r&&"open"!==o){if("closed"===o){const e=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>n("open"),variant:"primary",children:(0,pt._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,it.jsx)(ct.Warning,{actions:e,children:(0,pt.__)("Post Comments Form block: Comments are not enabled for this item.")})}if(!i)return(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});if("open"!==a)return(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Form block: Comments are not enabled.")})}return(0,it.jsx)(Xr,{})};function ta({postType:e,postId:t}){let[o]=(0,_t.useEntityProp)("postType",e,"title",t);o=o||(0,pt.__)("Post Title");const{avatarURL:n}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings));return(0,it.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,it.jsx)("h3",{children:(0,pt.sprintf)((0,pt.__)("One response to %s"),o)}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)("ol",{className:"commentlist",children:(0,it.jsx)("li",{className:"comment even thread-even depth-1",children:(0,it.jsxs)("article",{className:"comment-body",children:[(0,it.jsxs)("footer",{className:"comment-meta",children:[(0,it.jsxs)("div",{className:"comment-author vcard",children:[(0,it.jsx)("img",{alt:(0,pt.__)("Commenter Avatar"),src:n,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,it.jsx)("b",{className:"fn",children:(0,it.jsx)("a",{href:"#top",className:"url",children:(0,pt.__)("A WordPress Commenter")})})," ",(0,it.jsxs)("span",{className:"says",children:[(0,pt.__)("says"),":"]})]}),(0,it.jsxs)("div",{className:"comment-metadata",children:[(0,it.jsx)("a",{href:"#top",children:(0,it.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,pt.__)("January 1, 2000 at 00:00 am")})})," ",(0,it.jsx)("span",{className:"edit-link",children:(0,it.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,pt.__)("Edit")})})]})]}),(0,it.jsx)("div",{className:"comment-content",children:(0,it.jsxs)("p",{children:[(0,pt.__)("Hi, this is a comment."),(0,it.jsx)("br",{}),(0,pt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,it.jsx)("br",{}),(0,gt.createInterpolateElement)((0,pt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,it.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,it.jsx)("div",{className:"reply",children:(0,it.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,pt.__)("Reply to A WordPress Commenter"),children:(0,pt.__)("Reply")})})]})})}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)(ea,{postId:t,postType:e})]})}function oa({attributes:e,setAttributes:t,context:{postType:o,postId:n}}){const{textAlign:r}=e,a=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,pt.__)("Switch to editable mode")},"convert")],i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)("div",{...i,children:[(0,it.jsx)(ct.Warning,{actions:a,children:(0,pt.__)("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,it.jsx)(ta,{postId:n,postType:o})]})]})}var na=[["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{name:ra}=Jr,aa={icon:Zr,example:{},edit:function(e){const{attributes:t,setAttributes:o,clientId:n}=e,{tagName:r,legacy:a}=t,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{template:na});return a?(0,it.jsx)(oa,{...e}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Yr,{attributes:t,setAttributes:o,clientId:n}),(0,it.jsx)(r,{...s})]})},save:function({attributes:{tagName:e,legacy:t}}){const o=ct.useBlockProps.save(),n=ct.useInnerBlocksProps.save(o);return t?null:(0,it.jsx)(e,{...n})},deprecated:Qr},ia=()=>jt({name:ra,metadata:Jr,settings:aa}),sa=JSON.parse('{"$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":false,"inserter":false,"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"color":{"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"__experimentalSkipSerialization":true,"margin":true,"padding":true},"interactivity":{"clientNavigation":true}}}');const{name:la}=sa,ca={icon:to,edit:function({attributes:e,context:{commentId:t},setAttributes:o,isSelected:n}){const{height:r,width:a}=e,[i]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,_t.useEntityProp)("root","comment","author_name",t),l=i?Object.values(i):null,c=i?Object.keys(i):null,u=c?c[0]:24,d=c?c[c.length-1]:96,p=(0,ct.useBlockProps)(),m=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*d),{avatarURL:h}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),_=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:e=>o({width:e,height:e}),min:u,max:g,initialPosition:a,value:a})})}),x=(0,it.jsx)(mt.ResizableBox,{size:{width:a,height:r},showHandle:n,onResizeStop:(e,t,n,i)=>{o({height:parseInt(r+i.height,10),width:parseInt(a+i.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:u,maxWidth:g,children:(0,it.jsx)("img",{src:l?l[l.length-1]:h,alt:`${s} ${(0,pt.__)("Avatar")}`,...p})});return(0,it.jsxs)(it.Fragment,{children:[_,(0,it.jsx)("div",{...m,children:x})]})}},ua=()=>jt({name:la,metadata:sa,settings:ca});var da=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.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,it.jsx)(St.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});const pa=JSON.parse('{"$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":true},"linkTarget":{"type":"string","default":"_self"},"textAlign":{"type":"string"}},"usesContext":["commentId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-author-name"}');const ma={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var ga=[ma];const{name:ha}=pa,_a={icon:da,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:n},setAttributes:r}){const a=vt(),i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})});let s=(0,lt.useSelect)((e=>{const{getEntityRecord:t}=e(_t.store),o=t("root","comment",n),r=o?.author_name;if(o&&!r){const e=t("root","user",o.author);return e?.name??(0,pt.__)("Anonymous")}return r??""}),[n]);const l=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>r({textAlign:e})})}),c=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!e,onDeselect:()=>r({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to authors URL"),onChange:()=>r({isLink:!e}),checked:e})}),e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>r({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})]})});n&&s||(s=(0,pt._x)("Comment Author","block title"));const u=e?(0,it.jsx)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault(),children:s}):s;return(0,it.jsxs)(it.Fragment,{children:[c,l,(0,it.jsx)("div",{...i,children:u})]})},deprecated:ga,example:{}},xa=()=>jt({name:ha,metadata:pa,settings:_a});var ba=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 fa=JSON.parse('{"$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":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"spacing":{"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"html":false},"style":"wp-block-comment-content"}');const{name:ya}=fa,va={icon:ba,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),[r]=(0,_t.useEntityProp)("root","comment","content",o),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return o&&r?(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(gt.RawHTML,{children:r.rendered},"html")})})]}):(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)("p",{children:(0,pt._x)("Comment Content","block title")})})]})},example:{}},ka=()=>jt({name:ya,metadata:fa,settings:va});var wa=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.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,it.jsx)(St.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"})]});const Ca=JSON.parse('{"$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":true}},"usesContext":["commentId"],"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-date"}'),ja=window.wp.date;const Sa={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Ba=[Sa];const{name:Ta}=Ca,Na={icon:wa,edit:function({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:n}){const r=(0,ct.useBlockProps)(),a=vt();let[i]=(0,_t.useEntityProp)("root","comment","date",o);const[s=(0,ja.getSettings)().formats.date]=(0,_t.useEntityProp)("root","site","date_format"),l=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({format:void 0,isLink:!0})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Date format"),hasValue:()=>void 0!==e,onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to comment"),onChange:()=>n({isLink:!t}),checked:t})})]})});o&&i||(i=(0,pt._x)("Comment Date","block title"));let c=i instanceof Date?(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",i),children:"human-diff"===e?(0,ja.humanTimeDiff)(i):(0,ja.dateI18n)(e||s,i)}):(0,it.jsx)("time",{children:i});return t&&(c=(0,it.jsx)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault(),children:c})),(0,it.jsxs)(it.Fragment,{children:[l,(0,it.jsx)("div",{...r,children:c})]})},deprecated:Ba,example:{}},Pa=()=>jt({name:Ta,metadata:Ca,settings:Na});var Ia=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Da=JSON.parse('{"$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":false,"color":{"link":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-comment-edit-link"}');const{name:Ma}=Da,za={icon:Ia,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),r=vt(),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:e=>o({textAlign:e})})}),i=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({linkTarget:"_self"})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===e,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})})})});return(0,it.jsxs)(it.Fragment,{children:[a,i,(0,it.jsx)("div",{...n,children:(0,it.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Edit")})})]})},example:{}},Aa=()=>jt({name:Ma,metadata:Da,settings:za});var La=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Ha=JSON.parse('{"$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":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false},"style":"wp-block-comment-reply-link"}');var Ra=function({setAttributes:e,attributes:{textAlign:t}}){const o=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),n=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return(0,it.jsxs)(it.Fragment,{children:[n,(0,it.jsx)("div",{...o,children:(0,it.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Reply")})})]})};const{name:Va}=Ha,Fa={edit:Ra,icon:La,example:{}},Ea=()=>jt({name:Va,metadata:Ha,settings:Fa});var Oa=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ga=JSON.parse('{"$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":true,"html":false,"reusable":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-template"}'),$a=window.wp.apiFetch;var Ua=r.n($a);const qa=({defaultPage:e,postId:t,perPage:o,queryArgs:n})=>{const[r,a]=(0,gt.useState)({}),i=`${t}_${o}`,s=r[i]||0;return(0,gt.useEffect)((()=>{s||"newest"!==e||Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{...n,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));a({...r,[i]:t<=1?1:t})})).catch((()=>{a({...r,[i]:1})}))}),[e,t,o,a]),"newest"===e?s:1},Wa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Za({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:n,blocks:r}){const{children:a,...i}=(0,ct.useInnerBlocksProps)({},{template:Wa});return(0,it.jsxs)("li",{...i,children:[e.commentId===(t||n)?a:null,(0,it.jsx)(Ja,{blocks:r,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||n)}),e?.children?.length>0?(0,it.jsx)(Qa,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:r,firstCommentId:n}):null]})}const Ja=(0,gt.memo)((({blocks:e,commentId:t,setActiveCommentId:o,isHidden:n})=>{const r=(0,ct.__experimentalUseBlockPreview)({blocks:e}),a=()=>{o(t)},i={display:n?"none":void 0};return(0,it.jsx)("div",{...r,tabIndex:0,role:"button",style:i,onClick:a,onKeyPress:a})})),Qa=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})=>(0,it.jsx)("ol",{...t,children:e&&e.map((({commentId:e,...t},i)=>(0,it.jsx)(ct.BlockContextProvider,{value:{commentId:e<0?null:e},children:(0,it.jsx)(Za,{comment:{commentId:e,...t},activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})},t.commentId||i)))});const{name:Ka}=Ga,Ya={icon:Oa,edit:function({clientId:e,context:{postId:t}}){const o=(0,ct.useBlockProps)(),[n,r]=(0,gt.useState)(),{commentOrder:a,threadCommentsDepth:i,threadComments:s,commentsPerPage:l,pageComments:c}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:n,defaultCommentsPage:r}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),a=o?Math.min(n,100):100,i=qa({defaultPage:r,postId:e,perPage:a,queryArgs:t});return(0,gt.useMemo)((()=>i?{...t,post:e,per_page:a,page:i}:null),[e,a,i])})({postId:t}),{topLevelComments:d,blocks:p}=(0,lt.useSelect)((t=>{const{getEntityRecords:o}=t(_t.store),{getBlocks:n}=t(ct.store);return{topLevelComments:u?o("root","comment",u):null,blocks:n(e)}}),[e,u]);let m=(e=>(0,gt.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[o]=t?.children||[[]];return{commentId:e,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===a&&d?[...d].reverse():d);return d?(t||(m=(({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:n})=>{const r=o?Math.min(n,3):1,a=e=>e<r?[{commentId:-(e+3),children:a(e+1)}]:[],i=[{commentId:-1,children:a(1)}];return(!t||e>=2)&&r<3&&i.push({commentId:-2,children:[]}),(!t||e>=3)&&r<2&&i.push({commentId:-3,children:[]}),i})({perPage:l,pageComments:c,threadComments:s,threadCommentsDepth:i})),m.length?(0,it.jsx)(Qa,{comments:m,blockProps:o,blocks:p,activeCommentId:n,setActiveCommentId:r,firstCommentId:m[0]?.commentId}):(0,it.jsx)("p",{...o,children:(0,pt.__)("No results found.")})):(0,it.jsx)("p",{...o,children:(0,it.jsx)(mt.Spinner,{})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},Xa=()=>jt({name:Ka,metadata:Ga,settings:Ya});var ei=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 ti=JSON.parse('{"$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":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),oi={none:"",arrow:"←",chevron:"«"};const{name:ni}=ti,ri={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=oi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:n}),(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Older comments page link"),placeholder:(0,pt.__)("Older Comments"),value:e,onChange:e=>t({label:e})})]})},example:{attributes:{label:(0,pt.__)("Older Comments")}}},ai=()=>jt({name:ni,metadata:ti,settings:ri});var ii=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});const si=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination","title":"Comments Pagination","category":"theme","parent":["core/comments"],"allowedBlocks":["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],"description":"Displays a paginated navigation to next/previous set of comments, when applicable.","textdomain":"default","attributes":{"paginationArrow":{"type":"string","default":"none"}},"example":{"attributes":{"paginationArrow":"none"}},"providesContext":{"comments/paginationArrow":"paginationArrow"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-comments-pagination-editor","style":"wp-block-comments-pagination"}');function li({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}const ci=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const{name:ui}=si,di={icon:ii,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){const n=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),n=t(o);return n?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),r=(0,ct.useBlockProps)(),a=vt(),i=(0,ct.useInnerBlocksProps)(r,{template:ci});return(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o?.pageComments}),[])?(0,it.jsxs)(it.Fragment,{children:[n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:a,resetAll:()=>t({paginationArrow:"none"}),children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),hasValue:()=>"none"!==e,onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(li,{value:e,onChange:e=>{t({paginationArrow:e})}})})})}),(0,it.jsx)("div",{...i})]}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},pi=()=>jt({name:ui,metadata:si,settings:di});var mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});const gi=JSON.parse('{"$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":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),hi={none:"",arrow:"→",chevron:"»"};const{name:_i}=gi,xi={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=hi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Newer comments page link"),placeholder:(0,pt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:n})]})},example:{attributes:{label:(0,pt.__)("Newer Comments")}}},bi=()=>jt({name:_i,metadata:gi,settings:xi});var fi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 yi=JSON.parse('{"$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":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),vi=({content:e,tag:t="a",extraClass:o=""})=>"a"===t?(0,it.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault(),children:e}):(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e});const{name:ki}=yi,wi={icon:fi,edit:function(){return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(vi,{content:"1"}),(0,it.jsx)(vi,{content:"2"}),(0,it.jsx)(vi,{content:"3",tag:"span",extraClass:"current"}),(0,it.jsx)(vi,{content:"4"}),(0,it.jsx)(vi,{content:"5"}),(0,it.jsx)(vi,{content:"...",tag:"span",extraClass:"dots"}),(0,it.jsx)(vi,{content:"8"})]})},example:{}},Ci=()=>jt({name:ki,metadata:yi,settings:wi});var ji=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});const Si=JSON.parse('{"$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":true},"showCommentsCount":{"type":"boolean","default":true},"level":{"type":"number","default":2},"levelOptions":{"type":"array"}},"supports":{"anchor":false,"align":true,"html":false,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true}},"interactivity":{"clientNavigation":true}}}');const{attributes:Bi,supports:Ti}=Si;var Ni=[{attributes:{...Bi,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Ti,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:o,...n}=e;return n},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const{name:Pi}=Si,Ii={icon:ji,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:n,levelOptions:r},setAttributes:a,context:{postType:i,postId:s}}){const l="h"+n,[c,u]=(0,gt.useState)(),[d]=(0,_t.useEntityProp)("postType",i,"title",s),p=void 0===s,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:g,threadComments:h,commentsPerPage:_,pageComments:x}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),b=vt();(0,gt.useEffect)((()=>{if(p){const e=h?Math.min(g,3)-1:0,t=x?_:3,o=parseInt(e)+parseInt(t);return void u(Math.min(o,3))}const e=s;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===s&&u(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{u(0)}))}),[s]);const f=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>a({level:e})})]}),y=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>a({showPostTitle:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a({showCommentsCount:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show comments count"),checked:o,onChange:e=>a({showCommentsCount:e})})})]})}),v=p?(0,pt.__)("“Post Title”"):`"${d}"`;let k;return k=o&&void 0!==c?t?1===c?(0,pt.sprintf)((0,pt.__)("One response to %s"),v):(0,pt.sprintf)((0,pt._n)("%1$s response to %2$s","%1$s responses to %2$s",c),c,v):1===c?(0,pt.__)("One response"):(0,pt.sprintf)((0,pt._n)("%s response","%s responses",c),c):t?1===c?(0,pt.sprintf)((0,pt.__)("Response to %s"),v):(0,pt.sprintf)((0,pt.__)("Responses to %s"),v):1===c?(0,pt.__)("Response"):(0,pt.__)("Responses"),(0,it.jsxs)(it.Fragment,{children:[f,y,(0,it.jsx)(l,{...m,children:k})]})},deprecated:Ni,example:{}},Di=()=>jt({name:Pi,metadata:Si,settings:Ii});var Mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 zi={"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"},Ai="image",Li="video",Hi={x:.5,y:.5},Ri=["image","video"];function Vi({x:e,y:t}=Hi){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Fi(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ei(e){return!e||"center center"===e||"center"===e}function Oi(e){return Ei(e)?"":zi[e]}function Gi(e){return e?{backgroundImage:`url(${e})`}:{}}function $i(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Ui(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function qi(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Wi={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"}},Zi={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]}},Ji={...Zi,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Qi={...Ji,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Ki={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}},Yi={...Ki,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",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},Xi={attributes:Qi,supports:{...Yi,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f}=e,y=(0,ct.getColorClassName)("background-color",p),v=(0,ct.__experimentalGetGradientClass)(o),k=Ai===t,w=Li===t,C=!(c||d),j={minHeight:(_&&x?`${_}${x}`:_)||void 0},S={backgroundColor:y?void 0:a,background:r||void 0},B=s&&C?Vi(s):void 0,T=m?`url(${m})`:void 0,N=Vi(s),P=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),I=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),D=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:P,style:j}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",y,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&D&&0!==i,"has-background-gradient":D,[v]:v}),style:S}),!l&&k&&m&&(C?(0,it.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:T}})),w&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},es={attributes:Ji,supports:Yi,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},ts={attributes:Ji,supports:Yi,isEligible:e=>(void 0!==e.customOverlayColor||void 0!==e.overlayColor)&&void 0===e.isUserOverlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},os={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=Ai===t,v=Li===t,k=!(c||d),w={minHeight:(_&&x?`${_}${x}`:_)||void 0},C={backgroundColor:b?void 0:a,background:r||void 0},j=s&&k?Vi(s):void 0,S=m?`url(${m})`:void 0,B=Vi(s),T=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),N=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:T,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[f]:f}),style:C}),!l&&y&&m&&(k?(0,it.jsx)("img",{className:N,alt:g,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}):(0,it.jsx)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),v&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},ns={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=_&&x?`${_}${x}`:_,v=Ai===t,k=Li===t,w=!(c||d),C={...!v||w||l?{}:Gi(m),minHeight:y||void 0},j={backgroundColor:b?void 0:a,background:r||void 0},S=s&&w?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),T=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:B,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&T&&0!==i,"has-background-gradient":T,[f]:f}),style:j}),!l&&v&&w&&m&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},rs={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n)),B=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",x,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":p&&B&&0!==i,"has-background-gradient":B,[b]:b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},as={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt(x,Fi(i),"wp-block-cover__gradient-background",b,{"has-background-dim":void 0!==i,"has-background-gradient":o||r,[b]:!p&&b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},is={attributes:{...Wi,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:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,alt:p,id:m,minHeight:g,minHeightUnit:h}=e,_=(0,ct.getColorClassName)("background-color",u),x=(0,ct.__experimentalGetGradientClass)(o),b=h?`${g}${h}`:g,f=Ai===t,y=Li===t,v=!(l||c),k={...f&&!v?Gi(d):{},backgroundColor:_?void 0:a,background:r&&!d?r:void 0,minHeight:b||void 0},w=s&&v?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,C=Dt($i(i),_,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[x]:!d&&x,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:C,style:k}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",x),style:r?{background:r}:void 0}),f&&v&&d&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",m?`wp-image-${m}`:null),alt:p,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&d&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ss={attributes:{...Wi,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:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,minHeight:p,minHeightUnit:m}=e,g=(0,ct.getColorClassName)("background-color",u),h=(0,ct.__experimentalGetGradientClass)(o),_=m?`${p}${m}`:p,x=Ai===t,b=Li===t,f=x?Gi(d):{},y={};let v;g||(f.backgroundColor=a),r&&!d&&(f.background=r),f.minHeight=_||void 0,s&&(v=`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`,x&&!l&&(f.backgroundPosition=v),b&&(y.objectPosition=v));const k=Dt($i(i),g,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[h]:!d&&h,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:k,style:f}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),b&&d&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:y}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ls={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},cs={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${100*i.x}% ${100*i.y}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},us={attributes:{...Wi,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:i,overlayColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("background-color",s),d=t===Ai?Gi(c):{};u||(d.backgroundColor=n),a&&!i&&(d.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const p=Dt($i(r),u,{"has-background-dim":0!==r,"has-parallax":i,[`has-${o}-content`]:"center"!==o});return(0,it.jsxs)("div",{className:p,style:d,children:[Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!ct.RichText.isEmpty(l)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:l})]})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,...r}=t;return[r,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ds={attributes:{...Wi,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:o,hasParallax:n,dimRatio:r,align:a,contentAlign:i,overlayColor:s,customOverlayColor:l}=e,c=(0,ct.getColorClassName)("background-color",s),u=Gi(t);c||(u.backgroundColor=l);const d=Dt("wp-block-cover-image",$i(r),c,{"has-background-dim":0!==r,"has-parallax":n,[`has-${i}-content`]:"center"!==i},a?`align${a}`:null);return(0,it.jsx)("div",{className:d,style:u,children:!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ps={attributes:{...Wi,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:o,hasParallax:n,dimRatio:r,align:a}=e,i=Gi(t),s=Dt("wp-block-cover-image",$i(r),{"has-background-dim":0!==r,"has-parallax":n},a?`align${a}`:null);return(0,it.jsx)("section",{className:s,style:i,children:(0,it.jsx)(ct.RichText.Content,{tagName:"h2",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}};var ms=[Xi,es,ts,os,ns,rs,as,is,ss,ls,cs,us,ds,ps];const gs="full",hs=["image"];var _s=function e({poster:t,onChange:o}){const n=(0,gt.useRef)(),[r,a]=(0,gt.useState)(!1),i=(0,xt.useInstanceId)(e,"block-library-poster-image-description"),{getSettings:s}=(0,lt.useSelect)(ct.store),{createErrorNotice:l}=(0,lt.useDispatch)(bo.store),c=e=>{s().mediaUpload({allowedTypes:hs,filesList:e,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)?a(!0):(e&&o(e),a(!1))},onError:e=>{l(e,{id:"poster-image-upload-notice",type:"snackbar"}),a(!1)},multiple:!1})};return(0,it.jsx)(ct.MediaUploadCheck,{children:(0,it.jsxs)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>o(void 0),children:[(0,it.jsx)(mt.BaseControl.VisualLabel,{children:(0,pt.__)("Poster image")}),(0,it.jsx)(ct.MediaUpload,{title:(0,pt.__)("Select poster image"),onSelect:o,allowedTypes:hs,render:({open:e})=>(0,it.jsxs)("div",{className:"block-library-poster-image__container",children:[t&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,"aria-haspopup":"dialog","aria-label":(0,pt.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:r,accessibleWhenDisabled:!0,children:[(0,it.jsx)("img",{src:t,alt:(0,pt.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),r&&(0,it.jsx)(mt.Spinner,{})]}),(0,it.jsxs)(mt.__experimentalHStack,{className:Dt("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!t}),children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,ref:n,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:t?void 0:"secondary",disabled:r,accessibleWhenDisabled:!0,children:!t&&r?(0,it.jsx)(mt.Spinner,{}):t?(0,pt.__)("Replace"):(0,pt.__)("Set poster image")}),(0,it.jsx)("p",{id:i,hidden:!0,children:t?(0,pt.sprintf)((0,pt.__)("The current poster image url is %s."),t):(0,pt.__)("There is no poster image currently selected.")}),!!t&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{o(void 0),n.current.focus()},className:"block-library-poster-image__action",disabled:r,accessibleWhenDisabled:!0,children:(0,pt.__)("Remove")})]}),(0,it.jsx)(mt.DropZone,{onFilesDrop:c})]})})]})})};const{cleanEmptyObject:xs,ResolutionTool:bs,HTMLElementControl:fs}=jo(ct.privateApis);function ys({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const r=`block-cover-height-input-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,a="px"===o,[i]=(0,ct.useSettings)("spacing.units"),s=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),l=(0,gt.useMemo)((()=>{const[e]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n);return[e,o].join("")}),[o,n]),c=a?50:0;return(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Minimum height"),id:r,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const o=""!==t?parseFloat(t):void 0;isNaN(o)&&void 0!==o||e(o)},onUnitChange:t,units:s,value:l})}function vs({attributes:e,setAttributes:t,clientId:o,setOverlayColor:n,coverRef:r,currentSettings:a,updateDimRatio:i,featuredImage:s}){const{useFeaturedImage:l,id:c,dimRatio:u,focalPoint:d,hasParallax:p,isRepeated:m,minHeight:g,minHeightUnit:h,alt:_,tagName:x,poster:b}=e,{isVideoBackground:f,isImageBackground:y,mediaElement:v,url:k,overlayColor:w}=a,C=e.sizeSlug||gs,{gradientValue:j,setGradient:S}=(0,ct.__experimentalUseGradient)(),{getSettings:B}=(0,lt.useSelect)(ct.store),T=B()?.imageSizes,N=(0,lt.useSelect)((e=>c&&y?e(_t.store).getEntityRecord("postType","attachment",c,{context:"view"}):null),[c,y]),P=l?s:N;function I(e){const o=P?.media_details?.sizes?.[e]?.source_url;if(!o)return null;t({url:o,sizeSlug:e})}const D=T?.filter((({slug:e})=>P?.media_details?.sizes?.[e]?.source_url))?.map((({name:e,slug:t})=>({value:t,label:e}))),M=f||y&&(!p||m),z=e=>{const[t,o]=v.current?[v.current.style,"objectPosition"]:[r.current.style,"backgroundPosition"];t[o]=Vi(e)},A=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),L=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:!!k&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),I(gs)},dropdownMenuProps:L,children:[y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed background"),checked:!!p,onChange:()=>{t({hasParallax:!p,...p?{}:{focalPoint:void 0}})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>m,onDeselect:()=>t({isRepeated:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Repeated background"),checked:m,onChange:()=>{t({isRepeated:!m})}})})]}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k,value:d,onDragStart:z,onDrag:z,onChange:e=>t({focalPoint:e})})}),f&&(0,it.jsx)(_s,{poster:b,onChange:e=>t({poster:e?.url})}),!l&&k&&!f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>t({alt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:_,onChange:e=>t({alt:e}),help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),!!D?.length&&(0,it.jsx)(bs,{value:C,onChange:I,options:D,defaultValue:gs})]})}),A.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:w.color,gradientValue:j,label:(0,pt.__)("Overlay"),onColorChange:n,onGradientChange:S,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:o,...A}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==u&&u!==(k?50:100),label:(0,pt.__)("Overlay opacity"),onDeselect:()=>i(k?50:100),resetAllFilter:()=>({dimRatio:k?50:100}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:u,onChange:e=>i(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!g,label:(0,pt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(ys,{value:e?.style?.dimensions?.aspectRatio?"":g,unit:h,onChange:o=>t({minHeight:o,style:xs({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(fs,{tagName:x,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("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"}]})})]})}const{cleanEmptyObject:ks}=jo(ct.privateApis);function ws({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:n,toggleUseFeaturedImage:r,onClearMedia:a,blockEditingMode:i}){const{contentPosition:s,id:l,useFeaturedImage:c,minHeight:u,minHeightUnit:d}=e,{hasInnerBlocks:p,url:m}=n,[g,h]=(0,gt.useState)(u),[_,x]=(0,gt.useState)(d),b="vh"===d&&100===u&&!e?.style?.dimensions?.aspectRatio,f="contentOnly"===i;return(0,it.jsxs)(it.Fragment,{children:[!f&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.__experimentalBlockAlignmentMatrixControl,{label:(0,pt.__)("Change content position"),value:s,onChange:e=>t({contentPosition:e}),isDisabled:!p}),(0,it.jsx)(ct.__experimentalBlockFullHeightAligmentControl,{isActive:b,onToggle:()=>b?t("vh"===_&&100===g?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:g,minHeightUnit:_}):(h(u),x(d),t({minHeight:100,minHeightUnit:"vh",style:ks({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!p})]}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ri,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:r,useFeaturedImage:c,name:m?(0,pt.__)("Replace"):(0,pt.__)("Add media"),onReset:a})})]})}function Cs({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:n,style:r,toggleUseFeaturedImage:a}){return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Mi}),labels:{title:(0,pt.__)("Cover")},onSelect:o,accept:"image/*,video/*",allowedTypes:Ri,disableMediaButtons:e,onToggleFeaturedImage:a,onError:n,style:r,children:t})}const js={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Ss}=jo(ct.privateApis);function Bs({className:e,height:t,minHeight:o,onResize:n,onResizeStart:r,onResizeStop:a,showHandle:i,size:s,width:l,...c}){const[u,d]=(0,gt.useState)(!1),p={className:Dt(e,{"is-resizing":u}),enable:js,onResizeStart:(e,t,o)=>{r(o.clientHeight),n(o.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),u||d(!0)},onResizeStop:(e,t,o)=>{a(o.clientHeight),d(!1)},showHandle:i,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,it.jsx)(Ss,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:p,...c})}var Ts={grad:.9,turn:360,rad:360/(2*Math.PI)},Ns=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ps=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Is=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},Ds=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ms=function(e){return{r:Is(e.r,0,255),g:Is(e.g,0,255),b:Is(e.b,0,255),a:Is(e.a)}},zs=function(e){return{r:Ps(e.r),g:Ps(e.g),b:Ps(e.b),a:Ps(e.a,3)}},As=/^#([0-9a-f]{3,8})$/i,Ls=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hs=function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=Math.max(t,o,n),i=a-Math.min(t,o,n),s=i?a===t?(o-n)/i:a===o?2+(n-t)/i:4+(t-o)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:r}},Rs=function(e){var t=e.h,o=e.s,n=e.v,r=e.a;t=t/360*6,o/=100,n/=100;var a=Math.floor(t),i=n*(1-o),s=n*(1-(t-a)*o),l=n*(1-(1-t+a)*o),c=a%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c],a:r}},Vs=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),l:Is(e.l,0,100),a:Is(e.a)}},Fs=function(e){return{h:Ps(e.h),s:Ps(e.s),l:Ps(e.l),a:Ps(e.a,3)}},Es=function(e){return Rs((o=(t=e).s,{h:t.h,s:(o*=((n=t.l)<50?n:100-n)/100)>0?2*o/(n+o)*100:0,v:n+o,a:t.a}));var t,o,n},Os=function(e){return{h:(t=Hs(e)).h,s:(r=(200-(o=t.s))*(n=t.v)/100)>0&&r<200?o*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,o,n,r},Gs=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$s=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Us=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qs=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ws={string:[[function(e){var t=As.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?Ps(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?Ps(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Us.exec(e)||qs.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ms({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=Gs.exec(e)||$s.exec(e);if(!t)return null;var o,n,r=Vs({h:(o=t[1],n=t[2],void 0===n&&(n="deg"),Number(o)*(Ts[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Es(r)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=void 0===r?1:r;return Ns(t)&&Ns(o)&&Ns(n)?Ms({r:Number(t),g:Number(o),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,o=e.s,n=e.l,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=Vs({h:Number(t),s:Number(o),l:Number(n),a:Number(a)});return Es(i)},"hsl"],[function(e){var t=e.h,o=e.s,n=e.v,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),v:Is(e.v,0,100),a:Is(e.a)}}({h:Number(t),s:Number(o),v:Number(n),a:Number(a)});return Rs(i)},"hsv"]]},Zs=function(e,t){for(var o=0;o<t.length;o++){var n=t[o][0](e);if(n)return[n,t[o][1]]}return[null,void 0]},Js=function(e){return"string"==typeof e?Zs(e.trim(),Ws.string):"object"==typeof e&&null!==e?Zs(e,Ws.object):[null,void 0]},Qs=function(e,t){var o=Os(e);return{h:o.h,s:Is(o.s+100*t,0,100),l:o.l,a:o.a}},Ks=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ys=function(e,t){var o=Os(e);return{h:o.h,s:o.s,l:Is(o.l+100*t,0,100),a:o.a}},Xs=function(){function e(e){this.parsed=Js(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 Ps(Ks(this.rgba),2)},e.prototype.isDark=function(){return Ks(this.rgba)<.5},e.prototype.isLight=function(){return Ks(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,a=(r=e.a)<1?Ls(Ps(255*r)):"","#"+Ls(t)+Ls(o)+Ls(n)+a;var e,t,o,n,r,a},e.prototype.toRgb=function(){return zs(this.rgba)},e.prototype.toRgbString=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,(r=e.a)<1?"rgba("+t+", "+o+", "+n+", "+r+")":"rgb("+t+", "+o+", "+n+")";var e,t,o,n,r},e.prototype.toHsl=function(){return Fs(Os(this.rgba))},e.prototype.toHslString=function(){return t=(e=Fs(Os(this.rgba))).h,o=e.s,n=e.l,(r=e.a)<1?"hsla("+t+", "+o+"%, "+n+"%, "+r+")":"hsl("+t+", "+o+"%, "+n+"%)";var e,t,o,n,r},e.prototype.toHsv=function(){return e=Hs(this.rgba),{h:Ps(e.h),s:Ps(e.s),v:Ps(e.v),a:Ps(e.a,3)};var e},e.prototype.invert=function(){return el({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),el(Qs(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),el(Qs(this.rgba,-e))},e.prototype.grayscale=function(){return el(Qs(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),el(Ys(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),el(Ys(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?el({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ps(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Os(this.rgba);return"number"==typeof e?el({h:e,s:t.s,l:t.l,a:t.a}):Ps(t.h)},e.prototype.isEqual=function(e){return this.toHex()===el(e).toHex()},e}(),el=function(e){return e instanceof Xs?e:new Xs(e)},tl=[];
/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
function ol(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nl(e){return"#"+e.map(ol).join("")}function rl(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function al(e,t,o){for(var n=0;n<o.length;n++)if(il(e,t,o[n]))return!0;return!1}function il(e,t,o){switch(o.length){case 3:if(function(e,t,o){if(255!==e[t+3])return!0;if(e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2])return!0;return!1}(e,t,o))return!0;break;case 4:if(function(e,t,o){if(e[t+3]&&o[3])return e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3];return e[t+3]===o[3]}(e,t,o))return!0;break;case 5:if(function(e,t,o){var n=o[0],r=o[1],a=o[2],i=o[3],s=o[4],l=e[t+3],c=sl(l,i,s);if(!i)return c;if(!l&&c)return!0;if(sl(e[t],n,s)&&sl(e[t+1],r,s)&&sl(e[t+2],a,s)&&c)return!0;return!1}(e,t,o))return!0;break;default:return!1}}function sl(e,t,o){return e>=t-o&&e<=t+o}function ll(e,t,o){for(var n={},r=o.ignoredColor,a=o.step,i=[0,0,0,0,0],s=0;s<t;s+=a){var l=e[s],c=e[s+1],u=e[s+2],d=e[s+3];if(!r||!al(e,s,r)){var p=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(u/24);n[p]?n[p]=[n[p][0]+l*d,n[p][1]+c*d,n[p][2]+u*d,n[p][3]+d,n[p][4]+1]:n[p]=[l*d,c*d,u*d,d,1],i[4]<n[p][4]&&(i=n[p])}}var m=i[0],g=i[1],h=i[2],_=i[3],x=i[4];return _?[Math.round(m/_),Math.round(g/_),Math.round(h/_),Math.round(_/x)]:o.defaultColor}function cl(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u+3],p=e[u]*d,m=e[u+1]*d,g=e[u+2]*d;l&&al(e,u,l)||(n+=p,r+=m,a+=g,i+=d,s++)}return i?[Math.round(n/i),Math.round(r/i),Math.round(a/i),Math.round(i/s)]:o.defaultColor}function ul(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u],p=e[u+1],m=e[u+2],g=e[u+3];l&&al(e,u,l)||(n+=d*d*g,r+=p*p*g,a+=m*m*g,i+=g,s++)}return i?[Math.round(Math.sqrt(n/i)),Math.round(Math.sqrt(r/i)),Math.round(Math.sqrt(a/i)),Math.round(i/s)]:o.defaultColor}function dl(e){return pl(e,"defaultColor",[0,0,0,0])}function pl(e,t,o){return void 0===e[t]?o:e[t]}function ml(e){if(hl(e)){var t=e.naturalWidth,o=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=o=100),{width:t,height:o}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function gl(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return _l&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function hl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var _l="undefined"!=typeof OffscreenCanvas;var xl="undefined"==typeof window;function bl(e){return Error("FastAverageColor: "+e)}function fl(e,t){t||console.error(e)}var yl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(bl("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(bl("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=t&&t.crossOrigin||"",o.src=e,this.bindImageEvents(o,t)}if(hl(e)&&!e.complete)return this.bindImageEvents(e,t);var n=this.getColor(e,t);return n.error?Promise.reject(n.error):Promise.resolve(n)},e.prototype.getColor=function(e,t){var o=dl(t=t||{});if(!e)return fl(a=bl("call .getColor(null) without resource"),t.silent),this.prepareResult(o,a);var n=function(e,t){var o,n=pl(t,"left",0),r=pl(t,"top",0),a=pl(t,"width",e.width),i=pl(t,"height",e.height),s=a,l=i;return"precision"===t.mode||(a>i?(o=a/i,s=100,l=Math.round(s/o)):(o=i/a,l=100,s=Math.round(l/o)),(s>a||l>i||s<10||l<10)&&(s=a,l=i)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:i,destWidth:s,destHeight:l}}(ml(e),t);if(!(n.srcWidth&&n.srcHeight&&n.destWidth&&n.destHeight))return fl(a=bl('incorrect sizes for resource "'.concat(gl(e),'"')),t.silent),this.prepareResult(o,a);if(!this.canvas&&(this.canvas=xl?_l?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return fl(a=bl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(o,a);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return fl(a=bl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(o);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=n.destWidth,this.canvas.height=n.destHeight;try{this.ctx.clearRect(0,0,n.destWidth,n.destHeight),this.ctx.drawImage(e,n.srcLeft,n.srcTop,n.srcWidth,n.srcHeight,0,0,n.destWidth,n.destHeight);var r=this.ctx.getImageData(0,0,n.destWidth,n.destHeight).data;return this.prepareResult(this.getColorFromArray4(r,t))}catch(n){var a;return fl(a=bl("security error (CORS) for resource ".concat(gl(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(n),this.prepareResult(o,a)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var o=e.length,n=dl(t);if(o<4)return n;var r,a=o-o%4,i=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":r=cl;break;case"sqrt":r=ul;break;case"dominant":r=ll;break;default:throw bl("".concat(t.algorithm," is unknown algorithm"))}return r(e,a,{defaultColor:n,ignoredColor:rl(t.ignoredColor),step:i})},e.prototype.prepareResult=function(e,t){var o,n=e.slice(0,3),r=[e[0],e[1],e[2],e[3]/255],a=(299*(o=e)[0]+587*o[1]+114*o[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:nl(n),hexa:nl(e),isDark:a,isLight:!a,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 o=this;return new Promise((function(n,r){var a=function(){l();var a=o.getColor(e,t);a.error?r(a.error):n(a)},i=function(){l(),r(bl('Error loading image "'.concat(e.src,'".')))},s=function(){l(),r(bl('Image "'.concat(e.src,'" loading aborted')))},l=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",s)}))},e}();const vl=window.wp.hooks;!function(e){e.forEach((function(e){tl.indexOf(e)<0&&(e(Xs,Ws),tl.push(e))}))}([function(e,t){var o={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"},n={};for(var r in o)n[o[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!a.length)for(var d in o)a[d]=new e(o[d]).toRgb();for(var p in o){var m=(r=l,i=a[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),r="transparent"===n?"#0000":o[n];return r?new e(r).toRgb():null},"name"])}]);const kl="#FFF";function wl(){return wl.fastAverageColor||(wl.fastAverageColor=new yl),wl.fastAverageColor}const Cl=fo((async e=>{if(!e)return kl;const{r:t,g:o,b:n,a:r}=el(kl).toRgb();try{const a=(0,vl.applyFilters)("media.crossOrigin",void 0,e);return(await wl().getColorAsync(e,{defaultColor:[t,o,n,255*r],silent:!0,crossOrigin:a})).hex}catch(e){return kl}}));function jl(e,t,o){if(t===o||100===e)return el(t).isDark();const n=el(t).alpha(e/100).toRgb(),r=el(o).toRgb(),a=(s=r,{r:(i=n).r*i.a+s.r*s.a*(1-i.a),g:i.g*i.a+s.g*s.a*(1-i.a),b:i.b*i.a+s.b*s.a*(1-i.a),a:i.a+s.a*(1-i.a)});var i,s;return el(a).isDark()}var Sl=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:o,overlayColor:n,setAttributes:r,setOverlayColor:a,toggleSelection:i,context:{postId:s,postType:l}}){const{contentPosition:c,id:u,url:d,backgroundType:p,useFeaturedImage:m,dimRatio:g,focalPoint:h,hasParallax:_,isDark:x,isRepeated:b,minHeight:f,minHeightUnit:y,alt:v,allowedBlocks:k,templateLock:w,tagName:C="div",isUserOverlayColor:j,sizeSlug:S,poster:B}=e,[T]=(0,_t.useEntityProp)("postType",l,"featured_media",s),{getSettings:N}=(0,lt.useSelect)(ct.store),{__unstableMarkNextChangeAsNotPersistent:P}=(0,lt.useDispatch)(ct.store),{media:I}=(0,lt.useSelect)((e=>({media:T&&m?e(_t.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0})),[T,m]),D=I?.media_details?.sizes?.[S]?.source_url??I?.source_url;(0,gt.useEffect)((()=>{(async()=>{if(!m)return;const e=await Cl(D);let t=n.color;j||(t=e,P(),a(t));const o=jl(g,t,e);P(),r({isDark:o,isUserOverlayColor:j||!1})})()}),[D]);const M=m?D:d?.replaceAll("&","&"),z=m?Ai:p,{createErrorNotice:A}=(0,lt.useDispatch)(bo.store),{gradientClass:L,gradientValue:H}=(0,ct.__experimentalUseGradient)(),R=async e=>{const t=function(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};let t;if((0,ht.isBlobURL)(e.url)&&(e.type=(0,ht.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Ai?Ai:Li;else{if(!e.type||e.type!==Ai&&e.type!==Li)return;t=e.type}return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Li?{hasParallax:void 0}:{}}}(e),o=[e?.type,e?.media_type].includes(Ai),i=await Cl(o?e?.url:void 0);let s=n.color;j||(s=i,a(s),P());const l=void 0===d&&100===g?50:g,c=jl(l,s,i);if(z===Ai&&t?.id){const{imageDefaultSize:o}=N();S&&(e?.sizes?.[S]||e?.media_details?.sizes?.[S])?(t.sizeSlug=S,t.url=e?.sizes?.[S]?.url||e?.media_details?.sizes?.[S]?.source_url):e?.sizes?.[o]||e?.media_details?.sizes?.[o]?(t.sizeSlug=o,t.url=e?.sizes?.[o]?.url||e?.media_details?.sizes?.[o]?.source_url):t.sizeSlug=gs}r({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:l,isDark:c,isUserOverlayColor:j||!1})},V=()=>{let e=n.color;j||(e="#000",a(void 0),P());const t=jl(g,e,kl);r({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})},F=async e=>{const t=await Cl(M),o=jl(g,e,t);a(e),P(),r({isUserOverlayColor:!0,isDark:o})},E=e=>{A(e,{type:"snackbar"})},O=((e,t)=>!e&&(0,ht.isBlobURL)(t))(u,M),G=Ai===z,$=Li===z,U=(0,ct.useBlockEditingMode)(),q="default"===U,[W,{height:Z,width:J}]=(0,xt.useResizeObserver)(),Q=(0,gt.useMemo)((()=>({height:"px"===y&&f?f:"auto",width:"auto"})),[f,y]),K=f&&y?`${f}${y}`:f,Y=!(_||b),X={minHeight:K||void 0},ee=M?`url(${M})`:void 0,te=Vi(h),oe={backgroundColor:n.color},ne={objectPosition:h&&Y?Vi(h):void 0},re=!!(M||n.color||H),ae=(0,lt.useSelect)((e=>e(ct.store).getBlock(t).innerBlocks.length>0),[t]),ie=(0,gt.useRef)(),se=(0,ct.useBlockProps)({ref:ie}),[le]=(0,ct.useSettings)("typography.fontSizes"),ce=function(e){return[["core/paragraph",{align:"center",placeholder:(0,pt.__)("Write title…"),...e}]]}({fontSize:le?.length>0?"large":void 0}),ue=(0,ct.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ae?void 0:ce,templateInsertUpdatesSelection:!0,allowedBlocks:k,templateLock:w,dropZoneElement:ie.current}),de=(0,gt.useRef)(),pe={isVideoBackground:$,isImageBackground:G,mediaElement:de,hasInnerBlocks:ae,url:M,isImgElement:Y,overlayColor:n},me=async()=>{const e=!m,t=e?await Cl(D):kl,o=j?n.color:t;j||(a(e?o:void 0),P());const i=100===g?50:g,s=jl(i,o,t);r({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:i,backgroundType:m?Ai:void 0,isDark:s})},ge=(0,it.jsx)(ws,{attributes:e,setAttributes:r,onSelectMedia:R,currentSettings:pe,toggleUseFeaturedImage:me,onClearMedia:V,blockEditingMode:U}),he=(0,it.jsx)(vs,{attributes:e,setAttributes:r,clientId:t,setOverlayColor:F,coverRef:ie,currentSettings:pe,toggleUseFeaturedImage:me,updateDimRatio:async e=>{const t=await Cl(M),o=jl(e,n.color,t);r({dimRatio:e,isDark:o})},onClearMedia:V,featuredImage:I}),_e={className:"block-library-cover__resize-container",clientId:t,height:Z,minHeight:K,onResizeStart:()=>{r({minHeightUnit:"px"}),i(!1)},onResize:e=>{r({minHeight:e})},onResizeStop:e=>{i(!0),r({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:Q,width:J};if(!m&&!ae&&!re)return(0,it.jsxs)(it.Fragment,{children:[ge,he,q&&o&&(0,it.jsx)(Bs,{..._e}),(0,it.jsxs)(C,{...se,className:Dt("is-placeholder",se.className),style:{...se.style,minHeight:K||void 0},children:[W,(0,it.jsx)(Cs,{onSelectMedia:R,onError:E,toggleUseFeaturedImage:me,children:(0,it.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,it.jsx)(ct.ColorPalette,{disableCustomColors:!0,value:n.color,onChange:F,clearable:!1,asButtons:!0,"aria-label":(0,pt.__)("Overlay color")})})})]})]});const xe=Dt({"is-dark-theme":x,"is-light":!x,"is-transient":O,"has-parallax":_,"is-repeated":b,"has-custom-content-position":!Ei(c)},Oi(c)),be=M||!m||m&&!M;return(0,it.jsxs)(it.Fragment,{children:[ge,he,(0,it.jsxs)(C,{...se,className:Dt(xe,se.className),style:{...X,...se.style},"data-url":M,children:[W,!M&&m&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),M&&G&&(Y?(0,it.jsx)("img",{ref:de,className:"wp-block-cover__image-background",alt:v,src:M,style:ne}):(0,it.jsx)("div",{ref:de,role:v?"img":void 0,"aria-label":v||void 0,className:Dt(xe,"wp-block-cover__image-background"),style:{backgroundImage:ee,backgroundPosition:te}})),M&&$&&(0,it.jsx)("video",{ref:de,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:M,poster:B,style:ne}),be&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",Fi(g),{[n.class]:n.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":M&&H&&0!==g,"has-background-gradient":H,[L]:L}),style:{backgroundImage:H,...oe}}),O&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Cs,{disableMediaButtons:!0,onSelectMedia:R,onError:E,toggleUseFeaturedImage:me}),(0,it.jsx)("div",{...ue})]}),q&&o&&(0,it.jsx)(Bs,{..._e})]})}));const Bl=JSON.parse('{"$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","role":"content"},"useFeaturedImage":{"type":"boolean","default":false},"id":{"type":"number"},"alt":{"type":"string","default":""},"hasParallax":{"type":"boolean","default":false},"isRepeated":{"type":"boolean","default":false},"dimRatio":{"type":"number","default":100},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"isUserOverlayColor":{"type":"boolean"},"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":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"tagName":{"type":"string","default":"div"},"sizeSlug":{"type":"string"},"poster":{"type":"string","source":"attribute","selector":"video","attribute":"poster"}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":true,"html":false,"shadow":true,"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"heading":true,"text":true,"background":false,"__experimentalSkipSerialization":["gradients"],"enableContrastChecker":false},"dimensions":{"aspectRatio":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowJustification":false},"interactivity":{"clientNavigation":true},"filter":{"duotone":true},"allowedBlocks":true},"selectors":{"filter":{"duotone":".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},"editorStyle":"wp-block-cover-editor","style":"wp-block-cover"}');const{cleanEmptyObject:Tl}=jo(ct.privateApis),Nl={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:n,backgroundType:Li,anchor:r},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:o,anchor:n,backgroundColor:r,gradient:a,style:i}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,st.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const s={align:o,anchor:n,dimRatio:r||a||i?.color?.background||i?.color?.gradient?void 0:50,overlayColor:r,customOverlayColor:i?.color?.background,gradient:a,customGradient:i?.color?.gradient},l={...e,backgroundColor:void 0,gradient:void 0,style:Tl({...e?.style,color:i?.color?{...i?.color,background:void 0,gradient:void 0}:void 0})};return(0,st.createBlock)("core/cover",s,[(0,st.createBlock)("core/group",l,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Ai:!(o||n||r||a),transform:({title:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/image",{caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Li:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:Tl({...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=Tl(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,st.createBlock)("core/group",e,t[0]?.innerBlocks):(0,st.createBlock)("core/group",{...o,...e,style:Tl({...e?.style,color:o?.style?.color||e?.style?.color?{...o?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,st.createBlock)("core/group",{...e,...o},t)}}]};var Pl=Nl;var Il=[{name:"cover",title:(0,pt.__)("Cover"),description:(0,pt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Mi}];const{name:Dl}=Bl,Ml={icon:Mi,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,pt.__)("Snow Patrol")}</strong>`,align:"center"}}]},transforms:Pl,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f,poster:y}=e,v=(0,ct.getColorClassName)("background-color",p),k=(0,ct.__experimentalGetGradientClass)(o),w=Ai===t,C=Li===t,j=!(c||d),S={minHeight:(_&&x?`${_}${x}`:_)||void 0},B={backgroundColor:v?void 0:a,background:r||void 0},T=s&&j?Vi(s):void 0,N=m?`url(${m})`:void 0,P=Vi(s),I=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),D=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),M=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:I,style:S}),children:[!l&&w&&m&&(j?(0,it.jsx)("img",{className:D,alt:g,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:D,style:{backgroundPosition:P,backgroundImage:N}})),C&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,poster:y,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",v,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&M&&0!==i,"has-background-gradient":M,[k]:k}),style:B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},edit:Sl,deprecated:ms,variations:Il},zl=()=>jt({name:Dl,metadata:Bl,settings:Ml});var Al=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});const Ll=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/details","title":"Details","category":"text","description":"Hide and show additional content.","keywords":["summary","toggle","disclosure"],"textdomain":"default","attributes":{"showContent":{"type":"boolean","default":false},"summary":{"type":"rich-text","source":"rich-text","selector":"summary","role":"content"},"name":{"type":"string","source":"attribute","attribute":"name","selector":".wp-block-details"},"placeholder":{"type":"string"}},"supports":{"__experimentalOnEnter":true,"align":["wide","full"],"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"blockGap":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowEditing":false},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-details-editor","style":"wp-block-details"}'),{withIgnoreIMEEvents:Hl}=jo(mt.privateApis),Rl=[["core/paragraph",{placeholder:(0,pt.__)("Type / to add a hidden block")}]];var Vl=function({attributes:e,setAttributes:t,clientId:o}){const{name:n,showContent:r,summary:a,allowedBlocks:i,placeholder:s}=e,l=(0,ct.useBlockProps)(),c=(0,ct.useInnerBlocksProps)(l,{template:Rl,__experimentalCaptureToolbars:!0,allowedBlocks:i}),[u,d]=(0,gt.useState)(r),p=vt(),m=(0,lt.useSelect)((e=>e(ct.store).hasSelectedInnerBlock(o,!0)),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:p,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open by default"),hasValue:()=>r,onDeselect:()=>{t({showContent:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open by default"),checked:r,onChange:()=>t({showContent:!r})})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Name attribute"),value:n||"",onChange:e=>t({name:e}),help:(0,pt.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,it.jsxs)("details",{...c,open:u||m,onToggle:e=>d(e.target.open),name:n||"",children:[(0,it.jsx)("summary",{onKeyDown:Hl((e=>{"Enter"!==e.key||e.shiftKey||(d((e=>!e)),e.preventDefault())})),onKeyUp:e=>{" "===e.key&&e.preventDefault()},children:(0,it.jsx)(ct.RichText,{identifier:"summary","aria-label":(0,pt.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,pt.__)("Write summary…"),withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e})})}),c.children]})]})};var Fl={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>!(1===e.length&&"core/details"===e[0].name),__experimentalConvert:e=>(0,st.createBlock)("core/details",{},e.map((e=>(0,st.cloneBlock)(e))))}]};const{name:El}=Ll,Ol={icon:Al,example:{attributes:{summary:(0,pt.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("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}){const{summary:o}=e,n=e?.metadata?.name,r=o?.trim().length>0;return"list-view"===t&&(n||r)?n||o:"accessibility"===t?r?(0,pt.sprintf)((0,pt.__)("Details. %s"),o):(0,pt.__)("Details. Empty."):void 0},save:function({attributes:e}){const{name:t,showContent:o}=e,n=e.summary?e.summary:"Details",r=ct.useBlockProps.save();return(0,it.jsxs)("details",{...r,name:t||void 0,open:o,children:[(0,it.jsx)("summary",{children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},edit:Vl,transforms:Fl},Gl=()=>jt({name:El,metadata:Ll,settings:Ol});var $l=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});function Ul(e){return e?(0,pt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,pt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ql=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,toggleResponsive:r,switchBackToURLInput:a})=>{const i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:t&&(0,it.jsx)(mt.ToolbarButton,{className:"components-toolbar__control",label:(0,pt.__)("Edit URL"),icon:$l,onClick:a})})}),o&&e&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media settings"),resetAll:()=>{r(!0)},dropdownMenuProps:i,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{r(!n)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resize for smaller devices"),checked:n,help:Ul,onChange:r})})})})]})};const Wl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Zl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Jl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Ql=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Kl={foreground:"#1da1f2",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},Yl={foreground:"#ff0000",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},Xl={foreground:"#3b5998",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},ec=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})}),tc={foreground:"#0073AA",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},oc={foreground:"#1db954",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},nc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})}),rc={foreground:"#1ab7ea",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},ac=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})}),ic={foreground:"#35465c",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},sc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.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,it.jsx)(mt.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,it.jsx)(mt.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"})]}),lc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,it.jsx)(mt.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,it.jsx)(mt.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,it.jsx)(mt.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,it.jsx)(mt.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),cc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),uc=(0,it.jsx)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(mt.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"})}),dc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 44 44",children:(0,it.jsx)(mt.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"})}),pc={foreground:"#f43e37",src:(0,it.jsxs)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(mt.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,it.jsx)(mt.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"})]})},mc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var gc=()=>(0,it.jsx)("div",{className:"wp-block-embed is-loading",children:(0,it.jsx)(mt.Spinner,{})});var hc=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:i,tryAgain:s})=>(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,pt.__)("Paste a link to the content you want to display on your site."),children:[(0,it.jsxs)("form",{onSubmit:n,children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:o||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL to embed here…"),onChange:r}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt._x)("Embed","button label")})]}),(0,it.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,pt.__)("Learn more about embeds")})}),a&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,it.jsx)("div",{className:"components-placeholder__instructions",children:(0,pt.__)("Sorry, this content could not be embedded.")}),(0,it.jsxs)(mt.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,pt._x)("Try again","button label")})," ",(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:i,children:(0,pt._x)("Convert to link","button label")})]})]})]});const _c={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function xc({html:e}){const t=(0,gt.useRef)(),o=(0,gt.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),o={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(o[_c[e]||e]=t)})),o):o}),[e]);return(0,gt.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:n}=e;function r({data:{secret:e,message:n,value:r}={}}){"height"===n&&e===o["data-secret"]&&(t.current.height=r)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}}),[]),(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,it.jsx)("iframe",{ref:(0,xt.useMergeRefs)([t,(0,xt.useFocusableIframe)()]),title:o.title,...o})})}function bc({preview:e,previewable:t,url:o,type:n,isSelected:r,className:a,icon:i,label:s}){const[l,c]=(0,gt.useState)(!1);!r&&l&&c(!1);const u=()=>{c(!0)},{scripts:d}=e,p="photo"===n?(e=>{const t=e.url||e.thumbnail_url,o=(0,it.jsx)("p",{children:(0,it.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,gt.renderToString)(o)})(e):e.html,m=(0,no.getAuthority)(o),g=(0,pt.sprintf)((0,pt.__)("Embedded content from %s"),m),h=Dt(n,a,"wp-block-embed__wrapper"),_="wp-embed"===n?(0,it.jsx)(xc,{html:p}):(0,it.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,it.jsx)(mt.SandBox,{html:p,scripts:d,title:g,type:h,onFocus:u}),!l&&(0,it.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:u})]});return(0,it.jsx)(it.Fragment,{children:t?_:(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:i,showColors:!0}),label:s,children:[(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,it.jsx)("a",{href:o,children:o})}),(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,pt.sprintf)((0,pt.__)("Embedded content from %s can't be previewed in the editor."),m)})]})})}var fc=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:i,onReplace:s,setAttributes:l,insertBlocksAfter:c,onFocus:u}=e,d={title:(0,pt._x)("Embed","block title"),icon:Wl},{icon:p,title:m}=(g=t,(0,st.getBlockVariations)(So)?.find((({name:e})=>e===g))||d);var g;const[h,_]=(0,gt.useState)(r),[x,b]=(0,gt.useState)(!1),{invalidateResolution:f}=(0,lt.useDispatch)(_t.store),{preview:y,fetching:v,themeSupportsResponsive:k,cannotEmbed:w,hasResolved:C}=(0,lt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:o,isRequestingEmbedPreview:n,getThemeSupports:a,hasFinishedResolution:i}=e(_t.store);if(!r)return{fetching:!1,cannotEmbed:!1};const s=t(r),l=o(r),c=!!s&&!(!1===s?.html&&void 0===s?.type)&&!(404===s?.data?.status);return{preview:c?s:void 0,fetching:n(r),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!c||l,hasResolved:i("getEmbedPreview",[r])}}),[r]),j=()=>((e,t,o,n)=>{const{allowResponsive:r,className:a}=e;return{...e,...Do(t,o,a,n,r)}})(a,y,m,n);(0,gt.useEffect)((()=>{if(y?.html||!w||!C)return;const e=r.replace(/\/$/,"");_(e),b(!1),l({url:e})}),[y?.html,r,w,C,l]),(0,gt.useEffect)((()=>{if(w&&!v&&h&&"x.com"===(0,no.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",l({url:e.toString()})}}),[h,w,v,l]),(0,gt.useEffect)((()=>{if(y&&!x){const t=j();if(Object.keys(t).some((e=>t[e]!==a[e]))&&l(t),s){const o=No(e,t);o&&s(o)}}}),[y,x]);const S=(0,ct.useBlockProps)();if(v)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(gc,{})});const B=(0,pt.sprintf)((0,pt.__)("%s URL"),m);if(!y||w||x)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(hc,{icon:p,label:B,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Po(a.className);b(!1),l({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e),fallback:()=>function(e,t){const o=(0,it.jsx)("a",{href:e,children:e});t((0,st.createBlock)("core/paragraph",{content:(0,gt.renderToString)(o)}))}(h,s),tryAgain:()=>{f("getEmbedPreview",[h])}})});const{caption:T,type:N,allowResponsive:P,className:I}=j(),D=Dt(I,e.className);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ql,{showEditButton:y&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:P,toggleResponsive:function(e){const{className:t}=a,{html:o}=y;l({allowResponsive:e,className:Io(o,t,n&&e)})},switchBackToURLInput:()=>b(!0)}),(0,it.jsxs)("figure",{...S,className:Dt(S.className,D,{[`is-type-${N}`]:N,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,it.jsx)(bc,{preview:y,previewable:o,className:D,url:h,type:N,caption:T,onCaptionChange:e=>l({caption:e}),isSelected:i,icon:p,label:B,insertBlocksAfter:c,attributes:a,setAttributes:l}),(0,it.jsx)(zo,{attributes:a,setAttributes:l,isSelected:i,insertBlocksAfter:c,label:(0,pt.__)("Embed caption text"),showToolbarButton:i})]})]})};const{name:yc}=yo;var vc={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,st.createBlock)(yc,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:o})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,st.createBlock)("core/paragraph",{content:n,className:Po(o)})}}]};function kc(e){return(0,pt.sprintf)((0,pt.__)("%s Embed"),e)}const wc=[{name:"twitter",title:kc("Twitter"),icon:Kl,keywords:["tweet",(0,pt.__)("social")],description:(0,pt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:kc("YouTube"),icon:Yl,keywords:[(0,pt.__)("music"),(0,pt.__)("video")],description:(0,pt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:kc("Facebook"),icon:Xl,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:kc("Instagram"),icon:ec,keywords:[(0,pt.__)("image"),(0,pt.__)("social")],description:(0,pt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:kc("WordPress"),icon:tc,keywords:[(0,pt.__)("post"),(0,pt.__)("blog")],description:(0,pt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:kc("SoundCloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:kc("Spotify"),icon:oc,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:kc("Flickr"),icon:nc,keywords:[(0,pt.__)("image")],description:(0,pt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:kc("Vimeo"),icon:rc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:kc("Animoto"),icon:lc,description:(0,pt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:kc("Cloudup"),icon:Wl,description:(0,pt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:kc("CollegeHumor"),icon:Ql,description:(0,pt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:kc("Crowdsignal"),icon:Wl,keywords:["polldaddy",(0,pt.__)("survey")],description:(0,pt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:kc("Dailymotion"),icon:cc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:kc("Imgur"),icon:Jl,description:(0,pt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:kc("Issuu"),icon:Wl,description:(0,pt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:kc("Kickstarter"),icon:Wl,description:(0,pt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:kc("Mixcloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:kc("Pocket Casts"),icon:pc,keywords:[(0,pt.__)("podcast"),(0,pt.__)("audio")],description:(0,pt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:kc("Reddit"),icon:ac,description:(0,pt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:kc("ReverbNation"),icon:Zl,description:(0,pt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:kc("Scribd"),icon:Wl,description:(0,pt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:kc("SmugMug"),icon:Jl,description:(0,pt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:kc("Speaker Deck"),icon:Wl,description:(0,pt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:kc("TikTok"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:kc("TED"),icon:Ql,description:(0,pt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:kc("Tumblr"),icon:ic,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:kc("VideoPress"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:kc("WordPress.tv"),icon:Ql,description:(0,pt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:kc("Amazon Kindle"),icon:sc,keywords:[(0,pt.__)("ebook")],description:(0,pt.__)("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:kc("Pinterest"),icon:uc,keywords:[(0,pt.__)("social"),(0,pt.__)("bookmark")],description:(0,pt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:kc("Wolfram"),icon:dc,description:(0,pt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:kc("Bluesky"),icon:mc,description:(0,pt.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];wc.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Cc=wc;const{attributes:jc}=yo,Sc={attributes:jc,save({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var Bc=[Sc,{attributes:jc,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=Dt("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n});return(0,it.jsxs)("figure",{className:r,children:[`\n${e}\n`,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:t})]})}}];const{name:Tc}=yo,Nc={icon:Wl,edit:fc,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})},transforms:vc,variations:Cc,deprecated:Bc},Pc=()=>jt({name:Tc,metadata:yo,settings:Nc});var Ic=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});const Dc={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:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Mc={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:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},zc={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:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:i,displayPreview:s,previewHeight:l}=e,c=ct.RichText.isEmpty(o)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),o);return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[s&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${l}px`},"aria-label":c})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:o})}),a&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,it.jsx)(ct.RichText.Content,{value:i})})]})}};var Ac=[Dc,Mc,zc];function Lc({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:i,changeDisplayPreview:s,previewHeight:l,changePreviewHeight:c}){const{href:u,textLinkHref:d,attachmentPage:p}=e,m=vt();let g=[{value:u,label:(0,pt.__)("URL")}];return p&&(g=[{value:u,label:(0,pt.__)("Media file")},{value:p,label:(0,pt.__)("Attachment page")}]),(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(ct.InspectorControls,{children:[u.endsWith(".pdf")&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("PDF settings"),resetAll:()=>{s(!0),c(600)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>s(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show inline embed"),help:i?(0,pt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!i,onChange:s})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>600!==l,onDeselect:()=>c(600),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Height in pixels"),min:Rc,max:Math.max(Vc,l),value:l,onChange:c})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n(u),r(!1),a(!0)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to"),isShownByDefault:!0,hasValue:()=>d!==u,onDeselect:()=>n(u),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to"),value:d,options:g,onChange:n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>r(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:t,onChange:r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show download button"),checked:o,onChange:a})})]})]})})}const Hc=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Rc=200,Vc=2e3;function Fc({text:e,disabled:t}){const{createNotice:o}=(0,lt.useDispatch)(bo.store),n=(0,xt.useCopyToClipboard)(e,(()=>{o("info",(0,pt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,it.jsx)(mt.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t,children:(0,pt.__)("Copy URL")})}var Ec=function({attributes:e,isSelected:t,setAttributes:o,clientId:n}){const{id:r,fileName:a,href:i,textLinkHref:s,textLinkTarget:l,showDownloadButton:c,downloadButtonText:u,displayPreview:d,previewHeight:p}=e,[m,g]=(0,gt.useState)(e.blob),{media:h}=(0,lt.useSelect)((e=>({media:void 0===r?void 0:e(_t.store).getEntityRecord("postType","attachment",r)})),[r]),{createErrorNotice:_}=(0,lt.useDispatch)(bo.store),{toggleSelection:x,__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);function f(t){if(!t||!t.url)return o({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),void g();if((0,ht.isBlobURL)(t.url))return void g(t.url);const r="application/pdf"===(t.mime||t.mime_type)||(0,no.getFilename)(t.url).toLowerCase().endsWith(".pdf"),a={displayPreview:r?e.displayPreview??!0:void 0,previewHeight:r?e.previewHeight??600:void 0};o({href:t.url,fileName:t.title,textLinkHref:t.url,id:t.id,fileId:`wp-block-file--media-${n}`,blob:void 0,...a}),g()}function y(e){o({href:void 0}),_(e,{type:"snackbar"})}ft({url:m,onChange:f,onError:y}),(0,gt.useEffect)((()=>{ct.RichText.isEmpty(u)&&(b(),o({downloadButtonText:(0,pt._x)("Download","button label")}))}),[]);const v=h&&h.link,k=(0,ct.useBlockProps)({className:Dt(!!m&&(0,mt.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!m})}),w=!(!window.navigator.pdfViewerEnabled&&(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)&&!Hc("AcroPDF.PDF")&&!Hc("PDF.PdfCtrl")))&&d;return i||m?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Lc,{hrefs:{href:i||m,textLinkHref:s,attachmentPage:v},openInNewWindow:!!l,showDownloadButton:c,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Rc);o({previewHeight:t})}}),(0,it.jsxs)(ct.BlockControls,{group:"other",children:[(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:r,mediaURL:i,accept:"*",onSelect:f,onError:y,onReset:()=>f(void 0)}),(0,it.jsx)(Fc,{text:i,disabled:(0,ht.isBlobURL)(i)})]}),(0,it.jsxs)("div",{...k,children:[w&&(0,it.jsxs)(mt.ResizableBox,{size:{height:p,width:"100%"},minHeight:Rc,maxHeight:Vc,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>x(!1),onResizeStop:function(e,t,n,r){x(!0);const a=parseInt(p+r.height,10);o({previewHeight:a})},showHandle:t,children:[(0,it.jsx)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,pt.__)("Embed of the selected PDF file.")}),!t&&(0,it.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,it.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,it.jsx)(ct.RichText,{identifier:"fileName",tagName:"a",value:a,placeholder:(0,pt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:pn(e)}),href:s}),c&&(0,it.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,it.jsx)(ct.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,pt.__)("Download button text"),className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),value:u,withoutInteractiveFormatting:!0,placeholder:(0,pt.__)("Add text…"),onChange:e=>o({downloadButtonText:pn(e)})})})]})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Ic}),labels:{title:(0,pt.__)("File"),instructions:(0,pt.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:f,onError:y,accept:"*"})})};const Oc=JSON.parse('{"$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"},"blob":{"type":"string","role":"local"},"href":{"type":"string","role":"content"},"fileId":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"id"},"fileName":{"type":"rich-text","source":"rich-text","selector":"a:not([download])","role":"content"},"textLinkHref":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"href","role":"content"},"textLinkTarget":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"target"},"showDownloadButton":{"type":"boolean","default":true},"downloadButtonText":{"type":"rich-text","source":"rich-text","selector":"a[download]","role":"content"},"displayPreview":{"type":"boolean"},"previewHeight":{"type":"number","default":600}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":true},"editorStyle":"wp-block-file-editor","style":"wp-block-file"}');const Gc={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const o=(0,ht.createBlobURL)(e);e.type.startsWith("video/")?t.push((0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("image/")?t.push((0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("audio/")?t.push((0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(e)})):t.push((0,st.createBlock)("core/file",{blob:o,fileName:e.name}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,st.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,st.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,st.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,no.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{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,st.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{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,st.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{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,st.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var $c=Gc;const{name:Uc}=Oc,qc={icon:Ic,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,pt._x)("Armstrong_Small_Step","Name of the file")}},transforms:$c,deprecated:Ac,edit:Ec,save:function({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?"PDF embed":n.toString(),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Wc=()=>jt({name:Uc,metadata:Oc,settings:qc}),Zc=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,pt.__)("Your form has been submitted successfully")+"</mark>"}]]],Jc=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,pt.__)("There was an error submitting your form.")+"</mark>"}]]],Qc=[Zc,Jc,["core/form-input",{type:"text",label:(0,pt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,pt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,pt.__)("Comment"),required:!0}],["core/form-submit-button",{}]];var Kc=({attributes:e,setAttributes:t,clientId:o})=>{const n=vt(),{action:r,method:a,email:i,submissionMethod:s}=e,l=(0,ct.useBlockProps)(),{hasInnerBlocks:c}=(0,lt.useSelect)((e=>{const{getBlock:t}=e(ct.store),n=t(o);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[o]),u=(0,ct.useInnerBlocksProps)(l,{template:Qc,renderAppender:c?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{dropdownMenuProps:n,label:(0,pt.__)("Settings"),resetAll:()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"email"!==s,label:(0,pt.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Submissions method"),options:[{label:(0,pt.__)("Send email"),value:"email"},{label:(0,pt.__)("- Custom -"),value:"custom"}],value:s,onChange:e=>t({submissionMethod:e}),help:"custom"===s?(0,pt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,pt.__)("Select the method to use for form submissions.")})}),"email"===s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Email for form submissions"),value:i||"",required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,pt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),"email"!==s&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:a,onChange:e=>t({method:e}),help:(0,pt.__)("Select the method to use for form submissions.")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Form action"),value:r,onChange:e=>{t({action:e})},help:(0,pt.__)("The URL where the form should be submitted."),type:"url"})]}),(0,it.jsx)("form",{...u,encType:"email"===s?"text/plain":null})]})};const Yc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form","title":"Form","category":"common","allowedBlocks":["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],"description":"A form.","keywords":["container","wrapper","row","section"],"textdomain":"default","icon":"feedback","attributes":{"submissionMethod":{"type":"string","default":"email"},"method":{"type":"string","default":"post"},"action":{"type":"string"},"email":{"type":"string"}},"supports":{"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}}}');const Xc=[{name:"comment-form",title:(0,pt.__)("Experimental Comment form"),description:(0,pt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,pt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,pt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,pt.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,pt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Zc,Jc,["core/paragraph",{content:(0,pt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,pt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,pt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}];var eu=Xc;const tu={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){const{submissionMethod:t}=e,o=(0,ct.__experimentalGetColorClassesAndStyles)(e),n=(0,ct.getTypographyClassesAndStyles)(e),r=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),a=ct.useBlockProps.save({style:{...o.style,...n.style,...r.style},id:e.anchor});return(0,it.jsx)("form",{...a,className:"wp-block-form",encType:"email"===t?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var ou=[tu];const{name:nu}=Yc,ru={edit:Kc,save:function({attributes:e}){const t=ct.useBlockProps.save(),{submissionMethod:o}=e;return(0,it.jsx)("form",{...t,encType:"email"===o?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:ou,variations:eu,example:{}},au=()=>{const e=["core/form"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/form"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:nu,metadata:Yc,settings:ru})};var iu=r(9681),su=r.n(iu);const lu=window.wp.dom,cu=e=>su()((0,lu.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),uu={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save();return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})})}},du={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})}};var pu=[uu,du];var mu=function({attributes:e,setAttributes:t,className:o}){const{type:n,name:r,label:a,inlineLabel:i,required:s,placeholder:l,value:c}=e,u=(0,ct.useBlockProps)(),d=vt(),p=(0,gt.useRef)(),m="textarea"===n?"textarea":"input",g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.__experimentalUseColorProps)(e);p.current&&p.current.focus();const _="checkbox"===n||"radio"===n,x=(0,it.jsxs)(it.Fragment,{children:["hidden"!==n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:d,children:["checkbox"!==n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Inline label"),hasValue:()=>!!i,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Inline label"),checked:i,onChange:e=>{t({inlineLabel:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Required"),checked:s,onChange:e=>{t({required:e})}})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Name"),value:r,onChange:e=>{t({name:e})},help:(0,pt.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),b=(0,it.jsx)(ct.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:a,onChange:e=>t({label:e}),"aria-label":a?(0,pt.__)("Label"):(0,pt.__)("Empty label"),"data-empty":!a,placeholder:(0,pt.__)("Type the label for this input")});return"hidden"===n?(0,it.jsxs)(it.Fragment,{children:[x,(0,it.jsx)("input",{type:"hidden",className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})]}):(0,it.jsxs)("div",{...u,children:[x,(0,it.jsxs)("span",{className:Dt("wp-block-form-input__label",{"is-label-inline":i||"checkbox"===n}),children:[!_&&b,(0,it.jsx)(m,{type:"textarea"===n?void 0:n,className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>t({placeholder:e.target.value}),"aria-required":s,style:{...g.style,...h.style}}),_&&b]})]})};const gu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-input","title":"Input Field","category":"common","ancestor":["core/form"],"description":"The basic building block for forms.","keywords":["input","form"],"textdomain":"default","icon":"forms","attributes":{"type":{"type":"string","default":"text"},"name":{"type":"string"},"label":{"type":"rich-text","default":"Label","selector":".wp-block-form-input__label-content","source":"rich-text","role":"content"},"inlineLabel":{"type":"boolean","default":false},"required":{"type":"boolean","default":false,"selector":".wp-block-form-input__input","source":"attribute","attribute":"required"},"placeholder":{"type":"string","selector":".wp-block-form-input__input","source":"attribute","attribute":"placeholder","role":"content"},"value":{"type":"string","default":"","selector":"input","source":"attribute","attribute":"value"},"visibilityPermissions":{"type":"string","default":"all"}},"supports":{"anchor":true,"reusable":false,"spacing":{"margin":["top","bottom"]},"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"radius":true}}},"style":["wp-block-form-input"]}');const hu=[{name:"text",title:(0,pt.__)("Text Input"),icon:"edit-page",description:(0,pt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,pt.__)("Textarea Input"),icon:"testimonial",description:(0,pt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,pt.__)("Checkbox Input"),description:(0,pt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,pt.__)("Email Input"),icon:"email",description:(0,pt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,pt.__)("URL Input"),icon:"admin-site",description:(0,pt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,pt.__)("Telephone Input"),icon:"phone",description:(0,pt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,pt.__)("Number Input"),icon:"edit-page",description:(0,pt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}];var _u=hu;const{name:xu}=gu,bu={deprecated:pu,edit:mu,save:function({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save(),g="checkbox"===t||"radio"===t;return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[!g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||(h=n,su()((0,lu.__unstableStripHTML)(h)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:a,"aria-required":a,placeholder:i||void 0,style:u}),g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})})]})});var h},variations:_u,example:{}},fu=()=>jt({name:xu,metadata:gu,settings:bu}),yu=[["core/buttons",{},[["core/button",{text:(0,pt.__)("Submit"),tagName:"button",type:"submit"}]]]];var vu=()=>{const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:yu,templateLock:"all"});return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})};const ku=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submit-button","title":"Form Submit Button","category":"common","icon":"button","ancestor":["core/form"],"allowedBlocks":["core/buttons","core/button"],"description":"A submission button for forms.","keywords":["submit","button","form"],"textdomain":"default","style":["wp-block-form-submit-button"]}');const{name:wu}=ku,Cu={edit:vu,save:function(){const e=ct.useBlockProps.save();return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},example:{}},ju=()=>jt({name:wu,metadata:ku,settings:Cu});var Su=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Bu=[["core/paragraph",{content:(0,pt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]];var Tu=({attributes:e,clientId:t})=>{const{type:o}=e,n=(0,ct.useBlockProps)({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${o}`]:o})}),{hasInnerBlocks:r}=(0,lt.useSelect)((e=>{const{getBlock:o}=e(ct.store),n=o(t);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[t]),a=(0,ct.useInnerBlocksProps)(n,{template:Bu,renderAppender:r?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsx)("div",{...a,"data-message-success":(0,pt.__)("Submission success notification"),"data-message-error":(0,pt.__)("Submission error notification")})};const Nu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submission-notification","title":"Form Submission Notification","category":"common","ancestor":["core/form"],"description":"Provide a notification message after the form has been submitted.","keywords":["form","feedback","notification","message"],"textdomain":"default","icon":"feedback","attributes":{"type":{"type":"string","default":"success"}}}');const Pu=[{name:"form-submission-success",title:(0,pt.__)("Form Submission Success"),description:(0,pt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,pt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,pt.__)("Form Submission Error"),description:(0,pt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,pt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}];var Iu=Pu;const{name:Du}=Nu,Mu={icon:Su,edit:Tu,save:function({attributes:e}){const{type:t}=e;return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(ct.useBlockProps.save({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Iu,example:{}},zu=()=>jt({name:Du,metadata:Nu,settings:Mu});var Au=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Lu="none",Hu="media",Ru="lightbox",Vu="attachment",Fu="large",Eu="file",Ou="post";function Gu(e){return Math.min(3,e?.images?.length)}function $u(e,t){switch(t){case Eu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Ou:return{href:e?.link,linkDestination:Vu};case Hu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Vu:return{href:e?.link,linkDestination:Vu};case Lu:return{href:void 0,linkDestination:Lu}}return{}}function Uu(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const o=e.images.map((o=>function(e,t,o){return(0,st.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...$u(e,o)})}(o,e.sizeSlug,t))),{images:n,ids:r,...a}=e;return[{...a,linkTo:t,allowResize:!1},o]}const qu={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:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Wu={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:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e,i=`columns-${o} ${n?"is-cropped":""}`;return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:i}),children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case Eu:t=e.fullUrl||e.url;break;case Ou:t=e.link}const o=(0,it.jsx)("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,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})},migrate:e=>Uu(e)},Zu={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})=>!e||"attachment"===e||"media"===e,migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Ju={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})=>e&&e.some((e=>"string"==typeof e)),migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Qu={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:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})},migrate:e=>Uu(e)},Ku={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})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o]))),migrate:e=>Uu(e),supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})}},Yu={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:o=Gu(e),align:n,imageCrop:r,linkTo:a}=e,i=Dt(`columns-${o}`,{alignnone:"none"===n,"is-cropped":r});return(0,it.jsx)("div",{className:i,children:t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,it.jsx)("figure",{className:"blocks-gallery-image",children:t?(0,it.jsx)("a",{href:t,children:o}):o},e.id||e.url)}))})},migrate:e=>Uu(e)};var Xu=[qu,Wu,Zu,Ju,Qu,Ku,Yu],ed=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),td=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const od=(0,it.jsx)(ct.BlockIcon,{icon:Au});function nd(e){return e?Math.min(3,e):3}const rd=(e,t="large")=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link"].includes(e))));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const n=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return n&&(o.fullUrl=n),o},ad=20,id="none",sd="media",ld="attachment",cd="custom",ud=["noreferrer","noopener"],dd=["image"],pd=["flex","grid"],md="full";function gd(e,t,o,n,r){switch(o||t){case"file":case Hu:return{href:e?.source_url||e?.url,linkDestination:sd,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case"post":case Vu:return{href:e?.link,linkDestination:ld,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case Ru:return{href:void 0,lightbox:r?.enabled?void 0:{...n?.lightbox,enabled:!0},linkDestination:id};case Lu:return{href:void 0,linkDestination:id,lightbox:void 0}}return{}}function hd(e,{rel:t}){const o=e?"_blank":void 0;let n;return n=o||t?function(e){let t=e;return void 0!==e&&t&&(ud.forEach((e=>{const o=new RegExp("\\b"+e+"\\b","gi");t=t.replace(o,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:o,rel:n}}function _d(e){return dd.some((t=>0===e.type.indexOf(t)))}function xd(e){const{attributes:t,isSelected:o,setAttributes:n,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p}=t;return(0,it.jsxs)("figure",{...i,className:Dt(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${d}`]:void 0!==d,"columns-default":void 0===d,"is-cropped":p}),children:[i.children,o&&!i.children&&(0,it.jsx)(St.View,{className:"blocks-gallery-media-placeholder-wrapper",children:r}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,pt.__)("Gallery caption text"),placeholder:(0,pt.__)("Add gallery caption")})]})}function bd(e,t,o){return(0,gt.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:n}=o();let r={};t&&(r=e.reduce(((e,t)=>{if(!t.id)return e;const o=n.reduce(((e,o)=>{const n=t.sizes?.[o.slug]?.url,r=t.media_details?.sizes?.[o.slug]?.source_url;return{...e,[o.slug]:n||r}}),{});return{...e,[parseInt(t.id,10)]:o}}),{}));const a=Object.values(r);return n.filter((({slug:e})=>a.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function fd(e,t){const[o,n]=(0,gt.useState)([]);return(0,gt.useMemo)((()=>function(){let r=!1;const a=o.filter((t=>e.find((e=>t.clientId===e.clientId))));a.length<o.length&&(r=!0);e.forEach((e=>{e.fromSavedContent&&!a.find((t=>t.id===e.id))&&(r=!0,a.push(e))}));const i=e.filter((e=>!a.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedContent));(r||i?.length>0)&&n([...a,...i]);return i.length>0?i:null}()),[e,t])}const yd=[];function vd({blockGap:e,clientId:t}){const o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let n,r=o,a=o;e&&(n="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.top)||o,a="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.left)||o,r=n===a?n:`${n} ${a}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===a?"0px":a};\n\t\tgap: ${r}\n\t}`;return(0,ct.useStyleOverride)({css:i}),null}const kd=[{icon:ed,label:(0,pt.__)("Link images to attachment pages"),value:Vu,noticeText:(0,pt.__)("Attachment Pages")},{icon:td,label:(0,pt.__)("Link images to media files"),value:Hu,noticeText:(0,pt.__)("Media Files")},{icon:tr,label:(0,pt.__)("Enlarge on click"),value:Ru,noticeText:(0,pt.__)("Lightbox effect"),infoText:(0,pt.__)("Scale images with a lightbox effect")},{icon:hn,label:(0,pt._x)("None","Media item link option"),value:Lu,noticeText:(0,pt.__)("None")}],wd=["image"],Cd=gt.Platform.isNative?(0,pt.__)("Add media"):(0,pt.__)("Drag and drop images, upload, or choose from your library."),jd=gt.Platform.isNative?{type:"stepper"}:{},Sd={name:"core/image"},Bd=[];const Td=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/gallery","title":"Gallery","category":"media","allowedBlocks":["core/image"],"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":"rich-text","source":"rich-text","selector":".blocks-gallery-item__caption"}}},"ids":{"type":"array","items":{"type":"number"},"default":[]},"shortCodeTransforms":{"type":"array","items":{"type":"object"},"default":[]},"columns":{"type":"number","minimum":1,"maximum":8},"caption":{"type":"rich-text","source":"rich-text","selector":".blocks-gallery-caption","role":"content"},"imageCrop":{"type":"boolean","default":true},"randomOrder":{"type":"boolean","default":false},"fixedHeight":{"type":"boolean","default":true},"linkTarget":{"type":"string"},"linkTo":{"type":"string"},"sizeSlug":{"type":"string","default":"large"},"allowResize":{"type":"boolean","default":false},"aspectRatio":{"type":"string","default":"auto"}},"providesContext":{"allowResize":"allowResize","imageCrop":"imageCrop","fixedHeight":"fixedHeight"},"supports":{"anchor":true,"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"radius":true}},"html":false,"units":["px","em","rem","vh","vw"],"spacing":{"margin":true,"padding":true,"blockGap":["horizontal","vertical"],"__experimentalSkipSerialization":["blockGap"],"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":false}},"color":{"text":false,"background":true,"gradients":true},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-gallery-editor","style":"wp-block-gallery"}');(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if("core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:o,alt:n})=>(0,st.createBlock)("core/image",{url:t,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const o=(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(o){const e=o.innerBlocks.map((({attributes:{url:e,id:t,alt:o}})=>({url:e,id:t?parseInt(t,10):null,alt:o}))),t=e.map((({id:e})=>e));o.attributes.images=e,o.attributes.ids=t}return e}));const Nd={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every((e=>e.align===t))?t:void 0,o=e.every((e=>e.sizeSlug===o))?o:void 0;const n=e.filter((({url:e})=>e)).map((e=>(e.width=void 0,e.height=void 0,(0,st.createBlock)("core/image",e))));return(0,st.createBlock)("core/gallery",{align:t,sizeSlug:o},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:n}}){const r=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let a=Lu;"post"===o?a=Vu:"file"===o&&(a=Hu);return(0,st.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a,randomOrder:"rand"===n},r.map((e=>(0,st.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){const t=e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));return(0,st.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map((({attributes:{url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}})=>(0,st.createBlock)("core/image",{align:e,url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}))):(0,st.createBlock)("core/image",{align:e})}]};var Pd=Nd;const{name:Id}=Td,Dd={icon:Au,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:Pd,edit:function(e){const{setAttributes:t,attributes:o,className:n,clientId:r,isSelected:a,insertBlocksAfter:i,isContentLocked:s,onFocus:l}=e,[c,u,d,p]=(0,ct.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=c?.allowEditing?kd:kd.filter((e=>e.value!==Ru)),{columns:g,imageCrop:h,randomOrder:_,linkTarget:x,linkTo:b,sizeSlug:f,aspectRatio:y}=o,{__unstableMarkNextChangeAsNotPersistent:v,replaceInnerBlocks:k,updateBlockAttributes:w,selectBlock:C}=(0,lt.useDispatch)(ct.store),{createSuccessNotice:j,createErrorNotice:S}=(0,lt.useDispatch)(bo.store),{getBlock:B,getSettings:T,innerBlockImages:N,blockWasJustInserted:P,multiGallerySelection:I}=(0,lt.useSelect)((e=>{const{getBlockName:t,getMultiSelectedBlockClientIds:o,getSettings:n,getBlock:a,wasBlockJustInserted:i}=e(ct.store),s=o();return{getBlock:a,getSettings:n,innerBlockImages:a(r)?.innerBlocks??Bd,blockWasJustInserted:i(r,"inserter_menu"),multiGallerySelection:s.length&&s.every((e=>"core/gallery"===t(e)))}}),[r]),D=(0,gt.useMemo)((()=>N?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[N]),M=function(e){return(0,lt.useSelect)((t=>{const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?yd:t(_t.store).getEntityRecords("postType","attachment",{include:o.join(","),per_page:-1,orderby:"include"})??yd}),[e])}(N),z=fd(D,M),A=d?.map((({name:e,ratio:t})=>({label:e,value:t}))),L=u?.map((({name:e,ratio:t})=>({label:e,value:t}))),H=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p&&L||[],...A||[]];(0,gt.useEffect)((()=>{z?.forEach((e=>{v(),w(e.clientId,{...V(e.attributes),id:e.id,align:void 0})}))}),[z]);const R=bd(M,a,T);function V(e){const t=e.id?M.find((({id:t})=>t===e.id)):null;let n,r;return e.className&&""!==e.className&&(n=e.className),r=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:hd(x,o),{...rd(t,f),...gd(t,b,e?.linkDestination),...r,className:n,sizeSlug:f,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text,aspectRatio:"auto"===y?void 0:y}}function F(e){const t=gt.Platform.isNative&&e.id?M.find((({id:t})=>t===e.id)):null,o=t?t?.media_type:e.type;return wd.some((e=>0===o?.indexOf(e)))||e.blob}function E(e){const t="[object FileList]"===Object.prototype.toString.call(e),o=t?Array.from(e).map((e=>e.url?e:{blob:(0,ht.createBlobURL)(e)})):e;o.every(F)||S((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=o.filter((e=>e.url||F(e))).map((e=>e.url?e:{blob:e.blob||(0,ht.createBlobURL)(e)})),a=n.reduce(((e,t,o)=>(e[t.id]=o,e)),{}),i=t?N:N.filter((e=>n.find((t=>t.id===e.attributes.id)))),s=n.filter((e=>!i.find((t=>e.id===t.attributes.id)))).map((e=>(0,st.createBlock)("core/image",{id:e.id,blob:e.blob,url:e.url,caption:e.caption,alt:e.alt})));k(r,i.concat(s).sort(((e,t)=>a[e.attributes.id]-a[t.attributes.id]))),s?.length>0&&C(s[0].clientId)}function O(e){t({linkTo:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=gd(r,e,!1,t.attributes,c)})),w(n,o,{uniqueByBlock:!0});const a=[...m].find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image links updated to: %s"),a.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function G(e){t({columns:e})}function $(){t({imageCrop:!h})}function U(){t({randomOrder:!_})}function q(e){const o=e?"_blank":void 0;t({linkTarget:o});const n={},a=[];B(r).innerBlocks.forEach((e=>{a.push(e.clientId),n[e.clientId]=hd(o,e.attributes)})),w(a,n,{uniqueByBlock:!0});const i=e?(0,pt.__)("All gallery images updated to open in new tab"):(0,pt.__)("All gallery images updated to not open in new tab");j(i,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function W(e){t({sizeSlug:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=function(e,t){const o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)})),w(n,o,{uniqueByBlock:!0});const a=R.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image sizes updated to: %s"),a?.label??e),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Z(e){t({aspectRatio:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId),o[t.clientId]={aspectRatio:"auto"===e?void 0:e}})),w(n,o,!0);const a=H.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery images updated to aspect ratio: %s"),a?.label||e),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,gt.useEffect)((()=>{b||(v(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Lu}))}),[b]);const J=!!D.length,Q=J&&D.some((e=>!!e.id)),K=D.some((e=>gt.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),Y=gt.Platform.select({web:{addToGallery:!1,disableMediaButtons:K,value:{}},native:{addToGallery:Q,isAppender:J,disableMediaButtons:J&&!a||K,value:Q?D:{},autoOpenMediaUpload:!J&&a&&P,onFocus:l}}),X=(0,it.jsx)(ct.MediaPlaceholder,{handleUpload:!1,icon:od,labels:{title:(0,pt.__)("Gallery"),instructions:Cd},onSelect:E,accept:"image/*",allowedTypes:wd,multiple:!0,onError:function(e){S(e,{type:"snackbar"})},...Y}),ee=(0,ct.useBlockProps)({className:Dt(n,"has-nested-images")}),te=gt.Platform.isNative&&{marginHorizontal:0,marginVertical:0},oe=(0,ct.useInnerBlocksProps)(ee,{defaultBlock:Sd,directInsert:!0,orientation:"horizontal",renderAppender:!1,...te}),ne=vt();if(!J)return(0,it.jsxs)(St.View,{...oe,children:[oe.children,X]});const re=b&&"none"!==b;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.InspectorControls,{children:[gt.Platform.isWeb&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),Z("auto"),f!==Fu&&W(Fu),x&&q(!1)},dropdownMenuProps:ne,children:[D.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Columns"),hasValue:()=>!!g&&g!==D.length,onDeselect:()=>G(void 0),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),required:!0,__next40pxDefaultSize:!0})}),R?.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Resolution"),hasValue:()=>f!==Fu,onDeselect:()=>W(Fu),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Crop images to fit"),hasValue:()=>!h,onDeselect:()=>t({imageCrop:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Randomize order"),hasValue:()=>!!_,onDeselect:()=>t({randomOrder:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U})}),re&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open images in new tab"),hasValue:()=>!!x,onDeselect:()=>q(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q})}),H.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y&&"auto"!==y,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>Z("auto"),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z})})]}),gt.Platform.isNative&&(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[D.length>1&&(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),...jd,required:!0,__next40pxDefaultSize:!0}),R?.length>0&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link"),value:b,onChange:O,options:m,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U}),re&&(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q}),H.length>1&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect Ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z,hideCancelButton:!0,size:"__unstable-large"})]})]}),gt.Platform.isWeb?(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:gn,label:(0,pt.__)("Link"),children:({onClose:e})=>(0,it.jsx)(mt.MenuGroup,{children:m.map((t=>{const o=b===t.value;return(0,it.jsx)(mt.MenuItem,{isSelected:o,className:Dt("components-dropdown-menu__menu-item",{"is-active":o}),iconPosition:"left",icon:t.icon,onClick:()=>{O(t.value),e()},role:"menuitemradio",info:t.infoText,children:t.label},t.value)}))})})}):null,gt.Platform.isWeb&&(0,it.jsxs)(it.Fragment,{children:[!I&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{allowedTypes:wd,accept:"image/*",handleUpload:!1,onSelect:E,name:(0,pt.__)("Add"),multiple:!0,mediaIds:D.filter((e=>e.id)).map((e=>e.id)),addToGallery:Q})}),(0,it.jsx)(vd,{blockGap:o.style?.spacing?.blockGap,clientId:r})]}),(0,it.jsx)(xd,{...e,isContentLocked:s,images:D,mediaPlaceholder:!J||gt.Platform.isNative?X:void 0,blockProps:oe,insertBlocksAfter:i,multiGallerySelection:I})]})},save:function({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:Dt("blocks-gallery-caption",(0,ct.__experimentalGetElementClassName)("caption")),value:t})]})},deprecated:Xu},Md=()=>jt({name:Id,metadata:Td,settings:Dd}),zd=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:o,customBackgroundColor:n,...r}=e;return{...r,style:t}},Ad=[{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}})=>(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())}),isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate:e=>{const{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{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,it.jsx)(t,{...ct.useBlockProps.save(),children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,i,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:zd,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=Dt(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return(0,it.jsx)("div",{className:r,style:a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Ld=Ad;const Hd=(e="group")=>{const t={group:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})};return t?.[e]};var Rd=function({name:e,onSelect:t}){const o=(0,lt.useSelect)((t=>t(st.store).getBlockVariations(e,"block")),[e]),n=(0,ct.useBlockProps)({className:"wp-block-group__placeholder"});return(0,gt.useEffect)((()=>{o&&1===o.length&&t(o[0])}),[t,o]),(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Placeholder,{instructions:(0,pt.__)("Group blocks together. Select a layout:"),children:(0,it.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,pt.__)("Block variations"),children:o.map((e=>(0,it.jsx)("li",{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Hd(e.name),iconSize:48,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})},e.name)))})})})};const{HTMLElementControl:Vd}=jo(ct.privateApis);function Fd({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Vd,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("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"}]})})}var Ed=function({attributes:e,name:t,setAttributes:o,clientId:n}){const{hasInnerBlocks:r,themeSupportsLayout:a}=(0,lt.useSelect)((e=>{const{getBlock:t,getSettings:o}=e(ct.store),r=t(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length),themeSupportsLayout:o()?.supportsLayout}}),[n]),{tagName:i="div",templateLock:s,allowedBlocks:l,layout:c={}}=e,{type:u="default"}=c,d=a||"flex"===u||"grid"===u,p=(0,gt.useRef)(),m=(0,ct.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){const{style:n,backgroundColor:r,textColor:a,fontSize:i}=e,[s,l]=(0,gt.useState)(!(o||r||i||a||n||"flex"===t||"grid"===t));return(0,gt.useEffect)((()=>{(o||r||i||a||n||"flex"===t)&&l(!1)}),[r,i,a,n,t,o]),[s,l]}({attributes:e,usedLayoutType:u,hasInnerBlocks:r});let _;g?_=!1:r||(_=ct.InnerBlocks.ButtonBlockAppender);const x=(0,ct.useInnerBlocksProps)(d?m:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:s,allowedBlocks:l,renderAppender:_}),{selectBlock:b}=(0,lt.useDispatch)(ct.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Fd,{tagName:i,onSelectTagName:e=>o({tagName:e}),clientId:n}),g&&(0,it.jsxs)(St.View,{children:[x.children,(0,it.jsx)(Rd,{name:t,onSelect:e=>{o(e.attributes),b(n,-1),h(!1)}})]}),d&&!g&&(0,it.jsx)(i,{...x}),!d&&!g&&(0,it.jsx)(i,{...m,children:(0,it.jsx)("div",{...x})})]})};const Od=JSON.parse('{"$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",false]}},"supports":{"__experimentalOnEnter":true,"__experimentalOnMerge":true,"__experimentalSettings":true,"align":["wide","full"],"anchor":true,"ariaLabel":true,"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"margin":["top","bottom"],"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"dimensions":{"minHeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"position":{"sticky":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowSizingOnChildren":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-group-editor","style":"wp-block-group"}');var Gd={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],o=e.reduce(((e,o)=>{const{align:n}=o.attributes;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,st.createBlock)("core/group",{align:o,layout:{type:"constrained"}},n)}}]},$d=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Ud=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Wd={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Six.")}}]};var Zd=[{name:"group",title:(0,pt.__)("Group"),description:(0,pt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:Su},{name:"group-row",title:(0,pt._x)("Row","single horizontal line"),description:(0,pt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:$d,example:Wd},{name:"group-stack",title:(0,pt.__)("Stack"),description:(0,pt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:Ud,example:Wd},{name:"group-grid",title:(0,pt.__)("Grid"),description:(0,pt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:qd,example:Wd}];const{name:Jd}=Od,Qd={icon:Su,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,pt.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{align:"center",content:(0,pt.__)("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.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,pt.__)("Read more")}}],viewportWidth:600},transforms:Gd,edit:Ed,save:function({attributes:{tagName:e}}){return(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())})},deprecated:Ld,variations:Zd},Kd=()=>jt({name:Jd,metadata:Od,settings:Qd});var Yd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});const Xd={className:!1,anchor:!0},ep={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},tp=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:o,...n}=e;return{...n,style:t}},op=["left","right","center"],np=e=>{const{align:t,...o}=e;return op.includes(t)?{...o,textAlign:t}:e},rp={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,i="h"+o,s=(0,ct.getColorClassName)("color",r),l=Dt({[s]:s});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{textAlign:t,color:s?void 0:a},value:n})}},ap={attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})},supports:Xd},ip={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,"has-text-color":a||n,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})}},sp={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:ep,isEligible:({align:e})=>op.includes(e),migrate:np,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},lp={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:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}};var cp=[lp,sp,ip,ap,rp];const up={},dp=e=>su()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),pp=(e,t)=>{const o=dp(t);if(""===o)return null;delete up[e];let n=o,r=0;for(;Object.values(up).includes(n);)r+=1,n=o+"-"+r;return n},mp=(e,t)=>{up[e]=t};var gp=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,style:r,clientId:a}){const{textAlign:i,content:s,level:l,levelOptions:c,placeholder:u,anchor:d}=e,p="h"+l,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:r}),g=(0,ct.useBlockEditingMode)(),{canGenerateAnchors:h}=(0,lt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:o}=e(ct.store);return{canGenerateAnchors:!!o().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{if(h)return!d&&s&&(_(),t({anchor:pp(a,s)})),mp(a,d),()=>mp(a,null)}),[d,s,a,h]),(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:l,options:c,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:p,value:s,onChange:e=>{const o={content:e};!h||d&&e&&pp(a,s)!==d||(o.anchor=pp(a,e)),t(o)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,pt.__)("Heading"),textAlign:i,...gt.Platform.isNative&&{deleteEnter:!0},...m})]})};const hp=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"h1,h2,h3,h4,h5,h6","role":"content"},"level":{"type":"number","default":2},"levelOptions":{"type":"array"},"placeholder":{"type":"string"}},"supports":{"align":["wide","full"],"anchor":true,"className":true,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__unstablePasteTextInline":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-heading-editor","style":"wp-block-heading"}');const _p={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,anchor:o,align:n}=e;return(0,st.createBlock)("core/heading",{...Nn(e,"core/heading",(({content:e})=>({content:e}))),content:t,anchor:o,textAlign:n})}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=(0,st.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,st.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,st.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,textAlign:o}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph",(({content:e})=>({content:e}))),content:t,align:o})}))}]};var xp=_p;const bp=[{name:"heading",title:(0,pt.__)("Heading"),description:(0,pt.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),isDefault:!0,scope:["inserter","transform"],attributes:{fitText:void 0},icon:Yd},{name:"stretchy-heading",title:(0,pt.__)("Stretchy Heading"),description:(0,pt.__)("Heading that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m3 18.6 6-4.7 6 4.7V5H3v13.6Zm16.2-9.8v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var fp=bp;const{name:yp}=hp,vp={icon:Yd,example:{attributes:{content:(0,pt.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){const{content:o,level:n}=e,r=e?.metadata?.name,a=o?.trim().length>0;return"list-view"===t&&(r||a)?r||o:"accessibility"===t?a?(0,pt.sprintf)((0,pt.__)("Level %1$s. %2$s"),n,o):(0,pt.sprintf)((0,pt.__)("Level %s. Empty."),n):void 0},transforms:xp,deprecated:cp,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:gp,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:fp},kp=()=>jt({name:yp,metadata:hp,settings:vp});var wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});const Cp=JSON.parse('{"$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","role":"content"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-home-link-editor","style":"wp-block-home-link"}'),jp=e=>e.preventDefault();const{name:Sp}=Cp,Bp={icon:wp,edit:function({attributes:e,setAttributes:t,context:o}){const n=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("root","__unstableBase")?.home),[]),{textColor:r,backgroundColor:a,style:i}=o,s=(0,ct.useBlockProps)({className:Dt("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!a||!!i?.color?.background,[`has-${a}-background-color`]:!!a}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}});return(0,it.jsx)("div",{...s,children:(0,it.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:n,onClick:jp,children:(0,it.jsx)(ct.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,pt.__)("Home"),onChange:e=>{t({label:e})},"aria-label":(0,pt.__)("Home link text"),placeholder:(0,pt.__)("Add home link"),withoutInteractiveFormatting:!0})})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._x)("Home Link","block example")}}},Tp=()=>jt({name:Sp,metadata:Cp,settings:Bp});var Np=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});function Pp({content:e,isSelected:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles),[]),n=(0,gt.useMemo)((()=>["\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",...(0,ct.transformStyles)((o??[]).filter((e=>e.css)))]),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.SandBox,{html:e,styles:n,title:(0,pt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,it.jsx)("div",{className:"block-library-html__preview-overlay"})]})}const Ip=JSON.parse('{"$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","role":"content"}},"supports":{"customClassName":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-html-editor"}');var Dp={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,st.createBlock)("core/html",{content:(0,Tn.create)({html:e}).text})}]};const{name:Mp}=Ip,zp={icon:Np,example:{attributes:{content:"<marquee>"+(0,pt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:o,isSelected:n}){const[r,a]=(0,gt.useState)(),i=(0,gt.useContext)(mt.Disabled.Context),s=(0,xt.useInstanceId)(e,"html-edit-desc"),l=(0,lt.useSelect)((e=>e(ct.store).getSettings().isPreviewMode),[]),c=(0,ct.useBlockProps)({className:"block-library-html__edit","aria-describedby":r?s:void 0});return(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{isPressed:!r,onClick:function(){a(!1)},children:"HTML"}),(0,it.jsx)(mt.ToolbarButton,{isPressed:r,onClick:function(){a(!0)},children:(0,pt.__)("Preview")})]})}),r||l||i?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Pp,{content:t.content,isSelected:n}),(0,it.jsx)(mt.VisuallyHidden,{id:s,children:(0,pt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.")})]}):(0,it.jsx)(ct.PlainText,{value:t.content,onChange:e=>o({content:e}),placeholder:(0,pt.__)("Write HTML…"),"aria-label":(0,pt.__)("HTML")})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.content})},transforms:Dp},Ap=()=>jt({name:Mp,metadata:Ip,settings:zp}),Lp={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:o,caption:n,align:r,href:a,width:i,height:s}=e,l=i||s?{width:i,height:s}:{},c=(0,it.jsx)("img",{src:t,alt:o,...l});let u={};return i?u={width:i}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),(0,it.jsxs)("figure",{className:r?`align${r}`:null,style:u,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Hp={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:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:r?`align${r}`:null,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Rp={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:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=Dt({[`align${r}`]:r,"is-resized":i||s}),u=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:c,children:[a?(0,it.jsx)("a",{href:a,children:u}):u,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Vp={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:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return"left"===r||"right"===r||"center"===r?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("figure",{className:h,children:x})}):(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Fp={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:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Ep={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"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,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:o}=e;return{...e,width:"number"==typeof o?`${o}px`:o,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Op={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"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,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...o})=>({...o,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Gp={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},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,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){if(!o.behaviors?.lightbox)return o;const{behaviors:{lightbox:{enabled:n}}}=o,r={...o,lightbox:{enabled:n}};return delete r.behaviors,r},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}};var $p=[Gp,Op,Ep,Fp,Vp,Rp,Hp,Lp],Up=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),qp=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),Zp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Jp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const{DimensionsTool:Qp,ResolutionTool:Kp}=jo(ct.privateApis),Yp=[{value:"cover",label:(0,pt._x)("Cover","Scale option for dimensions control"),help:(0,pt.__)("Image covers the space evenly.")},{value:"contain",label:(0,pt._x)("Contain","Scale option for dimensions control"),help:(0,pt.__)("Image is contained without distortion.")}],Xp={placement:"bottom-start"},em=({href:e,children:t})=>e?(0,it.jsx)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function tm({attributes:e,setAttributes:t,lockAltControls:o,lockAltControlsMessage:n,lockTitleControls:r,lockTitleControlsMessage:a}){const[i,s]=(0,gt.useState)(null),[l,c]=(0,gt.useState)(!1),[u,d]=(0,gt.useState)(!1);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarItem,{ref:s,children:e=>(0,it.jsx)(mt.DropdownMenu,{icon:qp,label:(0,pt.__)("More"),toggleProps:{...e,description:(0,pt.__)("Displays more controls.")},popoverProps:Xp,children:({onClose:e})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.MenuItem,{onClick:()=>{c(!0),e()},"aria-haspopup":"dialog",children:(0,pt._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,it.jsx)(mt.MenuItem,{onClick:()=>{d(!0),e()},"aria-haspopup":"dialog",children:(0,pt.__)("Title text")})]})})}),l&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>c(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,pt.__)("Alternative text"),value:e.alt||"",onChange:e=>t({alt:e}),disabled:o,help:o?(0,it.jsx)(it.Fragment,{children:n}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})})}),u&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>d(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title attribute"),value:e.title||"",onChange:e=>t({title:e}),disabled:r,help:r?(0,it.jsx)(it.Fragment,{children:a}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function om({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:n,insertBlocksAfter:r,onReplace:a,onSelectImage:i,onSelectURL:s,onUploadError:l,context:c,clientId:u,blockEditingMode:d,parentLayoutType:p,maxContentWidth:m}){const{url:g="",alt:h,align:_,id:x,href:b,rel:f,linkClass:y,linkDestination:v,title:k,width:w,height:C,aspectRatio:j,scale:S,linkTarget:B,sizeSlug:T,lightbox:N,metadata:P}=t,[I,D]=(0,gt.useState)(),[M,z]=(0,gt.useState)(null),[A,L]=(0,gt.useState)({}),[H,R]=(0,gt.useState)(0),V=(0,xt.useResizeObserver)((([e])=>{if(!M){const[t]=e.borderBoxSize;L({width:t.inlineSize,height:t.blockSize})}R(e.target.offsetTop)})),F=(0,gt.useCallback)((()=>{R(I?.offsetTop??0)}),[I]),E=(0,xt.useMergeRefs)([D,V]),{allowResize:O=!0}=c,G=(0,lt.useSelect)((e=>x&&n?e(_t.store).getEntityRecord("postType","attachment",x,{context:"view"}):null),[x,n]),{canInsertCover:$,imageEditing:U,imageSizes:q,maxWidth:W}=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o,getSettings:n}=e(ct.store),r=t(u),a=n();return{imageEditing:a.imageEditing,imageSizes:a.imageSizes,maxWidth:a.maxWidth,canInsertCover:o("core/cover",r)}}),[u]),{getBlock:Z,getSettings:J}=(0,lt.useSelect)(ct.store),{replaceBlocks:Q,toggleSelection:K}=(0,lt.useDispatch)(ct.store),{createErrorNotice:Y,createSuccessNotice:X}=(0,lt.useDispatch)(bo.store),{editEntityRecord:ee}=(0,lt.useDispatch)(_t.store),te=(0,xt.useViewportMatch)("medium"),oe=["wide","full"].includes(_),[{loadedNaturalWidth:ne,loadedNaturalHeight:re},ae]=(0,gt.useState)({}),[ie,se]=(0,gt.useState)(!1),[le,ce]=(0,gt.useState)(),[ue,de]=(0,gt.useState)(!1),pe="default"===d,me="contentOnly"===d,ge=O&&pe&&!oe&&te,he=q.filter((({slug:e})=>G?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,gt.useEffect)((()=>{nm(x,g)&&n&&J().mediaUpload?le||window.fetch(g.includes("?")?g:g+"?").then((e=>e.blob())).then((e=>ce(e))).catch((()=>{})):ce()}),[x,g,n,le,J]);const{naturalWidth:_e,naturalHeight:xe}=(0,gt.useMemo)((()=>({naturalWidth:I?.naturalWidth||ne||void 0,naturalHeight:I?.naturalHeight||re||void 0})),[ne,re,I?.complete]);function be(e){const t=G?.media_details?.sizes?.[e]?.source_url;if(!t)return null;o({url:t,sizeSlug:e})}(0,gt.useEffect)((()=>{n||se(!1)}),[n]);const fe=x&&_e&&xe&&U,ye=n&&fe&&!ie&&!me;const ve=(0,mt.__experimentalUseCustomUnits)({availableUnits:["px"]}),[ke]=(0,ct.useSettings)("lightbox"),we=!!N&&N?.enabled!==ke?.enabled||ke?.allowEditing,Ce=!!N?.enabled||!N&&!!ke?.enabled,je=vt(),Se=ge&&(pd.includes(p)?(0,it.jsx)(Qp,{value:{aspectRatio:j},onChange:({aspectRatio:e})=>{o({aspectRatio:e,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,it.jsx)(Qp,{value:{width:w,height:C,scale:S,aspectRatio:j},onChange:({width:e,height:t,scale:n,aspectRatio:r})=>{o({width:!e&&t?"auto":e,height:t,scale:n,aspectRatio:r})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Yp,unitsOptions:ve})),Be=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0}),be(md)},Te=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:Se})}),Ne="core/pattern-overrides"===P?.bindings?.__default?.source,{lockUrlControls:Pe=!1,lockHrefControls:Ie=!1,lockAltControls:De=!1,lockAltControlsMessage:Me,lockTitleControls:ze=!1,lockTitleControlsMessage:Ae,hideCaptionControls:Le=!1}=(0,lt.useSelect)((e=>{if(!n)return{};const{url:t,alt:o,title:r,caption:a}=P?.bindings||{},i=!!c["pattern/overrides"],s=(0,st.getBlockBindingsSource)(t?.source),l=(0,st.getBlockBindingsSource)(o?.source),u=(0,st.getBlockBindingsSource)(r?.source);return{lockUrlControls:!!t&&!s?.canUserEditValue?.({select:e,context:c,args:t?.args}),lockHrefControls:i||Ne,hideCaptionControls:!!a,lockAltControls:!!o&&!l?.canUserEditValue?.({select:e,context:c,args:o?.args}),lockAltControlsMessage:l?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),l.label):(0,pt.__)("Connected to dynamic data"),lockTitleControls:!!r&&!u?.canUserEditValue?.({select:e,context:c,args:r?.args}),lockTitleControlsMessage:u?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),u.label):(0,pt.__)("Connected to dynamic data")}}),[Ne,c,n,P?.bindings]),He=n&&!ie&&!Ie&&!Pe,Re=n&&$&&!me,Ve=He||ye||Re,Fe=n&&!ie&&!Pe&&(0,it.jsx)(ct.BlockControls,{group:me?"inline":"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:x,mediaURL:g,allowedTypes:dd,accept:"image/*",onSelect:i,onSelectURL:s,onError:l,name:g?(0,pt.__)("Replace"):(0,pt.__)("Add image"),onReset:()=>i(void 0)})}),Ee=(0,it.jsxs)(it.Fragment,{children:[Ve&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[He&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:b||"",onChangeUrl:function(e){o(e)},linkDestination:v,mediaUrl:G&&G.source_url||g,mediaLink:G&&G.link,linkTarget:B,linkClass:y,rel:f,showLightboxSetting:we,lightboxEnabled:Ce,onSetLightbox:function(e){o(e&&!ke?.enabled?{lightbox:{enabled:!0}}:!e&&ke?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){o(ke?.enabled&&ke?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),ye&&(0,it.jsx)(mt.ToolbarButton,{onClick:()=>se(!0),icon:Wp,label:(0,pt.__)("Crop")}),Re&&(0,it.jsx)(mt.ToolbarButton,{icon:Zp,label:(0,pt.__)("Add text over image"),onClick:function(){Q(u,(0,st.switchToBlockType)(Z(u),"core/cover"))}})]}),n&&le&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:function(){const{mediaUpload:e}=J();e&&e({filesList:[le],onFileChange([e]){i(e),(0,ht.isBlobURL)(e.url)||(ce(),X((0,pt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:dd,onError(e){Y(e,{type:"snackbar"})}})},icon:Jp,label:(0,pt.__)("Upload to Media Library")})})}),me&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(tm,{attributes:t,setAttributes:o,lockAltControls:De,lockAltControlsMessage:Me,lockTitleControls:ze,lockTitleControlsMessage:Ae})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:[n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>o({alt:void 0}),children:(0,it.jsx)(mt.TextareaControl,{label:(0,pt.__)("Alternative text"),value:h||"",onChange:function(e){o({alt:e})},readOnly:De,help:De?(0,it.jsx)(it.Fragment,{children:Me}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),Se,!!he.length&&(0,it.jsx)(Kp,{value:T,defaultValue:md,onChange:be,options:he})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Title attribute"),value:k||"",onChange:function(e){o({title:e})},readOnly:ze,help:ze?(0,it.jsx)(it.Fragment,{children:Ae}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),Oe=(0,no.getFilename)(g);let Ge;Ge=h||(Oe?(0,pt.sprintf)((0,pt.__)("This image has an empty alt attribute; its file name is %s"),Oe):(0,pt.__)("This image has an empty alt attribute"));const $e=(0,ct.__experimentalUseBorderProps)(t),Ue=(0,ct.__experimentalGetShadowClassesAndStyles)(t),qe=t.className?.includes("is-style-rounded"),{postType:We,postId:Ze,queryId:Je}=c,Qe=Number.isFinite(Je);let Ke,Ye=e&&ue?(0,it.jsx)(mt.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,it.jsx)(mt.Spinner,{})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{src:e||g,alt:Ge,onError:function(){de(!0);const e=No({attributes:{url:g}});void 0!==e&&a(e)},onLoad:function(e){de(!1),ae({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:E,className:$e.className,width:_e,height:xe,style:{aspectRatio:j,...M?{width:A.width+M.width,height:A.height+M.height}:{width:w,height:C},objectFit:S,...$e.style,...Ue.style}}),e&&(0,it.jsx)(mt.Spinner,{})]});if(Ye=fe&&ie?(0,it.jsx)(em,{href:b,children:(0,it.jsx)(ct.__experimentalImageEditor,{id:x,url:g,...A,naturalHeight:xe,naturalWidth:_e,onSaveImage:e=>o(e),onFinishEditing:()=>{se(!1)},borderProps:qe?void 0:$e})}):(0,it.jsx)(em,{href:b,children:Ye}),ge&&n&&!ie&&!pd.includes(p)){const e=j&&function(e){const[t,o=1]=e.split("/").map(Number),n=t/o;return n===1/0||0===n?NaN:n}(j),t=A.width/A.height,n=_e/xe,r=e||t||n||1,a=_e<xe?ad:ad*r,i=xe<_e?ad:ad/r,s=m||2.5*W;let l=!1,c=!1;"center"===_?(l=!0,c=!0):(0,pt.isRTL)()?"left"===_?l=!0:c=!0:"right"===_?c=!0:l=!0,Ke=(0,it.jsx)(mt.ResizableBox,{ref:F,style:{position:"absolute",inset:`${H}px 0 0 0`},size:A,minWidth:a,maxWidth:s,minHeight:i,maxHeight:s/r,lockAspectRatio:r,enable:{top:!1,right:l,bottom:!0,left:c},onResizeStart:()=>{K(!1)},onResize:(e,t,o,n)=>{z(n)},onResizeStop:(e,t,a,i)=>{K(!0),z(null),L((e=>({width:e.width+i.width,height:e.height+i.height}))),m&&_e>=m&&Math.abs(a.offsetWidth-m)<10?o({width:void 0,height:void 0}):o({width:`${a.offsetWidth}px`,height:"auto",aspectRatio:r===n?void 0:String(r)})},resizeRatio:"center"===_?2:1})}if(!g&&!e)return(0,it.jsxs)(it.Fragment,{children:[Fe,P?.bindings?Ee:Te]});const Xe=()=>{ee("postType",We,Ze,{featured_media:x}),X((0,pt.__)("Post featured image updated."),{type:"snackbar"})},et=(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1===e.length&&!Qe&&Ze&&x&&u===e[0]&&(0,it.jsx)(mt.MenuItem,{onClick:Xe,children:(0,pt.__)("Set as featured image")})});return(0,it.jsxs)(it.Fragment,{children:[Fe,Ee,et,Ye,Ke,(0,it.jsx)(zo,{attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,label:(0,pt.__)("Image caption text"),showToolbarButton:n&&(pe||me)&&!Le})]})}const nm=(e,t)=>t&&!e&&!(0,ht.isBlobURL)(t);function rm(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}var am=function({attributes:e,setAttributes:t,isSelected:o,className:n,insertBlocksAfter:r,onReplace:a,context:i,clientId:s,__unstableParentLayout:l}){const{url:c="",caption:u,id:d,width:p,height:m,sizeSlug:g,aspectRatio:h,scale:_,align:x,metadata:b}=e,[f,y]=(0,gt.useState)(e.blob),v=(0,gt.useRef)(),k=l?.type||l?.default?.type,w=!k||"flex"!==k&&"grid"!==k,[C,j]=function(){const[e,{width:t}]=(0,xt.useResizeObserver)(),o=(0,gt.useRef)();return[(0,it.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:o,children:e}),t]}(),[S,{width:B}]=(0,xt.useResizeObserver)(),T=B&&B<160,N=(0,gt.useRef)();(0,gt.useEffect)((()=>{N.current=u}),[u]);const{__unstableMarkNextChangeAsNotPersistent:P,replaceBlock:I}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{["wide","full"].includes(x)&&(P(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[P,x,t]);const{getSettings:D,getBlockRootClientId:M,getBlockName:z,canInsertBlockType:A}=(0,lt.useSelect)(ct.store),L=(0,ct.useBlockEditingMode)(),{createErrorNotice:H}=(0,lt.useDispatch)(bo.store);function R(e){H(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function V(o){if(Array.isArray(o))return void function(e){const t=v.current?.ownerDocument.defaultView;if(e.every((e=>e instanceof t.File))){const t=e,o=M(s);t.some((e=>!_d(e)))&&H((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=t.filter((e=>_d(e))).map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));if("core/gallery"===z(o))I(s,n);else if(A("core/gallery",o)){const e=(0,st.createBlock)("core/gallery",{},n);I(s,e)}}}(o);if(!o||!o.url)return t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),void y();if((0,ht.isBlobURL)(o.url))return void y(o.url);const{imageDefaultSize:n}=D();let r=md;g&&rm(o,g)?r=g:rm(o,n)&&(r=n);let a,i=((e,t)=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o})(o,r);if("string"==typeof i.caption&&i.caption.includes("\n")&&(i.caption=i.caption.replace(/\n/g,"<br>")),N.current&&!i.caption){const{caption:e,...t}=i;i=t}o.id&&o.id===d||(a={sizeSlug:r});let l,c=e.linkDestination;if(!c)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||id){case"file":case sd:c=sd;break;case"post":case ld:c=ld;break;case cd:c=cd;break;case id:c=id}switch(c){case sd:l=o.url;break;case ld:l=o.link}i.href=l,t({blob:void 0,...i,...a,linkDestination:c}),y()}function F(e){e!==c&&(t({blob:void 0,url:e,id:void 0,sizeSlug:D().imageDefaultSize}),y())}ft({url:f,allowedTypes:dd,onChange:V,onError:R});const E=nm(d,c)?c:void 0,O=!!c&&(0,it.jsx)("img",{alt:(0,pt.__)("Edit image"),title:(0,pt.__)("Edit image"),className:"edit-image-preview",src:c}),G=(0,ct.__experimentalUseBorderProps)(e),$=(0,ct.__experimentalGetShadowClassesAndStyles)(e),U=Dt(n,{"is-transient":!!f,"is-resized":!!p||!!m,[`size-${g}`]:g,"has-custom-border":!!G.className||G.style&&Object.keys(G.style).length>0}),q=(0,ct.useBlockProps)({ref:v,className:U}),{lockUrlControls:W=!1,lockUrlControlsMessage:Z}=(0,lt.useSelect)((e=>{if(!o)return{};const t=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{lockUrlControls:!!b?.bindings?.url&&!t?.canUserEditValue?.({select:e,context:i,args:b?.bindings?.url?.args}),lockUrlControlsMessage:t?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),t.label):(0,pt.__)("Connected to dynamic data")}}),[i,o,b?.bindings?.url]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("figure",{...q,children:[(0,it.jsx)(om,{temporaryURL:f,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:r,onReplace:a,onSelectImage:V,onSelectURL:F,onUploadError:R,context:i,clientId:s,blockEditingMode:L,parentLayoutType:k,maxContentWidth:j}),(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:td}),onSelect:V,onSelectURL:F,onError:R,placeholder:e=>(0,it.jsxs)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",{[G.className]:!!G.className&&!o}),icon:!T&&(W?Up:td),withIllustration:!o||T,label:!T&&(0,pt.__)("Image"),instructions:!W&&!T&&(0,pt.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:p&&m||!h?void 0:h,width:m&&h?"100%":p,height:p&&h?"100%":m,objectFit:_,...G.style,...$.style},children:[W&&!T&&Z,!W&&!T&&e,S]}),accept:"image/*",allowedTypes:dd,handleUpload:e=>1===e.length,value:{id:d,src:E},mediaPreview:O,disableMediaButtons:f||c})]}),o&&w&&C]})};const im=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/image","title":"Image","category":"media","usesContext":["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],"description":"Insert an image to make a visual statement.","keywords":["img","photo","picture"],"textdomain":"default","attributes":{"blob":{"type":"string","role":"local"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src","role":"content"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":"","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"lightbox":{"type":"object","enabled":{"type":"boolean"}},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title","role":"content"},"href":{"type":"string","source":"attribute","selector":"figure > a","attribute":"href","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure > a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure > a","attribute":"class"},"id":{"type":"number","role":"content"},"width":{"type":"string"},"height":{"type":"string"},"aspectRatio":{"type":"string"},"scale":{"type":"string"},"sizeSlug":{"type":"string"},"linkDestination":{"type":"string"},"linkTarget":{"type":"string","source":"attribute","selector":"figure > a","attribute":"target"}},"supports":{"interactivity":true,"align":["left","center","right","wide","full"],"anchor":true,"color":{"text":false,"background":false},"filter":{"duotone":true},"spacing":{"margin":true},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"shadow":{"__experimentalSkipSerialization":true}},"selectors":{"border":".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder","shadow":".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":true},{"name":"rounded","label":"Rounded"}],"editorStyle":"wp-block-image-editor","style":"wp-block-image"}');function sm(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const lm={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},cm={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...lm,a:{attributes:["href","rel","target"],classes:["*"],children:lm},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),i=a?Number(a[1]):void 0,s=e.querySelector("a"),l=s&&s.href?"custom":void 0,c=s&&s.href?s.href:void 0,u=s&&s.rel?s.rel:void 0,d=s&&s.className?s.className:void 0,p=(0,st.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:i,linkDestination:l,href:c,rel:u,linkClass:d,anchor:n});return(0,ht.isBlobURL)(p.url)&&(p.blob=p.url,delete p.url),(0,st.createBlock)("core/image",p)}},{type:"files",isMatch:e=>e.every((e=>0===e.type.indexOf("image/"))),transform:e=>e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})))},{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:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.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 um=cm;const{name:dm}=im,pm={icon:td,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,pt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":(0,pt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:um,edit:am,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h,metadata:{bindings:_={}}={}}=e,x=i||void 0,b=(0,ct.__experimentalGetBorderClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt({alignnone:"none"===r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=Dt(b.className,{[`wp-image-${p}`]:!!p}),k=(0,it.jsx)("img",{src:t,alt:o,className:v||void 0,style:{...b.style,...f.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),w=!ct.RichText.isEmpty(n)||_.caption||"core/pattern-overrides"===_?.__default?.source,C=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:x,children:k}):k,w&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:y}),children:C})},deprecated:$p},mm=()=>jt({name:dm,metadata:im,settings:pm});var gm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 hm=JSON.parse('{"$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":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true}},"supports":{"align":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-comments-editor","style":"wp-block-latest-comments"}');const{name:_m}=hm,xm={icon:gm,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e,i={...e,style:{...e?.style,spacing:void 0}},s=vt();return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayExcerpt:!0})},dropdownMenuProps:s,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,pt.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Display excerpt"),onDeselect:()=>t({displayExcerpt:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>5!==o,label:(0,pt.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0})})]})}),(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/latest-comments",attributes:i,urlQueryArgs:{_locale:"site"}})})]})}},bm=()=>jt({name:_m,metadata:hm,settings:xm});var fm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});const ym=JSON.parse('{"$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":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":55},"displayAuthor":{"type":"boolean","default":false},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"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":false}},"supports":{"align":true,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-posts-editor","style":"wp-block-latest-posts"}'),{attributes:vm}=ym;var km=[{attributes:{...vm,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}],wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Cm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),jm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),Sm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Bm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Tm={per_page:-1,_fields:"id,name",context:"view"},Nm={per_page:-1,has_published_posts:["post"],context:"view"},Pm=[{value:"none",icon:wm,label:(0,pt.__)("None")},{value:"left",icon:Cm,label:(0,pt.__)("Left")},{value:"center",icon:jm,label:(0,pt.__)("Center")},{value:"right",icon:Sm,label:(0,pt.__)("Right")}];function Im({attributes:e,setAttributes:t,postCount:o}){const{postsToShow:n,order:r,orderBy:a,categories:i,selectedAuthor:s,displayFeaturedImage:l,displayPostContentRadio:c,displayPostContent:u,displayPostDate:d,displayAuthor:p,postLayout:m,columns:g,excerptLength:h,featuredImageAlign:_,featuredImageSizeSlug:x,featuredImageSizeWidth:b,featuredImageSizeHeight:f,addLinkToFeaturedImage:y}=e,{imageSizes:v,defaultImageWidth:k,defaultImageHeight:w,categoriesList:C,authorList:j}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,getUsers:o}=e(_t.store),n=e(ct.store).getSettings();return{defaultImageWidth:n.imageDimensions?.[x]?.width??0,defaultImageHeight:n.imageDimensions?.[x]?.height??0,imageSizes:n.imageSizes,categoriesList:t("taxonomy","category",Tm),authorList:o(Nm)}}),[x]),S=vt(),B=v.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),T=C?.reduce(((e,t)=>({...e,[t.name]:t})),{})??{};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:55}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,pt.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post content"),checked:u,onChange:e=>t({displayPostContent:e})})}),u&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"excerpt"!==c,label:(0,pt.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,it.jsx)(mt.RadioControl,{label:(0,pt.__)("Content length"),selected:c,options:[{label:(0,pt.__)("Excerpt"),value:"excerpt"},{label:(0,pt.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})})}),u&&"excerpt"===c&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==h,label:(0,pt.__)("Max number of words"),onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words"),value:h,onChange:e=>t({excerptLength:e}),min:10,max:100})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author name"),checked:p,onChange:e=>t({displayAuthor:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,pt.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post date"),checked:d,onChange:e=>t({displayPostDate:e})})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,pt.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})})}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"thumbnail"!==x||null!==b||null!==f,label:(0,pt.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalImageSizeControl,{onChange:e=>{const o={};e.hasOwnProperty("width")&&(o.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(o.featuredImageSizeHeight=e.height),t(o)},slug:x,width:b,height:f,imageWidth:k,imageHeight:w,imageSizeOptions:B,imageSizeHelp:(0,pt.__)("Select the size of the source image."),onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:(0,pt.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image alignment"),value:_||"none",onChange:e=>t({featuredImageAlign:"none"!==e?e:void 0}),children:Pm.map((({value:e,icon:t,label:o})=>(0,it.jsx)(mt.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:o},e)))})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Add link to featured image"),checked:y,onChange:e=>t({addLinkToFeaturedImage:e})})})]})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==r||"date"!==a||5!==n||i?.length>0||!!s,label:(0,pt.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.QueryControls,{order:r,orderBy:a,numberOfItems:n,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:T,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!T[e])))return;const o=e.map((e=>"string"==typeof e?T[e]:e));if(o.includes(null))return!1;t({categories:o})},selectedCategories:i,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:j??[],selectedAuthorId:s})}),"grid"===m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>3!==g,label:(0,pt.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:g,onChange:e=>t({columns:e}),min:2,max:o?Math.min(6,o):6,required:!0})})]})]})}const{name:Dm}=ym,Mm={icon:fm,example:{},edit:function e({attributes:t,setAttributes:o}){const n=(0,xt.useInstanceId)(e),{postsToShow:r,order:a,orderBy:i,categories:s,selectedAuthor:l,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:d,displayPostDate:p,displayAuthor:m,postLayout:g,columns:h,excerptLength:_,featuredImageAlign:x,featuredImageSizeSlug:b,featuredImageSizeWidth:f,featuredImageSizeHeight:y,addLinkToFeaturedImage:v}=t,{latestPosts:k}=(0,lt.useSelect)((e=>{const{getEntityRecords:t}=e(_t.store),o=s&&s.length>0?s.map((e=>e.id)):[];return{latestPosts:t("postType","post",Object.fromEntries(Object.entries({categories:o,author:l,order:a,orderby:i,per_page:r,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter((([,e])=>void 0!==e))))}}),[r,a,i,s,l]),{createWarningNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{e.preventDefault(),w((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${n}`,type:"snackbar"})},j=!!k?.length,S=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Im,{attributes:t,setAttributes:o,postCount:k?.length??0})}),B=(0,ct.useBlockProps)({className:Dt({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":p,"has-author":m,[`columns-${h}`]:"grid"===g})});if(!j)return(0,it.jsxs)("div",{...B,children:[S,(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Latest Posts"),children:Array.isArray(k)?(0,pt.__)("No posts found."):(0,it.jsx)(mt.Spinner,{})})]});const T=k.length>r?k.slice(0,r):k,N=[{icon:Bm,title:(0,pt._x)("List view","Latest posts block display setting"),onClick:()=>o({postLayout:"list"}),isActive:"list"===g},{icon:qd,title:(0,pt._x)("Grid view","Latest posts block display setting"),onClick:()=>o({postLayout:"grid"}),isActive:"grid"===g}],P=(0,ja.getSettings)().formats.date;return(0,it.jsxs)(it.Fragment,{children:[S,(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:N})}),(0,it.jsx)("ul",{...B,children:T.map((e=>{const t=e.title.rendered.trim();let o=e.excerpt.rendered;const n=function(e){return e._embedded?.author?.[0]}(e),r=document.createElement("div");r.innerHTML=o,o=r.textContent||r.innerText||"";const{url:a,alt:i}=function(e,t){const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:o?.media_details?.sizes?.[t]?.source_url??o?.source_url,alt:o?.alt_text}}(e,b),s=Dt({"wp-block-latest-posts__featured-image":!0,[`align${x}`]:!!x}),l=c&&a,g=l&&(0,it.jsx)("img",{src:a,alt:i,style:{maxWidth:f,maxHeight:y}}),h=_<o.trim().split(" ").length&&""===e.excerpt.raw?(0,it.jsxs)(it.Fragment,{children:[o.trim().split(" ",_).join(" "),(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,pt.__)("(no title)")),{a:(0,it.jsx)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:C}),span:(0,it.jsx)("span",{className:"screen-reader-text"})})]}):o;return(0,it.jsxs)("li",{children:[l&&(0,it.jsx)("div",{className:s,children:v?(0,it.jsx)("a",{href:e.link,onClick:C,children:g}):g}),(0,it.jsx)("a",{className:"wp-block-latest-posts__post-title",href:e.link,dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:C,children:t?null:(0,pt.__)("(no title)")}),m&&n&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,pt.sprintf)((0,pt.__)("by %s"),n.name)}),p&&e.date_gmt&&(0,it.jsx)("time",{dateTime:(0,ja.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,ja.dateI18n)(P,e.date_gmt)}),d&&"excerpt"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:h}),d&&"full_post"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}})]},e.id)}))})]})},deprecated:km},zm=()=>jt({name:Dm,metadata:ym,settings:Mm}),Am={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Lm(e){const{values:t,start:o,reversed:n,ordered:r,type:a,...i}=e,s=document.createElement(r?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),n&&s.setAttribute("reversed",!0),a&&s.setAttribute("type",a);const[l]=(0,st.rawHandler)({HTML:s.outerHTML});return[{...i,...l.attributes},l.innerBlocks]}const Hm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},Rm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Lm},Vm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({type:o,reversed:n,start:r}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},migrate:function(e){const{type:t}=e;return t&&Am[t]?{...e,type:Am[t]}:e}},Fm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var Em=[Fm,Vm,Rm,Hm],Om=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Gm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),$m=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Um=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Zm=window.wp.deprecated;var Jm=r.n(Zm);const Qm=[{label:(0,pt.__)("Numbers"),value:"decimal"},{label:(0,pt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,pt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,pt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,pt.__)("Lowercase Roman numerals"),value:"lower-roman"}];var Km=({setAttributes:e,reversed:t,start:o,type:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:gt.Platform.isNative?(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n,onChange:t=>e({type:t})}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})]}):(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("List style"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>e({type:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n||"decimal",onChange:t=>e({type:t})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({start:void 0}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})})]})})};var Ym=(0,gt.forwardRef)((function(e,t){const{ordered:o,...n}=e,r=o?"ol":"ul";return(0,it.jsx)(r,{ref:t,...n})}));const Xm={name:"core/list-item"},eg=[["core/list-item"]];function tg({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:n,getBlockAttributes:r,getBlock:a}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const i=n(e),s=r(i),l=(0,st.createBlock)("core/list-item",s),{innerBlocks:c}=a(e);t([i],[l,...c]),o(c[c.length-1].clientId)}),[e])}(e),o=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o,getBlockName:n}=t(ct.store);return"core/list-item"===n(o(e))}),[e]);return(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),description:(0,pt.__)("Outdent list item"),disabled:!o,onClick:t})})}const og=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list","title":"List","category":"text","allowedBlocks":["core/list-item"],"description":"An organized collection of items displayed in a specific order.","keywords":["bullet list","ordered list","numbered list"],"textdomain":"default","attributes":{"ordered":{"type":"boolean","default":false,"role":"content"},"values":{"type":"string","source":"html","selector":"ol,ul","multiline":"li","default":"","role":"content"},"type":{"type":"string"},"start":{"type":"number"},"reversed":{"type":"boolean"},"placeholder":{"type":"string"}},"supports":{"anchor":true,"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__unstablePasteTextInline":true,"__experimentalOnMerge":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-list:not(.wp-block-list .wp-block-list)"},"editorStyle":"wp-block-list-editor","style":"wp-block-list"}');function ng({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function rg(e){return e.flatMap((({name:e,attributes:t,innerBlocks:o=[]})=>"core/list-item"===e?[t.content,...rg(o)]:rg(o)))}const ag={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,st.createBlock)("core/list-item",{content:e})));else if(1===e.length){const o=(0,Tn.create)({html:e[0].content});t=(0,Tn.split)(o,"\n").map((e=>(0,st.createBlock)("core/list-item",{content:(0,Tn.toHTMLString)({value:e})})))}return(0,st.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ng(e).ol,ul:ng(e).ul}),transform:function e(t){const o=t.getAttribute("type"),n={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:o&&Am[o]?Am[o]:void 0},r=Array.from(t.children).map((t=>{const o=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));o.reverse();const[n,...r]=o;if(!("UL"===n?.tagName||"OL"===n?.tagName))return(0,st.createBlock)("core/list-item",{content:t.innerHTML});const a=r.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));a.reverse();const i={content:a.join("").trim()},s=[e(n)];return(0,st.createBlock)("core/list-item",i,s)}));return(0,st.createBlock)("core/list",n,r)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{},[(0,st.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{ordered:!0},[(0,st.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>rg(o).map((t=>(0,st.createBlock)(e,{content:t})))})))]};var ig=ag;const{name:sg}=og,lg={icon:Bm,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,pt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Queen of Hearts.")}}]},transforms:ig,edit:function({attributes:e,setAttributes:t,clientId:o,style:n}){const{ordered:r,type:a,reversed:i,start:s}=e,l=(0,ct.useBlockProps)({style:{...gt.Platform.isNative&&n,listStyleType:r&&"decimal"!==a?a:void 0}}),c=(0,ct.useInnerBlocksProps)(l,{defaultBlock:Xm,directInsert:!0,template:eg,templateLock:!1,templateInsertUpdatesSelection:!0,...gt.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.values)return;const[a,i]=Lm(e);Jm()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.values])}(e,o);const u=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),isActive:!1===r,onClick:()=>{t({ordered:!1})}}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),isActive:!0===r,onClick:()=>{t({ordered:!0})}}),(0,it.jsx)(tg,{clientId:o})]});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ym,{ordered:r,reversed:i,start:s,...c}),u,r&&(0,it.jsx)(Km,{setAttributes:t,reversed:i,start:s,type:a})]})},save:function({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:Em},cg=()=>jt({name:sg,metadata:og,settings:lg});var ug=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});const dg=window.wp.a11y,{Badge:pg}=jo(mt.privateApis);const mg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/math","title":"Math","category":"text","description":"Display mathematical notation using LaTeX.","keywords":["equation","formula","latex","mathematics"],"textdomain":"default","supports":{"html":false},"attributes":{"latex":{"type":"string","role":"content"},"mathML":{"type":"string","source":"html","selector":"math"}}}');const gg={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("math",{...ct.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:o}}):null}};var hg=[gg];const{name:_g}=mg,xg={icon:ug,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">−</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:function({attributes:e,setAttributes:t,isSelected:o}){const{latex:n,mathML:a}=e,[i,s]=(0,gt.useState)(),[l,c]=(0,gt.useState)(null),[u,d]=(0,gt.useState)(),p=(0,gt.useRef)(n),{__unstableMarkNextChangeAsNotPersistent:m}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{Promise.resolve().then(r.t.bind(r,3533,23)).then((e=>{d((()=>e.default)),p.current&&(m(),t({mathML:e.default(p.current,{displayMode:!0})}))}))}),[p,t,m]);const g=(0,ct.useBlockProps)({ref:s,position:"relative"});return(0,it.jsxs)("div",{...g,children:[a?(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:a}}):"",o&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,it.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:1,children:[(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:n,className:"wp-block-math__textarea-control",onChange:e=>{if(!u)return void t({latex:e});let o="";try{o=u(e,{displayMode:!0}),c(null)}catch(e){c(e.message),(0,dg.speak)(e.message)}t({mathML:o,latex:e})},placeholder:(0,pt.__)("e.g., x^2, \\frac{a}{b}")}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(pg,{intent:"error",className:"wp-block-math__error",children:l}),(0,it.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})},save:function({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:o}})}):null},deprecated:hg},bg=()=>jt({name:_g,metadata:mg,settings:xg});var fg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const yg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list-item","title":"List Item","category":"text","parent":["core/list"],"allowedBlocks":["core/list"],"description":"An individual item within a list.","textdomain":"default","attributes":{"placeholder":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"li","role":"content"}},"supports":{"anchor":true,"className":false,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"background":true,"__experimentalDefaultControls":{"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-list > li","border":".wp-block-list:not(.wp-block-list .wp-block-list) > li"}}');var vg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),kg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 wg(e){const{replaceBlocks:t,selectionChange:o,multiSelect:n}=(0,lt.useDispatch)(ct.store),{getBlock:r,getPreviousBlockClientId:a,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const u=l(),d=u?c():[e],p=d.map((e=>(0,st.cloneBlock)(r(e)))),m=a(e),g=(0,st.cloneBlock)(r(m));g.innerBlocks?.length||(g.innerBlocks=[(0,st.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();return t([m,...d],[g]),u?n(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset),!0}),[e])}function Cg(){const e=(0,lt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:n,updateBlockListSettings:r}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:a,getBlockName:i,getBlockOrder:s,getBlockIndex:l,getSelectedBlockClientIds:c,getBlock:u,getBlockListSettings:d}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const m=p[0];if("core/list-item"!==i(m))return;const g=function(e){const t=a(e),o=a(t);if(o&&"core/list-item"===i(o))return o}(m);if(!g)return;const h=a(m),_=p[p.length-1],x=s(h).slice(l(_)+1);return e.batch((()=>{if(x.length){let e=s(m)[0];if(!e){const t=(0,st.cloneBlock)(u(h),{},[]);e=t.clientId,n(t,0,m,!1),r(e,d(h))}t(x,h,e)}if(t(p,h,a(g),l(g)+1),!s(h).length){o(h,!1)}})),!0}),[])}function jg(e,t){const o=(0,lt.useRegistry)(),{getPreviousBlockClientId:n,getNextBlockClientId:r,getBlockOrder:a,getBlockRootClientId:i,getBlockName:s}=(0,lt.useSelect)(ct.store),{mergeBlocks:l,moveBlocksToPosition:c}=(0,lt.useDispatch)(ct.store),u=Cg();function d(e){const t=a(e);return t.length?d(t[t.length-1]):e}function p(e){const t=i(e),o=i(t);if(o&&"core/list-item"===s(o))return o}function m(e){const t=r(e);if(t)return t;const o=p(e);return o?m(o):void 0}function g(e){const t=a(e);return t.length?a(t[0])[0]:m(e)}return r=>{function s(e,t){o.batch((()=>{const[o]=a(t);o&&(n(t)!==e||a(e).length?c(a(o),o,i(e)):c([o],t,e)),l(e,t)}))}if(r){const o=g(e);if(!o)return void t(r);p(o)?u(o):s(e,o)}else{const o=n(e);if(p(e))u(e);else if(o){s(d(o),e)}else t(r)}}}function Sg({clientId:e}){const t=wg(e),o=Cg(),{canIndent:n,canOutdent:r}=(0,lt.useSelect)((t=>{const{getBlockIndex:o,getBlockRootClientId:n,getBlockName:r}=t(ct.store);return{canIndent:o(e)>0,canOutdent:"core/list-item"===r(n(n(e)))}}),[e]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),shortcut:mn.displayShortcut.shift("Tab"),description:(0,pt.__)("Outdent list item"),disabled:!r,onClick:()=>o()}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?vg:kg,title:(0,pt.__)("Indent"),shortcut:"Tab",description:(0,pt.__)("Indent list item"),disabled:!n,onClick:()=>t()})]})}const Bg={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,st.createBlock)("core/paragraph",e),...t.map((e=>(0,st.cloneBlock)(e)))]}]};var Tg=Bg;const{name:Ng}=yg,Pg={icon:fg,edit:function({attributes:e,setAttributes:t,clientId:o,mergeBlocks:n}){const{placeholder:r,content:a}=e,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{renderAppender:!1,__unstableDisableDropZone:!0}),l=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a,getBlockName:i}=(0,lt.useSelect)(ct.store),s=(0,gt.useRef)(e);s.current=e;const l=Cg();return(0,xt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:c,clientId:u}=s.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===i(r(r(s.current.clientId))))return void l();const d=n(r(u)),p=a(u),m=(0,st.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,p)}),g=(0,st.createBlock)((0,st.getDefaultBlockName)()),h=[...d.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...d.innerBlocks.slice(p+1)],_=h.length?[(0,st.cloneBlock)({...d,innerBlocks:h})]:[];t(d.clientId,[m,g,..._],1),o(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:a,clientId:o}),c=function(e){const{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:n}=(0,lt.useSelect)(ct.store),r=wg(e),a=Cg();return(0,xt.useRefEffect)((i=>{function s(i){const{keyCode:s,shiftKey:l,altKey:c,metaKey:u,ctrlKey:d}=i;if(i.defaultPrevented||s!==mn.SPACE&&s!==mn.TAB||c||u||d)return;const p=t(),m=o();0===p.offset&&0===m.offset&&(l?s===mn.TAB&&a()&&i.preventDefault():0!==n(e)&&r()&&i.preventDefault())}return i.addEventListener("keydown",s),()=>{i.removeEventListener("keydown",s)}}),[e,r])}(o),u=jg(o,n);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("li",{...s,children:[(0,it.jsx)(ct.RichText,{ref:(0,xt.useMergeRefs)([l,c]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:a,"aria-label":(0,pt.__)("List text"),placeholder:r||(0,pt.__)("List"),onMerge:u}),s.children]}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(Sg,{clientId:o})})]})},save:function({attributes:e}){return(0,it.jsxs)("li",{...ct.useBlockProps.save(),children:[(0,it.jsx)(ct.RichText.Content,{value:e.content}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:Tg,[jo(ct.privateApis).requiresWrapperOnCopy]:!0},Ig=()=>jt({name:Ng,metadata:yg,settings:Pg});var Dg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Mg=JSON.parse('{"$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":false},"redirectToCurrent":{"type":"boolean","default":true}},"example":{"viewportWidth":350},"supports":{"className":true,"color":{"background":true,"text":false,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-loginout"}'),{name:zg}=Mg,Ag={icon:Dg,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:o,redirectToCurrent:n}=e,r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:"logged-in"}),children:(0,it.jsx)("a",{href:"#login-pseudo-link",children:(0,pt.__)("Log out")})})]})}},Lg=()=>jt({name:zg,metadata:Mg,settings:Ag});var Hg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});const Rg="full",Vg=[["core/paragraph",{placeholder:(0,pt._x)("Content…","content placeholder")}]],Fg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Eg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{},Og=50,Gg=()=>{},$g=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...n}=e;return{...n,style:t}},Ug=e=>e.align?e:{...e,align:"wide"},qg={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:!1}},Wg={...qg,isStackedOnMobile:{type:"boolean",default:!0},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"}},Zg={...Wg,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},Jg={...Zg,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},Qg={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Kg={...Qg,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}}},Yg={attributes:Jg,supports:{...Kg,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},usesContext:["postId","postType"],save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Rg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null}):null;p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Eg(a,u):{};let k;i!==Og&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},Xg={attributes:Zg,supports:Kg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Rg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Eg(a,u):{};let k;i!==Og&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug,isEligible(e,t,{block:o}){const{attributes:n}=o;return void 0===e.align&&!!n.className?.includes("alignwide")}},eh={attributes:Wg,supports:Qg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Rg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Og&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug},th={attributes:Wg,supports:Qg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Rg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Og&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Gg)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug},oh={attributes:{...qg,isStackedOnMobile:{type:"boolean",default:!0},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,xt.compose)($g,Ug),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p,linkClass:m,href:g,linkTarget:h,rel:_}=e,x=_||void 0;let b=(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null});g&&(b=(0,it.jsx)("a",{className:m,href:g,target:h,rel:x,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:s})},y=(0,ct.getColorClassName)("background-color",t),v=Dt({"has-media-on-the-right":"right"===a,"has-background":y||o,[y]:y,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),k=d?Fg(s,p):{};let w;l!==Og&&(w="right"===a?`auto ${l}%`:`${l}% auto`);const C={backgroundColor:y?void 0:o,gridTemplateColumns:w};return(0,it.jsxs)("div",{className:v,style:C,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(f[i]||Gg)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},nh={attributes:{...qg,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,xt.compose)($g,Ug),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p}=e,m={image:()=>(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},g=(0,ct.getColorClassName)("background-color",t),h=Dt({"has-media-on-the-right":"right"===a,[g]:g,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),_=d?Fg(s,p):{};let x;l!==Og&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const b={backgroundColor:g?void 0:o,gridTemplateColumns:x};return(0,it.jsxs)("div",{className:h,style:b,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:_,children:(m[i]||Gg)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},rh={attributes:{...qg,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Ug,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l}=e,c={image:()=>(0,it.jsx)("img",{src:s,alt:r}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},u=(0,ct.getColorClassName)("background-color",t),d=Dt({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let p;l!==Og&&(p="right"===a?`auto ${l}%`:`${l}% auto`);const m={backgroundColor:u?void 0:o,gridTemplateColumns:p};return(0,it.jsxs)("div",{className:d,style:m,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(c[i]||Gg)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}};var ah=[Yg,Xg,eh,th,oh,nh,rh],ih=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),sh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),lh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,it.jsx)(St.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"})]});function ch(e,t){return e?{objectPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const uh=["image","video"],dh=()=>{},ph=(0,gt.forwardRef)((({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=(0,xt.useViewportMatch)("small","<");return(0,it.jsx)(mt.ResizableBox,{ref:n,showHandle:e&&(!r||!t),...o})}));function mh({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n,useFeaturedImage:r}){return(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:uh,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:r,onReset:()=>o(void 0)})})}function gh({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n}){const{createErrorNotice:r}=(0,lt.useDispatch)(bo.store);return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:lh}),labels:{title:(0,pt.__)("Media area")},className:e,onSelect:o,accept:"image/*,video/*",onToggleFeaturedImage:n,allowedTypes:uh,onError:e=>{r(e,{type:"snackbar"})},disableMediaButtons:t})}var hh=(0,gt.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:i,isStackedOnMobile:s,mediaAlt:l,mediaId:c,mediaPosition:u,mediaType:d,mediaUrl:p,mediaWidth:m,onSelectMedia:g,onWidthChange:h,enableResize:_,toggleUseFeaturedImage:x,useFeaturedImage:b,featuredImageURL:f,featuredImageAlt:y,refMedia:v}=e,k=!c&&(0,ht.isBlobURL)(p),{toggleSelection:w}=(0,lt.useDispatch)(ct.store);if(p||f||b){const C=()=>{w(!1)},j=(e,t,o)=>{h(parseInt(o.style.width))},S=(e,t,o)=>{w(!0),n(parseInt(o.style.width))},B={right:_&&"left"===u,left:_&&"right"===u},T="image"===d&&a?ch(p||f,r):{},N={image:()=>b&&f?(0,it.jsx)("img",{ref:v,src:f,alt:y,style:T}):p&&(0,it.jsx)("img",{ref:v,src:p,alt:l,style:T}),video:()=>(0,it.jsx)("video",{controls:!0,ref:v,src:p})};return(0,it.jsxs)(ph,{as:"figure",className:Dt(o,"editor-media-container__resizer",{"is-transient":k}),size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:B,onResizeStart:C,onResize:j,onResizeStop:S,axis:"x",isSelected:i,isStackedOnMobile:s,ref:t,children:[(0,it.jsx)(mh,{onSelectMedia:g,mediaUrl:b&&f?f:p,mediaId:c,toggleUseFeaturedImage:x,useFeaturedImage:b}),(N[d]||dh)(),k&&(0,it.jsx)(mt.Spinner,{}),!b&&(0,it.jsx)(gh,{...e}),!f&&b&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-media-text--placeholder-image",style:T,withIllustration:!0})]})}return(0,it.jsx)(gh,{...e})}));const{ResolutionTool:_h}=jo(ct.privateApis),xh=e=>Math.max(15,Math.min(e,85));function bh(e,t){return e?.media_details?.sizes?.[t]?.source_url}function fh({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>bh(e,t))).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(_h,{value:t,defaultValue:Rg,options:r,onChange:o})}var yh=function({attributes:e,isSelected:t,setAttributes:o,context:{postId:n,postType:r}}){const{focalPoint:a,href:i,imageFill:s,isStackedOnMobile:l,linkClass:c,linkDestination:u,linkTarget:d,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,mediaSizeSlug:b,rel:f,verticalAlignment:y,allowedBlocks:v,useFeaturedImage:k}=e,[w]=(0,_t.useEntityProp)("postType",r,"featured_media",n),{featuredImageMedia:C}=(0,lt.useSelect)((e=>({featuredImageMedia:w&&k?e(_t.store).getEntityRecord("postType","attachment",w,{context:"view"}):void 0})),[w,k]),{image:j}=(0,lt.useSelect)((e=>({image:m&&t?e(_t.store).getEntityRecord("postType","attachment",m,{context:"view"}):null})),[t,m]),S=k?C?.source_url:"",B=k?C?.alt_text:"",T=(0,gt.useRef)(),N=e=>{const{style:t}=T.current,{x:o,y:n}=e;t.objectPosition=`${100*o}% ${100*n}%`},[P,I]=(0,gt.useState)(null),D=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{if(!n||!n.url)return void o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});let r,a;(0,ht.isBlobURL)(n.url)&&(n.type=(0,ht.getBlobTypeByURL)(n.url)),r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r&&(a=n.sizes?.large?.url||n.media_details?.sizes?.large?.source_url);let i=t;"media"===e&&(i=n.url),"attachment"===e&&(i=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:i,focalPoint:void 0,useFeaturedImage:!1})}}({attributes:e,setAttributes:o}),M=e=>{o({mediaWidth:xh(e)}),I(null)},z=Dt({"has-media-on-the-right":"right"===g,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${y}`]:y,"is-image-fill-element":s}),A=`${P||x}%`,L="right"===g?`1fr ${A}`:`${A} 1fr`,H={gridTemplateColumns:L,msGridColumns:L},R=e=>{const t=bh(j,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},V=vt(),F=(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),R(Rg)},dropdownMenuProps:V,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media width"),isShownByDefault:!0,hasValue:()=>50!==x,onDeselect:()=>o({mediaWidth:50}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Media width"),value:P||x,onChange:M,min:15,max:85})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:l,onChange:()=>o({isStackedOnMobile:!l})})}),"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(_||S)&&"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>o({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k&&S?S:_,value:a,onChange:e=>o({focalPoint:e}),onDragStart:N,onDrag:N})}),"image"===h&&_&&!k&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>o({mediaAlt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:p,onChange:e=>{o({mediaAlt:e})},help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),"image"===h&&!k&&(0,it.jsx)(fh,{image:j,value:b,onChange:R})]}),E=(0,ct.useBlockProps)({className:z,style:H}),O=(0,ct.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Vg,allowedBlocks:v}),G=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:F}),(0,it.jsxs)(ct.BlockControls,{group:"block",children:["default"===G&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:y}),(0,it.jsx)(mt.ToolbarButton,{icon:ih,title:(0,pt.__)("Show media on left"),isActive:"left"===g,onClick:()=>o({mediaPosition:"left"})}),(0,it.jsx)(mt.ToolbarButton,{icon:sh,title:(0,pt.__)("Show media on right"),isActive:"right"===g,onClick:()=>o({mediaPosition:"right"})})]}),"image"===h&&!k&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:i||"",onChangeUrl:e=>{o(e)},linkDestination:u,mediaType:h,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:d,linkClass:c,rel:f})]}),(0,it.jsxs)("div",{...E,children:["right"===g&&(0,it.jsx)("div",{...O}),(0,it.jsx)(hh,{className:"wp-block-media-text__media",onSelectMedia:D,onWidthChange:e=>{I(xh(e))},commitWidthChange:M,refMedia:T,enableResize:"default"===G,toggleUseFeaturedImage:()=>{o({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!k})},focalPoint:a,imageFill:s,isSelected:t,isStackedOnMobile:l,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,useFeaturedImage:k,featuredImageURL:S,featuredImageAlt:B}),"right"!==g&&(0,it.jsx)("div",{...O})]})]})};const vh=JSON.parse('{"$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":"","role":"content"},"mediaPosition":{"type":"string","default":"left"},"mediaId":{"type":"number","role":"content"},"mediaUrl":{"type":"string","source":"attribute","selector":"figure video,figure img","attribute":"src","role":"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","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure a","attribute":"class"},"mediaType":{"type":"string","role":"content"},"mediaWidth":{"type":"number","default":50},"mediaSizeSlug":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"verticalAlignment":{"type":"string"},"imageFill":{"type":"boolean"},"focalPoint":{"type":"object"},"useFeaturedImage":{"type":"boolean","default":false}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-media-text-editor","style":"wp-block-media-text"}'),kh=()=>{};const wh={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>(0,st.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,st.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:n,customGradient:r,customOverlayColor:a,gradient:i,id:s,overlayColor:l,style:c,textColor:u,url:d,useFeaturedImage:p},m)=>{let g={};return r?g={style:{color:{gradient:r}}}:a&&(g={style:{color:{background:a}}}),c?.color?.text&&(g.style={color:{...g.style?.color,text:c.color.text}}),(0,st.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:l,gradient:i,mediaAlt:t,mediaId:s,mediaType:n,mediaUrl:d,textColor:u,useFeaturedImage:p,...g},m)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>(0,st.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,st.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:n,gradient:r,mediaAlt:a,mediaId:i,mediaType:s,mediaUrl:l,style:c,textColor:u,useFeaturedImage:d},p)=>{const m={};c?.color?.gradient?m.customGradient=c.color.gradient:c?.color?.background&&(m.customOverlayColor=c.color.background),c?.color?.text&&(m.style={color:{text:c.color.text}});const g={align:e,alt:a,anchor:t,backgroundType:s,dimRatio:l||d?50:100,focalPoint:n,gradient:r,id:i,overlayColor:o,textColor:u,url:l,useFeaturedImage:d,...m};return(0,st.createBlock)("core/cover",g,p)}}]};var Ch=wh;const{name:jh}=vh,Sh={icon:Hg,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,pt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ch,edit:yh,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Rg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r}),b=c?ch(a,u):{};let f=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null,style:b}):null;p&&(f=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:f}));const y={image:()=>f,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},v=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill-element":c});let k;50!==i&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||kh)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||kh)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},deprecated:ah},Bh=()=>jt({name:jh,metadata:vh,settings:Sh});const Th=JSON.parse('{"$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":"raw"}},"supports":{"className":false,"customClassName":false,"inserter":false,"html":false,"lock":false,"reusable":false,"renaming":false,"visibility":false,"interactivity":{"clientNavigation":true}}}');const{name:Nh}=Th,Ph={name:Nh,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?(0,st.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:function({attributes:e,clientId:t}){const{originalName:o,originalUndelimitedContent:n}=e,r=!!n,{hasFreeformBlock:a,hasHTMLBlock:i}=(0,lt.useSelect)((e=>{const{canInsertBlockType:o,getBlockRootClientId:n}=e(ct.store);return{hasFreeformBlock:o("core/freeform",n(t)),hasHTMLBlock:o("core/html",n(t))}}),[t]),{replaceBlock:s}=(0,lt.useDispatch)(ct.store),l=[];let c;const u=(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:function(){s(t,(0,st.createBlock)("core/html",{content:n}))},variant:"primary",children:(0,pt.__)("Keep as HTML")},"convert");return!r||a||o?r&&i?(c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),o),l.push(u)):c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is or remove it.'),o):i?(c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),l.push(u)):c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,it.jsxs)("div",{...(0,ct.useBlockProps)({className:"has-warning"}),children:[(0,it.jsx)(ct.Warning,{actions:l,children:c}),(0,it.jsx)(gt.RawHTML,{children:(0,lu.safeHTML)(n)})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.originalContent})}},Ih=()=>jt({name:Nh,metadata:Th,settings:Ph});var Dh=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});const Mh=(0,pt.__)("Read more");const zh=JSON.parse('{"$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","default":"","role":"content"},"noTeaser":{"type":"boolean","default":false}},"supports":{"customClassName":false,"className":false,"html":false,"multiple":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-more-editor"}');var Ah={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),(0,st.createBlock)("core/more",n)}}]};const{name:Lh}=zh,Hh={icon:Dh,example:{},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;return"list-view"===t&&o?o:"accessibility"===t?e.customText:void 0},transforms:Ah,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({noTeaser:!1})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>n({noTeaser:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?(0,pt.__)("The excerpt is hidden."):(0,pt.__)("The excerpt is visible.")})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)('"Read more" text'),value:e,placeholder:Mh,onChange:e=>n({customText:e}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})})]})},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return(0,it.jsx)(gt.RawHTML,{children:[o,n].filter(Boolean).join("\n")})}},Rh=()=>jt({name:Lh,metadata:zh,settings:Hh});var Vh=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Fh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation","title":"Navigation","category":"theme","allowedBlocks":["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","core/buttons"],"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":true},"openSubmenusOnClick":{"type":"boolean","default":false},"overlayMenu":{"type":"string","default":"mobile"},"icon":{"type":"string","default":"handle"},"hasIcon":{"type":"boolean","default":true},"__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",false]}},"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"],"ariaLabel":true,"html":false,"inserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalTextTransform":true,"__experimentalFontFamily":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalSkipSerialization":["textDecoration"],"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"blockGap":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"allowSizingOnChildren":true,"default":{"type":"flex"}},"interactivity":true,"renaming":false,"contentRole":true},"editorStyle":"wp-block-navigation-editor","style":"wp-block-navigation"}');var Eh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),Oh=(0,gt.forwardRef)((({icon:e,size:t=24,...o},n)=>(0,gt.cloneElement)(e,{width:t,height:t,...o,ref:n}))),Gh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});const $h={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},Uh=["core/navigation-link/page","core/navigation-link"],qh={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Wh=["postType","wp_navigation",qh];function Zh(e){const t=(0,_t.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r}=(0,lt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:o,getEditedEntityRecord:n,hasFinishedResolution:r}=e(_t.store),a=["postType","wp_navigation",t],i=o(...a),s=n(...a),l=r("getEditedEntityRecord",a),c="publish"===s.status||"draft"===s.status;return{isNavigationMenuResolved:l,isNavigationMenuMissing:l&&(!i||!c),navigationMenu:c?s:null}}(t,e)),[e]),{canCreate:a,canUpdate:i,canDelete:s,isResolving:l,hasResolved:c}=t,{records:u,isResolving:d,hasResolved:p}=(0,_t.useEntityRecords)("postType","wp_navigation",qh);return{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r,navigationMenus:u,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?u?.length>1:u?.length>0,canUserCreateNavigationMenus:a,isResolvingCanUserCreateNavigationMenus:l,hasResolvedCanUserCreateNavigationMenus:c,canUserUpdateNavigationMenu:i,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Jh(e){const{records:t,isResolving:o,hasResolved:n}=(0,_t.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:r,isResolving:a,hasResolved:i}=(0,_t.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:l}=(0,_t.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:r,isResolvingPages:a,hasResolvedPages:i,hasPages:!(!i||!r?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:n,hasMenus:!(!n||!t?.length),menuItems:s,hasResolvedMenuItems:l}}var Qh=({isVisible:e=!0})=>(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Vh}),(0,pt.__)("Navigation")]})}),Kh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Yh=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:n,actionLabel:r,createNavigationMenuIsSuccess:a,createNavigationMenuIsError:i}){const s=(0,pt.__)("Create from '%s'"),[l,c]=(0,gt.useState)(!1);r=r||s;const{menus:u}=Jh(),{navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:_}=Zh(e),[x]=(0,_t.useEntityProp)("postType","wp_navigation","title"),b=(0,gt.useMemo)((()=>d?.map((({id:e,title:t,status:o},n)=>{const a=function(e,t,o){return e?"publish"===o?(0,ao.decodeEntities)(e):(0,pt.sprintf)((0,pt.__)("%1$s (%2$s)"),(0,ao.decodeEntities)(e),o):(0,pt.sprintf)((0,pt.__)("(no title %s)"),t)}(t?.rendered,n+1,o);return{value:e,label:a,ariaLabel:(0,pt.sprintf)(r,a),disabled:l||p||!m}}))||[]),[d,r,p,m,l]),f=!!d?.length,y=!!u?.length,v=!!h,k=!!g,w=f&&!e,C=!f&&m,j=m&&null===e,S=e&&_;let B="";return B=p?(0,pt.__)("Loading…"):w||C||j||S?(0,pt.__)("Choose or create a Navigation Menu"):x,(0,gt.useEffect)((()=>{l&&(a||i)&&c(!1)}),[m,a,g,i,l,j,C,w]),(0,it.jsx)(mt.DropdownMenu,{label:B,icon:Kh,toggleProps:{size:"small"},children:({onClose:r})=>(0,it.jsxs)(it.Fragment,{children:[v&&f&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Menus"),children:(0,it.jsx)(mt.MenuItemsChoice,{value:e,onSelect:e=>{t(e),r()},choices:b})}),k&&y&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Import Classic Menus"),children:u?.map((e=>{const t=(0,ao.decodeEntities)(e.name);return(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await o(e),c(!1),r()},"aria-label":(0,pt.sprintf)(s,t),disabled:l||p||!m,children:t},e.id)}))}),g&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Tools"),children:(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await n(),c(!1),r()},disabled:l||p||!m,children:(0,pt.__)("Create new Menu")})})]})})};function Xh({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:n=!1,isResolvingCanUserCreateNavigationMenus:r,onSelectNavigationMenu:a,onSelectClassicMenu:i,onCreateEmpty:s}){const{isResolvingMenus:l,hasResolvedMenus:c}=Jh();(0,gt.useEffect)((()=>{e&&(l&&(0,dg.speak)((0,pt.__)("Loading navigation block setup options…")),c&&(0,dg.speak)((0,pt.__)("Navigation block setup options ready.")))}),[c,l,e]);const u=l&&r;return(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(mt.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,it.jsx)(Qh,{isVisible:!e}),(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Vh})," ",(0,pt.__)("Navigation")]}),(0,it.jsx)("hr",{}),u&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Yh,{currentMenuId:t,clientId:o,onSelectNavigationMenu:a,onSelectClassicMenu:i}),(0,it.jsx)("hr",{}),n&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,pt.__)("Start empty")})]})})]})})}var e_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});function t_({icon:e}){return"menu"===e?(0,it.jsx)(Oh,{icon:e_}):(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,it.jsx)(St.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,it.jsx)(St.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function o_({children:e,id:t,isOpen:o,isResponsive:n,onToggle:r,isHiddenByDefault:a,overlayBackgroundColor:i,overlayTextColor:s,hasIcon:l,icon:c}){if(!n)return e;const u=Dt("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i?.class,[(0,ct.getColorClassName)("background-color",i?.slug)]:!!i?.slug,"is-menu-open":o,"hidden-by-default":a}),d={color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color&&i.color},p=Dt("wp-block-navigation__responsive-container-open",{"always-shown":a}),m=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,pt.__)("Menu")}};return(0,it.jsxs)(it.Fragment,{children:[!o&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":l&&(0,pt.__)("Open menu"),className:p,onClick:()=>r(!0),children:[l&&(0,it.jsx)(t_,{icon:c}),!l&&(0,pt.__)("Menu")]}),(0,it.jsx)("div",{className:u,style:d,id:m,children:(0,it.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,it.jsxs)("div",{...g,children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":l&&(0,pt.__)("Close menu"),onClick:()=>r(!1),children:[l&&(0,it.jsx)(Oh,{icon:Gh}),!l&&(0,pt.__)("Close")]}),(0,it.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${m}-content`,children:e})]})})})]})}function n_({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:n}){const{isImmediateParentOfSelectedBlock:r,selectedBlockHasChildren:a,isSelected:i,hasSelectedDescendant:s}=(0,lt.useSelect)((t=>{const{getBlockCount:o,hasSelectedInnerBlock:n,getSelectedBlockClientId:r}=t(ct.store),a=r();return{isImmediateParentOfSelectedBlock:n(e,!1),selectedBlockHasChildren:!!o(a),hasSelectedDescendant:n(e,!0),isSelected:a===e}}),[e]),[l,c,u]=(0,_t.useEntityBlockEditor)("postType","wp_navigation"),d=i||r&&!a,p=(0,gt.useMemo)((()=>(0,it.jsx)(Qh,{})),[]),m=!t&&!!!l?.length&&!i,g=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:l,onInput:c,onChange:u,prioritizedInserterBlocks:Uh,defaultBlock:$h,directInsert:!0,orientation:o,templateLock:n,renderAppender:!!(i||r&&!a||s||d)&&ct.InnerBlocks.ButtonBlockAppender,placeholder:m?p:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("div",{...g})}function r_(){const[e,t]=(0,_t.useEntityProp)("postType","wp_navigation","title");return(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Menu name"),value:e,onChange:t})}const a_=(e,t,o)=>{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 n in e){if(!t.hasOwnProperty(n))return!1;if(o&&o(n,e))return!0;if(!a_(e[n],t[n],o))return!1}return!0}return!1},i_={};function s_({blocks:e,createNavigationMenu:t,hasSelection:o}){const n=(0,gt.useRef)();(0,gt.useEffect)((()=>{n?.current||(n.current=e)}),[e]);const r=function(e,t){return!a_(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(n?.current,e),a=(0,gt.useContext)(mt.Disabled.Context),i=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!o&&void 0,defaultBlock:$h,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:l}=(0,lt.useSelect)((e=>{if(a)return i_;const{hasFinishedResolution:t,isSavingEntityRecord:o}=e(_t.store);return{isSaving:o("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Wh)}}),[a]);(0,gt.useEffect)((()=>{!a&&!s&&l&&o&&r&&t(null,e)}),[e,t,a,s,l,r,o]);const c=s?mt.Disabled:"div";return(0,it.jsx)(c,{...i})}function l_({onDelete:e}){const[t,o]=(0,gt.useState)(!1),n=(0,_t.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:r}=(0,lt.useDispatch)(_t.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,pt.__)("Delete menu")}),t&&(0,it.jsx)(mt.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{r("postType","wp_navigation",n,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,pt.__)("Delete"),size:"medium",children:(0,pt.__)("Are you sure you want to delete this Navigation Menu?")})]})}var c_=function({name:e,message:t=""}={}){const o=(0,gt.useRef)(),{createWarningNotice:n,removeNotice:r}=(0,lt.useDispatch)(bo.store);return[(0,gt.useCallback)((r=>{o.current||(o.current=e,n(r||t,{id:o.current,type:"snackbar"}))}),[o,n,t,e]),(0,gt.useCallback)((()=>{o.current&&(r(o.current),o.current=null)}),[o,r])]};function u_({setAttributes:e,hasIcon:t,icon:o}){return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon button"),help:(0,pt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon"),isShownByDefault:!0,hasValue:()=>"handle"!==o,onDeselect:()=>e({icon:"handle"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,pt.__)("Icon"),value:o,onChange:t=>e({icon:t}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,pt.__)("handle"),label:(0,it.jsx)(t_,{icon:"handle"})}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,pt.__)("menu"),label:(0,it.jsx)(t_,{icon:"menu"})})]})})]})}function d_(e){if(void 0===e)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if("post-type"!==e&&"taxonomy"!==e)throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:"taxonomy"===e?"core/term-data":"core/post-data",args:{field:"link"}}}}function p_({clientId:e,attributes:t}){const{updateBlockBindings:o}=(0,ct.useBlockBindingsUtils)(e),{metadata:n,id:r,kind:a,type:i}=t,s=(0,ct.useBlockEditingMode)(),l=!!n?.bindings?.url&&!!r,c="post-type"===a?"core/post-data":"core/term-data",u=l&&n?.bindings?.url?.source===c,d=(0,lt.useSelect)((e=>{if(!u||!r)return!1;const t="taxonomy"===a;if(!("post-type"===a)&&!t)return!1;if("disabled"===s)return!0;const{getEntityRecord:o,hasFinishedResolution:n}=e(_t.store),l=t?"taxonomy":"postType",c="tag"===i?"post_tag":i,d=o(l,c,r);return!n("getEntityRecord",[l,c,r])||void 0!==d}),[a,i,r,u,s]),p=(0,gt.useCallback)((()=>{l&&o({url:void 0})}),[o,l,n,r]),m=(0,gt.useCallback)((e=>{const t=e?.kind??a;if(t)try{const e=d_(t);o(e)}catch(e){console.warn("Failed to create entity binding:",e.message)}}),[o,a]);return{hasUrlBinding:u,isBoundEntityAvailable:d,clearBinding:p,createBinding:m}}function m_(e){if(!e)return null;const t=g_(function(e,t="id",o="parent"){const n=Object.create(null),r=[];for(const a of e)n[a[t]]={...a,children:[]},a[o]?(n[a[o]]=n[a[o]]||{},n[a[o]].children=n[a[o]].children||[],n[a[o]].children.push(n[a[t]])):r.push(n[a[t]]);return r}(e));return(0,vl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function g_(e,t=0){let o={};const n=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),r=n.map((e=>{if("block"===e.type){const[t]=(0,st.parse)(e.content.raw);return t||(0,st.createBlock)("core/freeform",{content:e.content})}const n=e.children?.length?"core/navigation-submenu":"core/navigation-link",r=function({title:e,xfn:t,classes:o,attr_title:n,object:r,object_id:a,description:i,url:s,type:l,target:c},u,d){r&&"post_tag"===r&&(r="tag");const p=l?.replace("_","-")||"custom";return{label:e?.rendered||"",...r?.length&&{type:r},kind:p,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...n?.length&&{title:n},...a&&("post-type"===p||"taxonomy"===p)&&{id:a,metadata:{bindings:d_(p)}},...i?.length&&{description:i},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===d},..."core/navigation-link"===u&&{isTopLevelLink:0===d}}}(e,n,t),{innerBlocks:a=[],mapping:i={}}=e.children?.length?g_(e.children,t+1):{};o={...o,...i};const s=(0,st.createBlock)(n,r,a);return o[e.id]=s.clientId,s}));return{innerBlocks:r,mapping:o}}const h_="success",__="error",x_="pending";let b_=null;var f_=function(e,{throwOnError:t=!1}={}){const o=(0,lt.useRegistry)(),{editEntityRecord:n}=(0,lt.useDispatch)(_t.store),[r,a]=(0,gt.useState)("idle"),[i,s]=(0,gt.useState)(null),l=(0,gt.useCallback)((async(t,r,a="publish")=>{let i,s;try{s=await o.resolveSelect(_t.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r),{cause:e})}if(null===s)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r));const{innerBlocks:l}=m_(s);try{i=await e(r,l,a),await n("postType","wp_navigation",i.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),r),{cause:e})}return i}),[e,n,o]);return{convert:(0,gt.useCallback)((async(e,o,n)=>{if(b_!==e)return b_=e,e&&o?(a(x_),s(null),await l(e,o,n).then((e=>(a(h_),b_=null,e))).catch((e=>{if(s(e?.message),a(__),b_=null,t)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}))):(s("Unable to convert menu. Missing menu details."),void a(__))}),[l,t]),status:r,error:i}};function y_(e,t){return e&&t?e+"//"+t:null}var v_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),k_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),w_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),C_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const j_=e=>"header"===e?v_:"footer"===e?k_:"sidebar"===e?w_:C_;const S_=["postType","wp_navigation",{status:"draft",per_page:-1}],B_=["postType","wp_navigation",{per_page:-1,status:"publish"}];function T_(e){const t=(0,gt.useContext)(mt.Disabled.Context),o=function(e){return(0,lt.useSelect)((t=>{if(!e)return;const{getBlock:o,getBlockParentsByBlockName:n}=t(ct.store),r=n(e,"core/template-part",!0);if(!r?.length)return;const{getCurrentTheme:a,getEditedEntityRecord:i}=t(_t.store),s=a(),l=(s?.default_template_part_areas||[]).map((e=>({...e,icon:j_(e.icon)})));for(const e of r){const t=o(e),{theme:n=s?.stylesheet,slug:r}=t.attributes,a=i("postType","wp_template_part",y_(n,r));if(a?.area)return l.find((e=>"uncategorized"!==e.area&&e.area===a.area))?.label}}),[e])}(t?void 0:e),n=(0,lt.useRegistry)();return(0,gt.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=n.resolveSelect(_t.store),[r,a]=await Promise.all([e(...S_),e(...B_)]),i=o?(0,pt.sprintf)((0,pt.__)("%s menu"),o):(0,pt.__)("Menu"),s=[...r,...a].reduce(((e,t)=>t?.title?.raw?.startsWith(i)?e+1:e),0);return(s>0?`${i} ${s+1}`:i)||""}),[t,o,n])}const N_="success",P_="error",I_="pending",D_="idle";const M_=[];function z_(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function A_(e,t,o){if(!e)return;t(z_(e).color);let n=e,r=z_(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,r=z_(n).backgroundColor;o(r)}function L_(e,t){const{textColor:o,customTextColor:n,backgroundColor:r,customBackgroundColor:a,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:l,customOverlayBackgroundColor:c,style:u}=e,d={};return t&&s?d.customTextColor=s:t&&i?d.textColor=i:n?d.customTextColor=n:o?d.textColor=o:u?.color?.text&&(d.customTextColor=u.color.text),t&&c?d.customBackgroundColor=c:t&&l?d.backgroundColor=l:a?d.customBackgroundColor=a:r?d.backgroundColor=r:u?.color?.background&&(d.customTextColor=u.color.background),d}function H_(e){return{className:Dt("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 R_=({className:e="",disabled:t,isMenuItem:o=!1})=>{let n=mt.Button;return o&&(n=mt.MenuItem),(0,it.jsx)(n,{variant:"link",disabled:t,className:e,href:(0,no.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,pt.__)("Manage menus")})};var V_=function({onCreateNew:e,isNotice:t=!1}){const[o,n]=(0,gt.useState)(!1),r=(0,gt.createInterpolateElement)((0,pt.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{n(!0),e()},variant:"link",disabled:o,accessibleWhenDisabled:!0})});return t?(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:r}):(0,it.jsx)(ct.Warning,{children:r})},F_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),E_=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});const O_={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},G_=["core/navigation-link","core/navigation-submenu"];function $_({block:e,onClose:t,expandedState:o,expand:n,setInsertedBlock:r}){const{insertBlock:a,replaceBlock:i,replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store),l=e.clientId,c=!G_.includes(e.name);return(0,it.jsx)(mt.MenuItem,{icon:F_,disabled:c,onClick:()=>{const c=!1,u=(0,st.createBlock)($h.name,$h.attributes);if("core/navigation-submenu"===e.name)a(u,e.innerBlocks.length,l,c);else{const t=(0,st.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);i(l,t),s(t.clientId,[u],c)}r(u),o[e.clientId]||n(e.clientId),t()},children:(0,pt.__)("Add submenu link")})}function U_(e){const{block:t}=e,{clientId:o}=t,{moveBlocksDown:n,moveBlocksUp:r,removeBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,pt.sprintf)((0,pt.__)("Remove %s"),(0,ct.BlockTitle)({clientId:o,maximumLength:25})),s=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t}=e(ct.store);return t(o)}),[o]);return(0,it.jsx)(mt.DropdownMenu,{icon:Kh,label:(0,pt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:O_,noIcons:!0,...e,children:({onClose:l})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.MenuGroup,{children:[(0,it.jsx)(mt.MenuItem,{icon:E_,onClick:()=>{r([o],s),l()},children:(0,pt.__)("Move up")}),(0,it.jsx)(mt.MenuItem,{icon:qp,onClick:()=>{n([o],s),l()},children:(0,pt.__)("Move down")}),(0,it.jsx)($_,{block:t,onClose:l,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,it.jsx)(mt.MenuGroup,{children:(0,it.jsx)(mt.MenuItem,{onClick:()=>{a([o],!1),l()},children:i})})]})})}var q_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),W_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Z_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});function J_({className:e,onBack:t}){return(0,it.jsx)(mt.Button,{className:e,icon:(0,pt.isRTL)()?W_:Z_,onClick:e=>{e.preventDefault(),t()},size:"small",children:(0,pt.__)("Back")})}var Q_=function e({className:t,title:o,description:n,onBack:r,children:a}){const i=(0,xt.useInstanceId)(e,"link-ui-dialog-title"),s=(0,xt.useInstanceId)(e,"link-ui-dialog-description"),l=(0,xt.useFocusOnMount)("firstElement"),c=`${t}__back`;return(0,it.jsxs)("div",{className:t,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:i,children:o}),(0,it.jsx)("p",{id:s,children:n})]}),(0,it.jsx)(J_,{className:c,onBack:r}),a]})};function K_({postType:e,onBack:t,onPageCreated:o,initialTitle:n=""}){const[r,a]=(0,gt.useState)(n),[i,s]=(0,gt.useState)(!1),l=r.trim().length>0,{lastError:c,isSaving:u}=(0,lt.useSelect)((t=>({lastError:t(_t.store).getLastEntitySaveError("postType",e),isSaving:t(_t.store).isSavingEntityRecord("postType",e)})),[e]),{saveEntityRecord:d}=(0,lt.useDispatch)(_t.store);const p=u||!l;return(0,it.jsx)(Q_,{className:"link-ui-page-creator",title:(0,pt.__)("Create page"),description:(0,pt.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,it.jsx)(mt.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,it.jsx)("form",{onSubmit:async function(t){if(t.preventDefault(),!u&&l)try{const t=await d("postType",e,{title:r,status:i?"publish":"draft"},{throwOnError:!0});if(t){const n={id:t.id,type:e,title:(0,ao.decodeEntities)(t.title.rendered),url:t.link,kind:"post-type"};o(n)}}catch(e){}},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),onChange:a,placeholder:(0,pt.__)("No title"),value:r}),(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Publish immediately"),help:(0,pt.__)("If unchecked, the page will be created as a draft."),checked:i,onChange:s}),c&&(0,it.jsx)(mt.Notice,{status:"error",isDismissible:!1,children:c.message}),(0,it.jsxs)(mt.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:u,accessibleWhenDisabled:!0,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:u,"aria-disabled":p,children:(0,pt.__)("Create page")})]})]})})})})}const{PrivateQuickInserter:Y_}=jo(ct.privateApis);var X_=function({clientId:e,onBack:t,onBlockInsert:o}){const{rootBlockClientId:n}=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o}=t(ct.store);return{rootBlockClientId:o(e)}}),[e]);return e?(0,it.jsx)(Q_,{className:"link-ui-block-inserter",title:(0,pt.__)("Add block"),description:(0,pt.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,it.jsx)(Y_,{rootClientId:n,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!o,onSelect:o||void 0,hasSearch:!1})}):null};function ex(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}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}const tx=(0,gt.forwardRef)((function(e,t){const{label:o,url:n,opensInNewTab:r,type:a,kind:i,id:s}=e.link,{clientId:l}=e,c=a||"page",[u,d]=(0,gt.useState)(!1),[p,m]=(0,gt.useState)(!1),[g,h]=(0,gt.useState)(!1),[_,x]=(0,gt.useState)(!1),b=(0,_t.useResourcePermissions)({kind:"postType",name:c}),{isBoundEntityAvailable:f}=p_({clientId:l,attributes:e.link}),y=(0,gt.useMemo)((()=>({url:n,opensInNewTab:r,title:o&&(0,lu.__unstableStripHTML)(o),kind:i,type:a,id:s})),[o,r,n,i,a,s]),v=(0,xt.useInstanceId)(tx,"link-ui-link-control__title"),k=(0,xt.useInstanceId)(tx,"link-ui-link-control__description"),w=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(mt.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!u&&!p&&(0,it.jsxs)("div",{role:"dialog","aria-labelledby":v,"aria-describedby":k,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:v,children:(0,pt.__)("Add link")}),(0,it.jsx)("p",{id:k,children:(0,pt.__)("Search for and add a link to your Navigation.")})]}),(0,it.jsx)(ct.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:y,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!a,noURLSuggestion:!!a,suggestionsQuery:ex(a,i),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:f,renderControlBottom:()=>y?.url?.length?null:(0,it.jsx)(ox,{focusAddBlockButton:g,focusAddPageButton:_,setAddingBlock:()=>{d(!0),h(!1)},setAddingPage:()=>{m(!0),x(!1)},canAddPage:b?.canCreate&&"page"===a,canAddBlock:"default"===w})})]}),u&&(0,it.jsx)(X_,{clientId:e.clientId,onBack:()=>{d(!1),h(!0),x(!1)},onBlockInsert:e?.onBlockInsert}),p&&(0,it.jsx)(K_,{postType:c,onBack:()=>{m(!1),x(!0),h(!1)},onPageCreated:t=>{e.onChange(t),m(!1)},initialTitle:y?.url||""})]})})),ox=({setAddingBlock:e,setAddingPage:t,focusAddBlockButton:o,focusAddPageButton:n,canAddPage:r,canAddBlock:a})=>{const i="listbox",s=(0,gt.useRef)(),l=(0,gt.useRef)();return(0,gt.useEffect)((()=>{o&&s.current?.focus()}),[o]),(0,gt.useEffect)((()=>{n&&l.current?.focus()}),[n]),r||a?(0,it.jsxs)(mt.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[r&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:l,icon:q_,onClick:e=>{e.preventDefault(),t(!0)},"aria-haspopup":i,children:(0,pt.__)("Create page")}),a&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:s,icon:q_,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":i,children:(0,pt.__)("Add block")})]}):null};const nx=window.wp.escapeHtml,rx=(e={},t,o={})=>{const{label:n="",kind:r="",type:a=""}=o,{title:i="",label:s="",url:l,opensInNewTab:c,id:u,kind:d=r,type:p=a}=e,m=i||s,g=m.replace(/http(s?):\/\//gi,""),h=l?.replace(/http(s?):\/\//gi,"")??"",_=m&&m!==n&&g!==h?(0,nx.escapeHTML)(m):n||(0,nx.escapeHTML)(h),x="post_tag"===p?"tag":p.replace("-","_"),b=["post","page","tag","category"].indexOf(x)>-1,f=!d&&!b||"custom"===d?"custom":d,y={...void 0!==l?{url:l?encodeURI((0,no.safeDecodeURI)(l)):l}:{},..._&&{label:_},...void 0!==c&&{opensInNewTab:c},...f&&{kind:f},...x&&"URL"!==x&&{type:x}};if(l&&!u&&o.id){const e=((e,t)=>{if(!e||!t)return!1;const o=e=>e?e.replace(/\/+$/,""):"",n=(e,t=null)=>{try{const o=t||("undefined"!=typeof window?window.location.origin:"https://wordpress.org");return new URL(e,o)}catch(e){return null}},r=n(e);if(!r)return!0;const a=n(t,e);if(!a)return!0;const i=r.hostname,s=a.hostname,l=o((0,no.getPath)(r.toString())),c=o((0,no.getPath)(a.toString()));if(i!==s||l!==c)return!0;const u=r.searchParams.get("p"),d=a.searchParams.get("p");if(u&&d&&u!==d)return!0;const p=r.searchParams.get("page_id"),m=a.searchParams.get("page_id");return!(!p||!m||p===m)||!!(u&&m||p&&d)})(o.url,l);e&&(y.id=void 0,y.kind="custom",y.type="custom")}else u&&Number.isInteger(u)?y.id=u:o.id&&(y.kind=f,y.type=x);t(y);const v="id"in y?y.id:o.id,k="kind"in y?y.kind:o.kind;return{isEntityLink:!!v&&"custom"!==k,attributes:y}},ax=(0,pt.__)("Switch to '%s'"),ix=["core/navigation-link","core/navigation-submenu"],{PrivateListView:sx}=jo(ct.privateApis);function lx({block:e,insertedBlock:t,setInsertedBlock:o}){const{updateBlockAttributes:n,removeBlock:r}=(0,lt.useDispatch)(ct.store),a=ix?.includes(t?.name),i=t?.clientId===e.clientId,s=a&&i,{createBinding:l,clearBinding:c}=p_({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;return(0,it.jsx)(tx,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:e=>{t?.clientId&&e&&r(t.clientId,false),o(e)},onClose:()=>{!t?.attributes?.url&&t?.clientId&&r(t.clientId,!1),o(null)},onChange:e=>{const{isEntityLink:r,attributes:a}=rx(e,(i=t?.clientId,e=>{i&&n(i,e)}),t?.attributes);var i;r?l(a):c(a),o(null)}})}const cx=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:n,onCreateNew:r})=>{const a=(0,lt.useSelect)((t=>!!t(ct.store).getBlockCount(e)),[e]),{navigationMenu:i}=Zh(t);if(t&&n)return(0,it.jsx)(V_,{onCreateNew:r,isNotice:!0});if(o)return(0,it.jsx)(mt.Spinner,{});const s=i?(0,pt.sprintf)((0,pt.__)("Structure for Navigation Menu: %s"),i?.title||(0,pt.__)("Untitled menu")):(0,pt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,it.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!a&&(0,it.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,pt.__)("This Navigation Menu is empty.")}),(0,it.jsx)(sx,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:U_,additionalBlockContent:lx})]})};var ux=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:r,onSelectClassicMenu:a,onSelectNavigationMenu:i,isManageMenusButtonDisabled:s,blockEditingMode:l}=e;return(0,it.jsx)(ct.InspectorControls,{group:"list",children:(0,it.jsxs)(mt.PanelBody,{title:null,children:[(0,it.jsxs)(mt.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,it.jsx)(mt.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,pt.__)("Menu")}),"default"===l&&(0,it.jsx)(Yh,{currentMenuId:n,onSelectClassicMenu:a,onSelectNavigationMenu:i,onCreateNew:r,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:ax,isManageMenusButtonDisabled:s})]}),(0,it.jsx)(cx,{...e})]})})};function dx({id:e,children:t}){return(0,it.jsx)(mt.VisuallyHidden,{children:(0,it.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}function px({id:e}){const[t]=(0,_t.useEntityProp)("postType","wp_navigation","title"),o=(0,pt.sprintf)((0,pt.__)('Navigation Menu: "%s"'),t);return(0,it.jsx)(dx,{id:e,children:o})}function mx({clientId:e}){const{insertBlock:t}=(0,lt.useDispatch)(ct.store),{getBlockCount:o}=(0,lt.useSelect)(ct.store),n=(0,gt.useCallback)((()=>{const n=o(e),r=(0,st.createBlock)($h.name,{kind:$h.attributes.kind,type:$h.attributes.type});t(r,n,e)}),[e,t,o]);return(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{name:"add-page",icon:Eh,onClick:n,children:(0,pt.__)("Add page")})})})}function gx({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:n,overlayTextColor:r,setOverlayTextColor:a,overlayBackgroundColor:i,setOverlayBackgroundColor:s,clientId:l,navRef:c}){const[u,d]=(0,gt.useState)(),[p,m]=(0,gt.useState)(),[g,h]=(0,gt.useState)(),[_,x]=(0,gt.useState)(),b="web"===gt.Platform.OS;(0,gt.useEffect)((()=>{if(!b)return;A_(c.current,m,d);const e=c.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(r.color||i.color)&&A_(e,x,h)}),[b,r.color,i.color,c]);const f=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return f.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,pt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:o.color,label:(0,pt.__)("Background"),onColorChange:n,resetAllFilter:()=>n(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,pt.__)("Submenu & overlay text"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:i.color,label:(0,pt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:l,...f,gradients:[],disableCustomGradients:!0}),b&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.ContrastChecker,{backgroundColor:u,textColor:p}),(0,it.jsx)(ct.ContrastChecker,{backgroundColor:g,textColor:_})]})]}):null}var hx=(0,ct.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,isSelected:n,className:r,backgroundColor:a,setBackgroundColor:i,textColor:s,setTextColor:l,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:d,setOverlayTextColor:p,hasSubmenuIndicatorSetting:m=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:_,overlayMenu:x,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:y,orientation:v="horizontal",flexWrap:k="wrap"}={},hasIcon:w,icon:C="handle"}=e,j=e.ref,S=(0,gt.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${j}`,T=(0,ct.useHasRecursion)(B),N=(0,ct.useBlockEditingMode)(),{menus:P}=Jh(),[I,D]=c_({name:"block-library/core/navigation/status"}),[M,z]=c_({name:"block-library/core/navigation/classic-menu-conversion"}),[A,L]=c_({name:"block-library/core/navigation/permissions/update"}),{create:H,status:R,error:V,value:F,isPending:E,isSuccess:O,isError:G}=function(e){const[t,o]=(0,gt.useState)(D_),[n,r]=(0,gt.useState)(null),[a,i]=(0,gt.useState)(null),{saveEntityRecord:s,editEntityRecord:l}=(0,lt.useDispatch)(_t.store),c=T_(e);return{create:(0,gt.useCallback)((async(e=null,t=[],n)=>{if(e&&"string"!=typeof e)throw i("Invalid title supplied when creating Navigation Menu."),o(P_),new Error("Value of supplied title argument was not a string.");o(I_),r(null),i(null),e||(e=await c().catch((e=>{throw i(e?.message),o(P_),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const a={title:e,content:(0,st.serialize)(t),status:n};return s("postType","wp_navigation",a).then((e=>(r(e),o(N_),"publish"!==n&&l("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw i(e?.message),o(P_),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[s,l,c]),status:t,value:n,error:a,isIdle:t===D_,isPending:t===I_,isSuccess:t===N_,isError:t===P_}}(o),$=async()=>{await H("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:q,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,lt.useSelect)((t=>{const{getBlock:o,getBlocks:n,hasSelectedInnerBlock:r}=t(ct.store),a=o(e).innerBlocks,i=!!a?.length,s=i?M_:n(e);return{innerBlocks:i?a:s,hasUncontrolledInnerBlocks:i,uncontrolledInnerBlocks:a,controlledInnerBlocks:s,isInnerBlockSelected:r(e,!0)}}),[e])}(o),J=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:Y}=(0,lt.useDispatch)(ct.store),[X,ee]=(0,gt.useState)(!1),[te,oe]=(0,gt.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:re,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:ie,hasResolvedCanUserUpdateNavigationMenu:se,canUserDeleteNavigationMenu:le,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,hasResolvedCanUserCreateNavigationMenus:pe}=Zh(j),me=ne&&ae,{convert:ge,status:he,error:_e}=f_(H),xe=he===x_,be=(0,gt.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:n}=t;S(e),n&&K(o)}),[K,o,S]),fe=!ae&&re,ye=U&&!fe,{getNavigationFallbackId:ve}=jo((0,lt.useSelect)(_t.store)),ke=j||ye?null:ve();(0,gt.useEffect)((()=>{j||ye||!ke||(Y(),S(ke))}),[j,S,ye,ke,Y]);const we=(0,gt.useRef)(),Ce="nav",je=!j&&!E&&!xe&&ne&&0===P?.length&&!U,Se=!ne||E||xe||!(!j||fe||xe),Be=e.style?.typography?.textDecoration,Te=(0,lt.useSelect)((e=>e(ct.store).__unstableHasActiveBlockOverlayActive(o)),[o]),Ne="never"!==x,Pe=(0,ct.useBlockProps)({ref:we,className:Dt(r,{"items-justified-right":"right"===y,"items-justified-space-between":"space-between"===y,"items-justified-left":"left"===y,"items-justified-center":"center"===y,"is-vertical":"vertical"===v,"no-wrap":"nowrap"===k,"is-responsive":Ne,"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!a.color||a.class,[(0,ct.getColorClassName)("background-color",a?.slug)]:!!a?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Te},h),style:{color:!s?.slug&&s?.color,backgroundColor:!a?.slug&&a?.color}}),Ie=async e=>ge(e.id,e.name,"draft"),De=e=>{be(e)};(0,gt.useEffect)((()=>{D(),E&&(0,dg.speak)((0,pt.__)("Creating Navigation Menu.")),O&&(be(F?.id,{focusNavigationBlock:!0}),I((0,pt.__)("Navigation Menu successfully created."))),G&&I((0,pt.__)("Failed to create Navigation Menu."))}),[R,V,F?.id,G,O,E,be,D,I]),(0,gt.useEffect)((()=>{z(),he===x_&&(0,dg.speak)((0,pt.__)("Classic menu importing.")),he===h_&&(M((0,pt.__)("Classic menu imported successfully.")),be(F?.id,{focusNavigationBlock:!0})),he===__&&M((0,pt.__)("Classic menu import failed."))}),[he,_e,z,M,F?.id,be]),(0,gt.useEffect)((()=>{n||W||L(),(n||W)&&(j&&!me&&se&&!ie&&A((0,pt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),j||!pe||ue||A((0,pt.__)("You do not have permission to create Navigation Menus.")))}),[n,W,ie,se,ue,pe,j,L,A,me]);const Me=ue||ie,ze=Dt("wp-block-navigation__overlay-menu-preview",{open:te}),Ae=b||_?"":(0,pt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),Le=(0,gt.useRef)(!0);(0,gt.useEffect)((()=>{!Le.current&&Ae&&(0,dg.speak)(Ae),Le.current=!1}),[Ae]);const He=(0,xt.useInstanceId)(u_,"overlay-menu-preview"),Re=vt(),Ve=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:m&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Re,children:[Ne&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:ze,onClick:()=>{oe(!te)},"aria-label":(0,pt.__)("Overlay menu controls"),"aria-controls":He,"aria-expanded":te,children:[w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(t_,{icon:C}),(0,it.jsx)(Oh,{icon:Gh})]}),!w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("span",{children:(0,pt.__)("Menu")}),(0,it.jsx)("span",{children:(0,pt.__)("Close")})]})]}),te&&(0,it.jsx)(mt.__experimentalVStack,{id:He,spacing:4,style:{gridColumn:"span 2"},children:(0,it.jsx)(u_,{setAttributes:t,hasIcon:w,icon:C,hidden:!te})})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"mobile"!==x,label:(0,pt.__)("Overlay Menu"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay Menu"),"aria-label":(0,pt.__)("Configure overlay menu"),value:x,help:(0,pt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"never",label:(0,pt.__)("Off")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,pt.__)("Mobile")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"always",label:(0,pt.__)("Always")})]})}),J&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,pt.__)("Submenus")}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>_,label:(0,pt.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,pt.__)("Open on click")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!b,label:(0,pt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,pt.__)("Show arrow")})}),Ae&&(0,it.jsx)(mt.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Ae})]})]})}),(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(gx,{textColor:s,setTextColor:l,backgroundColor:a,setBackgroundColor:i,overlayTextColor:d,setOverlayTextColor:p,overlayBackgroundColor:c,setOverlayBackgroundColor:u,clientId:o,navRef:we})})]}),Fe=`${o}-desc`,Ee="always"===x,Oe=!Me||!ne;if(ye&&!E)return(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je?void 0:Fe,children:[(0,it.jsx)(dx,{id:Fe,children:(0,pt.__)("Unsaved Navigation Menu.")}),(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,(0,it.jsx)(o_,{id:o,onToggle:ee,isOpen:X,hasIcon:w,icon:C,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:(0,it.jsx)(s_,{createNavigationMenu:H,blocks:q,hasSelection:n||W})})]});if(j&&ae)return(0,it.jsxs)(Ce,{...Pe,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),(0,it.jsx)(V_,{onCreateNew:$})]});if(fe&&T)return(0,it.jsx)("div",{...Pe,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})});const Ge=g||Xh;return je&&g?(0,it.jsx)(Ce,{...Pe,children:(0,it.jsx)(Ge,{isSelected:n,currentMenuId:j,clientId:o,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,onSelectNavigationMenu:De,onSelectClassicMenu:Ie,onCreateEmpty:$})}):(0,it.jsx)(_t.EntityProvider,{kind:"postType",type:"wp_navigation",id:j,children:(0,it.jsxs)(ct.RecursionProvider,{uniqueId:B,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,"contentOnly"===N&&fe&&(0,it.jsx)(mx,{clientId:o}),"default"===N&&fe&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[se&&ie&&(0,it.jsx)(r_,{}),ce&&le&&(0,it.jsx)(l_,{onDelete:()=>{Q(o,[]),I((0,pt.__)("Navigation Menu successfully deleted."))}}),(0,it.jsx)(R_,{disabled:Oe,className:"wp-block-navigation-manage-menus-button"})]}),(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je||Se?void 0:Fe,children:[Se&&!Ee&&(0,it.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Se||Ee)&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(px,{id:Fe}),(0,it.jsx)(o_,{id:o,onToggle:ee,hasIcon:w,icon:C,isOpen:X,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:fe&&(0,it.jsx)(n_,{clientId:o,hasCustomPlaceholder:!!g,templateLock:f,orientation:v})})]})]})]})})}));const _x={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},xx=({navigationMenuId:e,...t})=>({...t,ref:e}),bx=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},fx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({navigationMenuId:e})=>!!e,migrate:xx},yx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,xt.compose)(xx,bx)},vx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),migrate:(0,xt.compose)(xx,bx,Yo),isEligible:({style:e})=>e?.typography?.fontFamily},kx=[fx,yx,vx,{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=>e.isResponsive,migrate:(0,xt.compose)(xx,bx,Yo,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},{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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in _x){const o=e.style.typography[t];if(o&&o.startsWith(_x[t]))return!0}return!1},migrate:(0,xt.compose)(xx,bx,Yo,(function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map((([e,t])=>{const o=_x[e];if(o&&t.startsWith(o)){const n=t.slice(o.length);return"textDecoration"===e&&"strikethrough"===n?[e,"line-through"]:[e,n]}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=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,xt.compose)(xx,(e=>{const{rgbTextColor:t,rgbBackgroundColor:o,...n}=e;return{...n,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}];var wx=kx;const{name:Cx}=Fh,jx={icon:Vh,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,pt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:hx,save:function({attributes:e}){if(!e.ref)return(0,it.jsx)(ct.InnerBlocks.Content,{})},__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_navigation",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0},deprecated:wx},Sx=()=>jt({name:Cx,metadata:Fh,settings:jx}),Bx=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation-link","title":"Custom Link","category":"design","parent":["core/navigation"],"allowedBlocks":["core/navigation-link","core/navigation-submenu","core/page-list"],"description":"Add a page, link, or another item to your navigation.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"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":false,"html":false,"__experimentalSlashInserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-link-editor","style":"wp-block-navigation-link"}');function Tx(e,t){if("post-type"===t)switch(e){case"post":return(0,pt.__)("post");case"page":return(0,pt.__)("page");default:return e||(0,pt.__)("post")}if("taxonomy"===t)switch(e){case"category":return(0,pt.__)("category");case"tag":return(0,pt.__)("tag");default:return e||(0,pt.__)("term")}return e||(0,pt.__)("item")}function Nx({attributes:e,setAttributes:t,clientId:o}){const{label:n,url:r,description:a,rel:i,opensInNewTab:s}=e,l=(0,gt.useRef)(r),c=vt(),u=(0,gt.useRef)(),d=(0,gt.useRef)(!1),p=(0,xt.useInstanceId)(Nx,"link-input"),m=`${p}__help`,[g,h]=(0,gt.useState)(r);(0,gt.useEffect)((()=>{h(r),l.current=r}),[r]);const{hasUrlBinding:_,isBoundEntityAvailable:x,clearBinding:b}=p_({clientId:o,attributes:e}),{updateBlockAttributes:f}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{!_&&d.current&&u.current?.select(),d.current=!1}),[_]),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:c,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Text"),value:n?(0,lu.__unstableStripHTML)(n):"",onChange:e=>{t({label:e})},autoComplete:"off"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Link"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalInputControl,{ref:u,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:p,label:(0,pt.__)("Link"),value:_&&!x?"":g?(0,no.safeDecodeURI)(g):"",autoComplete:"off",type:"url",disabled:_,"aria-invalid":_&&!x?"true":void 0,"aria-describedby":m,className:_&&!x?"navigation-link-control__input-with-error-suffix":void 0,onChange:e=>{x||h(e)},onFocus:()=>{x||(l.current=r)},onBlur:()=>{if(x)return;const o=g||l.current;h(o),rx({url:o},t,{...e,url:l.current})},help:_&&!x?(0,it.jsx)(Dx,{id:m,type:e.type,kind:e.kind}):x&&(0,it.jsx)(Px,{type:e.type,kind:e.kind}),suffix:_&&(0,it.jsx)(mt.Button,{icon:hn,onClick:()=>{b(),f(o,{url:l.current,id:void 0}),d.current=!0},"aria-describedby":m,showTooltip:!0,label:(0,pt.__)("Unsync and edit"),__next40pxDefaultSize:!0,className:_&&!x?"navigation-link-control__error-suffix-button":void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:s,onChange:e=>t({opensInNewTab:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Description"),value:a||"",onChange:e=>{t({description:e})},help:(0,pt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Rel attribute"),value:i||"",onChange:e=>{t({rel:e})},autoComplete:"off",help:(0,pt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function Px({type:e,kind:t}){const o=Tx(e,t);return(0,pt.sprintf)((0,pt.__)("Synced with the selected %s."),o)}function Ix({type:e,kind:t}){const o=Tx(e,t);return(0,pt.sprintf)((0,pt.__)("Synced %s is missing. Please update or remove this link."),o)}function Dx({id:e,type:t,kind:o}){return(0,it.jsx)("span",{id:e,className:"navigation-link-control__error-text",children:(0,it.jsx)(Ix,{type:t,kind:o})})}const Mx={name:"core/navigation-link"},zx=["core/navigation-link","core/navigation-submenu"];var Ax=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Lx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Hx(e){switch(e){case"post":return fm;case"page":return Eh;case"tag":return Ax;case"category":return Un;default:return Lx}}function Rx(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,o=e.variations.map((e=>({...e,...!e.icon&&{icon:Hx(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:o}}return e}const Vx={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,st.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,st.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:n,opensInNewTab:r})=>(0,st.createBlock)("core/buttons",{},[(0,st.createBlock)("core/button",{text:e,url:t,rel:o,title:n,linkTarget:r?"_blank":void 0})])}]};var Fx=Vx;const{name:Ex}=Bx,Ox={icon:ed,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function e({attributes:t,isSelected:o,setAttributes:n,insertBlocksAfter:r,mergeBlocks:a,onReplace:i,context:s,clientId:l}){const{id:c,label:u,type:d,url:p,description:m,kind:g,metadata:h}=t,{maxNestingLevel:_}=s,{replaceBlock:x,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:f}=(0,lt.useDispatch)(ct.store),[y,v]=(0,gt.useState)(o&&!p),[k,w]=(0,gt.useState)(null),C=(0,gt.useRef)(null),j=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[e]),t})(C),S=(0,pt.__)("Add label…"),B=(0,gt.useRef)(),T=(0,gt.useRef)(),N=(0,xt.usePrevious)(p),P=(0,gt.useRef)(!p&&!h?.bindings?.url),{isAtMaxNesting:I,isTopLevelLink:D,isParentOfSelectedBlock:M,hasChildren:z,validateLinkStatus:A,parentBlockClientId:L}=(0,lt.useSelect)((e=>{const{getBlockCount:t,getBlockName:o,getBlockRootClientId:n,hasSelectedInnerBlock:r,getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),s=n(l),c=o(s),u="core/navigation"===c,d=i(),p=u?s:a(l,"core/navigation")[0],m="core/navigation-submenu"===c?s:p,g=d===p||r(p,!0);return{isAtMaxNesting:a(l,zx).length>=_,isTopLevelLink:u,isParentOfSelectedBlock:r(l,!0),hasChildren:!!t(l),validateLinkStatus:g,parentBlockClientId:m}}),[l,_]),{getBlocks:H}=(0,lt.useSelect)(ct.store),{clearBinding:R,createBinding:V,hasUrlBinding:F,isBoundEntityAvailable:E}=p_({clientId:l,attributes:t}),[O,G]=((e,t,o,n)=>{const r="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(o),i=(0,ct.useBlockEditingMode)(),{postStatus:s,isDeleted:l}=(0,lt.useSelect)((e=>{if(!r)return{postStatus:null,isDeleted:!1};if("disabled"===i||!n)return{postStatus:null,isDeleted:!1};const{getEntityRecord:a,hasFinishedResolution:s}=e(_t.store),l=a("postType",t,o),c=s("getEntityRecord",["postType",t,o])&&void 0===l;return{postStatus:l?.status,isDeleted:c}}),[r,i,n,t,o]);return[r&&a&&(l||s&&"trash"===s),"draft"===s]})(g,d,c,A),$=(0,gt.useCallback)((()=>{let e=H(l);0===e.length&&(e=[(0,st.createBlock)("core/navigation-link")],f(e[0].clientId));const o=(0,st.createBlock)("core/navigation-submenu",t,e);x(l,o)}),[H,l,f,x,t]);(0,gt.useEffect)((()=>{P.current&&o&&!p&&f(L)}),[]),(0,gt.useEffect)((()=>{z&&(b(),$())}),[z,b,$]),(0,gt.useEffect)((()=>{!N&&p&&y&&(0,no.isURL)((0,no.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u)&&function(){B.current.focus();const{ownerDocument:e}=B.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(B.current),o.removeAllRanges(),o.addRange(n)}()}),[N,p,y,u]);const{textColor:U,customTextColor:q,backgroundColor:W,customBackgroundColor:Z}=L_(s,!D),J=(0,xt.useInstanceId)(e),Q=F&&!E,K=Q?(0,pt.sprintf)("navigation-link-edit-%d-desc",J):void 0,Y=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([w,C]),className:Dt("wp-block-navigation-item",{"is-editing":o||M,"is-dragging-within":j,"has-link":!!p,"has-child":z,"has-text-color":!!U||!!q,[(0,ct.getColorClassName)("color",U)]:!!U,"has-background":!!W||Z,[(0,ct.getColorClassName)("background-color",W)]:!!W}),"aria-describedby":K,"aria-invalid":Q,style:{color:!U&&q,backgroundColor:!W&&Z},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),v(!0))}}),X=(0,ct.useInnerBlocksProps)({...Y,className:"remove-outline"},{defaultBlock:Mx,directInsert:!0,renderAppender:!1});(!p||O||G||F&&!E)&&(Y.onClick=()=>{v(!0)});const ee=Dt("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!p||O||G||F&&!E}),te=function(e){let t="";switch(e){case"post":t=(0,pt.__)("Select post");break;case"page":t=(0,pt.__)("Select page");break;case"category":t=(0,pt.__)("Select category");break;case"tag":t=(0,pt.__)("Select tag");break;default:t=(0,pt.__)("Add link")}return t}(d),oe=`(${O?(0,pt.__)("Invalid"):(0,pt.__)("Draft")})`;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{v(!0)}}),!I&&(0,it.jsx)(mt.ToolbarButton,{name:"submenu",icon:F_,title:(0,pt.__)("Add submenu"),onClick:$})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:t,setAttributes:n,clientId:l})}),(0,it.jsxs)("div",{...Y,children:[Q&&(0,it.jsx)(mt.VisuallyHidden,{id:K,children:(0,it.jsx)(Ix,{type:d,kind:g})}),(0,it.jsxs)("a",{className:ee,children:[p||h?.bindings?.url?(0,it.jsxs)(it.Fragment,{children:[!O&&!G&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.RichText,{ref:B,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:e=>n({label:e}),onMerge:a,onReplace:i,__unstableOnSplitAtEnd:()=>r((0,st.createBlock)("core/navigation-link")),"aria-label":(0,pt.__)("Navigation link text"),placeholder:S,withoutInteractiveFormatting:!0}),m&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]}),(O||G)&&(0,it.jsx)("div",{className:Dt("wp-block-navigation-link__placeholder-text","wp-block-navigation-link__label",{"is-invalid":O,"is-draft":G}),children:(0,it.jsx)("span",{children:`${(0,ao.decodeEntities)(u)} ${O||G?oe:""}`.trim()})})]}):(0,it.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,it.jsx)("span",{children:te})}),y&&(0,it.jsx)(tx,{ref:T,clientId:l,link:t,onClose:()=>{v(!1),p||F?P.current&&f(l):i([])},anchor:k,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),v(!1)},onChange:e=>{const{isEntityLink:o,attributes:r}=rx(e,n,t);o?V(r):R(r)}})]}),(0,it.jsx)("div",{...X})]})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>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})=>({rel:e?"nofollow":"",...t}),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}],transforms:Fx},Gx=()=>((0,vl.addFilter)("blocks.registerBlockType","core/navigation-link",Rx),jt({name:Ex,metadata:Bx,settings:Ox})),$x=JSON.parse('{"$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","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"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":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-submenu-editor","style":"wp-block-navigation-submenu"}');var Ux=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 qx=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})}),Wx=["core/navigation-link","core/navigation-submenu","core/page-list"];const Zx={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,st.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/search")}]};var Jx=Zx;const{name:Qx}=$x,Kx={icon:({context:e})=>"list-view"===e?Eh:F_,__experimentalLabel(e,{context:t}){const{label:o}=e,n=e?.metadata?.name;return"list-view"===t&&(n||o)&&e?.metadata?.name||o},edit:function({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:n,onReplace:r,context:a,clientId:i}){const{label:s,url:l,description:c}=e,{showSubmenuIcon:u,maxNestingLevel:d,openSubmenusOnClick:p}=a,m="default"!==(0,ct.useBlockEditingMode)()||p,{clearBinding:g,createBinding:h}=p_({clientId:i,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:x}=(0,lt.useDispatch)(ct.store),[b,f]=(0,gt.useState)(!1),[y,v]=(0,gt.useState)(null),k=(0,gt.useRef)(null),w=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(k),C=(0,pt.__)("Add text…"),j=(0,gt.useRef)(),{parentCount:S,isParentOfSelectedBlock:B,isImmediateParentOfSelectedBlock:T,hasChildren:N,selectedBlockHasChildren:P,onlyDescendantIsEmptyLink:I}=(0,lt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:o,getBlockParentsByBlockName:n,getBlock:r,getBlockCount:a,getBlockOrder:s}=e(ct.store);let l;const c=s(o());if(1===c?.length){const e=r(c[0]);l="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:n(i,"core/navigation-submenu").length,isParentOfSelectedBlock:t(i,!0),isImmediateParentOfSelectedBlock:t(i,!1),hasChildren:!!a(i),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:l}}),[i]),D=(0,xt.usePrevious)(N);(0,gt.useEffect)((()=>{m||l||f(!0)}),[]),(0,gt.useEffect)((()=>{t||f(!1)}),[t]),(0,gt.useEffect)((()=>{b&&l&&(0,no.isURL)((0,no.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&function(){j.current.focus();const{ownerDocument:e}=j.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(j.current),o.removeAllRanges(),o.addRange(n)}()}),[l]);const{textColor:M,customTextColor:z,backgroundColor:A,customBackgroundColor:L}=L_(a,S>0),H=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,k]),className:Dt("wp-block-navigation-item",{"is-editing":t||B,"is-dragging-within":w,"has-link":!!l,"has-child":N,"has-text-color":!!M||!!z,[(0,ct.getColorClassName)("color",M)]:!!M,"has-background":!!A||L,[(0,ct.getColorClassName)("background-color",A)]:!!A,"open-on-click":m}),style:{color:!M&&z,backgroundColor:!A&&L},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),f(!0))}}),R=L_(a,!0),V=S>=d?Wx.filter((e=>"core/navigation-submenu"!==e)):Wx,F=H_(R),E=(0,ct.useInnerBlocksProps)(F,{allowedBlocks:V,defaultBlock:$h,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||T&&!P||N)&&ct.InnerBlocks.ButtonBlockAppender}),O=m?"button":"a";function G(){const t=(0,st.createBlock)("core/navigation-link",e);x(i,t)}(0,gt.useEffect)((()=>{!N&&D&&(_(),G())}),[N,D]);const $=!P||I;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[!m&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{f(!0)}}),(0,it.jsx)(mt.ToolbarButton,{name:"revert",icon:Ux,title:(0,pt.__)("Convert to Link"),onClick:G,className:"wp-block-navigation__submenu__revert",disabled:!$})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:e,setAttributes:o,clientId:i})}),(0,it.jsxs)("div",{...H,children:[(0,it.jsxs)(O,{className:"wp-block-navigation-item__content",children:[(0,it.jsx)(ct.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>o({label:e}),onMerge:n,onReplace:r,"aria-label":(0,pt.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,onClick:()=>{m||l||f(!0)}}),c&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:c}),!m&&b&&(0,it.jsx)(tx,{clientId:i,link:e,onClose:()=>{f(!1)},anchor:y,onRemove:()=>{o({url:""}),(0,dg.speak)((0,pt.__)("Link removed."),"assertive")},onChange:t=>{const{isEntityLink:n,attributes:r}=rx(t,o,e);n?h(r):g(r)}})]}),(u||m)&&(0,it.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,it.jsx)(qx,{})}),(0,it.jsx)("div",{...E})]})]})},example:{attributes:{label:(0,pt._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},transforms:Jx},Yx=()=>jt({name:Qx,metadata:$x,settings:Kx});var Xx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const eb=JSON.parse('{"$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":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-nextpage-editor"}');var tb={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,st.createBlock)("core/nextpage",{})}]};const{name:ob}=eb,nb={icon:Xx,example:{},transforms:tb,edit:function(){return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)("span",{children:(0,pt.__)("Page break")})})},save:function(){return(0,it.jsx)(gt.RawHTML,{children:"\x3c!--nextpage--\x3e"})}},rb=()=>jt({name:ob,metadata:eb,settings:nb}),ab=JSON.parse('{"$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":false,"inserter":false,"renaming":false,"visibility":false,"interactivity":{"clientNavigation":true}},"textdomain":"default","attributes":{"slug":{"type":"string"}}}'),ib=new WeakMap;function sb(){const e=(0,lt.useRegistry)();if(!ib.has(e)){const t=new Map;ib.set(e,lb.bind(null,t))}return ib.get(e)}function lb(e,{name:t,blocks:o}){const n=[...o];for(;n.length;){const o=n.shift();for(const e of o.innerBlocks??[])n.unshift(e);"core/pattern"===o.name&&cb(e,t,o.attributes.slug)}}function cb(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),ub(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function ub(e,t,o=new Set,n=new Set){o.add(t),n.add(t);const r=e.get(t)??new Set;for(const t of r)if(o.has(t)){if(n.has(t))return!0}else if(ub(e,t,o,n))return!0;return n.delete(t),!1}var db=({attributes:e,clientId:t})=>{const o=(0,lt.useRegistry)(),n=(0,lt.useSelect)((t=>t(ct.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),r=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:a,setBlockEditingMode:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:l,getBlockEditingMode:c}=(0,lt.useSelect)(ct.store),[u,d]=(0,gt.useState)(!1),p=sb();(0,gt.useEffect)((()=>{if(!u&&n?.blocks){try{p(n)}catch(e){return void d(!0)}window.queueMicrotask((()=>{const e=l(t),u=n.blocks.map((e=>(0,st.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e}(e))));1===u.length&&n.categories?.length>0&&(u[0].attributes={...u[0].attributes,metadata:{...u[0].attributes.metadata,categories:n.categories,patternName:n.name,name:u[0].attributes.metadata.name||n.title}});const d=c(e);o.batch((()=>{s(),i(e,"default"),s(),a(t,u),s(),i(e,d)}))}))}}),[t,u,n,s,a,c,i,l]);const m=(0,ct.useBlockProps)();return u?(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Pattern "%s" cannot be rendered inside itself.'),n?.name)})}):(0,it.jsx)("div",{...m})};const{name:pb}=ab,mb={edit:db},gb=()=>jt({name:pb,metadata:ab,settings:mb});var hb=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,it.jsx)(St.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});const _b=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/page-list","title":"Page List","category":"widgets","allowedBlocks":["core/page-list-item"],"description":"Display a list of all pages.","keywords":["menu","navigation"],"textdomain":"default","attributes":{"parentPageID":{"type":"integer","default":0},"isNested":{"type":"boolean","default":false}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true,"link":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"contentRole":true},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}');function xb(e,t){for(const o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){const e=xb(o.innerBlocks,t);if(e)return e}}return null}function bb(e=[],t=null){let o=function(e=[]){const t="post-type",o={},n=[];return e.forEach((({id:e,title:r,link:a,type:i,parent:s})=>{const l=o[e]?.innerBlocks??[];o[e]=(0,st.createBlock)("core/navigation-link",{id:e,label:r.rendered,url:a,type:i,kind:t,metadata:{bindings:d_(t)}},l),s?(o[s]||(o[s]={innerBlocks:[]}),o[s].innerBlocks.push(o[e])):n.push(o[e])})),n}(e);if(t){const e=xb(o,t);e&&e.innerBlocks&&(o=e.innerBlocks)}const n=e=>{e.forEach(((e,t,o)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){n(a);const e=(0,st.createBlock)("core/navigation-submenu",r,a);o[t]=e}}))};return n(o),o}function fb({clientId:e,pages:t,parentClientId:o,parentPageID:n}){const{replaceBlock:r,selectBlock:a}=(0,lt.useDispatch)(ct.store);return()=>{const i=bb(t,n);r(e,i),a(o)}}const yb=(0,pt.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function vb({onClick:e,onClose:t,disabled:o}){return(0,it.jsxs)(mt.Modal,{onRequestClose:t,title:(0,pt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,xt.useInstanceId)(vb,"wp-block-page-list-modal__description")},children:[(0,it.jsx)("p",{id:(0,xt.useInstanceId)(vb,"wp-block-page-list-modal__description"),children:yb}),(0,it.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:o,onClick:e,children:(0,pt.__)("Edit")})]})]})}const kb=()=>{};function wb({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:n,pages:r,parentPageID:a}){if(!o)return(0,it.jsx)("div",{...e,children:(0,it.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(null===r)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===r.length)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"info",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===n.length){const t=r.find((e=>e.id===a));return t?.title?.rendered?(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Page List: "%s" page has no children.'),t.title.rendered)})}):(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})})}return r.length>0?(0,it.jsx)("ul",{...t}):void 0}const{name:Cb}=_b,jb={icon:hb,example:{},edit:function({context:e,clientId:t,attributes:o,setAttributes:n}){const{parentPageID:r}=o,[a,i]=(0,gt.useState)(!1),s=(0,gt.useCallback)((()=>i(!0)),[]),l=vt(),{records:c,hasResolved:u}=(0,_t.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=100,p=(0,gt.useMemo)((()=>{if(null===c)return new Map;const e=c.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:o}=t;return e.has(o)?e.get(o).push(t):e.set(o,[t]),e}),new Map)}),[c]),m=(0,ct.useBlockProps)({className:Dt("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ct.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ct.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(0,gt.useMemo)((function e(t=0,o=0){const n=p.get(t);return n?.length?n.reduce(((t,n)=>{const r=p.has(n.id),a={value:n.id,label:"— ".repeat(o)+n.title.rendered,rawName:n.title.rendered};return t.push(a),r&&t.push(...e(n.id,o+1)),t}),[]):[]}),[p]),h=(0,gt.useMemo)((function e(t=r){const o=p.get(t);return o?.length?o.reduce(((t,o)=>{const n=p.has(o.id),r={id:o.id,label:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),title:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),link:o.url,hasChildren:n};let a=null;const i=e(o.id);return a=(0,st.createBlock)("core/page-list-item",r,i),t.push(a),t}),[]):[]}),[p,r]),{isNested:_,hasSelectedChild:x,parentClientId:b,hasDraggedChild:f,isChildOfNavigation:y}=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:o,hasSelectedInnerBlock:n,hasDraggedInnerBlock:r}=e(ct.store),a=o(t,"core/navigation-submenu",!0),i=o(t,"core/navigation",!0);return{isNested:a.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:n(t,!0),hasDraggedChild:r(t,!0),parentClientId:i[0]}}),[t]),v=fb({clientId:t,pages:c,parentClientId:b,parentPageID:r}),k=(0,ct.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!y&&"all",onInput:kb,onChange:kb,value:h}),{selectBlock:w}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{(x||f)&&(s(),w(b))}),[x,f,b,w,s]),(0,gt.useEffect)((()=>{n({isNested:_})}),[_,n]),(0,it.jsxs)(it.Fragment,{children:[(g.length>0||d)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({parentPageID:0})},dropdownMenuProps:l,children:[g.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Parent Page"),hasValue:()=>0!==r,onDeselect:()=>n({parentPageID:0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,pt.__)("Parent"),value:r,options:g,onChange:e=>n({parentPageID:e??0}),help:(0,pt.__)("Choose a page to show only its subpages.")})}),d&&(0,it.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,it.jsx)("p",{children:yb}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!u,onClick:v,children:(0,pt.__)("Edit")})]})]})}),d&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{title:(0,pt.__)("Edit"),onClick:s,children:(0,pt.__)("Edit")})}),a&&(0,it.jsx)(vb,{onClick:v,onClose:()=>i(!1),disabled:!u})]}),(0,it.jsx)(wb,{blockProps:m,innerBlocksProps:k,hasResolvedPages:u,blockList:h,pages:c,parentPageID:r})]})}},Sb=()=>jt({name:Cb,metadata:_b,settings:jb}),Bb=JSON.parse('{"$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":false,"html":false,"lock":false,"inserter":false,"__experimentalToolbar":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}'),Tb=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});const{name:Nb}=Bb,Pb={__experimentalLabel:({label:e})=>e,icon:Eh,example:{},edit:function({context:e,attributes:t}){const{id:o,label:n,link:r,hasChildren:a,title:i}=t,s="showSubmenuIcon"in e,l=(0,lt.useSelect)((e=>{if(!e(_t.store).canUser("read",{kind:"root",name:"site"}))return;const t=e(_t.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=H_(L_(e,!0)),u=(0,ct.useBlockProps)(c,{className:"wp-block-pages-list__item"}),d=(0,ct.useInnerBlocksProps)(u);return(0,it.jsxs)("li",{className:Dt("wp-block-pages-list__item",{"has-child":a,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===l}),children:[a&&e.openSubmenusOnClick?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,ao.decodeEntities)(n)}),(0,it.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,it.jsx)(Tb,{})})]}):(0,it.jsx)("a",{className:Dt("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:r,children:(0,ao.decodeEntities)(i)}),a&&(0,it.jsxs)(it.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,it.jsx)("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",type:"button",children:(0,it.jsx)(Tb,{})}),(0,it.jsx)("ul",{...d})]})]},o)}},Ib=()=>jt({name:Nb,metadata:Bb,settings:Pb});var Db=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Mb={className:!1},zb={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"}},Ab=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:o,customBackgroundColor:n,customFontSize:r,...a}=e;return{...a,style:t}},{style:Lb,...Hb}=zb,Rb=[{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ab,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[`has-text-align-${t}`]:t,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ab,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c,textAlign:t};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Ab,save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u}=e,d=(0,ct.getColorClassName)("color",i),p=(0,ct.getColorClassName)("background-color",a),m=c&&`is-${c}-text`,g=Dt({[`align${t}`]:t,"has-background":a||s,"has-drop-cap":r,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:s,color:d?void 0:l,fontSize:m?void 0:u,textAlign:o};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n})}},{supports:Mb,attributes:{...Hb,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,fontSize:s}=e,l=Dt({[`align${t}`]:t,"has-background":a,"has-drop-cap":r}),c={backgroundColor:a,color:i,fontSize:s,textAlign:o};return(0,it.jsx)("p",{style:c,className:l||void 0,children:n})},migrate:e=>Ab({...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:Mb,attributes:{...zb,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,it.jsx)(gt.RawHTML,{children:e.content}),migrate:e=>e}];var Vb=Rb,Fb=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});function Eb(e){const{batch:t}=(0,lt.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:n,duplicateBlocks:r,insertBlock:a}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,getNextBlockClientId:d,canInsertBlockType:p}=(0,lt.useSelect)(ct.store),m=(0,gt.useRef)(e);return m.current=e,(0,xt.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==mn.ENTER)return;const{content:g,clientId:h}=m.current;if(g.length)return;const _=i(h);if(!(0,st.hasBlockSupport)(c(_),"__experimentalOnEnter",!1))return;const x=l(_),b=x.indexOf(h);if(b===x.length-1){let t=_;for(;!p(c(h),i(t));)t=i(t);return void("string"==typeof t&&(e.preventDefault(),o([h],_,i(t),s(t)+1)))}const f=(0,st.getDefaultBlockName)();if(!p(f,i(_)))return;e.preventDefault();const y=u(_);t((()=>{r([_]);const e=s(_);n(_,y.innerBlocks.slice(0,b)),n(d(_),y.innerBlocks.slice(b+1)),a((0,st.createBlock)(f),e+1,i(_),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function Ob({direction:e,setDirection:t}){return(0,pt.isRTL)()&&(0,it.jsx)(mt.ToolbarButton,{icon:Fb,title:(0,pt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function Gb(e){return e===((0,pt.isRTL)()?"left":"right")||"center"===e}function $b({clientId:e,attributes:t,setAttributes:o,name:n}){const[r]=(0,ct.useSettings)("typography.dropCap");if(!r)return null;const{align:a,dropCap:i}=t;let s;s=Gb(a)?(0,pt.__)("Not available for aligned text."):i?(0,pt.__)("Showing large initial letter."):(0,pt.__)("Show a large initial letter.");const l=(0,st.getBlockSupport)(n,"typography.defaultControls.dropCap",!1);return(0,it.jsx)(ct.InspectorControls,{group:"typography",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Drop cap"),isShownByDefault:l,onDeselect:()=>o({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Drop cap"),checked:!!i,onChange:()=>o({dropCap:!i}),help:s,disabled:Gb(a)})})})}var Ub=function({attributes:e,mergeBlocks:t,onReplace:o,onRemove:n,setAttributes:r,clientId:a,isSelected:i,name:s}){const{align:l,content:c,direction:u,dropCap:d,placeholder:p}=e,m=(0,ct.useBlockProps)({ref:Eb({clientId:a,content:c}),className:Dt({"has-drop-cap":!Gb(l)&&d,[`has-text-align-${l}`]:l}),style:{direction:u}}),g=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:l,onChange:e=>r({align:e,dropCap:!Gb(e)&&d})}),(0,it.jsx)(Ob,{direction:u,setDirection:e=>r({direction:e})})]}),i&&(0,it.jsx)($b,{name:s,clientId:a,attributes:e,setAttributes:r}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"p",...m,value:c,onChange:e=>r({content:e}),onMerge:t,onReplace:o,onRemove:n,"aria-label":ct.RichText.isEmpty(c)?(0,pt.__)("Empty block; start writing or type forward slash to choose a block"):(0,pt.__)("Block: Paragraph"),"data-empty":ct.RichText.isEmpty(c),placeholder:p||(0,pt.__)("Type / to choose a block"),"data-custom-placeholder":!!p||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})};const qb=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"p","role":"content"},"dropCap":{"type":"boolean","default":false},"placeholder":{"type":"string"},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"splitting":true,"anchor":true,"className":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalSelector":"p","__unstablePasteTextInline":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-paragraph-editor","style":"wp-block-paragraph"}');const Wb={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,st.getBlockAttributes)(qb.name,e.outerHTML),{textAlign:o}=e.style||{};return"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)(qb.name,t)}}]};var Zb=Wb;const Jb=[{name:"paragraph",title:(0,pt.__)("Paragraph"),description:(0,pt.__)("Start with the basic building block of all narrative."),isDefault:!0,scope:["block","inserter","transform"],attributes:{fitText:void 0},icon:Db},{name:"stretchy-paragraph",title:(0,pt.__)("Stretchy Paragraph"),description:(0,pt.__)("Paragraph that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm16.2-.2v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var Qb=Jb;const{name:Kb}=qb,Yb={icon:Db,example:{attributes:{content:(0,pt.__)("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}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){if(o)return o;const{content:t}=e;return t&&0!==t.length?t:(0,pt.__)("Empty")}},transforms:Zb,deprecated:Vb,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Ub,save:function({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:Qb},Xb=()=>jt({name:Kb,metadata:qb,settings:Yb});var ef=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 tf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author","title":"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":true},"showBio":{"type":"boolean"},"byline":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId","queryId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"filter":{"duotone":true}},"selectors":{"filter":{"duotone":".wp-block-post-author .wp-block-post-author__avatar img"}},"editorStyle":"wp-block-post-author-editor","style":"wp-block-post-author"}'),of={who:"authors",per_page:100,_fields:"id,name",context:"view"};function nf({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...of};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>{const t=(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)}))),o=t.findIndex((t=>e?.id===t.value));let n=[];return o<0&&e?n=[{value:e.id,label:(0,ao.decodeEntities)(e.name)}]:o<0&&!e&&(n=[{value:0,label:(0,pt.__)("(No author)")}]),[...n,...t]}),[r,e]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Author"),options:i,value:e?.id,onFilterValueChange:(0,xt.debounce)(n,300),onChange:t,allowReset:!1,isLoading:a})}var rf=function({isSelected:e,context:{postType:t,postId:o,queryId:n},attributes:r,setAttributes:a}){const i=Number.isFinite(n),s=vt(),l=yt(),{authorDetails:c,canAssignAuthor:u,supportsAuthor:d}=(0,lt.useSelect)((e=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=e(_t.store),i=n("postType",t,o),s=i?.author;return{authorDetails:s?r(s,{context:"view"}):null,supportsAuthor:a(t)?.supports?.author??!1,canAssignAuthor:!!i?._links?.["wp:action-assign-author"]}}),[t,o]),{editEntityRecord:p}=(0,lt.useDispatch)(_t.store),{textAlign:m,showAvatar:g,showBio:h,byline:_,isLink:x,linkTarget:b,avatarSize:f}=r,y=[],v=c?.name||(0,pt.__)("Post Author");c?.avatar_urls&&Object.keys(c.avatar_urls).forEach((e=>{y.push({value:e,label:`${e} x ${e}`})}));const k=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${m}`]:m})}),w=!!o&&!i&&u;return d||void 0===t?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[w&&(0,it.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,it.jsx)(nf,{value:c,onChange:e=>{p("postType",t,o,{author:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!g,onDeselect:()=>a({showAvatar:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show avatar"),checked:g,onChange:()=>a({showAvatar:!g})})}),g&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>48!==f,onDeselect:()=>a({avatarSize:48}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Avatar size"),value:f,options:y,onChange:e=>{a({avatarSize:Number(e)})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>a({showBio:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show bio"),checked:!!h,onChange:()=>a({showBio:!h})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link author name to author page"),checked:x,onChange:()=>a({isLink:!x})})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link target"),isShownByDefault:!0,hasValue:()=>"_self"!==b,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===b})})]})}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:m,onChange:e=>{a({textAlign:e})}})}),(0,it.jsxs)("div",{...k,children:[g&&(0,it.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,it.jsx)("img",{width:f,src:c?.avatar_urls?.[f]||l,alt:c?.name||(0,pt.__)("Default Avatar")})}),(0,it.jsxs)("div",{className:"wp-block-post-author__content",children:[(!ct.RichText.isEmpty(_)||e)&&(0,it.jsx)(ct.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,pt.__)("Post author byline text"),placeholder:(0,pt.__)("Write byline…"),value:_,onChange:e=>a({byline:e})}),(0,it.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,it.jsx)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault(),children:v}):v}),h&&(0,it.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:c?.description}})]})]})]}):(0,it.jsx)("div",{...k,children:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),t)})};const{name:af}=tf,sf={icon:ef,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,pt.__)("Posted by")}},edit:rf},lf=()=>jt({name:af,metadata:tf,settings:sf}),cf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-name","title":"Author Name","category":"theme","description":"The author name.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-name"}');var uf=function({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:n,linkTarget:r},setAttributes:a}){const{authorName:i,supportsAuthor:s}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=o(_t.store),i=n("postType",e,t)?.author;return{authorName:i?r(i):null,supportsAuthor:a(e)?.supports?.author??!1}}),[e,t]),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),c=i?.name||(0,pt.__)("Author Name"),u=n?(0,it.jsx)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link",children:c}):c,d=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to author archive"),onChange:()=>a({isLink:!n}),checked:n})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==r,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})})]})}),(0,it.jsx)("div",{...l,children:s||void 0===e?u:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),e)})]})};var df={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author",{textAlign:e})}]};const{name:pf}=cf,mf={icon:ef,transforms:df,edit:uf},gf=()=>jt({name:pf,metadata:cf,settings:mf}),hf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-biography","title":"Author Biography","category":"theme","description":"The author biography.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-biography"}');var _f=function({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:n}){const{authorDetails:r}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r}=o(_t.store),a=n("postType",e,t)?.author;return{authorDetails:a?r(a):null}}),[e,t]),a=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),i=r?.description||(0,pt.__)("Author Biography");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})}),(0,it.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})]})};const{name:xf}=hf,bf={icon:ef,edit:_f},ff=()=>jt({name:xf,metadata:hf,settings:bf}),yf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":"fse","name":"core/post-comment","title":"Comment (deprecated)","category":"theme","allowedBlocks":["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],"description":"This block is deprecated. Please use the Comments block instead.","textdomain":"default","attributes":{"commentId":{"type":"number"}},"providesContext":{"commentId":"commentId"},"supports":{"html":false,"inserter":false,"interactivity":{"clientNavigation":true}}}');var vf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 kf=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const{name:wf}=yf,Cf={icon:gm,edit:function({attributes:{commentId:e},setAttributes:t}){const[o,n]=(0,gt.useState)(e),r=(0,ct.useBlockProps)(),a=(0,ct.useInnerBlocksProps)(r,{template:kf});return e?(0,it.jsx)("div",{...a}):(0,it.jsx)("div",{...r,children:(0,it.jsxs)(mt.Placeholder,{icon:vf,label:(0,pt._x)("Post Comment","block title"),instructions:(0,pt.__)("To show a comment, input the comment ID."),children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:e,onChange:e=>n(parseInt(e))}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:o})},children:(0,pt.__)("Save")})]})})},save:function(){const e=ct.useBlockProps.save(),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},jf=()=>jt({name:wf,metadata:yf,settings:Cf});var Sf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Bf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-count","title":"Comments Count","category":"theme","description":"Display a post\'s comments count.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-comments-count"}');var Tf={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-link",{textAlign:e})}]};const{name:Nf}=Bf,Pf={icon:Sf,edit:function({attributes:e,context:t,setAttributes:o}){const{textAlign:n}=e,{postId:r}=t,[a,i]=(0,gt.useState)(),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!r)return;const e=r;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const l=r&&void 0!==a,c={...s.style,textDecoration:l?s.style?.textDecoration:void 0};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...s,style:c,children:l?a:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Count block: post not found.")})})]})},transforms:Tf},If=()=>jt({name:Nf,metadata:Bf,settings:Pf});var Df=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Mf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-form","title":"Comments Form","category":"theme","description":"Display a post\'s comments form.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId","postType"],"supports":{"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-comments-form-editor","style":["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],"example":{"attributes":{"textAlign":"center"}}}');const{name:zf}=Mf,Af={icon:Df,edit:function e({attributes:t,context:o,setAttributes:n}){const{textAlign:r}=t,{postId:a,postType:i}=o,s=(0,xt.useInstanceId)(e),l=(0,pt.sprintf)("comments-form-edit-%d-desc",s),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r}),"aria-describedby":l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{n({textAlign:e})}})}),(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ea,{postId:a,postType:i}),(0,it.jsx)(mt.VisuallyHidden,{id:l,children:(0,pt.__)("Comments form disabled in editor.")})]})]})}},Lf=()=>jt({name:zf,metadata:Mf,settings:Af}),Hf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-link","title":"Comments Link","category":"theme","description":"Displays the link to the current post comments.","textdomain":"default","usesContext":["postType","postId"],"attributes":{"textAlign":{"type":"string"}},"example":{"viewportWidth":350},"supports":{"html":false,"color":{"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-comments-link"}');var Rf=function({context:e,attributes:t,setAttributes:o}){const{textAlign:n}=t,{postType:r,postId:a}=e,[i,s]=(0,gt.useState)(),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!a)return;const e=a;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&s(t.headers.get("X-WP-Total"))}))}),[a]);const c=(0,lt.useSelect)((e=>e(_t.store).getEditedEntityRecord("postType",r,a)),[r,a]);if(!c)return(0,it.jsx)("div",{...l,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})});const{link:u}=c;let d;if(void 0!==i){const e=parseInt(i);d=0===e?(0,pt.__)("No comments"):(0,pt.sprintf)((0,pt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...l,children:u&&void 0!==d?(0,it.jsx)("a",{href:u+"#comments",onClick:e=>e.preventDefault(),children:d}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})})]})};var Vf={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-count",{textAlign:e})}]};const{name:Ff}=Hf,Ef={edit:Rf,icon:Sf,transforms:Vf},Of=()=>jt({name:Ff,metadata:Hf,settings:Ef});var Gf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});const $f=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-content","title":"Content","category":"theme","description":"Displays the contents of a post or page.","textdomain":"default","usesContext":["postId","postType","queryId"],"attributes":{"tagName":{"type":"string","default":"div"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"layout":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"dimensions":{"minHeight":true},"spacing":{"blockGap":true,"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":false,"text":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-content","editorStyle":"wp-block-post-content-editor"}'),{HTMLElementControl:Uf}=jo(ct.privateApis);function qf({parentLayout:e,layoutClassNames:t,userCanEdit:o,postType:n,postId:r,tagName:a="div"}){const[,,i]=(0,_t.useEntityProp)("postType",n,"content",r),s=(0,ct.useBlockProps)({className:t}),l=(0,gt.useMemo)((()=>i?.raw?(0,st.parse)(i.raw):[]),[i?.raw]),c=(0,ct.__experimentalUseBlockPreview)({blocks:l,props:s,layout:e});return o?(0,it.jsx)("div",{...c}):i?.protected?(0,it.jsx)(a,{...s,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("This content is password protected.")})}):(0,it.jsx)(a,{...s,dangerouslySetInnerHTML:{__html:i?.rendered}})}function Wf({context:e={},tagName:t="div"}){const{postType:o,postId:n}=e,[r,a,i]=(0,_t.useEntityBlockEditor)("postType",o,{id:n}),s=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("postType",o,n)),[o,n]),l=!!s?.content?.raw||r?.length,c=(0,ct.useInnerBlocksProps)((0,ct.useBlockProps)({className:"entry-content"}),{value:r,onInput:a,onChange:i,template:l?void 0:[["core/paragraph"]]});return(0,it.jsx)(t,{...c})}function Zf(e){const{context:{queryId:t,postType:o,postId:n}={},layoutClassNames:r,tagName:a}=e,i=bt("postType",o,n);if(void 0===i)return null;const s=Number.isFinite(t);return i&&!s?(0,it.jsx)(Wf,{...e}):(0,it.jsx)(qf,{parentLayout:e.parentLayout,layoutClassNames:r,userCanEdit:i,postType:o,postId:n,tagName:a})}function Jf({layoutClassNames:e}){const t=(0,ct.useBlockProps)({className:e});return(0,it.jsxs)("div",{...t,children:[(0,it.jsx)("p",{children:(0,pt.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,it.jsx)("p",{children:(0,pt.__)("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,it.jsx)("p",{children:(0,pt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function Qf(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}function Kf({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Uf,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}const{name:Yf}=$f,Xf={icon:Gf,edit:function({context:e,attributes:{tagName:t="div"},setAttributes:o,clientId:n,__unstableLayoutClassNames:r,__unstableParentLayout:a}){const{postId:i,postType:s}=e,l=(0,ct.useHasRecursion)(i);return i&&s&&l?(0,it.jsx)(Qf,{}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Kf,{tagName:t,onSelectTagName:e=>{o({tagName:e})},clientId:n}),(0,it.jsx)(ct.RecursionProvider,{uniqueId:i,children:i&&s?(0,it.jsx)(Zf,{context:e,parentLayout:a,layoutClassNames:r}):(0,it.jsx)(Jf,{layoutClassNames:r})})]})}},ey=()=>jt({name:Yf,metadata:$f,settings:Xf}),ty=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-date","title":"Date","category":"theme","description":"Display a custom date.","textdomain":"default","attributes":{"datetime":{"type":"string","role":"content"},"textAlign":{"type":"string"},"format":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function oy(e){return/(?:^|[^\\])[aAgh]/.test(e)}const ny={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate:({metadata:{bindings:{datetime:{source:e,args:{key:t,...o}},...n},...r},...a})=>({metadata:{bindings:{datetime:{source:e,args:{field:t,...o}},...n},...r},...a}),isEligible:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&!!e?.metadata?.bindings?.datetime?.args?.key},ry={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate({className:e,displayType:t,metadata:o,...n}){if("date"===t||"modified"===t)return"modified"===t&&(e=Dt(e,"wp-block-post-date__modified-date")),{...n,className:e,metadata:{...o,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible:e=>!e.datetime&&!e?.metadata?.bindings?.datetime},ay={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var iy=[ny,ry,ay];const sy=[{name:"post-date",title:(0,pt.__)("Post Date"),description:(0,pt.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"date"===e?.metadata?.bindings?.datetime?.args?.field},{name:"post-date-modified",title:(0,pt.__)("Modified Date"),description:(0,pt.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"modified"===e?.metadata?.bindings?.datetime?.args?.field}];var ly=sy;const{name:cy}=ty,uy={icon:wa,edit:function({attributes:e,context:{postType:t,queryId:o},setAttributes:n,name:r}){const{datetime:a,textAlign:i,format:s,isLink:l}=e,c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i})}),u=vt(),[d,p]=(0,gt.useState)(null),m=(0,gt.useMemo)((()=>({anchor:d})),[d]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{void 0===a&&(g(),n({datetime:new Date}))}),[a]);const h=Number.isFinite(o),_=(0,ja.getSettings)(),{postType:x,siteFormat:b=_.formats.date,siteTimeFormat:f=_.formats.time}=(0,lt.useSelect)((e=>{const{getPostType:o,getEntityRecord:n}=e(_t.store),r=n("root","site");return{siteFormat:r?.date_format,siteTimeFormat:r?.time_format,postType:t?o(t):null}}),[t]),y=(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation(r,e)?.name),[r,e]),v=(0,ct.useBlockEditingMode)();let k=(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",a),ref:p,children:"human-diff"===s?(0,ja.humanTimeDiff)(a):(0,ja.dateI18n)(s||b,a)});return l&&a&&(k=(0,it.jsx)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault(),children:k})),(0,it.jsxs)(it.Fragment,{children:[("default"===v||!h)&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),"post-date-modified"!==y&&(!h||!y)&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,it.jsx)(ct.__experimentalPublishDateTimePicker,{title:"post-date"===y?(0,pt.__)("Publish Date"):(0,pt.__)("Date"),currentDate:a,onChange:e=>n({datetime:e}),is12Hour:oy(f),onClose:e,dateOrder:(0,pt._x)("dmy","date order")}),renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,icon:$l,title:(0,pt.__)("Change Date"),onClick:t,onKeyDown:o=>{e||o.keyCode!==mn.DOWN||(o.preventDefault(),t())}})})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:u,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:s,defaultFormat:b,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==l,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onChange:()=>n({isLink:!l}),checked:l})})]})}),(0,it.jsx)("div",{...c,children:k})]})},deprecated:iy,variations:ly},dy=()=>jt({name:cy,metadata:ty,settings:uy});var py=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});const my=JSON.parse('{"$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","role":"content"},"showMoreOnNewLine":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-excerpt-editor","style":"wp-block-post-excerpt"}');var gy={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-content")}]};const{name:hy}=my,_y={icon:py,transforms:gy,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:n},setAttributes:r,isSelected:a,context:{postId:i,postType:s,queryId:l}}){const c="default"===(0,ct.useBlockEditingMode)(),u=Number.isFinite(l),d=bt("postType",s,i),[p,m,{rendered:g,protected:h}={}]=(0,_t.useEntityProp)("postType",s,"excerpt",i),_=vt(),x=(0,lt.useSelect)((e=>"page"===s||!!e(_t.store).getPostType(s)?.supports?.excerpt),[s]),b=d&&!u&&x,f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),y=(0,pt._x)("words","Word count type. Do not translate!"),v=(0,gt.useMemo)((()=>{if(!g)return"";const e=(new window.DOMParser).parseFromString(g,"text/html");return e.body.textContent||e.body.innerText||""}),[g]);if(!s||!i)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)("div",{...f,children:(0,it.jsx)("p",{children:(0,pt.__)("This block will display the excerpt.")})})]});if(h&&!d)return(0,it.jsx)("div",{...f,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("The content is currently protected and does not have the available excerpt.")})});const k=(0,it.jsx)(ct.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)('Add "read more" link text'),value:t,onChange:e=>r({moreText:e}),withoutInteractiveFormatting:!0}),w=Dt("wp-block-post-excerpt__excerpt",{"is-inline":!o}),C=(p||v).trim();let j="";if("words"===y)j=C.split(" ",n).join(" ");else if("characters_excluding_spaces"===y){const e=C.split("",n).join(""),t=e.length-e.replaceAll(" ","").length;j=C.split("",n+t).join("")}else"characters_including_spaces"===y&&(j=C.split("",n).join(""));const S=j!==C,B=b?(0,it.jsx)(ct.RichText,{className:w,"aria-label":(0,pt.__)("Excerpt text"),value:a?C:(S?j+"…":C)||(0,pt.__)("No excerpt found"),onChange:m,tagName:"p"}):(0,it.jsx)("p",{className:w,children:S?j+"…":C||(0,pt.__)("No excerpt found")});return(0,it.jsxs)(it.Fragment,{children:[c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==o,label:(0,pt.__)("Show link on new line"),onDeselect:()=>r({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show link on new line"),checked:o,onChange:e=>r({showMoreOnNewLine:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==n,label:(0,pt.__)("Max number of words"),onDeselect:()=>r({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Max number of words"),value:n,onChange:e=>{r({excerptLength:e})},min:"10",max:"100"})})]})}),(0,it.jsxs)("div",{...f,children:[B,!o&&" ",o?(0,it.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:k}):k]})]})}},xy=()=>jt({name:hy,metadata:my,settings:_y});var by=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 fy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-featured-image","title":"Featured Image","category":"theme","description":"Display a post\'s featured image.","textdomain":"default","attributes":{"isLink":{"type":"boolean","default":false,"role":"content"},"aspectRatio":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"scale":{"type":"string","default":"cover"},"sizeSlug":{"type":"string"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"dimRatio":{"type":"number","default":0},"gradient":{"type":"string"},"customGradient":{"type":"string"},"useFirstImageFromPost":{"type":"boolean","default":false}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"align":["left","right","center","wide","full"],"color":{"text":false,"background":false},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"filter":{"duotone":true},"shadow":{"__experimentalSkipSerialization":true},"html":false,"spacing":{"margin":true,"padding":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay","shadow":".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder","filter":{"duotone":".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},"editorStyle":"wp-block-post-featured-image-editor","style":"wp-block-post-featured-image"}'),yy=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,pt._x)("Cover","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,pt._x)("Contain","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"fill",label:(0,pt._x)("Fill","Scale option for Image dimension control")})]}),vy="cover",ky={cover:(0,pt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,pt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,pt.__)("Image will be stretched and distorted to completely fill the space.")};var wy=({clientId:e,attributes:{aspectRatio:t,width:o,height:n,scale:r},setAttributes:a})=>{const[i,s,l,c]=(0,ct.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),u=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","%","vw","em","rem"]}),d=(e,t)=>{const o=parseFloat(t);isNaN(o)&&t||a({[e]:o<0?"0":t})},p=(0,pt._x)("Scale","Image scaling options"),m=n||t&&"auto"!==t,g=l?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=s?.map((({name:e,ratio:t})=>({label:e,value:t}))),_=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...c?h:[],...g||[]];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>a({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),value:t,options:_,onChange:e=>a({aspectRatio:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,pt.__)("Height"),onDeselect:()=>a({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Height"),labelPosition:"top",value:n||"",min:0,onChange:e=>d("height",e),units:u})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,pt.__)("Width"),onDeselect:()=>a({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:e=>d("width",e),units:u})}),m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r&&r!==vy,label:p,onDeselect:()=>a({scale:vy}),resetAllFilter:()=>({scale:vy}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:p,value:r,help:ky[r],onChange:e=>a({scale:e}),isBlock:!0,children:yy})})]})};var Cy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:o,overlayColor:n,setOverlayColor:r})=>{const{dimRatio:a}=t,{gradientValue:i,setGradient:s}=(0,ct.__experimentalUseGradient)(),l=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return l.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n.color,gradientValue:i,label:(0,pt.__)("Overlay"),onColorChange:r,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...l}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==a,label:(0,pt.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:a,onChange:e=>o({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null}));var jy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({attributes:e,overlayColor:t})=>{const{dimRatio:o}=e,{gradientClass:n,gradientValue:r}=(0,ct.__experimentalUseGradient)(),a=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,ct.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:r,...i.style};return a.hasColorsOrGradients&&o?(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-post-featured-image__overlay",(l=o,void 0===l?null:"has-background-dim-"+10*Math.round(l/10)),{[t.class]:t.class,"has-background-dim":void 0!==o,"has-background-gradient":r,[n]:n},i.className),style:s}):null;var l}));const Sy=["image"],{ResolutionTool:By}=jo(ct.privateApis),Ty="full";function Ny({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>e?.media_details?.sizes?.[t]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(By,{value:t,defaultValue:Ty,options:r,onChange:o})}const{name:Py}=fy,Iy={icon:by,edit:function({clientId:e,attributes:t,setAttributes:o,context:{postId:n,postType:r,queryId:a}}){const i=Number.isFinite(a),{isLink:s,aspectRatio:l,height:c,width:u,scale:d,sizeSlug:p,rel:m,linkTarget:g,useFirstImageFromPost:h}=t,[_,x]=(0,gt.useState)(),[b,f]=(0,_t.useEntityProp)("postType",r,"featured_media",n),[y]=(0,_t.useEntityProp)("postType",r,"content",n),v=(0,gt.useMemo)((()=>{if(b)return b;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(y);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[b,h,y]),{media:k,postType:w,postPermalink:C}=(0,lt.useSelect)((e=>{const{getEntityRecord:t,getPostType:o,getEditedEntityRecord:a}=e(_t.store);return{media:v&&t("postType","attachment",v,{context:"view"}),postType:r&&o(r),postPermalink:a("postType",r,n)?.link}}),[v,r,n]),j=k?.media_details?.sizes?.[p]?.source_url||k?.source_url,S=(0,ct.useBlockProps)({style:{width:u,height:c,aspectRatio:l},className:Dt({"is-transient":_})}),B=(0,ct.__experimentalUseBorderProps)(t),T=(0,ct.__experimentalGetShadowClassesAndStyles)(t),N=(0,ct.useBlockEditingMode)(),P=e=>(0,it.jsx)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",B.className),withIllustration:!0,style:{height:!!l&&"100%",width:!!l&&"100%",...B.style,...T.style},children:e}),I=e=>{e?.id&&f(e.id),e?.url&&(0,ht.isBlobURL)(e.url)&&x(e.url)};(0,gt.useEffect)((()=>{j&&_&&x()}),[j,_]);const{createErrorNotice:D}=(0,lt.useDispatch)(bo.store),M=e=>{D(e,{type:"snackbar"}),x()},z=vt(),A="default"===N&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(Cy,{attributes:t,setAttributes:o,clientId:e})}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(wy,{clientId:e,attributes:t,setAttributes:o,media:k})}),(v||i||!n)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Ty})},dropdownMenuProps:z,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==g,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>o({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m,onChange:e=>o({rel:e})})}),!!k&&(0,it.jsx)(Ny,{image:k,value:p,onChange:e=>o({sizeSlug:e})})]})})]});let L;if(!v&&(i||!n))return(0,it.jsxs)(it.Fragment,{children:[A,(0,it.jsxs)("div",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:P()}):P(),(0,it.jsx)(jy,{attributes:t,setAttributes:o,clientId:e})]})]});const H=(0,pt.__)("Add a featured image"),R={...B.style,...T.style,height:l?"100%":c,width:!!l&&"100%",objectFit:!(!c&&!l)&&d};return L=v||_?k||_?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:B.className,src:_||j,alt:k&&k?.alt_text?(0,pt.sprintf)((0,pt.__)("Featured image: %s"),k.alt_text):(0,pt.__)("Featured image"),style:R}),_&&(0,it.jsx)(mt.Spinner,{})]}):P():(0,it.jsx)(ct.MediaPlaceholder,{onSelect:I,accept:"image/*",allowedTypes:Sy,onError:M,placeholder:P,mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:H,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,it.jsxs)(it.Fragment,{children:[!_&&A,!!k&&!i&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:v,mediaURL:j,allowedTypes:Sy,accept:"image/*",onSelect:I,onError:M,onReset:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),f(0)}})}),(0,it.jsxs)("figure",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:L}):L,(0,it.jsx)(jy,{attributes:t,setAttributes:o,clientId:e})]})]})}},Dy=()=>jt({name:Py,metadata:fy,settings:Iy}),My=JSON.parse('{"$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","role":"content"},"showTitle":{"type":"boolean","default":false},"linkLabel":{"type":"boolean","default":false},"arrow":{"type":"string","default":"none"},"taxonomy":{"type":"string","default":""}},"usesContext":["postType"],"supports":{"reusable":false,"html":false,"color":{"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-navigation-link"}');var zy=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Ay=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ly=[{name:"post-previous",title:(0,pt.__)("Previous Post"),description:(0,pt.__)("Displays the post link that precedes the current post."),icon:zy,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,pt.__)("Next Post"),description:(0,pt.__)("Displays the post link that follows the current post."),icon:Ay,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}}];Ly.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Hy=Ly;const{name:Ry}=My,Vy={edit:function({context:{postType:e},attributes:{type:t,label:o,showTitle:n,textAlign:r,linkLabel:a,arrow:i,taxonomy:s},setAttributes:l}){const c="default"===(0,ct.useBlockEditingMode)(),u="next"===t;let d=u?(0,pt.__)("Next"):(0,pt.__)("Previous");const p={none:"",arrow:u?"→":"←",chevron:u?"»":"«"}[i];n&&(d=u?(0,pt.__)("Next: "):(0,pt.__)("Previous: "));const m=u?(0,pt.__)("Next post"):(0,pt.__)("Previous post"),g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),h=(0,lt.useSelect)((t=>{const{getTaxonomies:o}=t(_t.store);return o({type:e,per_page:-1})}),[e]),_=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{l({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>l({showTitle:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display the title as a link"),help:(0,pt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>l({linkLabel:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),isShownByDefault:!0,hasValue:()=>"none"!==i,onDeselect:()=>l({arrow:"none"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:i,onChange:e=>{l({arrow:e})},help:(0,pt.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Filter by taxonomy"),value:s,options:[{label:(0,pt.__)("Unfiltered"),value:""},...(h??[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>l({taxonomy:e}),help:(0,pt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:r,onChange:e=>{l({textAlign:e})}})}),(0,it.jsxs)("div",{...g,children:[!u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,it.jsx)(ct.RichText,{tagName:"a",identifier:"label","aria-label":m,placeholder:d,value:o,withoutInteractiveFormatting:!0,onChange:e=>l({label:e})}),n&&(0,it.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("An example title")}),u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})},variations:Hy,example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}},Fy=()=>jt({name:Ry,metadata:My,settings:Vy}),Ey=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-template","title":"Post Template","category":"theme","ancestor":["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","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-post-template","editorStyle":"wp-block-post-template-editor"}'),Oy=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Gy({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-post",e)},{template:Oy,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const $y=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-post",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:Uy}=Ey,qy={icon:Oa,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:n=0,postType:r,order:a,orderBy:i,author:s,search:l,exclude:c,sticky:u,inherit:d,taxQuery:p,parents:m,pages:g,format:h,..._}={},templateSlug:x,previewPostType:b},attributes:{layout:f},__unstableLayoutClassNames:y}){const{type:v,columnCount:k=3}=f||{},[w,C]=(0,gt.useState)(),{posts:j,blocks:S}=(0,lt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:f}=e(_t.store),{getBlocks:y}=e(ct.store),v=d&&x?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:x.replace("category-","")}),k=d&&x?.startsWith("tag-")&&g("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:x.replace("tag-","")}),w={offset:n||0,order:a,orderby:i};if(p&&!d){const e=f({type:r,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[o,n])=>{const r=e?.find((({slug:e})=>e===o));return r?.rest_base&&(t[r?.rest_base]=n),t}),{});Object.keys(t).length&&Object.assign(w,t)}o&&(w.per_page=o),s&&(w.author=s),l&&(w.search=l),c?.length&&(w.exclude=c),m?.length&&(w.parent=m),h?.length&&(w.format=h),["exclude","only"].includes(u)&&(w.sticky="only"===u),["","ignore"].includes(u)&&(delete w.sticky,w.ignore_sticky="ignore"===u);let C=r;d&&(x?.startsWith("archive-")?(w.postType=x.replace("archive-",""),C=w.postType):v?w.categories=v[0]?.id:k?w.tags=k[0]?.id:x?.startsWith("taxonomy-post_format")&&(w.format=x.replace("taxonomy-post_format-post-format-","")));return{posts:g("postType",b||C,{...w,..._}),blocks:y(t)}}),[o,n,a,i,t,s,l,r,c,u,d,x,p,m,h,_,b]),B=(0,gt.useMemo)((()=>j?.map((e=>({postType:e.type,postId:e.id,classList:e.class_list??""})))),[j]),T=(0,ct.useBlockProps)({className:Dt(y,{[`columns-${k}`]:"grid"===v&&k})});if(!j)return(0,it.jsx)("p",{...T,children:(0,it.jsx)(mt.Spinner,{})});if(!j.length)return(0,it.jsxs)("p",{...T,children:[" ",(0,pt.__)("No results found.")]});const N=t=>e({layout:{...f,...t}}),P=[{icon:Bm,title:(0,pt._x)("List view","Post template block display setting"),onClick:()=>N({type:"default"}),isActive:"default"===v||"constrained"===v},{icon:qd,title:(0,pt._x)("Grid view","Post template block display setting"),onClick:()=>N({type:"grid",columnCount:k}),isActive:"grid"===v}];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:P})}),(0,it.jsx)("ul",{...T,children:B&&B.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.postId===(w||B[0]?.postId)?(0,it.jsx)(Gy,{classList:e.classList}):null,(0,it.jsx)($y,{blocks:S,blockContextId:e.postId,classList:e.classList,setActiveBlockContextId:C,isHidden:e.postId===(w||B[0]?.postId)})]},e.postId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},Wy=()=>jt({name:Uy,metadata:Ey,settings:qy});var Zy=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Jy=JSON.parse('{"$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":"","role":"content"},"suffix":{"type":"string","default":"","role":"content"}},"usesContext":["postId","postType"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-terms"}'),Qy=[];const Ky=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];var Yy=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Xy={category:Zy,post_tag:Yy};function ev(e,t){if("core/post-terms"!==t)return e;const o=e.variations.map((e=>({...e,icon:Xy[e.name]??Zy})));return{...e,variations:o}}const{name:tv}=Jy,ov={icon:Zy,edit:function({attributes:e,clientId:t,context:o,isSelected:n,setAttributes:r,insertBlocksAfter:a}){const{term:i,textAlign:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=o,m="default"===(0,ct.useBlockEditingMode)(),g=(0,lt.useSelect)((e=>{if(!i)return{};const{getTaxonomy:t}=e(_t.store),o=t(i);return o?.visibility?.publicly_queryable?o:{}}),[i]),{postTerms:h,hasPostTerms:_,isLoading:x}=function({postId:e,term:t}){const{slug:o}=t;return(0,lt.useSelect)((n=>{const r=t?.visibility?.publicly_queryable;if(!r)return{postTerms:Qy,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:a,isResolving:i}=n(_t.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],l=a(...s);return{postTerms:l,isLoading:i("getEntityRecords",s),hasPostTerms:!!l?.length}}),[e,t?.visibility?.publicly_queryable,o])}({postId:d,term:g}),b=d&&p,f=(0,ct.useBlockDisplayInformation)(t),y=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${s}`]:s,[`taxonomy-${i}`]:i})});return(0,it.jsxs)(it.Fragment,{children:[m&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:s,onChange:e=>{r({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:l||"",onChange:e=>{r({separator:e})},help:(0,pt.__)("Enter character(s) used to separate terms.")})}),(0,it.jsxs)("div",{...y,children:[x&&b&&(0,it.jsx)(mt.Spinner,{}),!x&&(n||c)&&(0,it.jsx)(ct.RichText,{identifier:"prefix",allowedFormats:Ky,className:"wp-block-post-terms__prefix","aria-label":(0,pt.__)("Prefix"),placeholder:(0,pt.__)("Prefix")+" ",value:c,onChange:e=>r({prefix:e}),tagName:"span"}),(!b||!i)&&(0,it.jsx)("span",{children:f.title}),b&&!x&&_&&h.map((e=>(0,it.jsx)("a",{href:e.link,onClick:e=>e.preventDefault(),rel:"tag",children:(0,ao.decodeEntities)(e.name)},e.id))).reduce(((e,t)=>(0,it.jsxs)(it.Fragment,{children:[e,(0,it.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),t]}))),b&&!x&&!_&&(g?.labels?.no_terms||(0,pt.__)("Term items not found.")),!x&&(n||u)&&(0,it.jsx)(ct.RichText,{identifier:"suffix",allowedFormats:Ky,className:"wp-block-post-terms__suffix","aria-label":(0,pt.__)("Suffix"),placeholder:" "+(0,pt.__)("Suffix"),value:u,onChange:e=>r({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>a((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})]})}},nv=()=>((0,vl.addFilter)("blocks.registerBlockType","core/template-part",ev),jt({name:tv,metadata:Jy,settings:ov}));var rv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 av=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-time-to-read","title":"Time to Read","category":"theme","description":"Show minutes required to finish reading the post. Can also show a word count.","textdomain":"default","usesContext":["postId","postType"],"attributes":{"textAlign":{"type":"string"},"displayAsRange":{"type":"boolean","default":true},"displayMode":{"type":"string","default":"time"},"averageReadingSpeed":{"type":"number","default":189}},"supports":{"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}}}'),iv=window.wp.wordcount;var sv=function({attributes:e,setAttributes:t,context:o}){const{textAlign:n,displayAsRange:r,displayMode:a,averageReadingSpeed:i}=e,{postId:s,postType:l}=o,c=vt(),[u]=(0,_t.useEntityProp)("postType",l,"content",s),[d]=(0,_t.useEntityBlockEditor)("postType",l,{id:s}),p=(0,gt.useMemo)((()=>{let e;e=u instanceof Function?u({blocks:d}):d?(0,st.__unstableSerializeAndClean)(d):u;const t=(0,pt._x)("words","Word count type. Do not translate!"),o=(0,iv.count)(e||"",t);if("time"===a){if(r){let e=Math.max(1,Math.round(o/i*1.2));const t=Math.max(1,Math.round(o/i*.8));t===e&&(e+=1);const n=(0,pt._x)("%1$s–%2$s minutes","Range of minutes to read");return(0,pt.sprintf)(n,t,e)}const e=Math.max(1,Math.round(o/i));return(0,pt.sprintf)((0,pt._n)("%s minute","%s minutes",e),e)}if("words"===a)return"words"===t?(0,pt.sprintf)((0,pt._n)("%s word","%s words",o),o.toLocaleString()):(0,pt.sprintf)((0,pt._n)("%s character","%s characters",o),o.toLocaleString())}),[u,d,r,a,i]),m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{t({textAlign:e})}})}),"time"===a&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!r,onDeselect:()=>{t({displayAsRange:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as range"),checked:!!r,onChange:()=>t({displayAsRange:!r})})})})}),(0,it.jsx)("div",{...m,children:p})]})},lv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});const cv=[{name:"time-to-read",title:(0,pt.__)("Time to Read"),description:(0,pt.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>"time"===e?.displayMode,icon:rv,isDefault:!0},{name:"word-count",title:(0,pt.__)("Word Count"),description:(0,pt.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>"words"===e?.displayMode,icon:lv}];var uv=cv;const{name:dv}=av,pv={icon:rv,edit:sv,variations:uv,example:{}},mv=()=>jt({name:dv,metadata:av,settings:pv}),gv=JSON.parse('{"$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},"levelOptions":{"type":"array"},"isLink":{"type":"boolean","default":false,"role":"content"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-title"}');const hv={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var _v=[hv];const{name:xv}=gv,bv={icon:ji,edit:function({attributes:{level:e,levelOptions:t,textAlign:o,isLink:n,rel:r,linkTarget:a},setAttributes:i,context:{postType:s,postId:l,queryId:c},insertBlocksAfter:u}){const d=0===e?"p":`h${e}`,p=Number.isFinite(c),m=(0,lt.useSelect)((e=>!p&&e(_t.store).canUser("update",{kind:"postType",name:s,id:l})),[p,s,l]),[g="",h,_]=(0,_t.useEntityProp)("postType",s,"title",l),[x]=(0,_t.useEntityProp)("postType",s,"link",l),b=()=>{u((0,st.createBlock)((0,st.getDefaultBlockName)()))},f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),y=(0,ct.useBlockEditingMode)(),v=vt();let k=(0,it.jsx)(d,{...f,children:(0,pt.__)("Title")});return s&&l&&(k=m?(0,it.jsx)(ct.PlainText,{tagName:d,placeholder:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b,...f}):(0,it.jsx)(d,{...f,dangerouslySetInnerHTML:{__html:_?.rendered}})),n&&s&&l&&(k=m?(0,it.jsx)(d,{...f,children:(0,it.jsx)(ct.PlainText,{tagName:"a",href:x,target:a,rel:r,placeholder:g.length?null:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b})}):(0,it.jsx)(d,{...f,children:(0,it.jsx)("a",{href:x,target:a,rel:r,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:_?.rendered}})})),(0,it.jsxs)(it.Fragment,{children:["default"===y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:e,options:t,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{i({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>i({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title a link"),onChange:()=>i({isLink:!n}),checked:n})}),n&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===a,onDeselect:()=>i({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>i({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>i({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:r,onChange:e=>i({rel:e})})})]})]})})]}),k]})},deprecated:_v},fv=()=>jt({name:xv,metadata:gv,settings:bv});var yv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 vv=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"anchor":true,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-preformatted"}');const kv={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,st.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,st.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,st.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,st.createBlock)("core/verse",e)}]};var wv=kv;const{name:Cv}=vv,jv={icon:yv,example:{attributes:{content:(0,pt.__)("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:wv,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n,insertBlocksAfter:r,style:a}){const{content:i}=e,s=(0,ct.useBlockProps)({style:a});return(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{o({content:e})},onRemove:n,"aria-label":(0,pt.__)("Preformatted text"),placeholder:(0,pt.__)("Write preformatted text…"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{value:t})})},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},Sv=()=>jt({name:Cv,metadata:vv,settings:jv});var Bv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Tv="is-style-solid-color",Nv={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 Pv(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Iv(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Dv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:n,multiline:!0}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},migrate:({value:e,...t})=>({value:Iv(e),...t})},Mv={attributes:{...Nv},save({attributes:e}){const{mainColor:t,customMainColor:o,customTextColor:n,textColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Tv);let c,u;if(l){const e=(0,ct.getColorClassName)("background-color",t);c=Dt({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else o&&(u={borderColor:o});const d=(0,ct.getColorClassName)("color",r),p=Dt({"has-text-color":r||n,[d]:d}),m=d?void 0:{color:n};return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:c,style:u}),children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Tv);let s;return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Iv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},zv={attributes:{...Nv,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s,figureStyle:l}=e,c=s?.includes(Tv);let u,d;if(c){const e=(0,ct.getColorClassName)("background-color",t);u=Dt({"has-background":e||o,[e]:e}),d={backgroundColor:e?void 0:o}}else if(o)d={borderColor:o};else if(t){d={borderColor:Pv(l)}}const p=(0,ct.getColorClassName)("color",n),m=(n||r)&&Dt("has-text-color",{[p]:p}),g=p?void 0:{color:r};return(0,it.jsx)("figure",{className:u,style:d,children:(0,it.jsxs)("blockquote",{className:m,style:g,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:n,customMainColor:r,customTextColor:a,...i}){const s=t?.includes(Tv);let l;if(r&&(l=s?{color:{background:r}}:{border:{color:r}}),a&&l&&(l.color={...l.color,text:a}),!s&&n&&o){const n=Pv(o);if(n)return{value:Iv(e),...i,className:t,style:{border:{color:n}}}}return{value:Iv(e),className:t,backgroundColor:s?n:void 0,borderColor:s?void 0:n,textAlign:s?"left":void 0,style:l,...i}}},Av={attributes:Nv,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Tv);let c,u;if(l)c=(0,ct.getColorClassName)("background-color",t),c||(u={backgroundColor:o});else if(o)u={borderColor:o};else if(t){const e=(0,lt.select)(ct.store).getSettings().colors??[];u={borderColor:(0,ct.getColorObjectByAttributeValues)(e,t).color}}const d=(0,ct.getColorClassName)("color",n),p=n||r?Dt("has-text-color",{[d]:d}):void 0,m=d?void 0:{color:r};return(0,it.jsx)("figure",{className:c,style:u,children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Tv);let s={};return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Iv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},Lv={attributes:{...Nv},save({attributes:e}){const{value:t,citation:o}=e;return(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:({value:e,...t})=>({value:Iv(e),...t})},Hv={attributes:{...Nv,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return(0,it.jsxs)("blockquote",{className:`align${n}`,children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:o})]})},migrate:({value:e,...t})=>({value:Iv(e),...t})};var Rv=[Dv,Mv,zv,Av,Lv,Hv];const Vv="web"===gt.Platform.OS;var Fv=function({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:n}){const{textAlign:r,citation:a,value:i}=e,s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),l=!ct.RichText.isEmpty(a)||o;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("figure",{...s,children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText,{identifier:"value",tagName:"p",value:i,onChange:e=>t({value:e}),"aria-label":(0,pt.__)("Pullquote text"),placeholder:(0,pt.__)("Add quote"),textAlign:"center"}),l&&(0,it.jsx)(ct.RichText,{identifier:"citation",tagName:Vv?"cite":void 0,style:{display:"block"},value:a,"aria-label":(0,pt.__)("Pullquote citation text"),placeholder:(0,pt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})})]})};const Ev=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"p","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"background":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"__experimentalStyle":{"typography":{"fontSize":"1.5em","lineHeight":"1.6"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-pullquote-editor","style":"wp-block-pullquote"}');const Ov={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/pullquote",{value:(0,Tn.toHTMLString)({value:(0,Tn.join)(e.map((({content:e})=>(0,Tn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,st.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&o.push((0,st.createBlock)("core/paragraph",{content:e})),t&&o.push((0,st.createBlock)("core/paragraph",{content:t})),0===o.length?(0,st.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,st.createBlock)("core/heading",{content:t});const o=(0,st.createBlock)("core/heading",{content:e});return t?[o,(0,st.createBlock)("core/heading",{content:t})]:o}}]};var Gv=Ov;const{name:$v}=Ev,Uv={icon:Bv,example:{attributes:{value:(0,pt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pt.__)("Matt Mullenweg")}},transforms:Gv,edit:Fv,save:function({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:n}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},deprecated:Rv},qv=()=>jt({name:$v,metadata:Ev,settings:Uv});var Wv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Zv=JSON.parse('{"$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.","keywords":["posts","list","blog","blogs","custom post types"],"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":true,"taxQuery":null,"parents":[],"format":[]}},"tagName":{"type":"string","default":"div"},"namespace":{"type":"string"},"enhancedPagination":{"type":"boolean","default":false}},"usesContext":["templateSlug"],"providesContext":{"queryId":"queryId","query":"query","displayLayout":"displayLayout","enhancedPagination":"enhancedPagination"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true,"contentRole":true},"editorStyle":"wp-block-query-editor"}'),Jv=e=>{const t=e?.reduce(((e,t)=>{const{mapById:o,mapByName:n,names:r}=e;return o[t.id]=t,n[t.name]=t,r.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Qv=(e,t)=>{const o=t.split(".");let n=e;return o.forEach((e=>{n=n?.[e]})),n},Kv=(e,t)=>(e||[]).map((e=>({...e,name:(0,ao.decodeEntities)(Qv(e,t))}))),Yv=e=>{const t=(0,lt.useSelect)((t=>{const{getTaxonomies:o,getPostType:n}=t(_t.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]}),[e]);return(0,gt.useMemo)((()=>t?.filter((({visibility:e})=>!!e?.publicly_queryable))),[t])};function Xv(e,t){return!e||e.includes(t)}const ek=e=>(0,lt.useSelect)((t=>{const{getClientIdsOfDescendants:o,getBlockName:n}=t(ct.store);return o(e).some((e=>{const t=n(e),o=Object.is((0,st.getBlockSupport)(t,"interactivity"),!0),r=(0,st.getBlockSupport)(t,"interactivity.clientNavigation");return!o&&!r}))}),[e]);function tk({enhancedPagination:e,setAttributes:t,clientId:o}){const n=ek(o);let r=(0,pt.__)("Reload the full page—instead of just the posts list—when visitors navigate between pages.");return n&&(r=(0,pt.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reload full page"),help:r,checked:!e,disabled:n,onChange:e=>{t({enhancedPagination:!e})}})})}const ok=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];var nk=function({order:e,orderBy:t,orderByOptions:o=ok,onChange:n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Order by"),value:`${t}/${e}`,options:o,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const rk={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var ak=function({value:e,onChange:t}){const o=(0,lt.useSelect)((e=>{const{getUsers:t}=e(_t.store);return t(rk)}),[]);if(!o)return null;const n=Jv(o),r=(e?e.toString().split(","):[]).reduce(((e,t)=>{const o=n.mapById[t];return o&&e.push({id:t,value:o.name}),e}),[]);return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Authors"),value:r,suggestions:n.names,onChange:e=>{const o=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e[t]?.id;if(o)return o})(n.mapByName,t);return o&&e.add(o),e}),new Set));t({author:o.join(",")})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})};const ik=[],sk={order:"asc",_fields:"id,title",context:"view"};var lk=function({parents:e,postType:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(ik),[s,l]=(0,gt.useState)(ik),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:ik,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["postType",t,{...sk,search:n,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,t,e]),p=(0,lt.useSelect)((o=>{if(!e?.length)return ik;const{getEntityRecords:n}=o(_t.store);return n("postType",t,{...sk,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||i(ik),!p?.length)return;const t=Jv(Kv(p,"title.rendered")),o=e.reduce(((e,o)=>{const n=t.mapById[o];return n&&e.push({id:o,value:n.name}),e}),[]);i(o)}),[e,p]);const m=(0,gt.useMemo)((()=>u?.length?Jv(Kv(u,"title.rendered")):ik),[u]);return(0,gt.useEffect)((()=>{d&&l(m.names)}),[m.names,d]),(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,label:(0,pt.__)("Parents"),value:a,onInputChange:c,suggestions:s,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e?.[t]?.id;if(o)return o})(m.mapByName,t);return o&&e.add(o),e}),new Set));l(ik),o({parents:t})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0})};const ck=[],uk={order:"asc",_fields:"id,name",context:"view"},dk=(e,t)=>{const o=t?.id||e?.find((e=>e.name===t))?.id;if(o)return o;const n=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===n))?.id};function pk({onChange:e,query:t}){const{postType:o,taxQuery:n}=t,r=Yv(o);return r&&0!==r.length?(0,it.jsx)(mt.__experimentalVStack,{spacing:4,children:r.map((t=>{const o=n?.[t.slug]||[];return(0,it.jsx)(mk,{taxonomy:t,termIds:o,onChange:o=>e({taxQuery:{...n,[t.slug]:o}})},t.slug)}))}):null}function mk({taxonomy:e,termIds:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(ck),[s,l]=(0,gt.useState)(ck),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:ck,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",e.slug,{...uk,search:n,orderby:"name",exclude:t,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,e.slug,t]),p=(0,lt.useSelect)((o=>{if(!t?.length)return ck;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",e.slug,{...uk,include:t,per_page:t.length})}),[e.slug,t]);(0,gt.useEffect)((()=>{if(t?.length||i(ck),!p?.length)return;const e=t.reduce(((e,t)=>{const o=p.find((e=>e.id===t));return o&&e.push({id:t,value:o.name}),e}),[]);i(e)}),[t,p]),(0,gt.useEffect)((()=>{d&&l(u.map((e=>e.name)))}),[u,d]);return(0,it.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,it.jsx)(mt.FormTokenField,{label:e.name,value:a,onInputChange:c,suggestions:s,displayTransform:ao.decodeEntities,onChange:e=>{const t=new Set;for(const o of e){const e=dk(u,o);e&&t.add(e)}l(ck),o(Array.from(t))},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}const gk=[{value:"aside",label:(0,pt.__)("Aside")},{value:"audio",label:(0,pt.__)("Audio")},{value:"chat",label:(0,pt.__)("Chat")},{value:"gallery",label:(0,pt.__)("Gallery")},{value:"image",label:(0,pt.__)("Image")},{value:"link",label:(0,pt.__)("Link")},{value:"quote",label:(0,pt.__)("Quote")},{value:"standard",label:(0,pt.__)("Standard")},{value:"status",label:(0,pt.__)("Status")},{value:"video",label:(0,pt.__)("Video")}].sort(((e,t)=>{const o=e.label.toUpperCase(),n=t.label.toUpperCase();return o<n?-1:o>n?1:0}));function hk(e,t){return e.map((e=>t.find((t=>t.label.toLocaleLowerCase()===e.toLocaleLowerCase()))?.value)).filter(Boolean)}function _k({onChange:e,query:{format:t}}){const o=Array.isArray(t)?t:[t],{supportedFormats:n}=(0,lt.useSelect)((e=>({supportedFormats:e(_t.store).getThemeSupports().formats})),[]),r=gk.filter((e=>n.includes(e.value))),a=o.map((e=>r.find((t=>t.value===e))?.label)).filter(Boolean),i=r.filter((e=>!o.includes(e.value))).map((e=>e.label));return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Formats"),value:a,suggestions:i,onChange:t=>{e({format:hk(t,r)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}const xk=[{label:(0,pt.__)("Include"),value:""},{label:(0,pt.__)("Ignore"),value:"ignore"},{label:(0,pt.__)("Exclude"),value:"exclude"},{label:(0,pt.__)("Only"),value:"only"}];function bk({value:e,onChange:t}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Sticky posts"),options:xk,value:e,onChange:t,help:(0,pt.__)("Sticky posts always appear first, regardless of their publish date.")})}var fk=({perPage:e,offset:t=0,onChange:o})=>(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Items per page"),min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||o({perPage:e,offset:t})},value:parseInt(e,10)});var yk=({offset:e=0,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Offset"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})}});var vk=({pages:e,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Max pages to show"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},help:(0,pt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")});function kk(e){const{attributes:t,setQuery:o,isSingular:n}=e,{query:r}=t,{order:a,orderBy:i,author:s,pages:l,postType:c,perPage:u,offset:d,sticky:p,inherit:m,taxQuery:g,parents:h,format:_}=r,x=function(e){return(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),b="post"===c,{postTypesTaxonomiesMap:f,postTypesSelectOptions:y,postTypeFormatSupportMap:v}=(()=>{const e=(0,lt.useSelect)((e=>{const{getPostTypes:t}=e(_t.store),o=["attachment"],n=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!o.includes(t)));return n}),[]);return{postTypesTaxonomiesMap:(0,gt.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,gt.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e]),postTypeFormatSupportMap:(0,gt.useMemo)((()=>e?.length?e.reduce(((e,t)=>(e[t.slug]=t.supports?.["post-formats"]||!1,e)),{}):{}),[e])}})(),k=Yv(c),w=function(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return o?.viewable&&o?.hierarchical}),[e])}(c),C=e=>{const t={postType:e},n=f[e],r=Object.entries(g||{}).reduce(((e,[t,o])=>(n.includes(t)&&(e[t]=o),e)),{});t.taxQuery=Object.keys(r).length?r:void 0,"post"!==e&&(t.sticky=""),t.parents=[];v[e]||(t.format=[]),o(t)},[j,S]=(0,gt.useState)(r.search),B=(0,gt.useMemo)((()=>(0,xt.debounce)((e=>{o({search:e})}),250)),[o]),T=function(e){const t=(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return!!o?.supports?.["page-attributes"]}),[e]);return(0,gt.useMemo)((()=>{const e=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];return t&&e.push({label:(0,pt.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,pt.__)("Descending by order"),value:"menu_order/desc"}),e}),[t])}(c),N=Xv(x,"inherit"),P=!m&&Xv(x,"postType"),I=(0,pt.__)("Post type"),D=(0,pt.__)("Select the type of content to display: posts, pages, or custom post types."),M=!m&&Xv(x,"order"),z=!m&&b&&Xv(x,"sticky"),A=N||P||M||z,L=!!k?.length&&Xv(x,"taxQuery"),H=Xv(x,"author"),R=Xv(x,"search"),V=Xv(x,"parents")&&w,F=v[c],E=(0,lt.useSelect)((e=>{if(!F||!Xv(x,"format"))return!1;const t=e(_t.store).getThemeSupports();return t.formats&&t.formats.length>0&&t.formats.some((e=>"standard"!==e))}),[x,F]),O=L||H||R||V||E,G=vt(),$=Xv(x,"postCount"),U=Xv(x,"offset"),q=Xv(x,"pages"),W=$||U||q,Z=n&&m;return(0,it.jsxs)(it.Fragment,{children:[A&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:G,children:[N&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!m,label:(0,pt.__)("Query type"),onDeselect:()=>o({inherit:!0}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Query type"),isBlock:!0,onChange:e=>{o({inherit:"default"===e})},help:m?(0,pt.__)("Display a list of posts or custom post types based on the current template."):(0,pt.__)("Display a list of posts or custom post types based on specific criteria."),value:m?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]}),Z&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),P&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post"!==c,label:I,onDeselect:()=>C("post"),isShownByDefault:!0,children:y.length>2?(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:y,value:c,label:I,onChange:C,help:D}):(0,it.jsx)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,value:c,label:I,onChange:C,help:D,children:y.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value)))})}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==a||"date"!==i,label:(0,pt.__)("Order by"),onDeselect:()=>o({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,it.jsx)(nk,{order:a,orderBy:i,orderByOptions:T,onChange:o})}),z&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Sticky posts"),onDeselect:()=>o({sticky:""}),isShownByDefault:!0,children:(0,it.jsx)(bk,{value:p,onChange:e=>o({sticky:e})})})]}),!m&&W&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,pt.__)("Display"),resetAll:()=>{o({offset:0,pages:0})},dropdownMenuProps:G,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Items per page"),hasValue:()=>u>0,children:(0,it.jsx)(fk,{perPage:u,offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>o({offset:0}),children:(0,it.jsx)(yk,{offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max pages to show"),hasValue:()=>l>0,onDeselect:()=>o({pages:0}),children:(0,it.jsx)(vk,{pages:l,onChange:o})})]}),!m&&O&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,pt.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null,format:[]}),S("")},dropdownMenuProps:G,children:[L&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some((e=>!!e.length)),onDeselect:()=>o({taxQuery:null}),children:(0,it.jsx)(pk,{onChange:o,query:r})}),H&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,it.jsx)(ak,{value:s,onChange:o})}),R&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!j,label:(0,pt.__)("Keyword"),onDeselect:()=>{o({search:""}),S("")},children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Keyword"),value:j,onChange:e=>{B(e),S(e)}})}),V&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:(0,pt.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,it.jsx)(lk,{parents:h,postType:c,onChange:o})}),E&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_?.length,label:(0,pt.__)("Formats"),onDeselect:()=>o({format:[]}),children:(0,it.jsx)(_k,{onChange:o,query:r})})]})]})}const wk="wp-block-query-enhanced-pagination-modal__description";function Ck({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){const[n,r]=(0,gt.useState)(!1),a=ek(e);(0,gt.useEffect)((()=>{t&&a&&(o({enhancedPagination:!1}),r(!0))}),[t,a,o]);const i=()=>{r(!1)},s=(0,pt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,pt.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return n&&(0,it.jsx)(mt.Modal,{title:(0,pt.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:wk},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:i,children:(0,it.jsxs)(mt.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,it.jsx)("span",{id:wk,children:s}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:i,children:(0,pt.__)("OK")})]})})}function jk(e=""){return e=(e=su()(e)).trim().toLowerCase()}function Sk(e,t){const o=jk(t),n=jk(e.title);let r=0;if(o===n)r+=30;else if(n.startsWith(o))r+=20;else{o.split(" ").every((e=>n.includes(e)))&&(r+=10)}return r}function Bk(e=[],t=""){if(!t)return e;const o=e.map((e=>[e,Sk(e,t)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))}function Tk({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){return(0,it.jsx)(mt.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,pt.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,it.jsx)(Pk,{clientId:e,attributes:t})})}function Nk(e,t){const o=function(e,t){return(0,lt.useSelect)((o=>{const n=o(st.store).getActiveBlockVariation("core/query",t)?.name;if(!n)return"core/query";const{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(`core/query/${n}`,r(e)).length>0?`core/query/${n}`:"core/query"}),[e,t])}(e,t),n=((e,t)=>(0,lt.useSelect)((o=>{const{getBlockRootClientId:n,getPatternsByBlockTypes:r}=o(ct.store),a=n(e);return r(t,a)}),[t,e]))(e,o);return(0,gt.useMemo)((()=>n.filter((e=>e.blocks?.[0]?.name===o))),[n,o])}function Pk({clientId:e,attributes:t,showTitlesAsTooltip:o=!1,showSearch:n=!0}){const[r,a]=(0,gt.useState)(""),{replaceBlock:i,selectBlock:s}=(0,lt.useDispatch)(ct.store),l=Nk(e,t),c=(0,gt.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),u=(0,gt.useMemo)((()=>Bk(l,r)),[l,r]);return(0,it.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[n&&(0,it.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:r,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),(0,it.jsx)(ct.BlockContextProvider,{value:c,children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:u,onClickPattern:(o,n)=>{const{newBlocks:r,queryClientIds:a}=((e,t)=>{const{query:{postType:o,inherit:n},namespace:r}=t,a=e.map((e=>(0,st.cloneBlock)(e))),i=[],s=[...a];for(;s.length>0;){const e=s.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:o,inherit:n},r&&(e.attributes.namespace=r),i.push(e.clientId)),e.innerBlocks?.forEach((e=>{s.push(e)}))}return{newBlocks:a,queryClientIds:i}})(n,t);i(e,r),a[0]&&s(a[0])},showTitlesAsTooltip:o})})]})}function Ik({clientId:e,attributes:t,hasInnerBlocks:o}){if(!Nk(e,t).length)return null;const n=o?(0,pt.__)("Change design"):(0,pt.__)("Choose pattern");return(0,it.jsx)(mt.ToolbarGroup,{className:"wp-block-template-part__block-control-group",children:(0,it.jsx)(mt.__experimentalDropdownContentWrapper,{children:(0,it.jsx)(mt.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-haspopup":"true","aria-expanded":e,onClick:t,children:n}),renderContent:()=>(0,it.jsx)(Pk,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}const{HTMLElementControl:Dk}=jo(ct.privateApis),Mk=[["core/post-template"]];function zk({attributes:e,setAttributes:t,clientId:o,context:n,name:r}){const{queryId:a,query:i,enhancedPagination:s,tagName:l="div",query:{inherit:c}={}}=e,{templateSlug:u}=n,{isSingular:d}=function(e){if(!e)return{isSingular:!0};let t=!1,o="wp"===e?"custom":e;const n=e.includes("-")?e.split("-",1)[0]:e;return(e.includes("-")?e.split("-").slice(1).join("-"):"")&&(o=n),t=["404","blank","single","page","custom"].includes(o),{isSingular:t,templateType:o}}(u),{__unstableMarkNextChangeAsNotPersistent:p}=(0,lt.useDispatch)(ct.store),m=(0,xt.useInstanceId)(zk),g=(0,ct.useBlockProps)(),h=(0,ct.useInnerBlocksProps)(g,{template:Mk}),{postsPerPage:_}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{getEntityRecord:o,getEntityRecordEdits:n,canUser:r}=e(_t.store),a=r("read",{kind:"root",name:"site"})?+o("root","site")?.posts_per_page:+t().postsPerPage;return{postsPerPage:+n("root","site")?.posts_per_page||a||3}}),[]),x=(0,gt.useCallback)((e=>t((t=>({query:{...t.query,...e}})))),[t]);return(0,gt.useEffect)((()=>{const e={};(c&&i.perPage!==_||!i.perPage&&_)&&(e.perPage=_),Object.keys(e).length&&(p(),x(e))}),[i.perPage,c,_,p,x]),(0,gt.useEffect)((()=>{Number.isFinite(a)||(p(),t({queryId:m}))}),[a,m,p,t]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Ik,{clientId:o,attributes:e,hasInnerBlocks:!0})}),(0,it.jsx)(Ck,{attributes:e,setAttributes:t,clientId:o}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(kk,{name:r,attributes:e,setQuery:x,setAttributes:t,clientId:o,isSingular:d})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(Dk,{tagName:l,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,it.jsx)(tk,{enhancedPagination:s,setAttributes:t,clientId:o})]}),(0,it.jsx)(l,{...h})]})}function Ak({attributes:e,clientId:t,name:o,openPatternSelectionModal:n}){const[r,a]=(0,gt.useState)(!1),[i,s]=(0,gt.useState)(0),l=(0,xt.useResizeObserver)((([e])=>{s(e.contentRect.width)})),c=i>0&&i<160,{blockType:u,activeBlockVariation:d}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e)}}),[o,e]),p=!!Nk(t,e).length,m=d?.icon?.src||d?.icon||u?.icon?.src,g=d?.title||u?.title,h=(0,ct.useBlockProps)({ref:l});return r?(0,it.jsx)(Lk,{clientId:t,attributes:e,icon:m,label:g}):(0,it.jsxs)("div",{...h,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Ik,{clientId:t,attributes:e,hasInnerBlocks:!1})}),(0,it.jsxs)(mt.Placeholder,{className:"block-editor-media-placeholder",icon:!c&&m,label:!c&&g,instructions:!c&&(0,pt.__)("Choose a pattern for the query loop or start blank."),withIllustration:c,children:[!!p&&!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{a(!0)},children:(0,pt.__)("Start blank")})]})]})}function Lk({clientId:e,attributes:t,icon:o,label:n}){const r=function(e){const{activeVariationName:t,blockVariations:o}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o,getBlockVariations:n}=t(st.store);return{activeVariationName:o("core/query",e)?.name,blockVariations:n("core/query","block")}}),[e]);return(0,gt.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return o.filter(e);const n=o.filter((e=>e.attributes?.namespace?.includes(t)));return n.length?n:o.filter(e)}),[t,o])}(t),{replaceInnerBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...i,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:o,label:n,variations:r,onSelect:t=>{t.innerBlocks&&a(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}})})}var Hk=e=>{const{clientId:t,attributes:o}=e,[n,r]=(0,gt.useState)(!1),a=(0,lt.useSelect)((e=>!!e(ct.store).getBlocks(t).length),[t])?zk:Ak;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(a,{...e,openPatternSelectionModal:()=>r(!0)}),n&&(0,it.jsx)(Tk,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:r})]})};const Rk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Vk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),Fk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Ek=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})}),Ok=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}];var Gk=[{name:"title-date",title:(0,pt.__)("Title & Date"),icon:Rk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ok]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,pt.__)("Title & Excerpt"),icon:Vk,attributes:{},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,pt.__)("Title, Date, & Excerpt"),icon:Fk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ok,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,pt.__)("Image, Date, & Title"),icon:Ek,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],Ok,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:$k}=jo(ct.privateApis),Uk=e=>{const{query:t}=e,{categoryIds:o,tagIds:n,...r}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(r.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:r}},qk=(e,t)=>{const{style:o,backgroundColor:n,gradient:r,textColor:a,...i}=e;if(!(n||r||a||o?.color||o?.elements?.link))return[e,t];if(o&&(i.style=$k({...o,color:void 0,elements:{...o.elements,link:void 0}})),Wk(t)){const e=t[0],s=o?.color||o?.elements?.link||e.attributes.style?$k({...e.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0;return[i,[(0,st.createBlock)("core/group",{...e.attributes,backgroundColor:n,gradient:r,textColor:a,style:s},e.innerBlocks)]]}return[i,[(0,st.createBlock)("core/group",{backgroundColor:n,gradient:r,textColor:a,style:$k({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t)]]},Wk=(e=[])=>1===e.length&&"core/group"===e[0].name,Zk=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:o=null,contentSize:n=null,...r}=t;return o||n?{...e,layout:{...r,contentSize:n,type:"constrained"}}:e},Jk=(e=[])=>{let t=null;for(const o of e){if("core/post-template"===o.name){t=o;break}o.innerBlocks.length&&(t=Jk(o.innerBlocks))}return t},Qk=(e=[],t)=>(e.forEach(((o,n)=>{"core/post-template"===o.name?e.splice(n,1,t):o.innerBlocks.length&&(o.innerBlocks=Qk(o.innerBlocks,t))})),e),Kk=(e,t)=>{const{displayLayout:o=null,...n}=e;if(!o)return[e,t];const r=Jk(t);if(!r)return[e,t];const{type:a,columns:i}=o,s="flex"===a?"grid":"default",l=(0,st.createBlock)("core/post-template",{...r.attributes,layout:{type:s,...i&&{columnCount:i}}},r.innerBlocks);return[n,Qk(t,l)]},Yk={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 o=Uk(e),{layout:n,...r}=o,a={...r,displayLayout:o.layout};return Kk(a,t)},save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},Xk={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 o=Uk(e),[n,r]=qk(o,t),a=Zk(n);return Kk(a,r)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},ew={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:o,gradient:n,textColor:r}=e;return o||n||r||t?.color||t?.elements?.link},migrate(e,t){const[o,n]=qk(e,t),r=Zk(o);return Kk(r,n)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},tw={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=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const o=Zk(e);return Kk(o,t)}};var ow=[{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=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:Kk},tw,ew,Xk,Yk];const{name:nw}=Zv,rw={icon:Wv,edit:Hk,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},variations:Gk,deprecated:ow},aw=()=>jt({name:nw,metadata:Zv,settings:rw}),iw=JSON.parse('{"$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.","ancestor":["core/query"],"textdomain":"default","usesContext":["queryId","query"],"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),sw=[["core/paragraph",{placeholder:(0,pt.__)("Add text or blocks that will display when a query returns no results.")}]];const{name:lw}=iw,cw={icon:Wv,edit:function(){const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:sw});return(0,it.jsx)("div",{...t})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("No posts were found.")}}]}},uw=()=>jt({name:lw,metadata:iw,settings:cw}),dw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination","title":"Pagination","category":"theme","ancestor":["core/query"],"allowedBlocks":["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],"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":true}},"usesContext":["queryId","query"],"providesContext":{"paginationArrow":"paginationArrow","showLabel":"showLabel"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-editor","style":"wp-block-query-pagination"}');function pw({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}function mw({value:e,onChange:t}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label text"),help:(0,pt.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:!0===e})}const gw=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var hw=[{save:()=>(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}];const{name:_w}=dw,xw={icon:ii,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:n}){const r=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),o=t(n);return o?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[n]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,lt.useDispatch)(ct.store),i=vt(),s=(0,ct.useBlockProps)(),l=(0,ct.useInnerBlocksProps)(s,{template:gw});return(0,gt.useEffect)((()=>{"none"!==e||t||(a(),o({showLabel:!0}))}),[e,o,t,a]),(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"none"!==e,label:(0,pt.__)("Pagination arrow"),onDeselect:()=>o({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(pw,{value:e,onChange:e=>{o({paginationArrow:e})}})}),"none"!==e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,pt.__)("Show text"),onDeselect:()=>o({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(mw,{value:t,onChange:e=>{o({showLabel:e})}})})]})}),(0,it.jsx)("nav",{...l})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},deprecated:hw},bw=()=>jt({name:_w,metadata:dw,settings:xw}),fw=JSON.parse('{"$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","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),yw={none:"",arrow:"→",chevron:"»"};const{name:vw}=fw,kw={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=yw[o];return(0,it.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Next page link"),placeholder:(0,pt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:r})]})}},ww=()=>jt({name:vw,metadata:fw,settings:kw}),Cw=JSON.parse('{"$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","attributes":{"midSize":{"type":"number","default":2}},"usesContext":["queryId","query","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-numbers-editor"}'),jw=(e,t="a",o="")=>(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e},e);const{name:Sw}=Cw,Bw={icon:fi,edit:function({attributes:e,setAttributes:t}){const{midSize:o}=e,n=(e=>{const t=[];for(let o=1;o<=e;o++)t.push(jw(o));t.push(jw(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(jw(e+1+o));return t.push(jw("...","span","dots")),t.push(jw(2*e+3)),(0,it.jsx)(it.Fragment,{children:t})})(parseInt(o,10)),r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of links"),hasValue:()=>2!==o,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Number of links"),help:(0,pt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:o,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:n})]})},example:{}},Tw=()=>jt({name:Sw,metadata:Cw,settings:Bw}),Nw=JSON.parse('{"$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","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),Pw={none:"",arrow:"←",chevron:"«"};const{name:Iw}=Nw,Dw={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=Pw[o];return(0,it.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:r}),n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Previous page link"),placeholder:(0,pt.__)("Previous Page"),value:e,onChange:e=>t({label:e})})]})}},Mw=()=>jt({name:Iw,metadata:Nw,settings:Dw}),zw=JSON.parse('{"$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},"levelOptions":{"type":"array"},"showPrefix":{"type":"boolean","default":true},"showSearchTerm":{"type":"boolean","default":true}},"example":{"attributes":{"type":"search"}},"usesContext":["query"],"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-query-title"}');const Aw=["archive","search","post-type"];const Lw=[{isDefault:!0,name:"archive-title",title:(0,pt.__)("Archive Title"),description:(0,pt.__)("Display the archive title based on the queried object."),icon:ji,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,pt.__)("Search Results Title"),description:(0,pt.__)("Display the search results title based on the queried object."),icon:ji,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,pt.__)("Post Type Label"),description:(0,pt.__)("Display the post type label based on the queried object."),icon:ji,attributes:{type:"post-type"},scope:["inserter"]}];Lw.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Hw=Lw;const Rw={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Vw=[Rw];const{name:Fw}=zw,Ew={icon:ji,edit:function({attributes:{type:e,level:t,levelOptions:o,textAlign:n,showPrefix:r,showSearchTerm:a},setAttributes:i,context:{query:s}}){const{archiveTypeLabel:l,archiveNameLabel:c}=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n,r,a=!1;if(t)t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(a=!0,t[2]&&(r=t[2]))}return(0,lt.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:i,getAuthors:s}=e(_t.store);let l,c;if(o&&(l=i(o)?.labels?.singular_name),n){const e=t("taxonomy",o,{slug:n,per_page:1});e&&e[0]&&(c=e[0].name)}if(a&&(l="Author",r)){const e=s({slug:r});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[r,a,o,n])}(),{postTypeLabel:u}=function(e){const t=(0,lt.useSelect)((e=>{const{getCurrentPostType:t}=e("core/editor");return t()}),[]);return(0,lt.useSelect)((o=>{const{getPostType:n}=o(_t.store),r=n(e||t);return{postTypeLabel:r?r.labels.singular_name:""}}),[e,t])}(s?.postType),d=vt(),p=0===t?"p":`h${t}`,m=(0,ct.useBlockProps)({className:Dt("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Aw.includes(e))return(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Provided type is not supported.")})});let g;if("archive"===e){let e;e=l?r?c?(0,pt.sprintf)((0,pt._x)("%1$s: %2$s","archive label"),l,c):(0,pt.sprintf)((0,pt.__)("%s: Name"),l):c||(0,pt.sprintf)((0,pt.__)("%s name"),l):r?(0,pt.__)("Archive type: Name"):(0,pt.__)("Archive title"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show archive type in title"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show archive type in title"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}if("search"===e&&(g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showSearchTerm:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Show search term in title"),onDeselect:()=>i({showSearchTerm:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show search term in title"),onChange:()=>i({showSearchTerm:!a}),checked:a})})})}),(0,it.jsx)(p,{...m,children:a?(0,pt.__)("Search results for: “search term”"):(0,pt.__)("Search results")})]})),"post-type"===e){let e;e=u?r?(0,pt.sprintf)((0,pt.__)('Post Type: "%s"'),u):u:r?(0,pt.__)("Post Type: Name"):(0,pt.__)("Name"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show post type label"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post type label"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:t,options:o,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{i({textAlign:e})}})]}),g]})},variations:Hw,deprecated:Vw},Ow=()=>jt({name:Fw,metadata:zw,settings:Ew}),Gw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-total","title":"Query Total","category":"theme","ancestor":["core/query"],"description":"Display the total number of results in a query.","textdomain":"default","attributes":{"displayType":{"type":"string","default":"total-results"}},"usesContext":["queryId","query"],"supports":{"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-query-total"}'),$w=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),Uw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),qw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.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.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});const{name:Ww}=Gw,Zw={icon:qw,edit:function({attributes:e,setAttributes:t}){const{displayType:o}=e,n=(0,ct.useBlockProps)(),r=[{role:"menuitemradio",title:(0,pt.__)("Total results"),isActive:"total-results"===o,icon:$w,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,pt.__)("Range display"),isActive:"range-display"===o,icon:Uw,onClick:()=>{t({displayType:"range-display"})}}],a=(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:(()=>{switch(o){case"total-results":return $w;case"range-display":return Uw}})(),label:(0,pt.__)("Change display type"),controls:r})})});return(0,it.jsxs)("div",{...n,children:[a,"total-results"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("12 results found")}):"range-display"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("Displaying 1 – 10 of 12")}):null]})}},Jw=()=>jt({name:Ww,metadata:Gw,settings:Zw});var Qw=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Kw=e=>{const{value:t,...o}=e;return[{...o},t?(0,st.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,st.createBlock)("core/paragraph",{content:e}))):(0,st.createBlock)("core/paragraph")]},Yw=["left","right","center"],Xw=(e,t)=>{const{align:o,...n}=e;return[Yw.includes(o)?{...n,textAlign:o}:e,t]},eC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!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,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>Yw.includes(e),save({attributes:e}){const{align:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:Xw},tC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"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:o,citation:n}=e,r=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:r}),children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})},migrate:e=>Xw(...Kw(e))},oC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>Xw(...Kw(e)),save({attributes:e}){const{align:t,value:o,citation:n}=e;return(0,it.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},nC={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,...o}=e;return Xw(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...Kw(o)))}return Xw(...Kw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},rC={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,...o}=e;return Xw(...Kw(o))}return Xw(...Kw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:`blocks-quote-style-${r}`,style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:n})]})}};var aC=[eC,tC,oC,nC,rC],iC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 sC="web"===gt.Platform.OS,lC=[["core/paragraph",{}]];const cC=JSON.parse('{"$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":"","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"__experimentalOnEnter":true,"__experimentalOnMerge":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"layout":{"allowEditing":false},"spacing":{"blockGap":true,"padding":true,"margin":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"plain","label":"Plain"}],"editorStyle":"wp-block-quote-editor","style":"wp-block-quote"}');const uC={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:o,anchor:n,fontSize:r,style:a})=>(0,st.createBlock)("core/quote",{align:t,citation:o,anchor:n,fontSize:r,style:a},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,st.createBlock)("core/quote",{},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,st.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,st.createBlock)("core/quote",{},e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({align:e,citation:t,anchor:o,fontSize:n,style:r},a)=>{const i=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,st.createBlock)("core/pullquote",{value:i,align:e,citation:t,anchor:o,fontSize:n,style:r})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,st.createBlock)("core/group",{anchor:t},ct.RichText.isEmpty(e)?o:[...o,(0,st.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]};var dC=uC;const{name:pC}=cC,mC={icon:Qw,example:{attributes:{citation:(0,pt.__)("Julio Cortázar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("In quoting others, we cite ourselves.")}}]},transforms:dC,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:n,className:r,style:a,isSelected:i}){const{textAlign:s,allowedBlocks:l}=e;((e,t)=>{const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.value)return;const[a,i]=Kw(e);Jm()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.value])})(e,n);const c=(0,ct.useBlockProps)({className:Dt(r,{[`has-text-align-${s}`]:s}),...!sC&&{style:a}}),u=(0,ct.useInnerBlocksProps)(c,{template:lC,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:s,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)(mt.BlockQuotation,{...u,children:[u.children,(0,it.jsx)(zo,{attributeKey:"citation",tagName:sC?"cite":"p",style:sC&&{display:"block"},isSelected:i,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:iC,label:(0,pt.__)("Quote citation"),placeholder:(0,pt.__)("Add citation"),addLabel:(0,pt.__)("Add citation"),removeLabel:(0,pt.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...sC?{}:{textAlign:s}})]})]})},save:function({attributes:e}){const{textAlign:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},deprecated:aC},gC=()=>jt({name:pC,metadata:cC,settings:mC});var hC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const _C=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/block","title":"Pattern","category":"reusable","description":"Reuse this design across your site.","keywords":["reusable"],"textdomain":"default","attributes":{"ref":{"type":"number"},"content":{"type":"object","default":{}}},"providesContext":{"pattern/overrides":"content"},"supports":{"customClassName":false,"html":false,"inserter":false,"renaming":false,"interactivity":{"clientNavigation":true}}}'),xC=window.wp.patterns,{useLayoutClasses:bC}=jo(ct.privateApis),{hasOverridableBlocks:fC}=jo(xC.privateApis),yC=["full","wide","left","right"];function vC(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}const kC=()=>{};function wC({recordId:e,canOverrideBlocks:t,hasContent:o,handleEditOriginal:n,resetContent:r}){const a=(0,lt.useSelect)((t=>!!t(_t.store).canUser("update",{kind:"postType",name:"wp_block",id:e})),[e]);return(0,it.jsxs)(it.Fragment,{children:[a&&!!n&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:n,children:(0,pt.__)("Edit original")})})}),t&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:r,disabled:!o,children:(0,pt.__)("Reset")})})})]})}function CC({name:e,attributes:{ref:t,content:o},__unstableParentLayout:n,setAttributes:r}){const{record:a,hasResolved:i}=(0,_t.useEntityRecord)("postType","wp_block",t),[s]=(0,_t.useEntityBlockEditor)("postType","wp_block",{id:t}),l=i&&!a,{__unstableMarkLastChangeAsPersistent:c}=(0,lt.useDispatch)(ct.store),{onNavigateToEntityRecord:u,hasPatternOverridesSource:d}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,st.getBlockBindingsSource)("core/pattern-overrides")}}),[]),p=(0,gt.useMemo)((()=>d&&fC(s)),[d,s]),{alignment:m,layout:g}=((e,t)=>{const o=(0,gt.useRef)();return(0,gt.useMemo)((()=>{if(!e?.length)return{};let n=o.current;if(void 0===n){const r="constrained"===t?.type,a=e.some((e=>yC.includes(e.attributes.align)));n=r&&a?"full":null,o.current=n}return{alignment:n,layout:n?t:void 0}}),[e,t])})(s,n),h=bC({layout:g},e),_=(0,ct.useBlockProps)({className:Dt("block-library-block__reusable-block-container",g&&h,{[`align${m}`]:m})}),x=(0,ct.useInnerBlocksProps)(_,{layout:g,value:s,onInput:kC,onChange:kC,renderAppender:s?.length?void 0:ct.InnerBlocks.ButtonBlockAppender});let b=null;return l&&(b=(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block has been deleted or is unavailable.")})),i||(b=(0,it.jsx)(mt.Placeholder,{children:(0,it.jsx)(mt.Spinner,{})})),(0,it.jsxs)(it.Fragment,{children:[i&&!l&&(0,it.jsx)(wC,{recordId:t,canOverrideBlocks:p,hasContent:!!o,handleEditOriginal:u?()=>{u({postId:t,postType:"wp_block"})}:void 0,resetContent:()=>{o&&(c(),r({content:void 0}))}}),null===b?(0,it.jsx)("div",{...x}):(0,it.jsx)("div",{..._,children:b})]})}const jC={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(o=e[t].values)&&!Array.isArray(o)&&null!==o);var o})),migrate(e){const{content:t,...o}=e;if(t&&Object.keys(t).length){const e={...t};for(const o in t)e[o]=t[o].values;return{...o,content:e}}return e}},SC={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...o}=e,n={};return Object.keys(t).forEach((e=>{n[e]=t[e]})),{...o,content:n}}};var BC=[jC,SC];const{name:TC}=_C,NC={deprecated:BC,edit:function(e){const{ref:t}=e.attributes;return(0,ct.useHasRecursion)(t)?(0,it.jsx)(vC,{}):(0,it.jsx)(ct.RecursionProvider,{uniqueId:t,children:(0,it.jsx)(CC,{...e})})},icon:hC,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0}},PC=()=>jt({name:TC,metadata:_C,settings:NC}),IC=JSON.parse('{"$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","role":"content"},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postId"],"supports":{"html":false,"color":{"gradients":true,"text":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"textDecoration":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"width":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-read-more"}');const{name:DC}=IC,MC={icon:gn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:n}){const r=(0,ct.useBlockProps)(),a=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>o({linkTarget:"_self"}),dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})})}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)("Read more"),value:e,onChange:e=>o({content:e}),__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...r})]})},example:{attributes:{content:(0,pt.__)("Read more")}}},zC=()=>jt({name:DC,metadata:IC,settings:MC});var AC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 LC=JSON.parse('{"$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":"","role":"content"},"itemsToShow":{"type":"number","default":5},"displayExcerpt":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":55},"openInNewTab":{"type":"boolean","default":false},"rel":{"type":"string"}},"supports":{"align":true,"html":false,"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"color":{"background":true,"text":true,"gradients":true,"link":true}},"editorStyle":"wp-block-rss-editor","style":"wp-block-rss"}');const{name:HC}=LC,RC={icon:AC,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=(0,gt.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:i,displayDate:s,displayExcerpt:l,excerptLength:c,feedURL:u,itemsToShow:d,openInNewTab:p,rel:m}=e,g=vt();function h(o){return()=>{const n=e[o];t({[o]:!n})}}const _=(0,ct.useBlockProps)(),x=(0,pt.__)("RSS URL");if(o)return(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Placeholder,{icon:AC,label:x,instructions:(0,pt.__)("Display entries from any RSS or Atom feed."),children:(0,it.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,no.prependHTTP)(u)}),n(!1))},className:"wp-block-rss__placeholder-form",children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:x,type:"url",hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Apply")})]})})});const b=[{icon:$l,title:(0,pt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Bm,title:(0,pt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:qd,title:(0,pt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}],f={...e,style:{...e?.style,border:void 0,spacing:void 0}};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:b})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of items"),hasValue:()=>5!==d,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of items"),value:d,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display author"),hasValue:()=>!!i,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author"),checked:i,onChange:h("displayAuthor")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display date"),hasValue:()=>!!s,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:s,onChange:h("displayDate")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display excerpt"),hasValue:()=>!!l,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:l,onChange:h("displayExcerpt")})}),l&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max number of words in excerpt"),hasValue:()=>55!==c,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0})}),"grid"===r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Columns"),hasValue:()=>2!==a,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:p,onChange:e=>t({openInNewTab:e})})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>t({rel:e})})}),(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/rss",attributes:f})})})]})}},VC=()=>jt({name:HC,metadata:LC,settings:RC});var FC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 EC=JSON.parse('{"$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","role":"content"},"showLabel":{"type":"boolean","default":true},"placeholder":{"type":"string","default":"","role":"content"},"width":{"type":"number"},"widthUnit":{"type":"string"},"buttonText":{"type":"string","role":"content"},"buttonPosition":{"type":"string","default":"button-outside"},"buttonUseIcon":{"type":"boolean","default":false},"query":{"type":"object","default":{}},"isSearchFieldHidden":{"type":"boolean","default":false}},"supports":{"align":["left","center","right"],"color":{"gradients":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":true,"typography":{"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-search__label, .wp-block-search__input, .wp-block-search__button","fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"spacing":{"margin":true},"html":false},"editorStyle":"wp-block-search-editor","style":"wp-block-search"}');function OC(e){return"%"===e}const GC=[25,50,75,100];var $C=[{name:"default",isDefault:!0,attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")}}];const{name:UC}=EC,qC={icon:FC,example:{attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")},viewportWidth:400},variations:$C,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r,clientId:a}){const{label:i,showLabel:s,placeholder:l,width:c,widthUnit:u,align:d,buttonText:p,buttonPosition:m,buttonUseIcon:g,isSearchFieldHidden:h,style:_}=t,x=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:o}=e(ct.store);return!!t(a,"core/navigation")?.length&&o(a)}),[a]),{__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{x&&(b(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[b,x,o]);const f=_?.border?.radius;let y=(0,ct.__experimentalUseBorderProps)(t);"number"==typeof f&&(y={...y,style:{...y.style,borderRadius:`${f}px`}});const v=(0,ct.__experimentalUseColorProps)(t),[k,w]=(0,ct.useSettings)("typography.fluid","layout"),C=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:k},layout:{wideSize:w?.wideSize}}),j=`wp-block-search__width-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,S="button-inside"===m,B="button-outside"===m,T="no-button"===m,N="button-only"===m,P=(0,gt.useRef)(),I=(0,gt.useRef)(),D=(0,mt.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,gt.useEffect)((()=>{N&&!r&&o({isSearchFieldHidden:!0})}),[N,r,o]),(0,gt.useEffect)((()=>{N&&r&&o({isSearchFieldHidden:!1})}),[N,r,o,c]);const M=[{label:(0,pt.__)("Button outside"),value:"button-outside"},{label:(0,pt.__)("Button inside"),value:"button-inside"},{label:(0,pt.__)("No button"),value:"no-button"},{label:(0,pt.__)("Button only"),value:"button-only"}],z=()=>{const e=Dt("wp-block-search__input",S?void 0:y.className,C.className),t={...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style,...C.style,textDecoration:void 0};return(0,it.jsx)("input",{type:"search",className:e,style:t,"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>o({placeholder:e.target.value}),ref:P})},A=vt(),L=(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:A,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>{o({showLabel:!0})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:s,label:(0,pt.__)("Show label"),onChange:e=>o({showLabel:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"button-outside"!==m,label:(0,pt.__)("Button position"),onDeselect:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{value:m,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Button position"),onChange:e=>{o({buttonPosition:e,isSearchFieldHidden:"button-only"===e})},options:M})}),"no-button"!==m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,pt.__)("Use button with icon"),onDeselect:()=>{o({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:g,label:(0,pt.__)("Use button with icon"),onChange:e=>o({buttonUseIcon:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,pt.__)("Width"),onDeselect:()=>{o({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{children:[(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),id:j,min:OC(u)?0:220,max:OC(u)?100:void 0,step:1,onChange:e=>{const t=""===e?void 0:parseInt(e,10);o({width:t})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:D}),(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Percentage Width"),value:GC.includes(c)&&"%"===u?c:void 0,hideLabelFromVision:!0,onChange:e=>{o({width:e,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:GC.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})]})})]})})}),H=e=>(e=>void 0!==e&&0!==parseInt(e,10))(e)?`calc(${e} + 4px)`:void 0,R=(0,ct.useBlockProps)({className:Dt(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,T?"wp-block-search__no-button":void 0,N?"wp-block-search__button-only":void 0,g||T?void 0:"wp-block-search__text-button",g&&!T?"wp-block-search__icon-button":void 0,N&&h?"wp-block-search__searchfield-hidden":void 0),style:{...C.style,textDecoration:void 0}}),V=Dt("wp-block-search__label",C.className);return(0,it.jsxs)("div",{...R,children:[L,s&&(0,it.jsx)(ct.RichText,{identifier:"label",className:V,"aria-label":(0,pt.__)("Label text"),placeholder:(0,pt.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:e=>o({label:e}),style:C.style}),(0,it.jsxs)(mt.ResizableBox,{size:{width:void 0===c?"auto":`${c}${u}`,height:"auto"},className:Dt("wp-block-search__inside-wrapper",S?y.className:void 0),style:(()=>{const e=S?y.style:{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius};if(S){if("object"==typeof f){const{borderTopLeftRadius:t,borderTopRightRadius:o,borderBottomLeftRadius:n,borderBottomRightRadius:r}=y.style;return{...e,borderTopLeftRadius:H(t),borderTopRightRadius:H(o),borderBottomLeftRadius:H(n),borderBottomRightRadius:H(r)}}const t=Number.isInteger(f)?`${f}px`:f;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:N?{}:{right:"right"!==d,left:"right"===d},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(c+a.width,10)}),n(!0)},showHandle:r,children:[(S||B||N)&&(0,it.jsxs)(it.Fragment,{children:[z(),(()=>{const e=Dt("wp-block-search__button",v.className,C.className,S?void 0:y.className,g?"has-icon":void 0,(0,ct.__experimentalGetElementClassName)("button")),t={...v.style,...C.style,...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style},n=()=>{N&&o({isSearchFieldHidden:!h})};return(0,it.jsxs)(it.Fragment,{children:[g&&(0,it.jsx)("button",{type:"button",className:e,style:t,"aria-label":p?(0,lu.__unstableStripHTML)(p):(0,pt.__)("Search"),onClick:n,ref:I,children:(0,it.jsx)(Oh,{icon:FC})}),!g&&(0,it.jsx)(ct.RichText,{identifier:"buttonText",className:e,style:t,"aria-label":(0,pt.__)("Button text"),placeholder:(0,pt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>o({buttonText:e}),onClick:n})]})})()]}),T&&z()]})]})}},WC=()=>jt({name:UC,metadata:EC,settings:qC});var ZC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});const JC=({tagName:e,setAttributes:t})=>(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("HTML element"),value:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:"hr"===e?(0,pt.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,pt.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0});const QC=JSON.parse('{"$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"},"tagName":{"type":"string","enum":["hr","div"],"default":"hr"}},"supports":{"anchor":true,"align":["center","wide","full"],"color":{"enableContrastChecker":false,"__experimentalSkipSerialization":true,"gradients":true,"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"margin":["top","bottom"]},"interactivity":{"clientNavigation":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"wide","label":"Wide Line"},{"name":"dots","label":"Dots"}],"editorStyle":"wp-block-separator-editor","style":"wp-block-separator"}');var KC={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,st.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,st.createBlock)("core/spacer",{anchor:e||""})}]};const YC={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=(0,ct.getColorClassName)("color",t),a=Dt({"has-text-color has-background":t||o,[n]:n,[r]:r}),i={backgroundColor:n?void 0:o,color:r?void 0:o};return(0,it.jsx)("hr",{...ct.useBlockProps.save({className:a,style:i})})},migrate(e){const{color:t,customColor:o,...n}=e;return{...n,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0,tagName:"hr"}}};var XC=[YC];const{name:ej}=QC,tj={icon:ZC,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:KC,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:o,opacity:n,style:r,tagName:a}=e,i=(0,ct.__experimentalUseColorProps)(e),s=i?.style?.backgroundColor,l=!!r?.color?.background;!function(e,t,o){const[n,r]=(0,gt.useState)(!1),a=(0,xt.usePrevious)(t);(0,gt.useEffect)((()=>{"css"!==e||t||a||r(!0)}),[t,a,e]),(0,gt.useEffect)((()=>{"css"===e&&(n&&t||a&&t!==a)&&(o({opacity:"alpha-channel"}),r(!1))}),[n,t,a])}(n,s,t);const c=(0,ct.getColorClassName)("color",o),u=Dt({"has-text-color":o||s,[c]:c,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),d={color:s,backgroundColor:s},p="hr"===a?mt.HorizontalRule:a;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(JC,{tagName:a,setAttributes:t})}),(0,it.jsx)(p,{...(0,ct.useBlockProps)({className:u,style:l?d:void 0})})]})},save:function({attributes:e}){const{backgroundColor:t,style:o,opacity:n,tagName:r}=e,a=o?.color?.background,i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.getColorClassName)("color",t),l=Dt({"has-text-color":t||a,[s]:s,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),c={backgroundColor:i?.style?.backgroundColor,color:s?void 0:a};return(0,it.jsx)(r,{...ct.useBlockProps.save({className:l,style:c})})},deprecated:XC},oj=()=>jt({name:ej,metadata:QC,settings:tj});var nj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const rj=window.wp.autop;var aj={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,rj.removep)((0,rj.autop)(t))}},priority:20}]};const ij=JSON.parse('{"$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","role":"content"}},"supports":{"className":false,"customClassName":false,"html":false},"editorStyle":"wp-block-shortcode-editor"}'),{name:sj}=ij,lj={icon:nj,transforms:aj,edit:function e({attributes:t,setAttributes:o}){const n=`blocks-shortcode-input-${(0,xt.useInstanceId)(e)}`;return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Placeholder,{icon:nj,label:(0,pt.__)("Shortcode"),children:(0,it.jsx)(ct.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t.text,"aria-label":(0,pt.__)("Shortcode text"),placeholder:(0,pt.__)("Write shortcode here…"),onChange:e=>o({text:e})})})})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.text})}},cj=()=>jt({name:sj,metadata:ij,settings:lj});var uj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});const dj=JSON.parse('{"$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":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"shouldSyncIcon":{"type":"boolean"}},"example":{"viewportWidth":500,"attributes":{"width":350,"className":"block-editor-block-types-list__site-logo-example"}},"supports":{"html":false,"align":true,"alignWide":false,"color":{"text":false,"background":false},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true},"filter":{"duotone":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"rounded","label":"Rounded"}],"selectors":{"filter":{"duotone":".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},"editorStyle":"wp-block-site-logo-editor","style":"wp-block-site-logo"}'),pj=["image"],mj="image/*",gj=({alt:e,attributes:{align:t,width:o,height:n,isLink:r,linkTarget:a,shouldSyncIcon:i},isSelected:s,setAttributes:l,setLogo:c,logoUrl:u,siteUrl:d,logoId:p,iconId:m,setIcon:g,canUserEdit:h})=>{const _=(0,xt.useViewportMatch)("medium"),x=!["wide","full"].includes(t)&&_,[{naturalWidth:b,naturalHeight:f},y]=(0,gt.useState)({}),[v,k]=(0,gt.useState)(!1),{toggleSelection:w}=(0,lt.useDispatch)(ct.store),C=vt(),j="contentOnly"===(0,ct.useBlockEditingMode)(),{imageEditing:S,maxWidth:B,title:T}=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings(),o=e(_t.store).getEntityRecord("root","__unstableBase");return{title:o?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,gt.useEffect)((()=>{i&&p!==m&&l({shouldSyncIcon:!1})}),[]),(0,gt.useEffect)((()=>{s||k(!1)}),[s]);const N=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{y({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}),(0,ht.isBlobURL)(u)&&(0,it.jsx)(mt.Spinner,{})]});let P=N;if(r&&(P=(0,it.jsx)("a",{href:d,className:"custom-logo-link",rel:"home",title:T,onClick:e=>e.preventDefault(),children:N})),!x||!b||!f)return(0,it.jsx)("div",{style:{width:o,height:n},children:P});const I=o||120,D=b/f,M=I/D,z=b<f?ad:Math.ceil(ad*D),A=f<b?ad:Math.ceil(ad/D),L=2.5*B;let H=!1,R=!1;"center"===t?(H=!0,R=!0):(0,pt.isRTL)()?"left"===t?H=!0:R=!0:"right"===t?R=!0:H=!0;const V=p&&b&&f&&S,F=!j;let E;E=V&&v?(0,it.jsx)(ct.__experimentalImageEditor,{id:p,url:u,width:I,height:M,naturalHeight:f,naturalWidth:b,onSaveImage:e=>{c(e.id)},onFinishEditing:()=>{k(!1)}}):(0,it.jsx)(mt.ResizableBox,{size:{width:I,height:M},showHandle:s&&F,minWidth:z,maxWidth:L,minHeight:A,maxHeight:L/D,lockAspectRatio:!0,enable:{top:!1,right:H,bottom:!0,left:R},onResizeStart:function(){w(!1)},onResizeStop:(e,t,o,n)=>{w(!0),l({width:parseInt(I+n.width,10),height:parseInt(M+n.height,10)})},children:P});const O=!window?.__experimentalUseCustomizerSiteLogoUrl?d+"/wp-admin/options-general.php":d+"/wp-admin/customize.php?autofocus[section]=title_tagline",G=(0,gt.createInterpolateElement)((0,pt.__)("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,it.jsx)("a",{href:O,target:"_blank",rel:"noopener noreferrer"})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:C,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!o,label:(0,pt.__)("Image width"),onDeselect:()=>l({width:void 0}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image width"),onChange:e=>l({width:e}),min:z,max:L,initialPosition:Math.min(120,L),value:o||"",disabled:!x})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!r,label:(0,pt.__)("Link image to home"),onDeselect:()=>l({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link image to home"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>"_blank"===a,label:(0,pt.__)("Open in new tab"),onDeselect:()=>l({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!i,label:(0,pt.__)("Use as Site Icon"),onDeselect:()=>{l({shouldSyncIcon:!1}),g(void 0)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Use as Site Icon"),onChange:e=>{l({shouldSyncIcon:e}),g(e?p:void 0)},checked:!!i,help:G})})]})}),V&&!v&&F&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>k(!0),icon:Wp,label:(0,pt.__)("Crop")})}),E]})};function hj({mediaURL:e,...t}){return(0,it.jsx)(ct.MediaReplaceFlow,{...t,mediaURL:e,allowedTypes:pj,accept:mj})}const _j=({media:e,itemGroupProps:t})=>{const{alt_text:o,source_url:n,slug:r,media_details:a}=e??{},i=a?.sizes?.full?.file||r;return(0,it.jsx)(mt.__experimentalItemGroup,{...t,as:"span",children:(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,it.jsx)("img",{src:n,alt:o}),(0,it.jsx)(mt.FlexItem,{as:"span",children:(0,it.jsx)(mt.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:i})})]})})};var xj={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const{name:bj}=dj,fj={icon:uj,example:{},edit:function({attributes:e,className:t,setAttributes:o,isSelected:n}){const{width:r,shouldSyncIcon:a}=e,{siteLogoId:i,canUserEdit:s,url:l,siteIconId:c,mediaItemData:u,isRequestingMediaItem:d}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):void 0,i=o("root","__unstableBase"),s=r?a?.site_logo:i?.site_logo,l=a?.site_icon,c=s&&e(_t.store).getEntityRecord("postType","attachment",s,{context:"view"}),u=!!s&&!e(_t.store).hasFinishedResolution("getEntityRecord",["postType","attachment",s,{context:"view"}]);return{siteLogoId:s,canUserEdit:r,url:i?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:l}}),[]),{getSettings:p}=(0,lt.useSelect)(ct.store),[m,g]=(0,gt.useState)(),h=vt(),{editEntityRecord:_}=(0,lt.useDispatch)(_t.store),x=(e,t=!1)=>{(a||t)&&b(e),_("root","site",void 0,{site_logo:e})},b=e=>_("root","site",void 0,{site_icon:e??null}),{alt_text:f,source_url:y}=u??{},v=e=>{if(void 0===a){const t=!c;return o({shouldSyncIcon:t}),void k(e,t)}k(e)},k=(e,t=!1)=>{if(e)return!e.id&&e.url?(g(e.url),void x(void 0)):void x(e.id,t)},{createErrorNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{w(e,{type:"snackbar"}),g()},j=e=>{p().mediaUpload({allowedTypes:pj,filesList:e,onFileChange([e]){(0,ht.isBlobURL)(e?.url)?g(e.url):v(e)},onError:C,multiple:!1})},S={mediaURL:y,name:y?(0,pt.__)("Replace"):(0,pt.__)("Choose logo"),onSelect:k,onError:C,onReset:()=>{x(null),o({width:void 0})}},B=s&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(hj,{...S})});let T;const N=void 0===i||d;N&&(T=(0,it.jsx)(mt.Spinner,{})),(0,gt.useEffect)((()=>{y&&m&&g()}),[y,m]),(y||m)&&(T=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(gj,{alt:f,attributes:e,className:t,isSelected:n,setAttributes:o,logoUrl:m||y,setLogo:x,logoId:u?.id||i,siteUrl:l,setIcon:b,iconId:c,canUserEdit:s}),s&&(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]}));const P=Dt(t,{"is-default-size":!r,"is-transient":m}),I=(0,ct.useBlockProps)({className:P}),D=(s||y)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media"),dropdownMenuProps:h,children:s?(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Logo"),isShownByDefault:!0,children:(0,it.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[(0,it.jsx)(hj,{...S,name:y?(0,it.jsx)(_j,{media:u}):(0,pt.__)("Choose logo"),renderToggle:e=>(0,it.jsx)(mt.Button,{...e,__next40pxDefaultSize:!0,children:m?(0,it.jsx)(mt.Spinner,{}):e.children})}),(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]})}):(0,it.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,it.jsx)(_j,{media:u,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}})})})});return(0,it.jsxs)("div",{...I,children:[B,D,(!!y||!!m)&&T,(N||!m&&!y&&!s)&&(0,it.jsx)(mt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:N&&(0,it.jsx)("span",{className:"components-placeholder__preview",children:(0,it.jsx)(mt.Spinner,{})})}),!N&&!m&&!y&&s&&(0,it.jsx)(ct.MediaPlaceholder,{onSelect:v,accept:mj,allowedTypes:pj,onError:C,placeholder:e=>{const o=Dt("block-editor-media-placeholder",t);return(0,it.jsx)(mt.Placeholder,{className:o,preview:T,withIllustration:!0,style:{width:r},children:e})},mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:(0,pt.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{e()}})})]})},transforms:xj},yj=()=>jt({name:bj,metadata:dj,settings:fj}),vj=JSON.parse('{"$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 this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.","keywords":["description"],"textdomain":"default","attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]}},"example":{"viewportWidth":350,"attributes":{"textAlign":"center"}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"contentRole":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-tagline-editor","style":"wp-block-site-tagline"}');var kj=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,it.jsx)(mt.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});const wj={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Cj=[wj];const{name:jj}=vj,Sj={icon:kj,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{textAlign:n,level:r,levelOptions:a}=e,{canUserEdit:i,tagline:s}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,tagline:r?a?.description:i?.description}}),[]),l=0===r?"p":`h${r}`,{editEntityRecord:c}=(0,lt.useDispatch)(_t.store),u=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n,"wp-block-site-tagline__placeholder":!i&&!s})}),d=i?(0,it.jsx)(ct.RichText,{allowedFormats:[],onChange:function(e){c("root","site",void 0,{description:e})},"aria-label":(0,pt.__)("Site tagline text"),placeholder:(0,pt.__)("Write site tagline…"),tagName:l,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)())),...u}):(0,it.jsx)(l,{...u,children:s||(0,pt.__)("Site Tagline placeholder")});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:r,options:a,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{onChange:e=>t({textAlign:e}),value:n})]}),d]})},deprecated:Cj},Bj=()=>jt({name:jj,metadata:vj,settings:Sj});var Tj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Nj=JSON.parse('{"$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},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]},"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":500},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-title-editor","style":"wp-block-site-title"}');const Pj={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:()=>null,migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Ij=[Pj];var Dj={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const{name:Mj}=Nj,zj={icon:Tj,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{level:n,levelOptions:r,textAlign:a,isLink:i,linkTarget:s}=e,{canUserEdit:l,title:c}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,title:r?a?.title:i?.name}}),[]),{editEntityRecord:u}=(0,lt.useDispatch)(_t.store),d=vt(),p=(0,ct.useBlockEditingMode)(),m=0===n?"p":`h${n}`,g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!l&&!c})}),h=l?(0,it.jsx)(m,{...g,children:(0,it.jsx)(ct.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,pt.__)("Site title text"),placeholder:(0,pt.__)("Write site title…"),value:c,onChange:function(e){u("root","site",void 0,{title:e.trim()})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})}):(0,it.jsx)(m,{...g,children:i?(0,it.jsx)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault(),children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")}):(0,it.jsx)("span",{children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")})});return(0,it.jsxs)(it.Fragment,{children:["default"===p&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,pt.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title link to home"),onChange:()=>t({isLink:!i}),checked:i})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"_self"!==s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===s})})]})}),h]})},transforms:Dj,deprecated:Ij},Aj=()=>jt({name:Mj,metadata:Nj,settings:zj});var Lj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),Hj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-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 Rj=()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})});const Vj=({url:e,setAttributes:t,setPopover:o,popoverAnchor:n,clientId:r})=>{const{removeBlock:a}=(0,lt.useDispatch)(ct.store);return(0,it.jsx)(ct.URLPopover,{anchor:n,"aria-label":(0,pt.__)("Edit social link"),onClose:()=>{o(!1),n?.focus()},children:(0,it.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),o(!1),n?.focus()},children:(0,it.jsx)("div",{className:"block-editor-url-input",children:(0,it.jsx)(ct.URLInput,{value:e,onChange:e=>t({url:e}),placeholder:(0,pt.__)("Enter social link"),label:(0,pt.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![mn.BACKSPACE,mn.DELETE].includes(t.keyCode)||a(r)},suffix:(0,it.jsx)(mt.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,it.jsx)(mt.Button,{icon:Hj,label:(0,pt.__)("Apply"),type:"submit",size:"small"})})})})})})};var Fj=({attributes:e,context:t,isSelected:o,setAttributes:n,clientId:r,name:a})=>{const{url:i,service:s,label:l="",rel:c}=e,u=vt(),{showLabels:d,iconColor:p,iconColorValue:m,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[_,x]=(0,gt.useState)(!1),b=Dt("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!i,[`has-${p}-color`]:p,[`has-${g}-background-color`]:g}),[f,y]=(0,gt.useState)(null),v="contentOnly"===(0,ct.useBlockEditingMode)(),{activeVariation:k}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o}=t(st.store);return{activeVariation:o(a,e)}}),[a,e]),{icon:w,label:C}=(j=k,j?.name?{icon:j?.icon??Rj,label:j?.title??(0,pt.__)("Social Icon")}:{icon:Rj,label:(0,pt.__)("Social Icon")});var j;const S=""===l.trim()?C:l,B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,xt.useMergeRefs)([y,B]),onClick:()=>x(!0),onKeyDown:e=>{e.keyCode===mn.ENTER&&(e.preventDefault(),x(!0))}});return(0,it.jsxs)(it.Fragment,{children:[v&&d&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,children:(0,pt.__)("Text")}),renderContent:()=>(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,pt.__)("Text"),help:(0,pt.__)("Provide a text label or use the default."),value:l,onChange:e=>n({label:e}),placeholder:C})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({label:void 0})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Text"),hasValue:()=>!!l,onDeselect:()=>{n({label:void 0})},children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Text"),help:(0,pt.__)("The text is visible when enabled from the parent Social Icons block."),value:l,onChange:e=>n({label:e}),placeholder:C})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:c||"",onChange:e=>n({rel:e})})}),(0,it.jsxs)("li",{role:"presentation",className:b,style:{color:m,backgroundColor:h},children:[(0,it.jsxs)("button",{"aria-haspopup":"dialog",...T,role:"button",children:[(0,it.jsx)(mt.Icon,{icon:w}),(0,it.jsx)("span",{className:Dt("wp-block-social-link-label",{"screen-reader-text":!d}),children:S})]}),o&&_&&(0,it.jsx)(Vj,{url:i,setAttributes:n,setPopover:x,popoverAnchor:f,clientId:r})]})]})};const Ej=JSON.parse('{"$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 profile or site.","textdomain":"default","attributes":{"url":{"type":"string","role":"content"},"service":{"type":"string"},"label":{"type":"string","role":"content"},"rel":{"type":"string"}},"usesContext":["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],"supports":{"reusable":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-social-link-editor"}'),Oj=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,pt._x)("WordPress","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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:(0,pt._x)("500px","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Amazon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Bandcamp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Behance","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"bluesky",attributes:{service:"bluesky"},title:(0,pt._x)("Bluesky","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})})},{name:"chain",attributes:{service:"chain"},title:(0,pt._x)("Link","social link block variation name"),icon:Rj},{name:"codepen",attributes:{service:"codepen"},title:(0,pt._x)("CodePen","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("DeviantArt","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"discord",attributes:{service:"discord"},title:(0,pt._x)("Discord","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})})},{name:"dribbble",attributes:{service:"dribbble"},title:(0,pt._x)("Dribbble","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Dropbox","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Etsy","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Facebook","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("RSS Feed","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Flickr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Foursquare","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Goodreads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Google","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("GitHub","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"gravatar",attributes:{service:"gravatar"},title:(0,pt._x)("Gravatar","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})})},{name:"instagram",attributes:{service:"instagram"},title:(0,pt._x)("Instagram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Last.fm","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("LinkedIn","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Mastodon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Meetup","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Medium","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})})},{name:"patreon",attributes:{service:"patreon"},title:(0,pt._x)("Patreon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})})},{name:"pinterest",attributes:{service:"pinterest"},title:(0,pt._x)("Pinterest","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Pocket","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Reddit","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})})},{name:"skype",attributes:{service:"skype"},title:(0,pt._x)("Skype","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})}),scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,pt._x)("Snapchat","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("SoundCloud","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})})},{name:"spotify",attributes:{service:"spotify"},title:(0,pt._x)("Spotify","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Telegram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,it.jsx)(St.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:"threads",attributes:{service:"threads"},title:(0,pt._x)("Threads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})})},{name:"tiktok",attributes:{service:"tiktok"},title:(0,pt._x)("TikTok","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})})},{name:"tumblr",attributes:{service:"tumblr"},title:(0,pt._x)("Tumblr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitch","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitter","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Vimeo","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("VK","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("WhatsApp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,pt._x)("X","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},{name:"yelp",attributes:{service:"yelp"},title:(0,pt._x)("Yelp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("YouTube","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})})}];Oj.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Gj=Oj;const{name:$j}=Ej,Uj={icon:Lj,edit:Fj,variations:Gj},qj=()=>jt({name:$j,metadata:Ej,settings:Uj}),Wj=[{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,o="items-justified-",n=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),r={...e,className:t?.replace(n,"").trim()},a=t?.match(n)?.[0]?.trim();return a&&Object.assign(r,{layout:{type:"flex",justifyContent:a.slice(16)}}),r},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=Dt(r,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${n}`]:n}),i={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,it.jsx)("ul",{...ct.useBlockProps.save({className:a,style:i}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Zj=Wj;const Jj=[{label:(0,pt.__)("Default"),value:""},{label:(0,pt.__)("Small"),value:"has-small-icon-size"},{label:(0,pt.__)("Normal"),value:"has-normal-icon-size"},{label:(0,pt.__)("Large"),value:"has-large-icon-size"},{label:(0,pt.__)("Huge"),value:"has-huge-icon-size"}];var Qj=(0,ct.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){const{clientId:t,attributes:o,iconBackgroundColor:n,iconColor:r,isSelected:a,setAttributes:i,setIconBackgroundColor:s,setIconColor:l}=e,{iconBackgroundColorValue:c,iconColorValue:u,openInNewTab:d,showLabels:p,size:m}=o,{hasSocialIcons:g,hasSelectedChild:h}=(0,lt.useSelect)((e=>{const{getBlockCount:o,hasSelectedInnerBlock:n}=e(ct.store);return{hasSocialIcons:o(t)>0,hasSelectedChild:n(t)}}),[t]),_=a||h,x=o.className?.includes("is-style-logos-only"),b=vt();(0,gt.useEffect)((()=>{if(x){let e;return i((t=>(e={iconBackgroundColor:t.iconBackgroundColor,iconBackgroundColorValue:t.iconBackgroundColorValue,customIconBackgroundColor:t.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0}))),()=>i({...e})}}),[x,i]);const f=Dt(m,{"has-visible-labels":p,"has-icon-color":r.color||u,"has-icon-background-color":n.color||c}),y=(0,ct.useBlockProps)({className:f}),v=(0,ct.useInnerBlocksProps)(y,{templateLock:!1,orientation:o.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||_?ct.InnerBlocks.ButtonBlockAppender:void 0}),k=[{value:r.color||u,onChange:e=>{l(e),i({iconColorValue:e})},label:(0,pt.__)("Icon color"),resetAllFilter:()=>{l(void 0),i({iconColorValue:void 0})}}];x||k.push({value:n.color||c,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,pt.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const w=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!m,label:(0,pt.__)("Icon size"),onDeselect:()=>i({size:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Icon size"),onChange:e=>{i({size:""===e?void 0:e})},value:m??"",options:Jj})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Show text"),hasValue:()=>!!p,onDeselect:()=>i({showLabels:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show text"),checked:p,onChange:()=>i({showLabels:!p})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!d,onDeselect:()=>i({openInNewTab:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})})})]})}),w.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[k.map((({onChange:e,label:o,value:n,resetAllFilter:r})=>(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n,label:o,onColorChange:e,isShownByDefault:!0,resetAllFilter:r,enableAlpha:!0,clearable:!0}],panelId:t,...w},`social-links-color-${o}`))),!x&&(0,it.jsx)(ct.ContrastChecker,{textColor:u,backgroundColor:c,isLargeText:!1})]}),(0,it.jsx)("ul",{...v})]})}));const Kj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/social-links","title":"Social Icons","category":"widgets","allowedBlocks":["core/social-link"],"description":"Display icons linking to your social 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":false},"showLabels":{"type":"boolean","default":false},"size":{"type":"string"}},"providesContext":{"openInNewTab":"openInNewTab","showLabels":"showLabels","iconColor":"iconColor","iconColorValue":"iconColorValue","iconBackgroundColor":"iconBackgroundColor","iconBackgroundColorValue":"iconBackgroundColorValue"},"supports":{"align":["left","center","right"],"anchor":true,"html":false,"__experimentalExposeControlsToChildren":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex"}},"color":{"enableContrastChecker":false,"background":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":false}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true,"margin":true,"padding":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"contentRole":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"logos-only","label":"Logos Only"},{"name":"pill-shape","label":"Pill Shape"}],"editorStyle":"wp-block-social-links-editor","style":"wp-block-social-links"}');const{name:Yj}=Kj,Xj={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:Lj,edit:Qj,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:n,size:r}}=e,a=Dt(r,{"has-visible-labels":n,"has-icon-color":o,"has-icon-background-color":t}),i=ct.useBlockProps.save({className:a}),s=ct.useInnerBlocksProps.save(i);return(0,it.jsx)("ul",{...s})},deprecated:Zj},eS=()=>jt({name:Yj,metadata:Kj,settings:Xj});var tS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});const oS=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:o}=e;return{...e,width:void 0!==o?`${o}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}];var nS=oS;const{useSpacingSizes:rS}=jo(ct.privateApis);function aS({label:e,onChange:t,isResizing:o,value:n=""}){const r=(0,xt.useInstanceId)(mt.__experimentalUnitControl,"block-spacer-height-input"),a=rS(),[i]=(0,ct.useSettings)("spacing.units"),s=i?i.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],l=(0,mt.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[c,u]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n),d=(0,ct.isValueSpacingPreset)(n)?n:[c,o?"px":u].join("");return(0,it.jsx)(it.Fragment,{children:a?.length<2?(0,it.jsx)(mt.__experimentalUnitControl,{id:r,isResetValueOnUnitChange:!0,min:0,onChange:t,value:d,units:l,label:e,__next40pxDefaultSize:!0}):(0,it.jsx)(St.View,{className:"tools-panel-item-spacing",children:(0,it.jsx)(ct.__experimentalSpacingSizesControl,{values:{all:d},onChange:({all:e})=>{t(e)},label:e,sides:["all"],units:l,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function iS({setAttributes:e,orientation:t,height:o,width:n,isResizing:r}){const a=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:a,children:["horizontal"===t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>void 0!==n,onDeselect:()=>e({width:void 0}),children:(0,it.jsx)(aS,{label:(0,pt.__)("Width"),value:n,onChange:t=>e({width:t}),isResizing:r})}),"horizontal"!==t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height"),isShownByDefault:!0,hasValue:()=>"100px"!==o,onDeselect:()=>e({height:"100px"}),children:(0,it.jsx)(aS,{label:(0,pt.__)("Height"),value:o,onChange:t=>e({height:t}),isResizing:r})})]})})}const{useSpacingSizes:sS}=jo(ct.privateApis),lS=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:n,isSelected:r,isResizing:a,setIsResizing:i,...s})=>{const l=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${l(e)}px`;return(0,it.jsx)(mt.ResizableBox,{className:Dt("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":a,"is-selected":r}),onResizeStart:(e,n,r)=>{const a=c(r);t(a),o(a)},onResize:(e,t,n)=>{o(c(n)),a||i(!0)},onResizeStop:(e,t,o)=>{const r=l(o);n(`${r}px`),i(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:a},showHandle:r,...s})};var cS=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:n,context:r,__unstableParentLayout:a,className:i})=>{const s=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:l}=r,{orientation:c,type:u,default:{type:d}={}}=a||{},p="flex"===u||!u&&"flex"===d,m=!c&&p?"horizontal":c||l,{height:g,width:h,style:_={}}=e,{layout:x={}}=_,{selfStretch:b,flexSize:f}=x,y=sS(),[v,k]=(0,gt.useState)(!1),[w,C]=(0,gt.useState)(null),[j,S]=(0,gt.useState)(null),B=()=>n(!1),T=()=>n(!0),{__unstableMarkNextChangeAsNotPersistent:N}=(0,lt.useDispatch)(ct.store),P=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({height:e}),C(null)},I=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({width:e}),S(null)},D="horizontal"===m?j||f:w||f,M={height:"horizontal"===m?24:(()=>{if(!p)return w||(0,ct.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===m?(()=>{if(!p)return j||(0,ct.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===m&&p?48:void 0,flexBasis:p?D:void 0,flexGrow:p&&v?0:void 0};(0,gt.useEffect)((()=>{const e=e=>{N(),o(e)};if(p&&"fill"!==b&&"fit"!==b&&void 0===f)if("horizontal"===m){const t=(0,ct.getCustomValueFromPreset)(h,y)||(0,ct.getCustomValueFromPreset)(g,y)||"100px";e({width:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else{const t=(0,ct.getCustomValueFromPreset)(g,y)||(0,ct.getCustomValueFromPreset)(h,y)||"100px";e({height:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else!p||"fill"!==b&&"fit"!==b?p||!b&&!f||e({..."horizontal"===m?{width:f}:{height:f},style:{..._,layout:{...x,flexSize:void 0,selfStretch:void 0}}}):e("horizontal"===m?{width:void 0}:{height:void 0})}),[_,f,g,m,p,x,b,o,y,h,N]);const z=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(St.View,{...(0,ct.useBlockProps)({style:M,className:Dt(i,{"custom-sizes-disabled":s})}),children:"default"===z&&(A=m,"horizontal"===A?(0,it.jsx)(lS,{minWidth:0,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:v,setIsResizing:k}):(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(lS,{minHeight:0,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:C,onResizeStop:P,isSelected:t,isResizing:v,setIsResizing:k})}))}),!p&&(0,it.jsx)(iS,{setAttributes:o,height:w||g,width:j||h,orientation:m,isResizing:v})]});var A};const uS=JSON.parse('{"$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":true,"spacing":{"margin":["top","bottom"],"__experimentalDefaultControls":{"margin":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-spacer-editor","style":"wp-block-spacer"}');var dS={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,st.createBlock)("core/separator",{anchor:e||""})}]};const{name:pS}=uS,mS={icon:tS,transforms:dS,edit:cS,save:function({attributes:e}){const{height:t,width:o,style:n}=e,{layout:{selfStretch:r}={}}=n||{},a="fill"===r||"fit"===r?void 0:t;return(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:(0,ct.getSpacingPresetCssVar)(a),width:(0,ct.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})},deprecated:nS},gS=()=>jt({name:pS,metadata:uS,settings:mS});var hS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 _S={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},xS={content:{type:"rich-text",source:"rich-text"},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"}},bS={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}}},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",interactivity:{clientNavigation:!0}},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},fS={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"}},yS={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:fS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fS}}}},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:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},vS={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"}},kS={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:vS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vS}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a,caption:i}=e;if(!o.length&&!n.length&&!r.length)return null;const s=(0,ct.getColorClassName)("background-color",a),l=Dt(s,{"has-fixed-layout":t,"has-background":!!s}),c=!ct.RichText.isEmpty(i),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:i})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in _S&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:_S[e.backgroundColor]}}})},wS={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},CS={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:wS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:wS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:wS}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.getColorClassName)("background-color",a),s=Dt(i,{"has-fixed-layout":t,"has-background":!!i}),l=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o},n)=>(0,it.jsx)(ct.RichText.Content,{tagName:t,value:e,scope:"th"===t?o:void 0},n)))},t)))})};return(0,it.jsxs)("table",{className:s,children:[(0,it.jsx)(l,{type:"head",rows:o}),(0,it.jsx)(l,{type:"body",rows:n}),(0,it.jsx)(l,{type:"foot",rows:r})]})}};var jS=[bS,yS,kS,CS],SS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),BS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),TS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),NS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})}),PS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})}),IS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})}),DS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})}),MS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})}),zS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})}),AS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});const LS=["align"];function HS(e,t,o){if(!t)return e;const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:r,rowIndex:a}=t;return Object.fromEntries(Object.entries(n).map((([e,n])=>r&&r!==e?[e,n]:[e,n.map(((n,r)=>a&&a!==r?n:{cells:n.cells.map(((n,a)=>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:a,rowIndex:r},t)?o(n):n))}))])))}function RS(e,{sectionName:t,rowIndex:o,columnCount:n}){const r=function(e){return FS(e.head)?FS(e.body)?FS(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===n?r?.cells?.length:n;return a?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:a}).map(((e,o)=>{const n=r?.cells?.[o]??{};return{...Object.fromEntries(Object.entries(n).filter((([e])=>LS.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(o)]}:e}function VS(e,t){if(!FS(e[t]))return{[t]:[]};return RS(e,{sectionName:t,rowIndex:0,columnCount:e.body?.[0]?.cells?.length??1})}function FS(e){return!e||!e.length||e.every(ES)}function ES(e){return!(e.cells&&e.cells.length)}const OS=[{icon:SS,title:(0,pt.__)("Align column left"),align:"left"},{icon:BS,title:(0,pt.__)("Align column center"),align:"center"},{icon:TS,title:(0,pt.__)("Align column right"),align:"right"}],GS={head:(0,pt.__)("Header cell text"),body:(0,pt.__)("Body cell text"),foot:(0,pt.__)("Footer cell text")},$S={head:(0,pt.__)("Header label"),foot:(0,pt.__)("Footer label")};function US({name:e,...t}){const o=`t${e}`;return(0,it.jsx)(o,{...t})}var qS=function({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:n}){const{hasFixedLayout:r,head:a,foot:i}=e,[s,l]=(0,gt.useState)(2),[c,u]=(0,gt.useState)(2),[d,p]=(0,gt.useState)(),m=(0,ct.__experimentalUseColorProps)(e),g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.useBlockEditingMode)(),_=(0,gt.useRef)(),[x,b]=(0,gt.useState)(!1),f=vt();function y(o){d&&t(HS(e,d,(e=>({...e,content:o}))))}function v(o){if(!d)return;const{sectionName:n,rowIndex:r}=d,a=r+o;t(RS(e,{sectionName:n,rowIndex:a})),p({sectionName:n,rowIndex:a,columnIndex:0,type:"cell"})}function k(o=0){if(!d)return;const{columnIndex:n}=d,r=n+o;t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>FS(o)?[e,o]:[e,o.map((o=>ES(o)||o.cells.length<t?o:{cells:[...o.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...o.cells.slice(t)]}))])))}(e,{columnIndex:r})),p({rowIndex:0,columnIndex:r,type:"cell"})}(0,gt.useEffect)((()=>{n||p()}),[n]),(0,gt.useEffect)((()=>{x&&(_?.current?.querySelector('td div[contentEditable="true"]')?.focus(),b(!1))}),[x]);const w=["head","body","foot"].filter((t=>!FS(e[t]))),C=[{icon:NS,title:(0,pt.__)("Insert row before"),isDisabled:!d,onClick:function(){v(0)}},{icon:PS,title:(0,pt.__)("Insert row after"),isDisabled:!d,onClick:function(){v(1)}},{icon:IS,title:(0,pt.__)("Delete row"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,rowIndex:n}=d;p(),t(function(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter(((e,t)=>t!==o))}}(e,{sectionName:o,rowIndex:n}))}},{icon:DS,title:(0,pt.__)("Insert column before"),isDisabled:!d,onClick:function(){k(0)}},{icon:MS,title:(0,pt.__)("Insert column after"),isDisabled:!d,onClick:function(){k(1)}},{icon:zS,title:(0,pt.__)("Delete column"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,columnIndex:n}=d;p(),t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>FS(o)?[e,o]:[e,o.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,o)=>o!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:o,columnIndex:n}))}}],j=w.map((t=>(0,it.jsx)(US,{name:t,children:e[t].map((({cells:e},o)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:n,scope:r,align:a,colspan:i,rowspan:s},l)=>(0,it.jsx)(n,{scope:"th"===n?r:void 0,colSpan:i,rowSpan:s,className:Dt({[`has-text-align-${a}`]:a},"wp-block-table__cell-content"),children:(0,it.jsx)(ct.RichText,{value:e,onChange:y,onFocus:()=>{p({sectionName:t,rowIndex:o,columnIndex:l,type:"cell"})},"aria-label":GS[t],placeholder:$S[t]})},l)))},o)))},t))),S=!w.length;return(0,it.jsxs)("figure",{...(0,ct.useBlockProps)({ref:_}),children:[!S&&"default"===h&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{label:(0,pt.__)("Change column alignment"),alignmentControls:OS,value:function(){if(d)return function(e,t,o){const{sectionName:n,rowIndex:r,columnIndex:a}=t;return e[n]?.[r]?.cells?.[a]?.[o]}(e,d,"align")}(),onChange:o=>function(o){if(!d)return;const n={type:"column",columnIndex:d.columnIndex},r=HS(e,n,(e=>({...e,align:o})));t(r)}(o)})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:AS,label:(0,pt.__)("Edit table"),controls:C})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:f,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==r,label:(0,pt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}})}),!S&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>a&&a.length,label:(0,pt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Header section"),checked:!(!a||!a.length),onChange:function(){t(VS(e,"head"))}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,pt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(VS(e,"foot"))}})})]})]})}),!S&&(0,it.jsx)("table",{className:Dt(m.className,g.className,{"has-fixed-layout":r,"has-individual-borders":(0,mt.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...m.style,...g.style},children:j}),S?(0,it.jsx)(mt.Placeholder,{label:(0,pt.__)("Table"),icon:(0,it.jsx)(ct.BlockIcon,{icon:hS,showColors:!0}),instructions:(0,pt.__)("Insert a table for sharing data."),children:(0,it.jsxs)("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(c,10)||2})),b(!0)},children:[(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Column count"),value:c,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Row count"),value:s,onChange:function(e){l(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Create Table")})]})}):(0,it.jsx)(zo,{attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o,label:(0,pt.__)("Table caption text"),showToolbarButton:n&&"default"===h})]})};const WS=JSON.parse('{"$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":true},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"head":{"type":"array","default":[],"source":"query","selector":"thead tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"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":"rich-text","source":"rich-text","role":"content"},"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":"rich-text","source":"rich-text","role":"content"},"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":true,"align":true,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-table > table","spacing":".wp-block-table"},"styles":[{"name":"regular","label":"Default","isDefault":true},{"name":"stripes","label":"Stripes"}],"editorStyle":"wp-block-table-editor","style":"wp-block-table"}');function ZS(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const JS=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),QS={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:JS(e)},tfoot:{allowEmpty:!0,children:JS(e)},tbody:{allowEmpty:!0,children:JS(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=t.nodeName.toLowerCase().slice(1),n=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=Array.from(t.children).reduce(((e,t)=>{const o=ZS(t.getAttribute("rowspan")),n=ZS(t.getAttribute("colspan")),{textAlign:r}=t.style||{};let a;return"left"!==r&&"center"!==r&&"right"!==r||(a=r),e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:o,colspan:n,align:a}),e}),[]);return e.push({cells:o}),e}),[]);return e[o]=n,e}),{});return(0,st.createBlock)("core/table",t)}}]};var KS=QS;const{name:YS}=WS,XS={icon:hS,example:{attributes:{head:[{cells:[{content:(0,pt.__)("Version"),tag:"th"},{content:(0,pt.__)("Jazz Musician"),tag:"th"},{content:(0,pt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,pt.__)("Jaco Pastorius"),tag:"td"},{content:(0,pt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,pt.__)("Betty Carter"),tag:"td"},{content:(0,pt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,pt.__)("Bebo Valdés"),tag:"td"},{content:(0,pt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:KS,edit:qS,save:function({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})},deprecated:jS},eB=()=>jt({name:YS,metadata:WS,settings:XS});var tB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,it.jsx)(St.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});const oB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/table-of-contents","title":"Table of Contents","category":"design","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"},"default":[]},"onlyIncludeCurrentPage":{"type":"boolean","default":false},"maxLevel":{"type":"number"},"ordered":{"type":"boolean","default":true}},"supports":{"ariaLabel":true,"html":false,"color":{"text":true,"background":true,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-table-of-contents"}'),nB="wp-block-table-of-contents__entry";function rB({nestedHeadingList:e,disableLinkActivation:t,onClick:o,ordered:n=!0}){return(0,it.jsx)(it.Fragment,{children:e.map(((e,r)=>{const{content:a,link:i}=e.heading,s=i?(0,it.jsx)("a",{className:nB,href:i,"aria-disabled":t||void 0,onClick:t&&"function"==typeof o?o:void 0,children:a}):(0,it.jsx)("span",{className:nB,children:a}),l=n?"ol":"ul";return(0,it.jsxs)("li",{children:[s,e.children?(0,it.jsx)(l,{children:(0,it.jsx)(rB,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof o?o:void 0,ordered:n})}):null]},r)}))})}function aB(e){const t=[];return e.forEach(((o,n)=>{if(""!==o.content&&o.level===e[0].level)if(e[n+1]?.level>o.level){let r=e.length;for(let t=n+1;t<e.length;t++)if(e[t].level===o.level){r=t;break}t.push({heading:o,children:aB(e.slice(n+1,r))})}else t.push({heading:o,children:null})})),t}var iB=r(7734),sB=r.n(iB);function lB(e,t,o){const{getBlockAttributes:n}=e(ct.store),{updateBlockAttributes:r,__unstableMarkNextChangeAsNotPersistent:a}=t(ct.store),i=n(o);if(null===i)return;const s=function(e,t){const{getBlockAttributes:o,getBlockName:n,getBlocksByName:r,getClientIdsOfDescendants:a}=e(ct.store),i=e("core/editor").getPermalink()??null,s=0!==r("core/nextpage").length,{onlyIncludeCurrentPage:l,maxLevel:c}=o(t)??{},[u=""]=r("core/post-content"),d=a(u);let p=1;if(s&&l){const e=d.indexOf(t);for(const[t,o]of d.entries()){if(t>=e)break;"core/nextpage"===n(o)&&p++}}const m=[];let g=1,h=null;"string"==typeof i&&(h=s?(0,no.addQueryArgs)(i,{page:g}):i);for(const e of d){const t=n(e);if("core/nextpage"===t){if(g++,l&&g>p)break;"string"==typeof i&&(h=(0,no.addQueryArgs)((0,no.removeQueryArgs)(i,["page"]),{page:g}))}else if((!l||g===p)&&"core/heading"===t){const t=o(e);if(c&&t.level>c)continue;const n="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;m.push({content:(0,lu.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${h}#${t.anchor}`:null})}}return m}(e,o);sB()(s,i.headings)||window.queueMicrotask((()=>{a(),r(o,{headings:s})}))}const{name:cB}=oB,uB={icon:tB,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:o,maxLevel:n,ordered:r=!0},clientId:a,setAttributes:i}){!function(e){const t=(0,lt.useRegistry)();(0,gt.useEffect)((()=>t.subscribe((()=>lB(t.select,t.dispatch,e)))),[t,e])}(a);const s=(0,ct.useBlockProps)(),l=(0,xt.useInstanceId)(e,"table-of-contents"),{createWarningNotice:c}=(0,lt.useDispatch)(bo.store),u=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(ct.store);return o("core/list",t(a))}),[a]),{replaceBlocks:d}=(0,lt.useDispatch)(ct.store),p=vt(),m=aB(t),g=(0,it.jsxs)(ct.BlockControls,{children:[(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:!1===r}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:!0===r})]}),u&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>d(a,(0,st.createBlock)("core/list",{ordered:r,values:(0,gt.renderToString)((0,it.jsx)(rB,{nestedHeadingList:m,ordered:r}))})),children:(0,pt.__)("Convert to static list")})})]}),h=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:p,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Only include current page"),checked:o,onChange:e=>i({onlyIncludeCurrentPage:e}),help:o?(0,pt.__)("Only including headings from the current page (if the post is paginated)."):(0,pt.__)("Include headings from all pages (if the post is paginated).")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Include headings down to level"),value:n||"",options:[{value:"",label:(0,pt.__)("All levels")},{value:"1",label:(0,pt.__)("Heading 1")},{value:"2",label:(0,pt.__)("Heading 2")},{value:"3",label:(0,pt.__)("Heading 3")},{value:"4",label:(0,pt.__)("Heading 4")},{value:"5",label:(0,pt.__)("Heading 5")},{value:"6",label:(0,pt.__)("Heading 6")}],onChange:e=>i({maxLevel:e?parseInt(e):void 0}),help:n?(0,pt.__)("Only include headings up to and including this level."):(0,pt.__)("Including all heading levels in the table of contents.")})})]})});if(0===t.length)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...s,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:tB}),label:(0,pt.__)("Table of Contents"),instructions:(0,pt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),h]});const _=r?"ol":"ul";return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("nav",{...s,children:(0,it.jsx)(_,{children:(0,it.jsx)(rB,{nestedHeadingList:m,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),c((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},ordered:r})})}),g,h]})},save:function({attributes:{headings:e=[],ordered:t=!0}}){if(0===e.length)return null;const o=t?"ol":"ul";return(0,it.jsx)("nav",{...ct.useBlockProps.save(),children:(0,it.jsx)(o,{children:(0,it.jsx)(rB,{nestedHeadingList:aB(e),ordered:t})})})},example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}}],attributes:{headings:[{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3},{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3}]}}},dB=()=>jt({name:cB,metadata:oB,settings:uB});var pB={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/categories")}]};const mB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/tag-cloud","title":"Tag Cloud","category":"widgets","description":"A cloud of popular keywords, each sized by how often it appears.","textdomain":"default","attributes":{"numberOfTags":{"type":"number","default":45,"minimum":1,"maximum":100},"taxonomy":{"type":"string","default":"post_tag"},"showTagCounts":{"type":"boolean","default":false},"smallestFontSize":{"type":"string","default":"8pt"},"largestFontSize":{"type":"string","default":"22pt"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"outline","label":"Outline"}],"supports":{"html":false,"align":true,"spacing":{"margin":true,"padding":true},"typography":{"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-tag-cloud-editor"}');var gB=function({attributes:e,setAttributes:t}){const{taxonomy:o,showTagCounts:n,numberOfTags:r,smallestFontSize:a,largestFontSize:i}=e,[s]=(0,ct.useSettings)("spacing.units"),l=vt(),c=(0,mt.__experimentalUseCustomUnits)({availableUnits:s?[...s,"pt"]:["%","px","em","rem","pt"]}),u=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]),d=(e,o)=>{const[n,r]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);if(!Number.isFinite(n))return;const s={[e]:o};Object.entries({smallestFontSize:a,largestFontSize:i}).forEach((([t,o])=>{const[n,a]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);t!==e&&a!==r&&(s[t]=`${n}${r}`)})),t(s)},p={...e,style:{...e?.style,border:void 0}},m=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:l,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post_tag"!==o,label:(0,pt.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:[{label:(0,pt.__)("- Select -"),value:"",disabled:!0},...(u??[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"8pt"!==a||"22pt"!==i,label:(0,pt.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.Flex,{gap:4,children:[(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Smallest size"),value:a,onChange:e=>{d("smallestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})}),(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Largest size"),value:i,onChange:e=>{d("largestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})})]})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>45!==r,label:(0,pt.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==n,label:(0,pt.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})});return(0,it.jsxs)(it.Fragment,{children:[m,(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:p})})})]})};const{name:hB}=mB,_B={icon:Ax,example:{},edit:gB,transforms:pB},xB=()=>jt({name:hB,metadata:mB,settings:_B});var bB=function(){return bB=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},bB.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function fB(e){return e.toLowerCase()}var yB=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],vB=/[^A-Z0-9]+/gi;function kB(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,n=void 0===o?yB:o,r=t.stripRegexp,a=void 0===r?vB:r,i=t.transform,s=void 0===i?fB:i,l=t.delimiter,c=void 0===l?" ":l,u=wB(wB(e,n,"$1\0$2"),a,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}function wB(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}function CB(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const jB=JSON.parse('{"$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":true,"html":false,"reusable":false,"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-template-part-editor"}');function SB(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),kB(e,bB({delimiter:"."},t))}(e,bB({delimiter:"-"},t))}function BB(e,t){const{templateParts:o,isResolving:n}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,isResolving:o}=e(_t.store),n={per_page:-1};return{templateParts:t("postType","wp_template_part",n),isResolving:o("getEntityRecords",["postType","wp_template_part",n])}}),[]);return{templateParts:(0,gt.useMemo)((()=>o&&o.filter((o=>y_(o.theme,o.slug)!==t&&(!e||"uncategorized"===e||o.area===e)))||[]),[o,e,t]),isResolving:n}}function TB(e,t){return(0,lt.useSelect)((o=>{const n=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(n,r(t))}),[e,t])}function NB(e,t){const{saveEntityRecord:o}=(0,lt.useDispatch)(_t.store);return async(n=[],r=(0,pt.__)("Untitled Template Part"))=>{const a={title:r,slug:SB(r).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,st.serialize)(n),area:e},i=await o("postType","wp_template_part",a);t({slug:i.slug,theme:i.theme,area:void 0})}}function PB(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getCurrentTheme()?.default_template_part_areas||[],n=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:n?.icon||r?.icon,label:n?.label||(0,pt.__)("Template Part"),tagName:n?.area_tag??"div"}}),[e])}function IB({areaLabel:e,onClose:t,onSubmit:o}){const[n,r]=(0,gt.useState)("");return(0,it.jsx)(mt.Modal,{title:(0,pt.sprintf)((0,pt.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,it.jsx)("form",{onSubmit:e=>{e.preventDefault(),o(n)},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:"5",children:[(0,it.jsx)(mt.TextControl,{label:(0,pt.__)("Name"),value:n,onChange:r,placeholder:(0,pt.__)("Custom Template Part"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"right",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),r("")},children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!n.length,__next40pxDefaultSize:!0,children:(0,pt.__)("Create")})]})]})})})}function DB({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:n,setAttributes:r}){const{templateParts:a,isResolving:i}=BB(e,o),s=TB(e,t),{isBlockBasedTheme:l,canCreateTemplatePart:c}=(0,lt.useSelect)((e=>{const{getCurrentTheme:t,canUser:o}=e(_t.store);return{isBlockBasedTheme:t()?.is_block_theme,canCreateTemplatePart:o("create",{kind:"postType",name:"wp_template_part"})}}),[]),[u,d]=(0,gt.useState)(!1),p=PB(e),m=NB(e,r);return(0,it.jsxs)(mt.Placeholder,{icon:j_(p.icon),label:p.label,instructions:l?(0,pt.sprintf)((0,pt.__)("Choose an existing %s or create a new one."),p.label.toLowerCase()):(0,pt.sprintf)((0,pt.__)("Choose an existing %s."),p.label.toLowerCase()),children:[i&&(0,it.jsx)(mt.Spinner,{}),!i&&!(!a.length&&!s.length)&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!i&&l&&c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{d(!0)},children:(0,pt.__)("Start blank")}),u&&(0,it.jsx)(IB,{areaLabel:p.label,onClose:()=>d(!1),onSubmit:e=>{m([],e)}})]})}function MB({setAttributes:e,onClose:t,templatePartId:o=null,area:n,clientId:r}){const[a,i]=(0,gt.useState)(""),{templateParts:s}=BB(n,o),l=(0,gt.useMemo)((()=>Bk(s.map((e=>function(e){return{name:y_(e.theme,e.slug),title:e.title.rendered,blocks:(0,st.parse)(e.content.raw),templatePart:e}}(e))),a)),[s,a]),c=TB(n,r),u=(0,gt.useMemo)((()=>Bk(c,a)),[c,a]),{createSuccessNotice:d}=(0,lt.useDispatch)(bo.store),p=!!l.length,m=!!u.length;return(0,it.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,it.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:a,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),p&&(0,it.jsxs)("div",{children:[(0,it.jsx)("h2",{children:(0,pt.__)("Existing template parts")}),(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:l,onClickPattern:o=>{var n;n=o.templatePart,e({slug:n.slug,theme:n.theme,area:void 0}),d((0,pt.sprintf)((0,pt.__)('Template Part "%s" inserted.'),n.title?.rendered||n.slug),{type:"snackbar"}),t()}})]}),!p&&!m&&(0,it.jsx)(mt.__experimentalHStack,{alignment:"center",children:(0,it.jsx)("p",{children:(0,pt.__)("No results found.")})})]})}function zB(e){const t=(0,st.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),o=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!o}));if(t.length)return(0,st.switchToBlockType)(e,t[0].name)}function AB(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?zB(e):(0,st.createBlock)(e.name,e.attributes,AB(e.innerBlocks)))).filter((e=>!!e))}const LB={per_page:-1,_fields:"id,name,description,status,widgets"};function HB({area:e,setAttributes:t}){const[o,n]=(0,gt.useState)(""),[r,a]=(0,gt.useState)(!1),i=(0,lt.useRegistry)(),{sidebars:s,hasResolved:l}=(0,lt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:o}=e(_t.store);return{sidebars:t(LB),hasResolved:o("getSidebars",[LB])}}),[]),{createErrorNotice:c}=(0,lt.useDispatch)(bo.store),u=NB(e,t),d=(0,gt.useMemo)((()=>{const e=(s??[]).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,pt.__)("Select widget area")},...e]:[]}),[s]);if(!l)return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"0"});if(l&&!d.length)return null;return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"4",children:(0,it.jsxs)(mt.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),r||!o)return;a(!0);const t=d.find((({value:e})=>e===o)),{getWidgets:n}=i.resolveSelect(_t.store),s=await n({sidebar:t.value,_embed:"about"}),l=new Set,p=s.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},zB((0,st.createBlock)("core/legacy-widget",t))}const t=(0,st.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const o=t[0];return"core/widget-group"===o.name?(0,st.createBlock)((0,st.getGroupingBlockName)(),void 0,AB(o.innerBlocks)):o.innerBlocks.length>0?(0,st.cloneBlock)(o,void 0,AB(o.innerBlocks)):o}(e);return t||(l.add(e.id_base),[])}));await u(p,(0,pt.sprintf)((0,pt.__)("Widget area: %s"),t.label)),l.size&&c((0,pt.sprintf)((0,pt.__)("Unable to import the following widgets: %s."),Array.from(l).join(", ")),{type:"snackbar"}),a(!1)},children:[(0,it.jsx)(mt.FlexBlock,{children:(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("Import widget area"),value:o,options:d,onChange:e=>n(e),disabled:!d.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,it.jsx)(mt.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:r,"aria-disabled":r||!o,children:(0,pt._x)("Import","button label")})})]})})}const{HTMLElementControl:RB}=jo(ct.privateApis);function VB({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:n,defaultWrapper:r,hasInnerBlocks:a,clientId:i}){const[s,l]=(0,_t.useEntityProp)("postType","wp_template_part","area",n),[c,u]=(0,_t.useEntityProp)("postType","wp_template_part","title",n),d=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.default_template_part_areas||[]),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),value:c,onChange:e=>{u(e)},onFocus:e=>e.target.select()}),(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Area"),labelPosition:"top",options:d,value:s,onChange:l})]}),(0,it.jsx)(RB,{tagName:e||"",onChange:e=>t({tagName:e}),clientId:i,options:[{label:(0,pt.sprintf)((0,pt.__)("Default based on area (%s)"),`<${r}>`),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"}]}),!a&&(0,it.jsx)(HB,{area:s,setAttributes:t})]})}function FB(e){return"contentOnly"!==(0,ct.useBlockEditingMode)()&&(e?void 0:ct.InnerBlocks.ButtonBlockAppender)}function EB(e){const t=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t()?.supportsLayout}),[]),[o]=(0,ct.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function OB({postId:e,layout:t,tagName:o,blockProps:n}){(0,ct.useBlockEditingMode)("disabled");const{content:r,editedBlocks:a}=(0,lt.useSelect)((t=>{if(!e)return{};const{getEditedEntityRecord:o}=t(_t.store),n=o("postType","wp_template_part",e,{context:"view"});return{editedBlocks:n.blocks,content:n.content}}),[e]),i=(0,gt.useMemo)((()=>{if(e)return a||(r&&"string"==typeof r?(0,st.parse)(r):[])}),[e,a,r]),s=(0,ct.useInnerBlocksProps)(n,{value:i,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:EB(t)});return(0,it.jsx)(o,{...s})}function GB({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const a=(0,lt.useSelect)((e=>e(ct.store).getSettings().onNavigateToEntityRecord),[]),[i,s,l]=(0,_t.useEntityBlockEditor)("postType","wp_template_part",{id:e}),c=(0,ct.useInnerBlocksProps)(r,{value:i,onInput:s,onChange:l,renderAppender:FB(t),layout:EB(o)}),u="contentOnly"===(0,ct.useBlockEditingMode)()&&a?{onDoubleClick:()=>a({postId:e,postType:"wp_template_part"})}:{};return(0,it.jsx)(n,{...c,...u})}function $B({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const{canViewTemplatePart:a,canEditTemplatePart:i}=(0,lt.useSelect)((t=>({canViewTemplatePart:!!t(_t.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})})),[e]);if(!a)return null;const s=i?GB:OB;return(0,it.jsx)(s,{postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r})}function UB({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:n,setIsTemplatePartSelectionOpen:r}){const{templateParts:a}=BB(t,o),i=!!a.length;return e&&i&&("header"===t||"footer"===t)?(0,it.jsx)(mt.MenuItem,{onClick:()=>{r(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:(0,pt.__)("Replace")}):null}function qB({area:e,clientId:t,isEntityAvailable:o,onSelect:n}){const r=TB(e,t);return o&&!!r.length&&("header"===e||"footer"===e)?(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Design"),children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{label:(0,pt.__)("Templates"),blockPatterns:r,onClickPattern:n,showTitlesAsTooltip:!0})}):null}function WB(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:o,theme:n,slug:r}=e;if(o)return o===t.area;if(!r)return!1;const{getCurrentTheme:a,getEntityRecord:i}=(0,lt.select)(_t.store),s=i("postType","wp_template_part",`${n||a()?.stylesheet}//${r}`);return s?.slug?s.slug===t.slug:s?.area===t.area},o=e.variations.map((e=>({...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:j_(e.icon)}})));return{...e,variations:o}}return e}const{name:ZB}=jB,JB={icon:C_,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:o,getEditedEntityRecord:n}=(0,lt.select)(_t.store),r=n("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);return r?(0,ao.decodeEntities)(r.title)||function(e,t){return void 0===t&&(t={}),kB(e,bB({delimiter:" ",transform:CB},t))}(r.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:o}){const{createSuccessNotice:n}=(0,lt.useDispatch)(bo.store),{editEntityRecord:r}=(0,lt.useDispatch)(_t.store),a=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{slug:i,theme:s=a,tagName:l,layout:c={}}=e,u=y_(s,i),d=(0,ct.useHasRecursion)(u),[p,m]=(0,gt.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:_,area:x,onNavigateToEntityRecord:b,title:f,canUserEdit:y}=(0,lt.useSelect)((t=>{const{getEditedEntityRecord:n,hasFinishedResolution:r}=t(_t.store),{getBlockCount:a,getSettings:i}=t(ct.store),s=["postType","wp_template_part",u],l=u?n(...s):null,c=l?.area||e.area,d=!!u&&r("getEditedEntityRecord",s),p=!!d&&t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:u});return{hasInnerBlocks:a(o)>0,isResolved:d,isMissing:d&&(!l||0===Object.keys(l).length),area:c,onNavigateToEntityRecord:i().onNavigateToEntityRecord,title:l?.title,canUserEdit:!!p}}),[u,e.area,o]),v=PB(x),k=(0,ct.useBlockProps)(),w=!i,C=!w&&!_&&g,j=l||v.tagName;return!h&&(i&&!s||i&&_)?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Template part has been deleted or is unavailable: %s"),i)})}):C&&d?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.RecursionProvider,{uniqueId:u,children:[C&&b&&y&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>b({postId:u,postType:"wp_template_part"}),children:(0,pt.__)("Edit")})}),y&&(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(VB,{tagName:l,setAttributes:t,isEntityAvailable:C,templatePartId:u,defaultWrapper:v.tagName,hasInnerBlocks:h,clientId:o})}),w&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(DB,{area:e.area,templatePartId:u,clientId:o,setAttributes:t,onOpenSelectionModal:()=>m(!0)})}),(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1!==e.length||o!==e[0]?null:(0,it.jsx)(UB,{isEntityAvailable:C,area:x,clientId:o,templatePartId:u,isTemplatePartSelectionOpen:p,setIsTemplatePartSelectionOpen:m})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(qB,{area:x,clientId:o,isEntityAvailable:C,onSelect:e=>(async e=>{await r("postType","wp_template_part",u,{blocks:e.blocks,content:(0,st.serialize)(e.blocks)}),n((0,pt.sprintf)((0,pt.__)('Template Part "%s" updated.'),f||i),{type:"snackbar"})})(e)})}),C&&(0,it.jsx)($B,{tagName:j,blockProps:k,postId:u,hasInnerBlocks:h,layout:c}),!w&&!g&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(mt.Spinner,{})})]}),p&&(0,it.jsx)(mt.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,pt.sprintf)((0,pt.__)("Choose a %s"),v.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0,children:(0,it.jsx)(MB,{templatePartId:u,clientId:o,area:x,setAttributes:t,onClose:()=>m(!1)})})]})}},QB=()=>{(0,vl.addFilter)("blocks.registerBlockType","core/template-part",WB);const e=["core/post-template","core/post-content"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/template-part"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:ZB,metadata:jB,settings:JB})};var KB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const YB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-count","title":"Term Count","category":"theme","description":"Displays the post count of a taxonomy term.","textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"bracketType":{"type":"string","enum":["none","round","square","curly","angle"],"default":"round"}},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-count"}'),XB=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),eT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),tT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),oT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),nT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});function rT(e,t){const[o]=(0,_t.useEntityProp)("taxonomy",t,"count",e),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].count||""}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,termCount:r?o||"":n}}const aT={none:{label:(0,pt.__)("No brackets"),icon:XB},round:{label:(0,pt.__)("Round brackets"),icon:eT,before:"(",after:")"},square:{label:(0,pt.__)("Square brackets"),icon:tT,before:"[",after:"]"},curly:{label:(0,pt.__)("Curly brackets"),icon:oT,before:"{",after:"}"},angle:{label:(0,pt.__)("Angle brackets"),icon:nT,before:"<",after:">"}};const{name:iT}=YB,sT={icon:KB,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{bracketType:r}=e,a=rT(o,n),i=a?.termCount||0,s=(0,ct.useBlockProps)(),l=Object.entries(aT).map((([e,{label:o,icon:n}])=>({role:"menuitemradio",title:o,isActive:r===e,icon:n,onClick:()=>{t({bracketType:e})}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:aT[r]?.icon??XB,label:(0,pt.__)("Change bracket type"),controls:l})}),(0,it.jsx)("div",{...s,children:((e,t)=>{const{before:o="",after:n=""}=aT[t]||{};return`${o}${e}${n}`})(i,r)})]})}},lT=()=>jt({name:iT,metadata:YB,settings:sT});var cT=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 uT=JSON.parse('{"$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","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"}},"supports":{"align":["wide","full"],"html":false,"color":{"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function dT(e,t){const[o,n,r]=(0,_t.useEntityProp)("taxonomy",t,"description",e),a=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].description||""}),[o,n])}(),i=Boolean(e&&t);return{hasContext:i,setDescription:n,termDescription:i?r?.rendered||o||"":a}}const{name:pT}=uT,mT={icon:cT,edit:function({attributes:e,setAttributes:t,mergedStyle:o,context:{termId:n,taxonomy:r}}){const{textAlign:a}=e,{termDescription:i}=dT(n,r),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a}),style:o});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("div",{...s,children:i?(0,it.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):(0,it.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,it.jsx)("span",{children:(0,pt.__)("Term Description")})})})]})},example:{}},gT=()=>jt({name:pT,metadata:uT,settings:mT});var hT=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const _T=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-name","title":"Term Name","category":"theme","description":"Displays the name of a taxonomy term.","keywords":["term title"],"textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"isLink":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-name"}');function xT(e,t){const o=(0,lt.useSelect)((o=>e&&t?o(_t.store).getEntityRecord("taxonomy",t,e):null),[e,t]),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return null;const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]?r[0]:null}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,term:r?o:n}}const{name:bT}=_T,fT={icon:hT,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{textAlign:r,level:a=0,isLink:i}=e,{term:s}=xT(o,n),l=s?.name?(0,ao.decodeEntities)(s.name):(0,pt.__)("Term Name"),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),u=vt(),d=0===a?"p":`h${a}`;let p=l;return i&&(p=(0,it.jsx)("a",{href:"#term-name-pseudo-link",onClick:e=>e.preventDefault(),children:l})),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:a,options:[0,1,2,3,4,5,6],onChange:e=>{t({level:e})}}),(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,it.jsx)(d,{...c,children:p})]})}},yT=()=>jt({name:bT,metadata:_T,settings:fT}),vT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/terms-query","title":"Terms Query","category":"theme","description":"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.","keywords":["terms","taxonomy","categories","tags","list"],"textdomain":"default","attributes":{"termQuery":{"type":"object","default":{"perPage":10,"taxonomy":"category","order":"asc","orderBy":"name","include":[],"hideEmpty":true,"showNested":false,"inherit":false}},"tagName":{"type":"string","default":"div"}},"usesContext":["templateSlug"],"providesContext":{"termQuery":"termQuery"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true}}');function kT(){const e=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]);return(0,gt.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))||[]),[e])}function wT({value:e,onChange:t,...o}){const n=kT().map((e=>({label:e.name,value:e.slug})));return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...o})}function CT({orderBy:e,order:t,onChange:o,...n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:[{label:(0,pt.__)("Name: A → Z"),value:"name/asc"},{label:(0,pt.__)("Name: Z → A"),value:"name/desc"},{label:(0,pt.__)("Count, high to low"),value:"count/desc"},{label:(0,pt.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:e=>{const[t,n]=e.split("/");o(t,n)},...n})}function jT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!e,onChange:e=>t(!e),...o})}function ST({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,onChange:t,...o})}function BT({value:e,onChange:t,label:o}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:o,isBlock:!0,onChange:e=>{t({inherit:"default"===e})},help:e?(0,pt.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,pt.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]})}function TT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,pt.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...o})}const{HTMLElementControl:NT}=jo(ct.privateApis);function PT({TagName:e,setAttributes:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(NT,{tagName:e,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}const IT=[],DT={order:"asc",_fields:"id,name",context:"view"};function MT({value:e,taxonomy:t,onChange:o,...n}){const[r,a]=(0,gt.useState)(""),[i,s]=(0,gt.useState)(IT),[l,c]=(0,gt.useState)(IT),u=(0,xt.useDebounce)(a,250),{searchResults:d,searchHasResolved:p}=(0,lt.useSelect)((o=>{if(!r)return{searchResults:IT,searchHasResolved:!0};const{getEntityRecords:n,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",t,{...DT,search:r,orderby:"name",exclude:e,per_page:20}];return{searchResults:n(...i),searchHasResolved:a("getEntityRecords",i)}}),[r,t,e]),m=(0,lt.useSelect)((o=>{if(!e?.length)return IT;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",t,{...DT,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||s(IT),!m?.length)return;const t=e.reduce(((e,t)=>{const o=m.find((e=>e.id===t));return o&&e.push({id:t,value:(0,ao.decodeEntities)(o.name)}),e}),[]);s(t)}),[e,m]);const g=(0,gt.useMemo)((()=>{if(!d?.length)return{names:IT,mapByName:{}};const e=[],t={};return d.forEach((o=>{const n=(0,ao.decodeEntities)(o.name);e.push(n),t[n]=o})),{names:e,mapByName:t}}),[d]);(0,gt.useEffect)((()=>{p&&c(g.names)}),[g.names,p]);return(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,value:i,onInputChange:u,suggestions:l,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>t?.id||e?.[t]?.id)(g.mapByName,t);return o&&e.add(o),e}),new Set));c(IT),o(t)},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,...n})}function zT({attributes:e,setQuery:t,setAttributes:o,clientId:n,templateSlug:r}){const{termQuery:a,tagName:i}=e,{taxonomy:s,orderBy:l,order:c,hideEmpty:u,inherit:d,showNested:p,perPage:m,include:g}=a,h=vt(),_=kT(),x=_.find((e=>e.slug===s))?.hierarchical,b=!!d,f=["taxonomy","category","tag","archive"].includes(r)||r?.startsWith("taxonomy-")||r?.startsWith("category-")||r?.startsWith("tag-"),y=x,v=!!g?.length,k=(0,pt.__)("Query type"),w=(0,pt.__)("Taxonomy"),C=(0,pt.__)("Order by"),j=(0,pt.__)("Show empty terms"),S=(0,pt.__)("Show nested terms"),B=(0,pt.__)("Max terms"),T=(0,pt.__)("Selected terms");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==d,label:k,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,it.jsx)(BT,{label:k,value:d,onChange:t})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==s,label:w,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(wT,{label:w,value:s,onChange:e=>t({taxonomy:e,include:[]})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"name"!==l||"asc"!==c,label:C,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(CT,{label:C,orderBy:l,order:c,onChange:(e,o)=>{t({orderBy:e,order:o})},disabled:v,help:v?(0,pt.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:T,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(MT,{label:T,taxonomy:s,value:g,onChange:e=>t({include:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==u,label:j,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,it.jsx)(jT,{label:j,value:u,onChange:e=>t({hideEmpty:e})})}),y&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==p,label:S,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,it.jsx)(ST,{label:S,value:p,onChange:e=>t({showNested:e}),disabled:v,help:v?(0,pt.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>10!==m,label:B,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,it.jsx)(TT,{label:B,value:m,onChange:e=>t({perPage:e})})})]})}),(0,it.jsx)(PT,{TagName:i,setAttributes:o,clientId:n})]})}const AT=[["core/term-template"]];function LT({attributes:e,setAttributes:t,clientId:o,context:n}){const{tagName:r}=e,a=(0,ct.useBlockProps)(),i=(0,ct.useInnerBlocksProps)(a,{template:AT}),s=(0,gt.useCallback)((e=>t((t=>({termQuery:{...t.termQuery,...e}})))),[t]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(zT,{attributes:e,setQuery:s,setAttributes:t,clientId:o,templateSlug:n?.templateSlug}),(0,it.jsx)(r,{...i})]})}function HT({attributes:e,clientId:t,name:o}){const{blockType:n,activeBlockVariation:r,scopeVariations:a}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r,getBlockVariations:a}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e),scopeVariations:a(o,"block")}}),[o,e]),i=r?.icon?.src||r?.icon||n?.icon?.src,s=r?.title||n?.title,{replaceInnerBlocks:l}=(0,lt.useDispatch)(ct.store),c=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...c,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:i,label:s,variations:a,onSelect:e=>{e.innerBlocks&&l(t,(0,st.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}})})}var RT=e=>{const t=(0,lt.useSelect)((t=>!!t(ct.store).getBlocks(e.clientId).length),[e.clientId])?LT:HT;return(0,it.jsx)(t,{...e})};const VT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),FT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),ET=["core/term-name",{isLink:!0}];var OT=[{name:"name",title:(0,pt.__)("Name"),description:(0,pt.__)("Display the terms' names."),attributes:{},icon:VT,scope:["block"],innerBlocks:[["core/term-template",{},[ET]]]},{name:"name-count",title:(0,pt.__)("Name & Count"),description:(0,pt.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:FT,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[ET,["core/term-count"]]]]]]}];const{name:GT}=vT,$T={icon:Wv,edit:RT,save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},example:{},variations:OT},UT=()=>jt({name:GT,metadata:vT,settings:$T}),qT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-template","title":"Term Template","category":"theme","ancestor":["core/terms-query"],"description":"Contains the block elements used to render a taxonomy term, like the name, description, and more.","textdomain":"default","usesContext":["termQuery"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-term-template","editorStyle":"wp-block-term-template-editor"}'),WT=[["core/term-name"]];function ZT({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-term",e)},{template:WT,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const JT=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-term",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:QT}=qT,KT={icon:Oa,edit:function({clientId:e,attributes:{layout:t},setAttributes:o,context:{termQuery:{taxonomy:n,order:r,orderBy:a,hideEmpty:i,showNested:s=!1,perPage:l,include:c}={}},__unstableLayoutClassNames:u}){const{type:d,columnCount:p=3}=t||{},[m,g]=(0,gt.useState)(),h={hide_empty:i,order:r,orderby:a,per_page:l||-1};s||c?.length||(h.parent=0),c?.length&&(h.include=c,h.orderby="include",h.order="asc");const{records:_}=(0,_t.useEntityRecords)("taxonomy",n,h),x=(0,lt.useSelect)((t=>t(ct.store).getBlocks(e)),[e]),b=(0,ct.useBlockProps)({className:u}),f=(0,gt.useMemo)((()=>_?.map((e=>({taxonomy:n,termId:e.id,classList:`term-${e.id}`,termData:e})))),[_,n]);if(!_)return(0,it.jsx)("ul",{...b,children:(0,it.jsx)("li",{className:"wp-block-term term-loading",children:(0,it.jsx)("div",{className:"term-loading-placeholder"})})});if(!_.length)return(0,it.jsxs)("p",{...b,children:[" ",(0,pt.__)("No terms found.")]});const y=e=>o((t=>({layout:{...t.layout,...e}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:[{icon:Bm,title:(0,pt._x)("List view","Term template block display setting"),onClick:()=>y({type:"default"}),isActive:"default"===d||"constrained"===d},{icon:qd,title:(0,pt._x)("Grid view","Term template block display setting"),onClick:()=>y({type:"grid",columnCount:p}),isActive:"grid"===d}]})}),(0,it.jsx)("ul",{...b,children:f?.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.termId===(m||f[0]?.termId)?(0,it.jsx)(ZT,{classList:e.classList}):null,(0,it.jsx)(JT,{blocks:x,blockContextId:e.termId,classList:e.classList,setActiveBlockContextId:g,isHidden:e.termId===(m||f[0]?.termId)})]},e.termId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{}},YT=()=>jt({name:QT,metadata:qT,settings:KT});const XT=JSON.parse('{"$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":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-text-columns-editor","style":"wp-block-text-columns"}');var eN={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:n})=>(0,st.createBlock)("core/columns",{align:"wide"===n||"full"===n?n:void 0,className:e,columns:t},o.map((({children:e})=>(0,st.createBlock)("core/column",{},[(0,st.createBlock)("core/paragraph",{content:e})]))))}]};const{name:tN}=XT,oN={transforms:eN,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:o,content:n,columns:r}=e;return Jm()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockAlignmentToolbar,{value:o,onChange:e=>t({width:e}),controls:["center","wide","full"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:`align${o} columns-${r}`}),children:Array.from({length:r}).map(((e,o)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText,{tagName:"p",value:n?.[o]?.children,onChange:e=>{t({content:[...n.slice(0,o),{children:e},...n.slice(o+1)]})},"aria-label":(0,pt.sprintf)((0,pt.__)("Column %d text"),o+1),placeholder:(0,pt.__)("New Column")})},`column-${o}`)))})]})},save:function({attributes:e}){const{width:t,content:o,columns:n}=e;return(0,it.jsx)("div",{...ct.useBlockProps.save({className:`align${t} columns-${n}`}),children:Array.from({length:n}).map(((e,t)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:o?.[t]?.children})},`column-${t}`)))})}},nN=()=>jt({name:tN,metadata:XT,settings:oN}),rN={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o}=e;return(0,it.jsx)(ct.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},aN={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"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:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var iN=[aN,rN];const sN=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"typography":{"fontSize":true,"__experimentalFontFamily":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-verse","editorStyle":"wp-block-verse-editor"}');const lN={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/paragraph",e)}]};var cN=lN;const{name:uN}=sN,dN={icon:iC,example:{attributes:{content:(0,pt.__)("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:cN,deprecated:iN,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:n,insertBlocksAfter:r,style:a}){const{textAlign:i,content:s}=e,l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:i,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:e=>{t({content:e})},"aria-label":(0,pt.__)("Verse text"),placeholder:(0,pt.__)("Write verse…"),onRemove:n,onMerge:o,textAlign:i,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})},save:function({attributes:e}){const{textAlign:t,content:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},pN=()=>jt({name:uN,metadata:sN,settings:dN});var mN=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const gN=JSON.parse('{"$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":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"controls":{"type":"boolean","source":"attribute","selector":"video","attribute":"controls","default":true},"id":{"type":"number","role":"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"},"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"video","attribute":"src","role":"content"},"playsInline":{"type":"boolean","source":"attribute","selector":"video","attribute":"playsinline"},"tracks":{"role":"content","type":"array","items":{"type":"object"},"default":[]}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-video-editor","style":"wp-block-video"}');function hN({tracks:e=[]}){return e.map((e=>{const{id:t,...o}=e;return(0,it.jsx)("track",{...o},t??o.src)}))}const{attributes:_N}=gN,xN={attributes:_N,save({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(hN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var bN=[xN];const fN=[{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}];var yN=({setAttributes:e,attributes:t})=>{const{autoplay:o,controls:n,loop:r,muted:a,playsInline:i,preload:s}=t,l=(0,pt.__)("Autoplay may cause usability issues for some users."),c=gt.Platform.select({web:(0,gt.useCallback)((e=>e?l:null),[]),native:l}),u=(0,gt.useMemo)((()=>{const t=t=>o=>{e({[t]:o,..."autoplay"===t&&{muted:o,playsInline:o}})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),d=(0,gt.useCallback)((t=>{e({preload:t})}),[]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:u.autoplay,checked:!!o,help:c})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({loop:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:u.loop,checked:!!r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{e({muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Muted"),onChange:u.muted,checked:!!a,disabled:o,help:o?(0,pt.__)("Muted because of Autoplay."):null})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{e({controls:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Playback controls"),onChange:u.controls,checked:!!n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({playsInline:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Play inline"),onChange:u.playsInline,checked:!!i,disabled:o,help:o?(0,pt.__)("Play inline enabled because of Autoplay."):(0,pt.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>"metadata"!==s,onDeselect:()=>{e({preload:"metadata"})},children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Preload"),value:s,onChange:d,options:fN,hideCancelButton:!0})})]})};const{Badge:vN}=jo(mt.privateApis),kN=["text/vtt"],wN=[{label:(0,pt.__)("Subtitles"),value:"subtitles"},{label:(0,pt.__)("Captions"),value:"captions"},{label:(0,pt.__)("Descriptions"),value:"descriptions"},{label:(0,pt.__)("Chapters"),value:"chapters"},{label:(0,pt.__)("Metadata"),value:"metadata"}],CN={src:"",label:"",srcLang:"en",kind:"subtitles",default:!1};function jN({tracks:e,onEditPress:t}){const o=e.map(((e,o)=>(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,it.jsx)("span",{children:e.label}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-end",children:[e.default&&(0,it.jsx)(vN,{children:(0,pt.__)("Default")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(o),"aria-label":(0,pt.sprintf)((0,pt._x)("Edit %s","text tracks"),e.label),children:(0,pt.__)("Edit")})]})]},e.id??e.src)));return(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function SN({track:e,onChange:t,onClose:o,onRemove:n,allowSettingDefault:r}){const[a,i]=(0,gt.useState)({...CN,...e}),{src:s,label:l,srcLang:c,kind:u,default:d}=a,p=s.startsWith("blob:")?"":(0,no.getFilename)(s)||"";return(0,it.jsxs)(mt.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,it.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,pt.__)("Edit track")}),(0,it.jsxs)("span",{children:[(0,pt.__)("File"),": ",(0,it.jsx)("b",{children:p})]}),(0,it.jsxs)(mt.__experimentalGrid,{columns:2,gap:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,label:e}))),label:(0,pt.__)("Label"),value:l,help:(0,pt.__)("Title of track")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,srcLang:e}))),label:(0,pt.__)("Source language"),value:c,help:(0,pt.__)("Language tag (en, fr, etc.)")})]}),(0,it.jsxs)(mt.__experimentalVStack,{spacing:"4",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:wN,value:u,label:(0,pt.__)("Kind"),onChange:e=>i((t=>({...t,kind:e})))}),(0,it.jsx)(mt.ToggleControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Set as default track"),checked:d,disabled:!r,onChange:e=>i((t=>({...t,default:e})))}),(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:n,children:(0,pt.__)("Remove track")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(a),o()},children:(0,pt.__)("Apply")})]})]})]})}function BN({tracks:e=[],onChange:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().mediaUpload),[]),[n,r]=(0,gt.useState)(null),a=(0,gt.useRef)(),i=(o=[],n=!1)=>{const r=new Map(e.map((e=>[e.id,e]))),a=o.map((({id:e,title:t,url:o})=>r.has(e)?r.get(e):{...CN,id:e,label:t||"",src:o}));0!==a.length&&t([...n?e:[],...a])};function s(e){const t=e.target.files;o({allowedTypes:kN,filesList:t,onFileChange:e=>{if(!Array.isArray(e))return;const t=e.filter((e=>!!e?.id));t.length&&i(t,!0)}})}return(0,gt.useEffect)((()=>{a.current?.focus()}),[n]),o?(0,it.jsx)(mt.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:a},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e||r(null),t()},children:(0,pt.__)("Text tracks")})}),renderContent:()=>null!==n?(0,it.jsx)(SN,{track:e[n],onChange:o=>{const r=[...e];r[n]=o,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter(((e,t)=>t!==n))),r(null)},allowSettingDefault:!e.some((e=>e.default))||e[n].default}):(0,it.jsxs)(it.Fragment,{children:[0===e.length&&(0,it.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,it.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,pt.__)("Text tracks")}),(0,it.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,pt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,it.jsxs)(mt.NavigableMenu,{children:[(0,it.jsx)(jN,{tracks:e,onEditPress:r}),(0,it.jsx)(mt.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,pt.__)("Add tracks"),children:(0,it.jsxs)(ct.MediaUploadCheck,{children:[(0,it.jsx)(ct.MediaUpload,{onSelect:i,allowedTypes:kN,value:e.map((({id:e})=>e)),multiple:!0,render:({open:e})=>(0,it.jsx)(mt.MenuItem,{icon:lh,onClick:e,children:(0,pt.__)("Open Media Library")})}),(0,it.jsx)(mt.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:e})=>(0,it.jsx)(mt.MenuItem,{icon:Jp,onClick:e,children:(0,pt._x)("Upload","verb")})})]})})]})]})}):null}const TN=["video"];var NN=function({isSelected:e,attributes:t,className:o,setAttributes:n,insertBlocksAfter:r,onReplace:a}){const i=(0,gt.useRef)(),{id:s,controls:l,poster:c,src:u,tracks:d}=t,[p,m]=(0,gt.useState)(t.blob),g=vt(),h="default"===(0,ct.useBlockEditingMode)();function _(e){if(!e||!e.url)return n({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),void m();(0,ht.isBlobURL)(e.url)?m(e.url):(n({blob:void 0,src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}),m())}function x(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({blob:void 0,src:e,id:void 0,poster:void 0}),m()}}ft({url:p,allowedTypes:TN,onChange:_,onError:f}),(0,gt.useEffect)((()=>{i.current&&i.current.load()}),[c]);const{createErrorNotice:b}=(0,lt.useDispatch)(bo.store);function f(e){b(e,{type:"snackbar"})}const y=t=>(0,it.jsx)(mt.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:mN,label:(0,pt.__)("Video"),instructions:(0,pt.__)("Drag and drop a video, upload, or choose from your library."),children:t}),v=Dt(o,{"is-transient":!!p}),k=(0,ct.useBlockProps)({className:v});return u||p?(0,it.jsxs)(it.Fragment,{children:[e&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(BN,{tracks:d,onChange:e=>{n({tracks:e})}})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:s,mediaURL:u,allowedTypes:TN,accept:"video/*",onSelect:_,onSelectURL:x,onError:f,onReset:()=>_(void 0)})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:g,children:[(0,it.jsx)(yN,{setAttributes:n,attributes:t}),(0,it.jsx)(_s,{poster:c,onChange:e=>n({poster:e?.url})})]})}),(0,it.jsxs)("figure",{...k,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!e,children:(0,it.jsx)("video",{controls:l,poster:c,src:u||p,ref:i,children:(0,it.jsx)(hN,{tracks:d})})}),!!p&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:e,insertBlocksAfter:r,label:(0,pt.__)("Video caption text"),showToolbarButton:e&&h})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:mN}),onSelect:_,onSelectURL:x,accept:"video/*",allowedTypes:TN,value:t,onError:f,placeholder:y})})};const PN={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:n,ogv:r,flv:a}})=>e||t||o||n||r||a},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}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,o={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,ht.isBlobURL)(o.src)&&(o.blob=o.src,delete o.src),(0,st.createBlock)("core/video",o)}}]};var IN=PN;const{name:DN}=gN,MN={icon:mN,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,pt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:IN,deprecated:bN,edit:NN,save:function({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(hN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}},zN=()=>jt({name:DN,metadata:gN,settings:MN});const AN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/footnotes","title":"Footnotes","category":"text","description":"Display footnotes added to the page.","keywords":["references"],"textdomain":"default","usesContext":["postId","postType"],"supports":{"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":false,"width":false,"style":false}},"color":{"background":true,"link":true,"text":true,"__experimentalDefaultControls":{"link":true,"text":true}},"html":false,"multiple":false,"reusable":false,"inserter":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-footnotes"}'),LN={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let HN;const RN=new Uint8Array(16);function VN(){if(!HN&&(HN="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!HN))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HN(RN)}const FN=[];for(let e=0;e<256;++e)FN.push((e+256).toString(16).slice(1));function EN(e,t=0){return FN[e[t+0]]+FN[e[t+1]]+FN[e[t+2]]+FN[e[t+3]]+"-"+FN[e[t+4]]+FN[e[t+5]]+"-"+FN[e[t+6]]+FN[e[t+7]]+"-"+FN[e[t+8]]+FN[e[t+9]]+"-"+FN[e[t+10]]+FN[e[t+11]]+FN[e[t+12]]+FN[e[t+13]]+FN[e[t+14]]+FN[e[t+15]]}const ON=function(e,t,o){if(LN.randomUUID&&!t&&!e)return LN.randomUUID();const n=(e=e||{}).random||(e.rng||VN)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=n[e];return t}return EN(n)},{usesContextKey:GN}=jo(ct.privateApis),$N="core/footnote",UN="core/post-content",qN={title:(0,pt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[GN]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:o,context:{postType:n,postId:r}}){const a=(0,lt.useRegistry)(),{getSelectedBlockClientId:i,getBlocks:s,getBlockRootClientId:l,getBlockName:c,getBlockParentsByBlockName:u}=a.select(ct.store),d=(0,lt.useSelect)((e=>{if(!e(st.store).getBlockType("core/footnotes"))return!1;const t=e(ct.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const o=e(_t.store).getEntityRecord("postType",n,r);if("string"!=typeof o?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),s=a(i(),"core/block");return!s||0===s.length}),[n,r]),{selectionChange:p,insertBlock:m}=(0,lt.useDispatch)(ct.store);if(!d)return null;return(0,it.jsx)(ct.RichTextToolbarButton,{icon:Wm,title:(0,pt.__)("Footnote"),onClick:function(){a.batch((()=>{let n;if(o){const t=e.replacements[e.start];n=t?.attributes?.["data-fn"]}else{n=ON();const o=(0,Tn.insertObject)(e,{type:$N,attributes:{"data-fn":n},innerHTML:`<a href="#${n}" id="${n}-link">*</a>`},e.end,e.end);o.start=o.end-1,t(o)}const r=i(),a=u(r,UN);let d=null;{const e=[...a.length?s(a[0]):s()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){d=t;break}e.push(...t.innerBlocks)}}if(!d){let e=l(r);for(;e&&c(e)!==UN;)e=l(e);d=(0,st.createBlock)("core/footnotes"),m(d,void 0,e)}p(d.clientId,n,0,0)}))},isActive:o})}},{name:WN}=AN,ZN={icon:Wm,edit:function({context:{postType:e,postId:t}}){const[o,n]=(0,_t.useEntityProp)("postType",e,"meta",t),r="string"==typeof o?.footnotes,a=o?.footnotes?JSON.parse(o.footnotes):[],i=(0,ct.useBlockProps)();return r?a.length?(0,it.jsx)("ol",{...i,children:a.map((({id:e,content:t})=>(0,it.jsxs)("li",{onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())},children:[(0,it.jsx)(ct.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{n({...o,footnotes:JSON.stringify(a.map((o=>o.id===e?{content:t,id:e}:o)))})}})," ",(0,it.jsx)("a",{href:`#${e}-link`,children:"↩︎"})]},e)))}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes are not supported here. Add this block to post or page content.")})})}},JN=()=>{(0,Tn.registerFormatType)($N,qN),jt({name:WN,metadata:AN,settings:ZN})};var QN,KN,YN=Object.getOwnPropertyNames;const XN=(QN={"packages/block-library/src/utils/is-block-metadata-experimental.js"(e,t){t.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}}},function(){return KN||(0,QN[YN(QN)[0]])((KN={exports:{}}).exports,KN),KN.exports})(),eP=window.wp.keyboardShortcuts;var tP=function(){const{registerShortcut:e}=(0,lt.useDispatch)(eP.store),{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),{getBlockName:o,getSelectedBlockClientId:n,getBlockAttributes:r}=(0,lt.useSelect)(ct.store),a=(e,a)=>{e.preventDefault();const i=n();if(null===i)return;const s=o(i),l="core/paragraph"===s,c="core/heading"===s;if(!l&&!c)return;const u=0===a?"core/paragraph":"core/heading",d=r(i);if(l&&0===a||c&&d.level===a)return;const p="core/paragraph"===s?"align":"textAlign",m="core/paragraph"===u?"align":"textAlign";t(i,(0,st.createBlock)(u,{level:a,content:d.content,[m]:d[p]}))};return(0,gt.useEffect)((()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,pt.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/block-editor/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,pt.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),(0,eP.useShortcut)("core/block-editor/transform-heading-to-paragraph",(e=>a(e,0))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",(e=>a(e,1))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",(e=>a(e,2))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",(e=>a(e,3))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",(e=>a(e,4))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",(e=>a(e,5))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",(e=>a(e,6))),null};const oP={};Co(oP,{BlockKeyboardShortcuts:tP});const nP=()=>(()=>{const r=[se,$,E,V,W,J,ze,e,t,o,n,i,l,u,d,p,m,h,_,x,f,I,D,M,z,F,G,Z,U,q,K,Y,X,ne,ae,ie,re,Ce,je,Ae,He,Re,Ve,Fe,$e,Ue,qe,We,Je,ot,nt,rt,at,ee,te,oe,Ee,Ge,Oe,Se,Qe,s,we,xe,be,he,le,ce,de,pe,ge,_e,ve,fe,ye,ke,Te,Ne,Pe,Ie,Be,Me,Le,b,y,v,k,w,C,j,P,B,T,N,S,me,Ze,O,Q,Ke,Ye,Xe,et,tt,De,ue];return window?.__experimentalEnableBlockExperiments&&r.push(c),window?.__experimentalEnableFormBlocks&&(r.push(A),r.push(L),r.push(H),r.push(R)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&r.push(g),r.filter(Boolean)})().filter((({metadata:e})=>!XN(e))),rP=(e=nP())=>{e.forEach((({init:e})=>e())),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach((e=>{const t=jo((0,lt.select)(st.store)).getBootstrappedBlockType(e).apiVersion;(0,st.registerBlockType)(e,{title:e,...t<3&&{apiVersion:3},edit:function({attributes:t}){const o=(0,ct.useBlockProps)(),{content:n,status:r,error:a}=(0,ut.useServerSideRender)({block:e,attributes:t});return"loading"===r?(0,it.jsx)("div",{...o,children:(0,pt.__)("Loading…")}):"error"===r?(0,it.jsx)("div",{...o,children:(0,pt.sprintf)((0,pt.__)("Error loading block: %s"),a)}):(0,it.jsx)("div",{...o,dangerouslySetInnerHTML:{__html:n||""}})},save:()=>null})})),(0,st.setDefaultBlockName)(Kb),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===lr))&&(0,st.setFreeformContentHandlerName)(lr),(0,st.setUnregisteredTypeHandlerName)(Nh),(0,st.setGroupingBlockName)(Jd)},aP=void 0})(),(window.wp=window.wp||{}).blockLibrary=a})();