(()=>{"use strict";var e,t={185(e,t,r){const o=window.wp.domReady;var a=r.n(o),n=r(338);const s=window.wp.data,i=window.wp.i18n,c=window.wp.components,l=window.ReactJSXRuntime,d=()=>(0,l.jsxs)(c.ToolbarButton,{label:"VK Pattern Library",className:"components-button is-secondary",onClick:()=>window.open("https://patterns.vektor-inc.co.jp/","_blank"),children:["VK Pattern Library",(0,l.jsx)("span",{className:"dashicons dashicons-external"})]});a()(()=>{const{showPatternsLink:e}=vkpOptions;e&&"ja_JP"===(0,i.getLocaleData)()[""].lang&&(0,s.subscribe)(()=>{document.querySelector(".vk-patterns-header-toolbar")||(()=>{const e=document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header__toolbar");if(!e)return;const t=document.createElement("div");t.classList.add("vk-patterns-header-toolbar"),e.querySelector(".vk-patterns-header-toolbar")||((0,n.H)(t).render((0,l.jsx)(d,{})),e.appendChild(t))})()})})},338(e,t,r){var o=r(795);t.H=o.createRoot,o.hydrateRoot},795(e){e.exports=window.ReactDOM}},r={};function o(e){var a=r[e];if(void 0!==a)return a.exports;var n=r[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,r,a,n)=>{if(!r){var s=1/0;for(d=0;d<e.length;d++){for(var[r,a,n]=e[d],i=!0,c=0;c<r.length;c++)(!1&n||s>=n)&&Object.keys(o.O).every(e=>o.O[e](r[c]))?r.splice(c--,1):(i=!1,n<s&&(s=n));if(i){e.splice(d--,1);var l=a();void 0!==l&&(t=l)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[r,a,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={937:0,717:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var a,n,[s,i,c]=r,l=0;if(s.some(t=>0!==e[t])){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);if(c)var d=c(o)}for(t&&t(r);l<s.length;l++)n=s[l],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(d)},r=globalThis.webpackChunkvk_block_patterns=globalThis.webpackChunkvk_block_patterns||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=o.O(void 0,[717],()=>o(185));a=o.O(a)})();