| 1 |
(()=>{"use strict";const e=window.React,t=window.wp.compose,c=window.wp.components,l=window.wp.i18n,n=window.wp.blockEditor,a=({type:t="button",href:c="",target:l="",onClick:n=null,className:a,variant:r="primary",size:o="",children:i,disabled:s=!1,...h})=>{const m=`bPlButton ${r?`variant-${r}`:""} ${o?`size-${o}`:""} ${a||""} ${s?"bPlButton-disabled":""}`;return"function"!=typeof n&&c?(0,e.createElement)("a",{href:c,target:l,className:m,...h},i):(0,e.createElement)("button",{type:t,className:m,...h,onClick:n},i)},r=(t,c={},l=!0)=>{const[n,a]=(0,e.useState)(!1),[r,o]=(0,e.useState)(!1),[i,s]=(0,e.useState)(null),[h,m]=(0,e.useState)(null);if(!wp.ajax)return void console.error("Please use wp-util as a dependency");const d=(e={})=>{a(!0),o(!1),s(null),wp.ajax.post(t,{...c,...e}).done((e=>{a(!1),m(e)})).fail((e=>{a(!1),o(!0),s(e)}))},v=(e={})=>{d(e)};return(0,e.useEffect)((()=>{l&&d(c)}),[]),{data:h,saveData:v,refetch:v,isLoading:n,isError:r,error:i}},o="#146EF5",i=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 43 43",fill:"none"},(0,e.createElement)("g",{clipPath:"url(#clip0_1877_1771)"},(0,e.createElement)("rect",{width:"43",height:"43",rx:"15",fill:"url(#paint0_linear_1877_1771)"}),(0,e.createElement)("path",{d:"M24.2285 40.5754C21.8801 38.2139 19.3932 35.7203 16.8931 33.2071L19.9671 30.265C19.9209 30.1528 19.9209 30.1462 19.8747 30.0341H11.1541C10.2107 30.0341 9.43896 29.2689 9.43896 28.319V15.1984C9.43896 14.4464 10.0458 13.8395 10.7979 13.8395H19.9803L16.7348 10.7589L24.3736 3.14648L34.2487 13.0216C35.0205 13.7934 35.0205 15.0533 34.2487 15.8185L28.1798 21.8016C30.2577 23.8597 32.2763 25.8651 34.2553 27.8242C35.0271 28.5894 35.0205 29.8296 34.2553 30.5948L24.2285 40.5754ZM20.1914 14.11V29.5394C22.7706 26.9799 25.3631 24.4006 27.9357 21.8478C25.3961 19.3147 22.8234 16.742 20.1914 14.11Z",fill:"white"})),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"paint0_linear_1877_1771",x1:"-4.31905",y1:"30.2033",x2:"31.8123",y2:"30.2033",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#A997F7"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#8C74FD"})),(0,e.createElement)("clipPath",{id:"clip0_1877_1771"},(0,e.createElement)("rect",{width:"43",height:"43",fill:"white"})))),s=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:o,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"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},(0,e.createElement)("path",{fill:o,d:"M4 9h12v2H4V9z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},(0,e.createElement)("path",{fill:o,d:"M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},(0,e.createElement)("path",{fill:o,d:"M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:o,d:"M0 5v6h16v-6h-16zM15 10h-14v-4h14v4z"}),(0,e.createElement)("path",{fill:o,d:"M2 7h7v2h-7v-2z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:o,d:"m22.25 0h-20.5c-.965 0-1.75.785-1.75 1.75v2.5c0 .965.785 1.75 1.75 1.75h20.5c.965 0 1.75-.785 1.75-1.75v-2.5c0-.965-.785-1.75-1.75-1.75z"}),(0,e.createElement)("path",{fill:o,d:"m1.75 15h7.5c.965 0 1.75-.785 1.75-1.75v-3.5c0-.965-.785-1.75-1.75-1.75h-7.5c-.965 0-1.75.785-1.75 1.75v3.5c0 .965.785 1.75 1.75 1.75z"}),(0,e.createElement)("path",{fill:o,d:"m1.75 24h7.5c.965 0 1.75-.785 1.75-1.75v-3.5c0-.965-.785-1.75-1.75-1.75h-7.5c-.965 0-1.75.785-1.75 1.75v3.5c0 .965.785 1.75 1.75 1.75z"}),(0,e.createElement)("path",{fill:o,d:"m22.25 8h-7.5c-.965 0-1.75.785-1.75 1.75v3.5c0 .965.785 1.75 1.75 1.75h7.5c.965 0 1.75-.785 1.75-1.75v-3.5c0-.965-.785-1.75-1.75-1.75z"}),(0,e.createElement)("path",{fill:o,d:"m22.25 17h-7.5c-.965 0-1.75.785-1.75 1.75v3.5c0 .965.785 1.75 1.75 1.75h7.5c.965 0 1.75-.785 1.75-1.75v-3.5c0-.965-.785-1.75-1.75-1.75z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 408.328 408.328"},(0,e.createElement)("path",{fill:o,d:"M146.545,67.478V32.185c0-17.638-14.357-31.989-32.001-31.989H32.001C14.357,0.195,0,14.547,0,32.185v343.959 c0,17.638,14.357,31.989,32.001,31.989h344.326c17.644,0,32.001-14.352,32.001-31.989V68.338L146.545,67.478z M371.751,371.569 H36.57V98.081h335.188v273.488H371.751z M268.171,59.215l-98.062-0.006V35.465c0-11.804,9.605-21.402,21.409-21.402h55.245 c11.798,0,21.409,9.599,21.409,21.402V59.215z M395.525,59.215l-98.06-0.006V35.465c0-11.804,9.599-21.402,21.408-21.402h55.242 c11.798,0,21.409,9.599,21.409,21.402V59.215z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:o,d:"M0 4v11h16v-14h-16v3zM14 2h1v1h-1v-1zM1 4h14v10h-14v-10z"}),(0,e.createElement)("path",{fill:o,d:"M3 6h2v1h-2v-1z"}),(0,e.createElement)("path",{fill:o,d:"M6 6h7v1h-7v-1z"}),(0,e.createElement)("path",{fill:o,d:"M3 8h2v1h-2v-1z"}),(0,e.createElement)("path",{fill:o,d:"M6 8h7v1h-7v-1z"}),(0,e.createElement)("path",{fill:o,d:"M3 10h2v1h-2v-1z"}),(0,e.createElement)("path",{fill:o,d:"M6 10h7v1h-7v-1z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 438.536 438.536"},(0,e.createElement)("path",{fill:o,d:"M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123 C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126 h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225 C438.532,59.576,430.49,40.204,414.41,24.123z M365.449,356.309c0,2.471-0.903,4.613-2.714,6.42s-3.949,2.711-6.42,2.711H82.228 c-2.474,0-4.615-0.904-6.423-2.711s-2.712-3.949-2.712-6.42V82.221c0-2.474,0.903-4.615,2.712-6.423 c1.809-1.805,3.949-2.712,6.423-2.712h274.084c2.478,0,4.62,0.903,6.427,2.712c1.808,1.809,2.704,3.949,2.704,6.423v274.088 H365.449z"}),(0,e.createElement)("path",{fill:o,d:"M310.636,146.174H127.914c-7.616,0-13.041,3.335-16.274,9.995c-3.427,6.661-2.952,12.94,1.425,18.842l91.365,127.905 c3.612,5.141,8.563,7.707,14.843,7.707c6.285,0,11.234-2.566,14.84-7.707l91.365-127.905c4.38-5.902,4.853-12.181,1.423-18.842 C323.671,149.509,318.243,146.178,310.636,146.174z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:o,d:"M0 4v8h16v-8h-16zM15 11h-14v-4h14v4z"}),(0,e.createElement)("path",{fill:o,d:"M0 0h16v3h-16v-3z"}),(0,e.createElement)("path",{fill:o,d:"M0 13h16v3h-16v-3z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:o,d:"M255,394.948H80c-44.112,0-80-35.888-80-80v-118c0-44.112,35.888-80,80-80h175c11.046,0,20,8.954,20,20s-8.954,20-20,20H80 c-22.056,0-40,17.944-40,40v118c0,22.056,17.944,40,40,40h175c11.046,0,20,8.954,20,20S266.046,394.948,255,394.948z M432,116.948 h-18c-11.046,0-20,8.954-20,20s8.954,20,20,20h18c22.056,0,40,17.944,40,40v118c0,22.056-17.944,40-40,40h-18 c-11.046,0-20,8.954-20,20s8.954,20,20,20h18c44.112,0,80-35.888,80-80v-118C512,152.835,476.112,116.948,432,116.948z M414,472 c-33.084,0-60-26.916-60-60V100c0-33.084,26.916-60,60-60c11.046,0,20-8.954,20-20s-8.954-20-20-20 c-32.676,0-61.74,15.755-80,40.066C315.74,15.755,286.676,0,254,0c-11.046,0-20,8.954-20,20s8.954,20,20,20 c33.084,0,60,26.916,60,60v312c0,33.084-26.916,60-60,60c-11.046,0-20,8.954-20,20s8.954,20,20,20c32.676,0,61.74-15.755,80-40.066 C352.26,496.245,381.324,512,414,512c11.046,0,20-8.954,20-20S425.046,472,414,472z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 469.75 469.75"},(0,e.createElement)("path",{fill:o,d:"M11.136,104.22c1.132,0.374,2.366,0.635,3.771,0.635c144.39,0.15,288.761,5.509,433.133,1.445 c1.884-0.054,3.529-0.475,4.936-1.166c3.271-0.972,6.195-3.286,7.647-7.317c0.057-0.15,0.092-0.31,0.147-0.462 c0.843-1.594,1.412-3.389,1.671-5.293c3.666-11.819,5.81-23.991,7.257-36.295c0.208-1.772-0.209-3.44-0.98-4.961 c-1.285-4.283-4.804-7.86-10.567-8.033c-147.703-4.466-295.604-8.439-443.244,0c-0.465,0.023-0.869,0.132-1.3,0.198 c-4.436,0.073-8.617,2.554-9.838,8.279C0.81,65.122-0.871,79.129,0.464,93.299C1.079,99.835,5.992,103.476,11.136,104.22z M24.582,65.412c139.185-7.45,278.598-4.164,417.841-0.005c-0.67,5.987-1.366,11.966-2.066,17.946 c-139.056,3.603-278.108-1.231-417.168-1.56C23.277,76.306,23.734,70.857,24.582,65.412z"}),(0,e.createElement)("path",{fill:o,d:"M364.258,266.763c3.361-3.321,4.682-8.312,1.138-13.462c-0.519-0.751-1.092-1.437-1.62-2.179 c-0.016-0.015-0.021-0.04-0.035-0.056c-34.627-49.394-80.974-86.447-129.537-121.488c-1.701-1.229-3.385-1.869-5.007-2.102 c-3.166-2.209-7.312-2.6-11.524,0.604c-48.418,36.846-87.407,82.598-111.779,138.657c-2.731,6.276-0.068,12.167,4.233,15.498 c2.615,2.58,6.292,4.169,10.748,3.539l48.624-6.951c-1.082,32.382-2.168,62.667-3.271,108.217 c-0.365,0.975-0.645,2.021-0.718,3.214c-0.556,8.917-1.145,17.829-1.707,26.746c-2.267,7.2,1.171,15.884,10.628,14.843 c38.263-4.205,76.482-5.738,114.958-4.479c1.401,0.045,2.631-0.168,3.778-0.488c6.327,0.493,12.908-3.285,12.649-11.455 c-1.382-42.569-2.793-99.392-4.215-141.955c17.813-1.143,35.622-2.103,53.481-2.188 C359.323,271.252,362.354,269.394,364.258,266.763z M289.393,250.367c-6.804,0.457-10.587,5.448-11.339,10.755 c-0.406,1.249-0.655,2.61-0.604,4.174c1.377,41.269,2.742,96.797,4.083,138.061c-25.466-0.579-50.833,0.152-76.188,1.976 c0.488-1.128,0.825-2.377,0.899-3.814c3.286-65.825,1.815-79.719,1.732-145.596c-0.005-6.602-5.05-9.938-10.167-10.044 c-1.102-0.31-2.308-0.478-3.702-0.355c-12.652,1.066-25.334,1.554-38.006,2.219c19.771-34.144,44.798-64.152,74.826-90.197 c0.198-0.173,0.328-0.365,0.51-0.541c36.704,26.883,72.026,55.447,100.402,90.962 C317.688,248.539,303.541,249.421,289.393,250.367z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 14.707 14.707"},(0,e.createElement)("rect",{x:"6.275",y:"0",width:"2.158",height:"14.707"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 357 357"},(0,e.createElement)("path",{d:"M357,204H0v-51h357V204z"})),t=>(0,e.createElement)("svg",{className:"bBlocksSvgAiIcon",enableBackground:"new 0 0 32 32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"bBlocksAiIconGradient",x1:"0%",x2:"100%",y1:"0%",y2:"0%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#146ef5"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#ff7a00"}))),(0,e.createElement)("path",{fill:"url(#bBlocksAiIconGradient)",d:"m13.294 7.436.803 2.23c.892 2.475 2.841 4.424 5.316 5.316l2.23.803c.201.073.201.358 0 .43l-2.23.803c-2.475.892-4.424 2.841-5.316 5.316l-.803 2.23c-.073.201-.358.201-.43 0l-.803-2.23c-.892-2.475-2.841-4.424-5.316-5.316l-2.23-.803c-.201-.073-.201-.358 0-.43l2.23-.803c2.475-.892 4.424-2.841 5.316-5.316l.803-2.23c.072-.202.357-.202.43 0z"}),(0,e.createElement)("path",{className:"bBlocksSvgAiIconPathFirst",fill:"url(#bBlocksAiIconGradient)",d:"m23.332 2.077.407 1.129c.452 1.253 1.439 2.24 2.692 2.692l1.129.407c.102.037.102.181 0 .218l-1.129.407c-1.253.452-2.24 1.439-2.692 2.692l-.407 1.129c-.037.102-.181.102-.218 0l-.407-1.129c-.452-1.253-1.439-2.24-2.692-2.692l-1.129-.407c-.102-.037-.102-.181 0-.218l1.129-.407c1.253-.452 2.24-1.439 2.692-2.692l.407-1.129c.037-.103.182-.103.218 0z"}),(0,e.createElement)("path",{className:"bBlocksSvgAiIconPathSecond",fill:"url(#bBlocksAiIconGradient)",d:"m23.332 21.25.407 1.129c.452 1.253 1.439 2.24 2.692 2.692l1.129.407c.102.037.102.181 0 .218l-1.129.407c-1.253.452-2.24 1.439-2.692 2.692l-.407 1.129c-.037.102-.181.102-.218 0l-.407-1.129c-.452-1.253-1.439-2.24-2.692-2.692l-1.129-.407c-.102-.037-.102-.181 0-.218l1.129-.407c1.253-.452 2.24-1.439 2.692-2.692l.407-1.129c.037-.102.182-.102.218 0z"}))),h=`${location.origin}/wp-admin/admin.php?page=b-blocks#/settings`,m=(0,t.createHigherOrderComponent)((t=>o=>{const{clientId:m,isSelected:d}=o,[v,w]=(0,e.useState)(!1),[p,E]=(0,e.useState)(""),[g,u]=(0,e.useState)(""),[f,C]=(0,e.useState)(null),{data:b,isLoading:z,error:x,refetch:k}=r("generate_ai_content",{nonce:aiContentGenerator.nonce},!1),{data:M}=r("bblocks_api_keys",{_wpnonce:aiContentGenerator.nonce},!0),{ref:_,btnRef:B}=function(t){const c=(0,e.useRef)(null),l=(0,e.useRef)(null);return(0,e.useEffect)((()=>{function e(e){c.current&&!c.current.contains(e.target)&&l.current&&!l.current.contains(e.target)&&t()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t]),{ref:c,btnRef:l}}((()=>{w(!1)}));(0,e.useEffect)((()=>{!z&&b&&u(b.content)}),[b,x,z]);const A=e=>{if(g&&f){f.focus();const t=()=>{const t=f.textContent;return"replace"===e?g:"end"===e?""===t?g:t+" "+g:void 0};let c;if(/<\/?[a-z][\s\S]*>/i.test(t())){const e=document.createRange();e.selectNodeContents(f);try{c=e.createContextualFragment(t())}catch(e){const l=(new DOMParser).parseFromString(t(),"text/html");c=document.createDocumentFragment(),Array.from(l.body.childNodes).forEach((e=>c.appendChild(e)))}}else c=document.createDocumentFragment(),c.appendChild(document.createTextNode(t()));const l=window.getSelection(),n=document.createRange();n.selectNodeContents(f),n.deleteContents(),f.appendChild(c);const a=f.lastChild,r=document.createRange();a?a.nodeType===Node.TEXT_NODE?(r.setStart(a,a.length),r.collapse(!0)):(r.setStartAfter(a),r.collapse(!0)):(r.selectNodeContents(f),r.collapse(!1)),l.removeAllRanges(),l.addRange(r),f.focus(),f.normalize(),w(!1),E(""),u("")}},S=()=>{w(!1),E(""),u("")};return(0,e.useEffect)((()=>{if(v)return;const{editableEl:e=[]}=(e=>{const{clientId:t,name:c,attributes:l}=e;if(!t)return;const n=document.querySelector(`[data-block="${t}"]`);if(!n)return[];if("true"===n.getAttribute("contenteditable"))return{blockName:c,clientId:t,editableEl:[n],attributes:l};{const e=['[contenteditable="true"]',".block-editor-rich-text__editable"];return{blockName:c,clientId:t,editableEl:n.querySelectorAll(e.join(",")),attributes:l}}})(o);return d&&e?Array.from(e).forEach((e=>{e.onclick=()=>C(e)})):C(null),()=>{Array.from(e)?.forEach((e=>{e.onclick=null}))}}),[m,v,d]),(0,e.createElement)(e.Fragment,null,f&&d&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(c.ToolbarGroup,null,(0,e.createElement)(c.ToolbarButton,{icon:s,label:(0,l.__)("Generate AI Content"),onClick:()=>w(!v),ref:B}),v&&(0,e.createElement)(c.Popover,{title:(0,l.__)("Generate AI Content"),onRequestClose:S,className:"bBlocksContentGenerateAiContainer",ref:_},(0,e.createElement)("div",{className:"bBlocksContentGenerateAiContent"},(0,e.createElement)("div",{className:"bBlocksContentGenerateAiHeader"},i,(0,e.createElement)("h2",null,"bBlocks Ai Content Generator")),M?.openAi?.key?"":(0,e.createElement)("div",{className:"bBlocksContentGenerateWarning"},(0,e.createElement)("p",null,"Please add your OpenAi Api Key. ",(0,e.createElement)("a",{href:h,target:"_blank",rel:"noreferrer"},"Go to Settings"))),(0,e.createElement)(c.TextareaControl,{value:p,onChange:E,placeholder:(0,l.__)("Describe the content you want to generate..."),rows:4,disabled:z}),x&&(0,e.createElement)("div",{className:"bBlocksContentGenerateAiError"},(0,e.createElement)("strong",null,(0,l.__)("Error:"))," ",x?.message),(0,e.createElement)("p",null,"Suggested Prompts"),(0,e.createElement)("div",{className:"bBlocksContentGenerateAiSuggestions"},["Write a short description for","Create a product overview for","Generate a service intro for"].map(((t,c)=>(0,e.createElement)("p",{key:c,onClick:()=>E(t)},t)))),(0,e.createElement)(c.Flex,null,(0,e.createElement)(a,{variant:"secondary",onClick:()=>k({prompt:p}),size:"medium",disabled:z||!p},z&&p?(0,l.__)("Generating...","b-blocks"):(0,l.__)("Generate Content","b-blocks")),(0,e.createElement)(a,{variant:"danger",size:"medium",onClick:S,disabled:z}," ",(0,l.__)("Cancel")," ")),g&&!z&&(0,e.createElement)("div",{className:"bBlocksContentGenerateAiPreview mt10"},(0,e.createElement)("h4",null,(0,l.__)("Generated Content Preview:")),(0,e.createElement)("div",{className:"bBlocksAiContentPreview"}," ",g," "),(0,e.createElement)(c.Flex,{className:"mt10"},(0,e.createElement)(a,{size:"medium",onClick:()=>A("replace")},(0,l.__)("Replace","b-blocks")),(0,e.createElement)(a,{size:"medium",onClick:()=>A("end")},(0,l.__)("Insert")))))))),(0,e.createElement)(t,{...o}))}));wp.hooks.addFilter("editor.BlockEdit","b-blocks",m)})(); |