(()=>{var e,r={7927:(e,r,t)=>{"use strict";const a=window.React,n=window.wp.i18n,o=window.wp.blocks,l=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),i=JSON.parse('{"UU":"hakoniwa-blocks/breadcrumbs"}'),s=window.wp.blockEditor,c=window.wp.components;var p=t(6942),u=t.n(p);l.NQ;const b=l.L1,d=i.UU,h=l.NQ,k=(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon icon-tabler icon-tabler-baguette",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,a.createElement)("path",{d:"M5.628 11.283l5.644 -5.637c2.665 -2.663 5.924 -3.747 8.663 -1.205l.188 .181a2.987 2.987 0 0 1 0 4.228l-11.287 11.274a2.996 2.996 0 0 1 -4.089 .135l-.143 -.135c-2.728 -2.724 -1.704 -6.117 1.024 -8.841z",fill:"none"}),(0,a.createElement)("path",{d:"M9.5 7.5l1.5 3.5",fill:"none"}),(0,a.createElement)("path",{d:"M6.5 10.5l1.5 3.5",fill:"none"}),(0,a.createElement)("path",{d:"M12.5 4.5l1.5 3.5",fill:"none"}));(0,o.registerBlockType)(d,{title:(0,n.__)("Breadcrumbs","hakoniwa-blocks"),description:(0,n.__)("Display the breadcrumbs list.","hakoniwa-blocks"),category:h,icon:k,keywords:[(0,n.__)(b),(0,n.__)("Breadcrumbs")],example:{},edit:function(e){const{attributes:{breadCrumbsHomeText:r,breadCrumbsSeparater:t},className:o,setAttributes:l}=e,i=u()(o),p=(0,s.useBlockProps)({className:i});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.InspectorControls,null,(0,a.createElement)(c.PanelBody,{title:(0,n.__)("General","hakoniwa-blocks"),initialOpen:!0},(0,a.createElement)(c.TextControl,{label:(0,n.__)("Top page link text","hakoniwa-blocks"),value:r,placeholder:(0,n.__)('If blank, "Home" will be displayed',"hakoniwa-blocks"),onChange:e=>l({breadCrumbsHomeText:e})}),(0,a.createElement)(c.BaseControl,{id:"breadcrumbs-separater-type",label:(0,n.__)("Separator type","hakoniwa-blocks")},(0,a.createElement)("div",null,(0,a.createElement)(c.ButtonGroup,{"aria-label":(0,n.__)("Separator","hakoniwa-blocks"),id:"breadcrumbs-separater-type"},(0,a.createElement)(c.Button,{isPressed:"slash"===t||void 0,onClick:()=>l({breadCrumbsSeparater:"slash"})},"/"),(0,a.createElement)(c.Button,{isPressed:"arrow-right"===t||void 0,onClick:()=>l({breadCrumbsSeparater:"arrow-right"})},">")))))),(0,a.createElement)("div",{...p},(0,a.createElement)("p",null,(0,n.__)("Breadcrumbs here","hakoniwa-blocks"))))}})},6942:(e,r)=>{var t;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=l(e,o(t)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)a.call(e,t)&&e[t]&&(r=l(r,t));return r}function l(e,r){return r?e?e+" "+r:e+r:e}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(r,[]))||(e.exports=t)}()}},t={};function a(e){var n=t[e];if(void 0!==n)return n.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,a),o.exports}a.m=r,e=[],a.O=(r,t,n,o)=>{if(!t){var l=1/0;for(p=0;p<e.length;p++){for(var[t,n,o]=e[p],i=!0,s=0;s<t.length;s++)(!1&o||l>=o)&&Object.keys(a.O).every((e=>a.O[e](t[s])))?t.splice(s--,1):(i=!1,o<l&&(l=o));if(i){e.splice(p--,1);var c=n();void 0!==c&&(r=c)}}return r}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[t,n,o]},a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={3790:0,5298:0};a.O.j=r=>0===e[r];var r=(r,t)=>{var n,o,[l,i,s]=t,c=0;if(l.some((r=>0!==e[r]))){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(s)var p=s(a)}for(r&&r(t);c<l.length;c++)o=l[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(p)},t=globalThis.webpackChunkhakoniwa_blocks=globalThis.webpackChunkhakoniwa_blocks||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var n=a.O(void 0,[5298],(()=>a(7927)));n=a.O(n)})();