!function(){"use strict";!function(){var t=window.wp.i18n,e=window.wp.blocks,n=window.wp.blockEditor;function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var c=[{attributes:{content:{type:"string",source:"html",selector:"dt"},dtWidth:{type:"number"}},supports:{reusable:!1,className:!1},save:({attributes:t})=>{const{content:e}=t,c=(t=>{const e={};return t&&(e.width=t+2.5+"em"),e})(t.dtWidth),a=n.useBlockProps.save({className:"swell-block-dl__dt",style:c||null});return React.createElement(n.RichText.Content,r({},a,{tagName:"dt",value:e}))}}];function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}(0,e.registerBlockType)("loos/dt",{title:(0,t.__)("項目のタイトル(DT)","swell"),icon:React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M14,24h35c0.6,0,1,0.4,1,1v6c0,0.6-0.4,1-1,1H14c-0.6,0-1-0.4-1-1v-6C13,24.4,13.4,24,14,24z"}),React.createElement("rect",{x:"6",y:"24",width:"3",height:"8"})),edit:({attributes:e,setAttributes:r})=>{const{content:c}=e,s=(0,n.useBlockProps)({className:"swell-block-dl__dt"});return React.createElement(n.RichText,a({},s,{tagName:"div",placeholder:(0,t.__)("テキストを入力…","swell"),value:c,onChange:t=>r({content:t})}))},save:({attributes:t})=>{const e=n.useBlockProps.save({className:"swell-block-dl__dt"});return React.createElement(n.RichText.Content,a({},e,{tagName:"dt",value:t.content}))},deprecated:c})}()}();