!function(){"use strict";var e=window.wp.i18n,t=window.wp.blocks,c=window.wp.blockEditor,a={styleBlock:React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M27,17.3c1.6,0.5-3,3.1-0.2,4.9c1.6,1,5.2-3.5,7-4.5c1.5-0.8,4.2-1,5.5,1.9c1.7,3.7,0.2,13.4-5.9,17.3 c-6.2,3.9-14,1.9-16.7-4.2C13.6,25.7,21.6,15.4,27,17.3z M28.9,27.4c1.1,2.6,7.3-0.8,5.9-4.4C33.9,20.7,27.8,24.9,28.9,27.4z"}),React.createElement("path",{d:"M49,50H7c-3.3,0-6-2.7-6-6V12c0-3.3,2.7-6,6-6h42c3.3,0,6,2.7,6,6v32C55,47.3,52.3,50,49,50z M7,10c-1.1,0-2,0.9-2,2v32 c0,1.1,0.9,2,2,2h42c1.1,0,2-0.9,2-2V12c0-1.1-0.9-2-2-2H7z"}))};const l={dataLayout:{type:"string",default:""}};(0,t.registerBlockType)("loos/style-block",{title:(0,e.__)("装飾ブロック","swell"),icon:{src:a.styleBlock},category:"swell-blocks",keywords:["swell","style"],attributes:l,supports:{inserter:!1,className:!1},transforms:{to:[{type:"block",blocks:["core/group"],transform:(e,c)=>{let a=e.className||"";const l={};return-1!==a.indexOf("center_box")&&(a=a.replace("center_box","u-ta-c")),l.className=a,(0,t.createBlock)("core/group",l,c)}}]},edit:t=>{const{attributes:a,className:l}=t;return React.createElement(React.Fragment,null,React.createElement("div",{className:"loos_style_block u-block-guide","data-layout":a.dataLayout},React.createElement("div",{className:"swl-obsoleteBlocks"},(0,e.__)("※ このブロックは廃止されました。グループブロックに置き換えてください。","swell")),React.createElement("div",{className:l},React.createElement(c.InnerBlocks,null))))},save:()=>React.createElement("div",{className:"swell-block-style"},React.createElement(c.InnerBlocks.Content,null)),deprecated:[{attributes:l,supports:{className:!1},save:e=>React.createElement("div",{className:e.className},React.createElement(c.InnerBlocks.Content,null))}]})}();