!function(){"use strict";var t=window.wp.i18n,e=window.wp.blocks,n=JSON.parse('{"q":"nishiki-blocks-pro"}');function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n){return(e=function(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=window.wp.blockEditor,c=window.wp.data;function l(t){return(0,c.useSelect)((function(e){return{hasChildBlocks:(0,e(i.store).getBlockOrder)(t).length>0}})).hasChildBlocks?void 0:i.InnerBlocks.ButtonBlockAppender}var s=window.ReactJSXRuntime;function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=n.q,b=p+"/tabs2",d=p+"/tab2",f=(0,s.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",children:(0,s.jsxs)("g",{xmlns:"http://www.w3.org/2000/svg",id:"レイヤー4",children:[(0,s.jsx)("path",{d:"M91.667,16.146l-83.334,-0l0,67.708l83.334,0l-0,-67.708Zm-7.813,7.812l0,52.084c0,-0 -67.708,-0 -67.708,-0c-0,-0 -0,-52.084 -0,-52.084l67.708,0Z"}),(0,s.jsx)("path",{d:"M91.667,16.146l-31.25,-0l-0,26.041l31.25,0l-0,-26.041Zm-7.813,7.812l0,10.417c0,-0 -15.625,-0 -15.625,-0c0,-0 0,-10.417 0,-10.417l15.625,0Z"}),(0,s.jsx)("path",{d:"M68.229,16.146l-31.25,-0l0,26.041l31.25,0l0,-26.041Zm-7.812,7.812l-0,10.417c-0,-0 -15.625,-0 -15.625,-0c-0,-0 -0,-10.417 -0,-10.417l15.625,0Z"})]})});(0,e.registerBlockType)(d,{title:(0,t.__)("タブ（コンテンツ）","nishiki-blocks-pro"),category:p,icon:f,parent:[b],keywords:[(0,t.__)("nishiki"),(0,t.__)("tab")],attributes:{index:{type:"number",default:0},isActive:{type:"boolean",default:!1},title:{type:"string",default:"タイトル"},icon:{type:"string",default:""}},className:!1,supports:{inserter:!1,reusable:!1},edit:function(t){var e=t.attributes,n=(e.index,e.isActive),r=(e.title,e.icon,t.clientId),o=(0,i.useBlockProps)({style:{display:n?"block":"none"},className:"nishiki-blocks-tab-content isActive-".concat(n)});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",u(u({},o),{},{children:(0,s.jsx)(i.InnerBlocks,{templateLock:!1,renderAppender:l(r)})}))})},save:function(t){var e=t.attributes,n=e.index,r=e.isActive;return t.className,i.useBlockProps.save({className:"tab-content tab-content-".concat(n+1).concat(r?" active":"")}),(0,s.jsx)("div",{className:"tab-content tab-content-".concat(n+1).concat(r?" active":""),tabIndex:0,role:"tab-content",hidden:!r||!r,children:(0,s.jsx)(i.InnerBlocks.Content,{})})}})}();