🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
users
/
2
/
fujibow
/
web
/
ra-in-bow.co.jp
/
wp-content
/
themes
/
jstork19
/
blocks
✏️
Editing: index.js
!function(){var e={833:function(){wp.blocks.registerBlockVariation("core/buttons",[{name:"fill",title:"ボタン",isDefault:!0,keywords:["ぼたん","btn","stk"],icon:{foreground:"#1ab4d3",src:"button"},attributes:{layout:{justifyContent:"center",type:"flex"}},innerBlocks:[["core/button",{className:"is-style-fill"}]]},{name:"small",title:"小さいボタン",keywords:["ぼたん","btn","stk"],icon:{foreground:"#1ab4d3",src:"button"},attributes:{className:"is-style-small",layout:{justifyContent:"center",type:"flex"}},innerBlocks:[["core/button",{className:"is-style-fill"}]]},{name:"big",title:"大きいボタン",keywords:["ぼたん","btn","stk"],icon:{foreground:"#1ab4d3",src:"button"},attributes:{className:"is-style-big",layout:{justifyContent:"center",type:"flex"}},innerBlocks:[["core/button",{className:"is-style-fill"}]]}])},807:function(){wp.blocks.registerBlockVariation("core/heading",[{name:"stylenone",title:"見出し(装飾なし)",keywords:["stk","ttl","title","midashi"],icon:{foreground:"#1ab4d3",src:"heading"},attributes:{className:"is-style-stylenone",textAlign:"center"}},{name:"style_section_ttl__border_under",title:"見出し(セクション見出しボーダー)",keywords:["stk","ttl","title","midashi"],icon:{foreground:"#1ab4d3",src:"heading"},attributes:{className:"is-style-style__section_ttl__border_under",textAlign:"center"}},{name:"stylenone_gf_subtext",title:"見出し(英語&サブテキスト)",keywords:["stk","ttl","title","midashi"],icon:{foreground:"#1ab4d3",src:"heading"},attributes:{className:"is-style-stylenone",textAlign:"center",content:'<span class="gf"><span class="span-stk-fs-large">SAMPLE TEXT</span></span><br><span class="span-stk-fs-sub">サンプルテキスト</span>'}}])},21:function(){wp.blocks.registerBlockVariation("core/media-text",[{name:"alignnull",title:"メディアとテキスト(通常幅)",keywords:["media","text"],isDefault:!0,attributes:{align:""},innerBlocks:[["core/paragraph"]]}])},762:function(){wp.domReady((function(){wp.blocks.unregisterBlockStyle("core/button","default")})),wp.blocks.registerBlockStyle("core/button",[{name:"rich_yellow",label:"リッチイエロー"},{name:"rich_pink",label:"リッチピンク"},{name:"rich_orange",label:"リッチオレンジ"},{name:"rich_green",label:"リッチグリーン"},{name:"rich_blue",label:"リッチブルー"},{name:"stripe",label:"ストライプ"}]),wp.blocks.registerBlockStyle("core/buttons",[{name:"big",label:"サイズ(大)"},{name:"small",label:"サイズ(小)"}]),wp.blocks.registerBlockStyle("core/heading",[{name:"normal",label:"ノーマル",isDefault:!0},{name:"stylenone",label:"スタイルなし"},{name:"style__section_ttl__border_under",label:"セクション見出し(ボーダー)"}]),wp.blocks.registerBlockStyle("core/paragraph",[{name:"supplement-normal",label:"補足"},{name:"supplement-warning",label:"補足:注意"},{name:"supplement-succes",label:"補足:サクセス"},{name:"supplement-memo",label:"補足:メモ"},{name:"supplement-hint",label:"補足:ヒント"},{name:"simple_bg-gray",label:"背景:グレー"},{name:"simple_bg-sitecolor",label:"背景:サイトカラー"},{name:"simple_bg-sitecolor_rgba",label:"背景:サイトカラー薄"},{name:"simple_bg-stripe",label:"背景:ストライプ"},{name:"stitch-sitecolor",label:"ステッチ風"},{name:"supplement-border",label:"ボーダー:グレー"},{name:"border-sitecolor",label:"ボーダー:サイトカラー"},{name:"p_microcopy",label:"マイクロコピー"},{name:"p_balloon_bottom",label:"マイクロコピー(吹き出し)"}]),wp.blocks.registerBlockStyle("core/image",[{name:"stk_shadow_s",label:"影(小)"},{name:"stk_shadow_l",label:"影(大)"},{name:"stk_border",label:"枠線"},{name:"stk_clip_tilt_r",label:"傾き右"},{name:"stk_clip_tilt_l",label:"傾き左"},{name:"stk_clip_point_r",label:"ポイント右"},{name:"stk_clip_point_l",label:"ポイント左"},{name:"stk_clip_tryangle",label:"トライアングル"},{name:"stk_clip_rhombus",label:"ひし形"},{name:"stk_clip_pentagon",label:"ペンタゴン"},{name:"stk_clip_hexagon",label:"ヘキサゴン"},{name:"stk_clip_random1",label:"ランダム1"},{name:"stk_clip_random2",label:"ランダム2"},{name:"stk_frame_browser",label:"ブラウザ風"}]),wp.blocks.registerBlockStyle("core/video",[{name:"stk_shadow_s",label:"影(小)"},{name:"stk_shadow_l",label:"影(大)"},{name:"stk_border",label:"枠線"}]),wp.blocks.registerBlockStyle("core/table",[{name:"stk-table-border",label:"ボーダー"}]),wp.blocks.registerBlockStyle("core/quote",[{name:"sitecolor",label:"サイトカラー"}])},594:function(){var e,t,l;e=wp.element.createElement,t=wp.blocks,l=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor.RichText:wp.editor.RichText,t.registerBlockType("stk-plugin/supplement",{title:"補足説明",icon:{foreground:"#1ab4d3",src:"info"},category:"common",styles:[{name:"default",label:"default",isDefault:!0},{name:"succes",label:"サクセス"},{name:"warning",label:"Warning"},{name:"memo",label:"メモ"},{name:"hint",label:"ヒント"},{name:"border",label:"シンプルな枠"}],supports:{inserter:!1,typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{content:{type:"array",source:"children",selector:"div.supplement"}},edit:function(t){var a=t.attributes.content;return e(l,{tagName:"div",multiline:"p",className:t.className,value:a,onChange:function(e){t.setAttributes({content:e})}})},save:function(t){return e(l.Content,{tagName:"div",className:"supplement",value:t.attributes.content})}})},184:function(e,t){var l;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var o=typeof l;if("string"===o||"number"===o)e.push(l);else if(Array.isArray(l)&&l.length){var s=n.apply(null,l);s&&e.push(s)}else if("object"===o)for(var r in l)a.call(l,r)&&l[r]&&e.push(r)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,l),o.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element;const{assign:t}=lodash,{__:__}=wp.i18n,{Fragment:a}=wp.element,{addFilter:n}=wp.hooks,{PanelBody:o,ToggleControl:s}=wp.components,{InspectorControls:r}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:c}=wp.compose;n("editor.BlockEdit","stkTableBlockControl/block-control",c((t=>l=>{if(n=l.name,["core/table"].includes(n)&&l.isSelected){let n=!1,c=!1;if(l.attributes.className){let e=l.attributes.className;e=e.split(" "),e.indexOf("stk-table-scroll")>=0&&(n=!0),e.indexOf("stk-table-thdesign")>=0&&(c=!0)}return(0,e.createElement)(a,null,(0,e.createElement)(t,l),(0,e.createElement)(r,null,(0,e.createElement)(o,{title:"STORK19:表の設定",initialOpen:!0,className:"table-scroll-controle stk-icon"},(0,e.createElement)(s,{label:"表の横スクロール",help:__("表を横スクロールできるようにする。(デバイス幅480px以下の場合のみ)"),checked:n,onChange:e=>{let t=[];if(l.attributes.className){let e=l.attributes.className;e=e.split(" "),t=e.filter((function(e){return"stk-table-scroll"!==e}))}!0===e&&t.push("stk-table-scroll");let a=t.join(" ");n=e,l.setAttributes({className:a,importantSetting:e})}}),(0,e.createElement)(s,{label:"先頭セルをthデザインにする",help:__("先頭のtdをth風のデザインにします。"),checked:c,onChange:e=>{let t=[];if(l.attributes.className){let e=l.attributes.className;e=e.split(" "),t=e.filter((function(e){return"stk-table-thdesign"!==e}))}!0===e&&t.push("stk-table-thdesign");let a=t.join(" ");c=e,l.setAttributes({className:a,importantSetting:e})}}))))}var n;return(0,e.createElement)(t,l)}),"addMyCustomBlockControls"));const{assign:i}=lodash,{__:m}=wp.i18n,{Fragment:p}=wp.element,{addFilter:u}=wp.hooks,{PanelBody:d,ToggleControl:b}=wp.components,{InspectorControls:g}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:k}=wp.compose;u("editor.BlockEdit","stkButtonBlockControl/block-control",k((t=>l=>{if(a=l.name,["core/button"].includes(a)&&l.isSelected){let a=!1;if(l.attributes.className){let e=l.attributes.className;e=e.split(" "),e.indexOf("stk-shiny-button")>=0&&(a=!0)}return(0,e.createElement)(p,null,(0,e.createElement)(t,l),(0,e.createElement)(g,null,(0,e.createElement)(d,{title:"ボタン設定",initialOpen:!0,className:"stk-toggle-controle stk-icon"},(0,e.createElement)(b,{label:"ボタンを光らせる",help:m("ONにするとボタンが光ります。(※ボタン背景色が白以外のみ)"),checked:a,onChange:e=>{let t=[];if(l.attributes.className){let e=l.attributes.className;e=e.split(" "),t=e.filter((function(e){return"stk-shiny-button"!==e}))}!0===e&&t.push("stk-shiny-button");let n=t.join(" ");a=e,l.setAttributes({className:n,importantSetting:e})}}))))}var a;return(0,e.createElement)(t,l)}),"addMyCustomBlockControls"));const{assign:v}=lodash,{__:h}=wp.i18n,{Fragment:y}=wp.element,{addFilter:f}=wp.hooks,{PanelBody:E,RadioControl:w}=wp.components,{InspectorControls:C}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:N}=wp.compose,x=e=>["core/list"].includes(e);f("blocks.registerBlockType","stkListBlockControl/add-attr",(function(e){return x(e.name)&&(e.attributes=v(e.attributes,{listIconSetting:{type:"string"}})),e})),f("editor.BlockEdit","stkListBlockControl/block-control",N((t=>{let l="";return a=>x(a.name)&&a.isSelected?(l=a.attributes.listIconSetting?a.attributes.listIconSetting:"",(0,e.createElement)(y,null,(0,e.createElement)(t,a),(0,e.createElement)(C,null,(0,e.createElement)(E,{title:"カスタムアイコン設定",initialOpen:!0,className:"stk-icon"},(0,e.createElement)(w,{help:h("リストアイコンの変更が可能です。※カスタムアイコンはulタグ(箇条書きリスト)でのみ有効です。"),selected:l,className:"core-list-icon-controle radio-style-column-3",options:[{label:"ノーマル",value:""},{label:"スタイルなし",value:"stk-list-icon--stylenone"},{label:"チェック1",value:"stk-list-icon--check01"},{label:"チェック2",value:"stk-list-icon--check02"},{label:"矢印1",value:"stk-list-icon--arrow01"},{label:"矢印2",value:"stk-list-icon--arrow02"},{label:"スター",value:"stk-list-icon--star"},{label:"ベル",value:"stk-list-icon--bell"},{label:"コメント",value:"stk-list-icon--comment"},{label:"ライト",value:"stk-list-icon--lightbulb"},{label:"マップ",value:"stk-list-icon--map"},{label:"注意1",value:"stk-list-icon--exclamation1"},{label:"注意2",value:"stk-list-icon--exclamation2"},{label:"GOOD",value:"stk-list-icon--good"},{label:"BAD",value:"stk-list-icon--bad"}],onChange:e=>{let t=e;if(a.attributes.className){let n=a.attributes.className;n=n.split(" ");let o=n.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,a.setAttributes({className:t,listIconSetting:e})}}))))):(0,e.createElement)(t,a)}),"addMyCustomBlockControls"));const{assign:B}=lodash,{__:I}=wp.i18n,{Fragment:T}=wp.element,{addFilter:A}=wp.hooks,{PanelBody:S,RadioControl:q}=wp.components,{InspectorControls:F}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:R}=wp.compose,D=e=>["core/group"].includes(e);A("blocks.registerBlockType","stkGroupBlockControl/add-attr",(function(e){return D(e.name)&&(e.attributes=B(e.attributes,{paddingSetting:{type:"string"}})),e})),A("editor.BlockEdit","stkGroupBlockControl/block-control",R((t=>{let l="";return a=>D(a.name)&&a.isSelected?(l=a.attributes.paddingSetting?a.attributes.paddingSetting:"stk-pd-default",(0,e.createElement)(T,null,(0,e.createElement)(t,a),(0,e.createElement)(F,null,(0,e.createElement)(S,{title:"余白設定(padding)",className:"stk-icon",initialOpen:!0},(0,e.createElement)(q,{className:"radio-style-button last-button-reset",label:"ブロック内部の余白",help:I("グループブロック内側の余白(padding)を調整できます。"),selected:l,options:[{label:"0",value:"stk-pd-0"},{label:"S",value:"stk-pd-s"},{label:"M",value:"stk-pd-m"},{label:"L",value:"stk-pd-l"},{label:"×",value:"stk-pd-default"}],onChange:e=>{let t=e;if(a.attributes.className){let n=a.attributes.className;n=n.split(" ");let o=n.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,a.setAttributes({className:t,paddingSetting:e})}}))))):(0,e.createElement)(t,a)}),"addStkGroupBlockControls"));const{assign:P}=lodash,{__:M}=wp.i18n,{Fragment:O}=wp.element,{addFilter:H}=wp.hooks,{PanelBody:L,RadioControl:V}=wp.components,{InspectorControls:z}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:j}=wp.compose,U=e=>["core/group","core/cover"].includes(e);H("blocks.registerBlockType","stkGroupBgClipControl/add-attr",(function(e){return U(e.name)&&(e.attributes=P(e.attributes,{sectionBgClip:{type:"string"}})),e})),H("editor.BlockEdit","stkGroupBgClipControl/block-control",j((t=>{let l="";return a=>U(a.name)&&a.isSelected?(l=a.attributes.sectionBgClip?a.attributes.sectionBgClip:"",(0,e.createElement)(O,null,(0,e.createElement)(t,a),(0,e.createElement)(z,null,(0,e.createElement)(L,{title:"ブロックの形状",className:"stk-icon"},(0,e.createElement)(V,{className:"bgClip-controle radio-style-column-3",label:"ブロックの形",help:M("グループ or カバーブロックの形状を変形させる。"),selected:l,options:[{label:"default",value:""},{label:"up",value:"stk-clip-up"},{label:"down",value:"stk-clip-down"},{label:"upscale",value:"stk-clip-upscale"},{label:"downscale",value:"stk-clip-downscale"},{label:"uppoint",value:"stk-clip-uppoint"},{label:"downpoint",value:"stk-clip-downpoint"}],onChange:e=>{let t=e;if(a.attributes.className){let n=a.attributes.className;n=n.split(" ");let o=n.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,a.setAttributes({className:t,sectionBgClip:e})}}))))):(0,e.createElement)(t,a)}),"addStkGroupBgClipControls")),H("blocks.getSaveContent.extraProps","stkGroupBgClipControl/add-props",(function(e,t,l){return U(t.name)&&""===l.sectionBgClip&&delete l.sectionBgClip,e}));const{assign:G}=lodash,{__:Z}=wp.i18n,{Fragment:W}=wp.element,{addFilter:$}=wp.hooks,{PanelBody:J,RadioControl:Q}=wp.components,{InspectorControls:K}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:X}=wp.compose,Y=e=>["core/paragraph","core/heading","core/list","core/quote","core/code","core/columns","core/column","core/preformatted","core/pullquote","core/table","core/image","core/gallery","core/cover","core/media-text","core/video","core/buttons","core/button","core/group","core/nextpage","core/separator","core/embed","stk-plugin/accordion","stk-plugin/voicecomment","stk-plugin/cbox","stk-plugin/cbox-notitle","stk-plugin/faq","stk-plugin/faq-accordion","stk-plugin/kanrenpost","stk-plugin/postlistcat","stk-plugin/postlistnew","stk-plugin/postlisttag","stk-plugin/supplement2","stk-plugin/grids","stk-plugin/grid","stk-plugin/steps"].includes(e);$("blocks.registerBlockType","stkGlobalWowFadeInBlockControl/add-attr",(function(e){return Y(e.name)&&(e.attributes=G(e.attributes,{stkWowFadeIn:{type:"string"}})),e})),$("editor.BlockEdit","stkGlobalWowFadeInBlockControl/block-control",X((t=>{let l="";return a=>Y(a.name)&&a.isSelected?(l=a.attributes.stkWowFadeIn?a.attributes.stkWowFadeIn:"",(0,e.createElement)(W,null,(0,e.createElement)(t,a),(0,e.createElement)(K,null,(0,e.createElement)(J,{title:"アニメーション設定",className:"stk-icon",initialOpen:!1},(0,e.createElement)(Q,{className:"wow-controle radio-style-column-3",label:"スクロールにあわせたアニメーション",help:Z("ブロックをスクロールに合わせてアニメーション表示させることができます。"),selected:l,options:[{label:"none",value:""},{label:"fadeIn",value:"stk-wow-fadeIn"},{label:"fadeInUp",value:"stk-wow-fadeInUp"},{label:"fadeInDown",value:"stk-wow-fadeInDown"},{label:"fadeInRight",value:"stk-wow-fadeInRight"},{label:"fadeInLeft",value:"stk-wow-fadeInLeft"}],onChange:e=>{let t=e;if(a.attributes.className){let n=a.attributes.className;n=n.split(" ");let o=n.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,a.setAttributes({className:t,stkWowFadeIn:e})}}))))):(0,e.createElement)(t,a)}),"addStkGlobalWowFadeInBlockControls")),$("blocks.getSaveContent.extraProps","stkGlobalWowFadeInBlockControl/add-props",(function(e,t,l){return Y(t.name)&&""===l.stkWowFadeIn&&delete l.stkWowFadeIn,e}));const{assign:ee}=lodash,{__:te}=wp.i18n,{Fragment:le}=wp.element,{addFilter:ae}=wp.hooks,{PanelBody:ne,RadioControl:oe}=wp.components,{InspectorControls:se}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:re}=wp.compose,ce=e=>["core/paragraph","core/heading","core/list","core/quote","core/code","core/columns","core/column","core/preformatted","core/pullquote","core/table","core/image","core/gallery","core/cover","core/media-text","core/video","core/buttons","core/button","core/group","core/nextpage","core/separator","core/embed","stk-plugin/accordion","stk-plugin/voicecomment","stk-plugin/cbox","stk-plugin/cbox-notitle","stk-plugin/faq","stk-plugin/faq-accordion","stk-plugin/kanrenpost","stk-plugin/postlistcat","stk-plugin/postlistnew","stk-plugin/postlisttag","stk-plugin/supplement2","stk-plugin/grids","stk-plugin/grid","stk-plugin/steps"].includes(e);ae("blocks.registerBlockType","stkGlobalHiddenBlockControl/add-attr",(function(e){return ce(e.name)&&(e.attributes=ee(e.attributes,{blockHiddenSetting:{type:"string"}})),e})),ae("editor.BlockEdit","stkGlobalHiddenBlockControl/block-control",re((t=>{let l="";return a=>ce(a.name)&&a.isSelected?(l=a.attributes.blockHiddenSetting?a.attributes.blockHiddenSetting:"",(0,e.createElement)(le,null,(0,e.createElement)(t,a),(0,e.createElement)(se,null,(0,e.createElement)(ne,{title:"表示設定",className:"stk-icon",initialOpen:!1},(0,e.createElement)(oe,{label:"表示設定",help:te("ブロックの表示設定が可能です。"),selected:l,options:[{label:"すべての端末で表示",value:""},{label:"PC / タブレットで表示",value:"stk-hidden_sp"},{label:"モバイルで表示",value:"stk-hidden_pc"}],onChange:e=>{let t=e;if(a.attributes.className){let n=a.attributes.className;n=n.split(" ");let o=n.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,a.setAttributes({className:t,blockHiddenSetting:e})}}))))):(0,e.createElement)(t,a)}),"addStkGlobalHiddenBlockControls")),ae("blocks.getSaveContent.extraProps","stkGlobalHiddenBlockControl/add-props",(function(e,t,l){return ce(t.name)&&""===l.blockHiddenSetting&&delete l.blockHiddenSetting,e}));var ie=l(184),me=l.n(ie);const{assign:pe}=lodash,{__:ue}=wp.i18n,{Fragment:de}=wp.element,{addFilter:be}=wp.hooks,{PanelBody:ge,RadioControl:ke,ToolbarDropdownMenu:_e,MenuGroup:ve,MenuItem:he,ToolbarGroup:ye,Toolbar:fe,Icon:Ee}=wp.components,{InspectorControls:we,BlockControls:Ce,BlockFormatControls:Ne}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{createHigherOrderComponent:xe}=wp.compose,Be=e=>["core/paragraph","core/heading","core/list","core/quote","core/code","core/columns","core/column","core/preformatted","core/pullquote","core/table","core/image","core/gallery","core/cover","core/media-text","core/video","core/buttons","core/button","core/group","core/nextpage","core/separator","core/embed","stk-plugin/accordion","stk-plugin/voicecomment","stk-plugin/cbox","stk-plugin/cbox-notitle","stk-plugin/faq","stk-plugin/faq-accordion","stk-plugin/kanrenpost","stk-plugin/postlistcat","stk-plugin/postlistnew","stk-plugin/postlisttag","stk-plugin/supplement2","stk-plugin/grids","stk-plugin/steps"].includes(e);be("blocks.registerBlockType","stkGlobalMagineBlockControl/add-attr",(function(e){return Be(e.name)&&(e.attributes=pe(e.attributes,{marginTopSetting:{type:"string"},marginBottomSetting:{type:"string"}})),e})),be("editor.BlockEdit","stkGlobalMagineBlockControl/block-control",xe((t=>{let l="",a="";return n=>{if(Be(n.name)&&n.isSelected){l=n.attributes.marginTopSetting?n.attributes.marginTopSetting:"",a=n.attributes.marginBottomSetting?n.attributes.marginBottomSetting:"";const o=()=>(0,e.createElement)(Ee,{icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M88.5,2.5v13.52c0,.54-.44,.98-.98,.98H12.48c-.54,0-.98-.44-.98-.98V2.5H4.5v13.52c0,4.4,3.58,7.98,7.98,7.98H87.52c4.4,0,7.98-3.58,7.98-7.98V2.5h-7Z"}),(0,e.createElement)("path",{d:"M87.52,76H12.48c-4.4,0-7.98,3.58-7.98,7.98v13.52H95.5v-13.52c0-4.4-3.58-7.98-7.98-7.98Z"}),(0,e.createElement)("polygon",{points:"47.4 53.74 47.4 65.57 38.73 56.97 35.73 59.97 49.5 73.74 63.27 59.98 60.28 56.89 51.6 65.56 51.6 53.74 51.6 46.41 51.6 34.59 60.28 43.26 63.27 40.17 49.5 26.41 35.73 40.18 38.73 43.18 47.4 34.58 47.4 46.41 47.4 53.74"}))});return(0,e.createElement)(de,null,(0,e.createElement)(t,n),(0,e.createElement)(Ce,null,(0,e.createElement)(ye,null,(0,e.createElement)(_e,{icon:o,label:ue("上下の余白","stork19")},(t=>{let{onClose:o}=t;return(0,e.createElement)(de,null,(0,e.createElement)(ve,{className:"stk-toolbar-margin-settings"},(0,e.createElement)(ke,{className:"radio-style-button last-button-reset",label:ue("ブロック上の余白"),help:ue("ブロックの上の余白(margin)を調整できます。"),selected:l,options:[{label:"0",value:"stk-mt_0"},{label:"SS",value:"stk-mt_ss"},{label:"S",value:"stk-mt_s"},{label:"M",value:"stk-mt_m"},{label:"L",value:"stk-mt_l"},{label:"×",value:""}],onChange:e=>{let t=e;if(n.attributes.className){let a=n.attributes.className;a=a.split(" ");let o=a.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,n.setAttributes({className:t,marginTopSetting:e})}}),(0,e.createElement)("div",{style:{height:"15px"}}),(0,e.createElement)(ke,{className:"radio-style-button last-button-reset",label:ue("ブロック下の余白"),help:ue("ブロックの下の余白(margin)を調整できます。"),selected:a,options:[{label:"0",value:"stk-mb_0"},{label:"SS",value:"stk-mb_ss"},{label:"S",value:"stk-mb_s"},{label:"M",value:"stk-mb_m"},{label:"L",value:"stk-mb_l"},{label:"×",value:""}],onChange:e=>{let t=e;if(n.attributes.className){let l=n.attributes.className;l=l.split(" ");let o=l.filter((function(e){return e!==a}));o.push(e),t=o.join(" ")}a=e,n.setAttributes({className:t,marginBottomSetting:e})}})))})))),(0,e.createElement)(we,null,(0,e.createElement)(ge,{title:"上下の余白設定(margin)",className:"stk-icon",initialOpen:!1},(0,e.createElement)(ke,{className:"radio-style-button last-button-reset",label:ue("ブロック上の余白"),help:ue("ブロックの上の余白(margin)を調整できます。"),selected:l,options:[{label:"0",value:"stk-mt_0"},{label:"SS",value:"stk-mt_ss"},{label:"S",value:"stk-mt_s"},{label:"M",value:"stk-mt_m"},{label:"L",value:"stk-mt_l"},{label:"×",value:""}],onChange:e=>{let t=e;if(n.attributes.className){let a=n.attributes.className;a=a.split(" ");let o=a.filter((function(e){return e!==l}));o.push(e),t=o.join(" ")}l=e,n.setAttributes({className:t,marginTopSetting:e})}}),(0,e.createElement)(ke,{className:"radio-style-button last-button-reset",label:ue("ブロック下の余白"),help:ue("ブロックの下の余白(margin)を調整できます。"),selected:a,options:[{label:"0",value:"stk-mb_0"},{label:"SS",value:"stk-mb_ss"},{label:"S",value:"stk-mb_s"},{label:"M",value:"stk-mb_m"},{label:"L",value:"stk-mb_l"},{label:"×",value:""}],onChange:e=>{let t=e;if(n.attributes.className){let l=n.attributes.className;l=l.split(" ");let o=l.filter((function(e){return e!==a}));o.push(e),t=o.join(" ")}a=e,n.setAttributes({className:t,marginBottomSetting:e})}}))))}return(0,e.createElement)(t,n)}}),"addStkGlobalMagineBlockControls")),be("blocks.getSaveContent.extraProps","stkGlobalMagineBlockControl/add-props",(function(e,t,l){return Be(t.name)&&(""===l.marginTopSetting&&delete l.marginTopSetting,""===l.marginBottomSetting&&delete l.marginBottomSetting),e}));const{__:Ie}=wp.i18n,{registerBlockType:Te}=wp.blocks,{Fragment:Ae}=wp.element,{InspectorControls:Se}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:qe,RadioControl:Fe,ToggleControl:Re,SelectControl:De,RangeControl:Pe}=wp.components,{serverSideRender:Me}=wp,Oe=[];Oe.push({label:"--選択してください--",value:0}),wp.apiFetch({path:"/wp/v2/categories/?per_page=-1?_fields=name,id"}).then((e=>{e.forEach((e=>{Oe.push({label:e.name,value:e.id})}))})),Te("stk-plugin/postlistcat",{title:Ie("記事リスト(カテゴリー)"),icon:{foreground:"#1ab4d3",src:"excerpt-view"},category:"widgets",keywords:[Ie("category"),Ie("kiji"),Ie("list"),Ie("きじ"),Ie("りすと")],example:{},attributes:{id:{type:"string"},num:{type:"integerg",default:"8"},ttlnone:{type:"boolean",default:!0},postlistType:{type:"string",default:"card"},postlistDateFirst:{type:"boolean",default:!1},postlistDate:{type:"boolean",default:!1},orderby:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},layoutpc:{type:"string",default:4},layouttb:{type:"string",default:4},layoutsp:{type:"string",default:2}},edit(t){let{attributes:l,setAttributes:a}=t;const{id:n,num:o,ttlnone:s,postlistType:r,postlistDateFirst:c,postlistDate:i,orderby:m,order:p,layoutpc:u,layouttb:d,layoutsp:b}=l,g=e=>{a({id:e.target.value})},k=e=>{a({num:e.target.value})};return(0,e.createElement)(Ae,null,(0,e.createElement)(Se,null,(0,e.createElement)(qe,{title:"カテゴリーの選択",className:"basic_setting stk-icon"},(0,e.createElement)(De,{label:"カテゴリー選択",value:n,options:Oe,onChange:e=>a({id:e})}),(0,e.createElement)("p",{className:"mataha"},"「選択」またはIDを入力"),(0,e.createElement)("p",null,"カテゴリーID:",(0,e.createElement)("br",null),(0,e.createElement)("input",{value:n,onChange:g,type:"text",className:"cat_id_input"}))),(0,e.createElement)(qe,{title:"表示設定",className:"type_setting stk-icon"},(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("br",null),(0,e.createElement)("input",{value:o,onChange:k,type:"number",className:"cat_num_input"}),"記事"),(0,e.createElement)(Fe,{label:Ie("表示タイプ(デザイン)"),className:"postlist_option__type radio-style-column-3",options:[{value:"card",label:Ie("カード")},{value:"simple",label:Ie("シンプル")},{value:"text",label:Ie("テキスト")}],selected:r,onChange:function(e){a({postlistType:e})}}),"card"==r?(0,e.createElement)("div",{className:"card_layout_setting"},(0,e.createElement)(De,{label:"カードカラム数(パソコン)",className:"layoutpc",help:Ie("デバイスサイズ:981px~"),options:[{value:"2",label:Ie("2列")},{value:"3",label:Ie("3列")},{value:"4",label:Ie("4列")},{value:"5",label:Ie("5列")},{value:"6",label:Ie("6列")}],selected:u,value:u,onChange:function(e){a({layoutpc:e})}}),(0,e.createElement)(De,{label:"カードカラム数(タブレット)",help:Ie("デバイスサイズ:481~980px"),className:"layouttb",options:[{value:"2",label:Ie("2列")},{value:"3",label:Ie("3列")},{value:"4",label:Ie("4列")},{value:"5",label:Ie("5列")},{value:"6",label:Ie("6列")}],selected:d,value:d,onChange:function(e){a({layouttb:e})}}),(0,e.createElement)(De,{label:"カードカラム数(モバイル)",help:Ie("デバイスサイズ:~480px"),className:"layoutsp",options:[{value:"1",label:Ie("1列")},{value:"2",label:Ie("2列")},{value:"3",label:Ie("3列")}],selected:b,value:b,onChange:function(e){a({layoutsp:e})}})):null,"text"==r?(0,e.createElement)(Re,{label:"日付を前方に表示する",help:Ie("タイプ「テキスト」の場合に日付の表示位置を変更できます。"),checked:c,onChange:function(e){a({postlistDateFirst:e})}}):null,(0,e.createElement)(Re,{label:"日付を表示しない",checked:i,onChange:function(e){a({postlistDate:e})}}),(0,e.createElement)(Re,{label:"カテゴリー見出しを表示しない",checked:s,onChange:function(e){a({ttlnone:e})}}),(0,e.createElement)(De,{label:Ie("表示基準"),className:me()("postlist_option__order"),options:[{value:"post_date",label:Ie("日付順")},{value:"post_modified",label:Ie("更新日順")},{value:"rand",label:Ie("ランダム")}],selected:m,value:m,onChange:function(e){a({orderby:e})}}),(0,e.createElement)(De,{label:Ie("表示順"),className:me()("postlist_option__order"),options:[{value:"DESC",label:Ie("降順")},{value:"ASC",label:Ie("昇順")}],selected:p,value:p,onChange:function(e){a({order:e})}}))),(0,e.createElement)("div",{className:"catid__input"},(0,e.createElement)("p",null,"カテゴリーID:",(0,e.createElement)("input",{value:n,onChange:g,type:"text"})),(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("input",{value:o,onChange:k,type:"number"}))),(0,e.createElement)(Me,{block:"stk-plugin/postlistcat",attributes:l}))},save:()=>null});const{__:He}=wp.i18n,{registerBlockType:Le}=wp.blocks,{Fragment:Ve}=wp.element,{RichText:ze,InnerBlocks:je,InspectorControls:Ue,PanelColorSettings:Ge}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:Ze,RadioControl:We,ToggleControl:$e,SelectControl:Je}=wp.components,{serverSideRender:Qe}=wp,Ke=[];Ke.push({label:"--選択してください--",value:0}),wp.apiFetch({path:"/wp/v2/tags/?per_page=-1?_fields=name,id"}).then((e=>{e.forEach((e=>{Ke.push({label:e.name,value:e.id})}))})),Le("stk-plugin/postlisttag",{title:He("記事リスト(タグ)"),icon:{foreground:"#1ab4d3",src:"excerpt-view"},category:"widgets",keywords:[He("tags"),He("kiji"),He("list"),He("きじ"),He("りすと")],example:{},attributes:{id:{type:"string"},num:{type:"integerg",default:"8"},ttlnone:{type:"boolean",default:!0},postlistType:{type:"string",default:"card"},postlistDateFirst:{type:"boolean",default:!1},postlistDate:{type:"boolean",default:!1},orderby:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},layoutpc:{type:"string",default:4},layouttb:{type:"string",default:4},layoutsp:{type:"string",default:2}},edit(t){let{attributes:l,setAttributes:a}=t;const{id:n,num:o,ttlnone:s,postlistType:r,postlistDateFirst:c,postlistDate:i,orderby:m,order:p,layoutpc:u,layouttb:d,layoutsp:b}=l,g=e=>{a({id:e.target.value})},k=e=>{a({num:e.target.value})};return(0,e.createElement)(Ve,null,(0,e.createElement)(Ue,null,(0,e.createElement)(Ze,{title:"カテゴリーの選択",className:"basic_setting stk-icon"},(0,e.createElement)(Je,{label:"タグ選択",value:n,options:Ke,onChange:e=>a({id:e})}),(0,e.createElement)("p",{className:"mataha"},"「選択」またはIDを入力"),(0,e.createElement)("p",null,"タグID:",(0,e.createElement)("br",null),(0,e.createElement)("input",{value:n,onChange:g,type:"text",className:"cat_id_input"}))),(0,e.createElement)(Ze,{title:"表示設定",className:"type_setting stk-icon"},(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("br",null),(0,e.createElement)("input",{value:o,onChange:k,type:"number",className:"cat_num_input"}),"記事"),(0,e.createElement)(We,{label:He("表示タイプ(デザイン)"),className:"postlist_option__type radio-style-column-3",options:[{value:"card",label:He("カード")},{value:"simple",label:He("シンプル")},{value:"text",label:He("テキスト")}],selected:r,onChange:function(e){a({postlistType:e})}}),"card"==r?(0,e.createElement)("div",{className:"card_layout_setting"},(0,e.createElement)(Je,{label:"カードカラム数(パソコン)",className:"layoutpc",help:He("デバイスサイズ:981px~"),options:[{value:"2",label:He("2列")},{value:"3",label:He("3列")},{value:"4",label:He("4列")},{value:"5",label:He("5列")},{value:"6",label:He("6列")}],selected:u,value:u,onChange:function(e){a({layoutpc:e})}}),(0,e.createElement)(Je,{label:"カードカラム数(タブレット)",help:He("デバイスサイズ:481~980px"),className:"layouttb",options:[{value:"2",label:He("2列")},{value:"3",label:He("3列")},{value:"4",label:He("4列")},{value:"5",label:He("5列")},{value:"6",label:He("6列")}],selected:d,value:d,onChange:function(e){a({layouttb:e})}}),(0,e.createElement)(Je,{label:"カードカラム数(モバイル)",help:He("デバイスサイズ:~480px"),className:"layoutsp",options:[{value:"1",label:He("1列")},{value:"2",label:He("2列")},{value:"3",label:He("3列")}],selected:b,value:b,onChange:function(e){a({layoutsp:e})}})):null,"text"==r?(0,e.createElement)($e,{label:"日付を前方に表示する",help:He("タイプ「テキスト」の場合に日付の表示位置を変更できます。"),checked:c,onChange:function(e){a({postlistDateFirst:e})}}):null,(0,e.createElement)($e,{label:"日付を表示しない",checked:i,onChange:function(e){a({postlistDate:e})}}),(0,e.createElement)($e,{label:"タグ名見出しを表示しない",checked:s,onChange:function(e){a({ttlnone:e})}}),(0,e.createElement)(Je,{label:He("表示基準"),className:me()("postlist_option__order"),options:[{value:"post_date",label:He("日付順")},{value:"post_modified",label:He("更新日順")},{value:"rand",label:He("ランダム")}],selected:m,value:m,onChange:function(e){a({orderby:e})}}),(0,e.createElement)(Je,{label:He("表示順"),className:me()("postlist_option__order"),options:[{value:"DESC",label:He("降順")},{value:"ASC",label:He("昇順")}],selected:p,value:p,onChange:function(e){a({order:e})}}))),(0,e.createElement)("div",{className:"catid__input"},(0,e.createElement)("p",null,"タグID:",(0,e.createElement)("input",{value:n,onChange:g,type:"text"})),(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("input",{value:o,onChange:k,type:"number"}))),(0,e.createElement)(Qe,{block:"stk-plugin/postlisttag",attributes:l}))},save:()=>null});const{__:Xe}=wp.i18n,{registerBlockType:Ye}=wp.blocks,{Fragment:et}=wp.element,{InspectorControls:tt}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:lt,RadioControl:at,TextControl:nt,ToggleControl:ot,SelectControl:st}=wp.components,{serverSideRender:rt}=wp;Ye("stk-plugin/postlistnew",{title:Xe("記事リスト(新着)"),icon:{foreground:"#1ab4d3",src:"excerpt-view"},category:"widgets",keywords:[Xe("new"),Xe("kiji"),Xe("list"),Xe("きじ"),Xe("りすと")],example:{},attributes:{num:{type:"integerg",default:"8"},notcategorys:{type:"string"},nottags:{type:"string"},catlabel:{type:"boolean",default:!1},ttlnone:{type:"boolean",default:!0},postlistType:{type:"string",default:"card"},postlistDateFirst:{type:"boolean",default:!1},postlistDate:{type:"boolean",default:!1},orderby:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},layoutpc:{type:"string",default:4},layouttb:{type:"string",default:4},layoutsp:{type:"string",default:2}},edit(t){let{attributes:l,setAttributes:a}=t;const{num:n,notcategorys:o,nottags:s,catlabel:r,ttlnone:c,postlistType:i,postlistDateFirst:m,postlistDate:p,orderby:u,order:d,layoutpc:b,layouttb:g,layoutsp:k}=l,_=e=>{a({num:e.target.value})};return(0,e.createElement)(et,null,(0,e.createElement)(tt,null,(0,e.createElement)(lt,{title:"表示設定",className:"type_setting stk-icon"},(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("br",null),(0,e.createElement)("input",{value:n,onChange:_,type:"number",className:"cat_num_input"}),"記事"),(0,e.createElement)(at,{label:Xe("表示タイプ(デザイン)"),className:"postlist_option__type radio-style-column-3",options:[{value:"card",label:Xe("カード")},{value:"simple",label:Xe("シンプル")},{value:"text",label:Xe("テキスト")}],selected:i,onChange:function(e){a({postlistType:e})}}),"card"==i?(0,e.createElement)("div",{className:"card_layout_setting"},(0,e.createElement)(st,{label:"カードカラム数(パソコン)",className:"layoutpc",help:Xe("デバイスサイズ:981px~"),options:[{value:"2",label:Xe("2列")},{value:"3",label:Xe("3列")},{value:"4",label:Xe("4列")},{value:"5",label:Xe("5列")},{value:"6",label:Xe("6列")}],selected:b,value:b,onChange:function(e){a({layoutpc:e})}}),(0,e.createElement)(st,{label:"カードカラム数(タブレット)",help:Xe("デバイスサイズ:481~980px"),className:"layouttb",options:[{value:"2",label:Xe("2列")},{value:"3",label:Xe("3列")},{value:"4",label:Xe("4列")},{value:"5",label:Xe("5列")},{value:"6",label:Xe("6列")}],selected:g,value:g,onChange:function(e){a({layouttb:e})}}),(0,e.createElement)(st,{label:"カードカラム数(モバイル)",help:Xe("デバイスサイズ:~480px"),className:"layoutsp",options:[{value:"1",label:Xe("1列")},{value:"2",label:Xe("2列")},{value:"3",label:Xe("3列")}],selected:k,value:k,onChange:function(e){a({layoutsp:e})}})):null,"text"==i?(0,e.createElement)(ot,{label:"日付を前方に表示する",help:Xe("タイプ「テキスト」の場合に日付の表示位置を変更できます。"),checked:m,onChange:function(e){a({postlistDateFirst:e})}}):null,(0,e.createElement)(ot,{label:"カテゴリーラベルを表示する",checked:r,onChange:function(e){a({catlabel:e})}}),(0,e.createElement)(ot,{label:"日付を表示しない",checked:p,onChange:function(e){a({postlistDate:e})}}),(0,e.createElement)(ot,{label:"「新着」見出しを表示しない",checked:c,onChange:function(e){a({ttlnone:e})}}),(0,e.createElement)(st,{label:Xe("表示基準"),className:me()("postlist_option__order"),options:[{value:"post_date",label:Xe("日付順")},{value:"post_modified",label:Xe("更新日順")},{value:"rand",label:Xe("ランダム")}],selected:u,value:u,onChange:function(e){a({orderby:e})}}),(0,e.createElement)(st,{label:Xe("表示順"),className:me()("postlist_option__order"),options:[{value:"DESC",label:Xe("降順")},{value:"ASC",label:Xe("昇順")}],selected:d,value:d,onChange:function(e){a({order:e})}}),(0,e.createElement)(nt,{label:"除外するカテゴリーのID",help:"一覧から除外するカテゴリーIDを入力(複数の場合は , 区切り)",value:o,onChange:e=>{a({notcategorys:e})}}),(0,e.createElement)(nt,{label:"除外するタグのID",help:"一覧から除外するタグIDを入力(複数の場合は , 区切り)",value:s,onChange:e=>{a({nottags:e})}}))),(0,e.createElement)("div",{className:"catid__input"},(0,e.createElement)("p",null,"表示数:",(0,e.createElement)("input",{value:n,onChange:_,type:"number"}))),(0,e.createElement)(rt,{block:"stk-plugin/postlistnew",attributes:l}))},save:()=>null});const{__:ct}=wp.i18n,{registerBlockType:it}=wp.blocks,{Fragment:mt}=wp.element,{InspectorControls:pt,BlockControls:ut,URLInput:dt,URLInputButton:bt}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:gt,RadioControl:kt,ToggleControl:_t,TextControl:vt,Toolbar:ht}=wp.components,{serverSideRender:yt}=wp;it("stk-plugin/kanrenpost",{title:ct("関連記事"),icon:{foreground:"#1ab4d3",src:"admin-links"},category:"widgets",keywords:[ct("kanren"),ct("kiji"),ct("かんれん"),ct("きじ")],example:{},attributes:{id:{type:"string",default:null},url:{type:"string",default:null},target:{type:"boolean",default:!1},type:{type:"string",default:"simple"},date:{type:"boolean",default:!1},labeltext:{type:"string",default:"関連記事"}},edit(t){let{attributes:l,setAttributes:a}=t;const{id:n,url:o,target:s,type:r,date:c,labeltext:i}=l;return(0,e.createElement)(mt,null,(0,e.createElement)(pt,null,(0,e.createElement)(gt,{title:"関連記事の設定",className:"basic_setting stk-icon"},(0,e.createElement)(vt,{label:"投稿・固定ページURL",placeholder:"入力例) https://example.com",value:o,type:"url",onChange:e=>a({url:e})}),(0,e.createElement)("p",null,"または"),(0,e.createElement)(vt,{label:"投稿・固定ページID",placeholder:"入力例) 1234",value:n,type:"text",onChange:e=>{a({id:e})}}),(0,e.createElement)("p",{className:"components-base-control__help"},"※ 投稿・固定ページのリンクが可能です。",(0,e.createElement)("br",null),"※ 内部リンクのみ利用可能です。")),(0,e.createElement)(gt,{title:"表示設定",className:"type_setting stk-icon"},(0,e.createElement)(kt,{label:ct("表示タイプ(デザイン)"),className:"kanren_option__type radio-style-column-3",options:[{value:"simple",label:ct("シンプル")},{value:"card",label:ct("カード")},{value:"text",label:ct("テキスト")}],selected:r,onChange:function(e){a({type:e})}}),(0,e.createElement)("p",null,"ラベル: ",(0,e.createElement)("input",{value:i,onChange:e=>{a({labeltext:e.target.value})},type:"text"})),(0,e.createElement)(_t,{label:"日付を表示しない",checked:c,onChange:function(e){a({date:e})}}),(0,e.createElement)(_t,{label:"リンクを別タブで開く",checked:s,onChange:function(e){a({target:e})}}))),(0,e.createElement)(ut,null,(0,e.createElement)(ht,null,(0,e.createElement)("div",{className:"kanren-url_input"},(0,e.createElement)(bt,{url:l.url,onChange:e=>a({url:e})},"リンク")))),(0,e.createElement)(mt,null,n||o?(0,e.createElement)("div",{className:"rendering_view"},(0,e.createElement)(yt,{block:"stk-plugin/kanrenpost",attributes:l})):(0,e.createElement)("div",{className:"related_article typesimple"},(0,e.createElement)("div",{className:"related_article__link external__link"},(0,e.createElement)("figure",{className:"eyecatch of-cover thum eyecatch_sample"}),(0,e.createElement)("div",{className:"meta inbox"},(0,e.createElement)("div",{className:"ttl"},(0,e.createElement)("span",{class:"labeltext"},"関連記事"),"サイト内の関連記事を表示できます。「URLをペースト」または「入力して検索」")))),(0,e.createElement)(dt,{label:"投稿・固定ページURL",className:"kanrenpost_url_input",value:l.url,onChange:e=>a({url:e})})))},save:()=>null});const ft={};ft.upload=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),(0,e.createElement)("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),(0,e.createElement)("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),(0,e.createElement)("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));var Et=ft,wt=window.wp.i18n,Ct=window.wp.blocks,Nt=window.wp.blockEditor,xt=window.wp.components;let Bt=!1;function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},It.apply(this,arguments)}(0,Ct.registerBlockType)("stk-plugin/voicecomment",{title:(0,wt.__)("吹き出し"),icon:{foreground:"#1ab4d3",src:"format-status"},category:"common",keywords:[(0,wt.__)("voice"),(0,wt.__)("hukidashi"),(0,wt.__)("ふきだし")],example:{attributes:{name:"name",commentdesign:"comment_gray",iconcolor:"icon_black"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,wt.__)("Contents Text...")}}]},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return wp.blocks.createBlock("stk-plugin/voicecomment",{},[wp.blocks.createBlock("core/paragraph",{content:t})])}}]},attributes:{voicecomment:{type:"string",default:"This is a voicecomment..."},avatarUrl:{type:"string"},avatarId:{type:"int",default:null},name:{type:"string"},commentdesign:{type:"string",default:"default"},alignment:{type:"string",default:"l"},iconcolor:{type:"string",default:"icon_default"}},edit:function(t){const{attributes:{voicecomment:l,avatarUrl:a,avatarId:n,name:o,commentdesign:s,alignment:r,iconcolor:c},setAttributes:i}=t,[m,p]=(0,e.useState)([]),[u,d]=(0,e.useState)(!1),b=()=>d(!1),[g,k]=(0,e.useState)(99),_=()=>k(99),[v,h]=(0,e.useState)(99),y=()=>h(99),f=()=>{document.getElementById("spinner")&&document.getElementById("spinner").classList.add("is-loading"),document.getElementById("mysets")&&document.getElementById("mysets").classList.add("is-loading")},E=()=>{document.getElementById("spinner")&&document.getElementById("spinner").classList.remove("is-loading"),document.getElementById("mysets")&&document.getElementById("mysets").classList.remove("is-loading")},w=async e=>{try{return await fetch(stkLocalized.endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:e})}catch(e){return console.error(e),null}};let C=!1;const N=(e,t)=>{if(C)return!1;const l=document.getElementById("myset-toast");t?(l.innerHTML=t,l.classList.add("is-"+e),l.classList.add("is-show"),C=!0,setTimeout((()=>{l.innerHTML="",l.className="toast",C=!1,E(),Bt=!1}),3e3)):E()},x=()=>{Bt||E(),(async()=>{const e=await w("action="+stkLocalized.getStkBalloonMyset2+"&nonce="+stkLocalized.nonce);if(200!=e.status)return;const t=await e.text(),l=JSON.parse(t.replace("Array","")),a=[];l.length>0&&l.length!==m.length&&(l.forEach((e=>{a.push(JSON.parse(e))})),p(a)),0===l.length&&p([]),Bt||N("success")})()};return x(),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.InspectorControls,{key:"inspector"},(0,e.createElement)(xt.PanelBody,{title:"マイセット登録(β版)",initialOpen:!1,onToggle:()=>x(),className:"voice-controle stk-icon myset-invalid"},(0,e.createElement)("p",{class:"stk-mb_0"},"マイセットをクリックすると吹き出しに適用できます。"),(0,e.createElement)("p",null,"※マイセットは10個まで登録可能です"),(0,e.createElement)("div",{id:"spinner",class:"loader is-loading"},"Loading..."),(0,e.createElement)("div",{id:"myset-toast",class:"toast"},"トースト"),(0,e.createElement)("div",{id:"mysets",class:"is-loading"},(0,e.createElement)("div",{class:"myset-selector"},m.map(((t,l)=>(0,e.createElement)("div",{class:"myset-selector-column"},(0,e.createElement)("div",{className:me()("voice",t.commentdesign,t.alignment,t.iconcolor),onClick:()=>(h(l),void setTimeout((()=>document.getElementById("modal-button").focus())))},(0,e.createElement)("figure",{className:me()("icon")},t.avatarUrl&&!!t.avatarUrl.length&&(0,e.createElement)("img",{className:"voice_icon__img",src:t.avatarUrl,width:"100",height:"100"}),(!t.avatarUrl||!t.avatarUrl.length)&&(0,e.createElement)("div",{className:"voice_icon__img voice_icon__img_myset_view"}),t.name&&!!t.name.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"figcaption",className:"avatar-name name",value:t.name})),(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks.Content,null))),(0,e.createElement)("svg",{class:"myset-delete-button",width:"40",height:"40",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",onClick:()=>(k(l),void setTimeout((()=>document.getElementById("modal-button").focus())))},(0,e.createElement)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}))))),99!==g&&(0,e.createElement)(xt.Modal,{title:"マイセット削除",className:"myset-modal",onRequestClose:_},(0,e.createElement)("p",null,"次の吹き出しをマイセットから削除しますか?"),(0,e.createElement)("div",{className:me()("voice",m[g].commentdesign,m[g].alignment,m[g].iconcolor)},(0,e.createElement)("figure",{className:me()("icon")},m[g].avatarUrl&&!!m[g].avatarUrl.length&&(0,e.createElement)("img",{className:"voice_icon__img",src:m[g].avatarUrl,width:"100",height:"100"}),(!m[g].avatarUrl||!m[g].avatarUrl.length)&&(0,e.createElement)("div",{className:"voice_icon__img voice_icon__img_myset"}),m[g].name&&!!m[g].name.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"figcaption",className:"avatar-name name",value:m[g].name})),(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks.Content,null))),(0,e.createElement)("div",{class:"modal-buttons"},(0,e.createElement)(xt.Button,{variant:"secondary",onClick:_},"キャンセル"),(0,e.createElement)(xt.Button,{id:"modal-button",variant:"primary",onClick:()=>(async e=>{if(f(),Bt=!0,_(),200!=(await w("action="+stkLocalized.deleteStkBalloonMyset+"&id="+e+"&nonce="+stkLocalized.nonce)).status)return void alert("無効なレスポンスです。");const t=JSON.parse(JSON.stringify(m));t.splice(e,1),p(t),N("success","マイセットを削除しました")})(g)},"削除"))),99!==v&&(0,e.createElement)(xt.Modal,{title:"マイセット適用",className:"myset-modal",onRequestClose:y},(0,e.createElement)("p",null,"選択中の吹き出しに次のマイセットの内容を適用しますか?"),(0,e.createElement)("div",{className:me()("voice",m[v].commentdesign,m[v].alignment,m[v].iconcolor)},(0,e.createElement)("figure",{className:me()("icon")},m[v].avatarUrl&&!!m[v].avatarUrl.length&&(0,e.createElement)("img",{className:"voice_icon__img",src:m[v].avatarUrl,width:"100",height:"100"}),(!m[v].avatarUrl||!m[v].avatarUrl.length)&&(0,e.createElement)("div",{className:"voice_icon__img voice_icon__img_myset"}),m[v].name&&!!m[v].name.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"figcaption",className:"avatar-name name",value:m[v].name})),(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks.Content,null))),(0,e.createElement)("div",{class:"modal-buttons"},(0,e.createElement)(xt.Button,{variant:"secondary",onClick:y},"キャンセル"),(0,e.createElement)(xt.Button,{id:"modal-button",variant:"primary",onClick:()=>(e=>{const l=m[e];t.setAttributes({commentdesign:l.commentdesign||t.attributes.commentdesign,alignment:l.alignment||t.attributes.alignment,iconcolor:l.iconcolor||t.attributes.iconcolor,avatarUrl:l.avatarUrl||t.attributes.avatarUrl,avatarId:l.avatarId||t.attributes.avatarId,name:l.name||t.attributes.name}),y()})(v)},"適用する")))),(0,e.createElement)("div",{className:m.length>9?"myset-add-button is-active-popover":"myset-add-button"},(0,e.createElement)(xt.Button,{variant:"primary",disabled:m.length>9,onClick:()=>{d(!0),setTimeout((()=>document.getElementById("modal-button").focus()))}},"マイセットを登録する"),(0,e.createElement)("span",{class:"popover above"},"新たに登録する場合はマイセットを削除してください")),u&&(0,e.createElement)(xt.Modal,{title:"マイセット登録",className:"myset-modal",onRequestClose:b},(0,e.createElement)("p",null,"次の吹き出しをマイセット登録しますか?"),(0,e.createElement)("div",{className:me()("voice",s,r,c)},(0,e.createElement)("figure",{className:me()("icon")},a&&!!a.length&&(0,e.createElement)("img",{className:"voice_icon__img",src:a,width:"100",height:"100"}),(!a||!a.length)&&(0,e.createElement)("div",{className:"voice_icon__img voice_icon__img_myset"}),o&&!!o.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"figcaption",className:"avatar-name name",value:o})),(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks.Content,null))),(0,e.createElement)("div",{class:"modal-buttons"},(0,e.createElement)(xt.Button,{variant:"secondary",onClick:b},"キャンセル"),(0,e.createElement)(xt.Button,{id:"modal-button",variant:"primary",onClick:async()=>{f(),Bt=!0,b();const{attributes:e}=t,l={commentdesign:e.commentdesign,alignment:e.alignment,iconcolor:e.iconcolor,avatarUrl:e.avatarUrl,avatarId:e.avatarId,name:e.name};if(200!=(await w("action="+stkLocalized.addStkBalloonMyset+"&data="+JSON.stringify(l)+"&nonce="+stkLocalized.nonce)).status)return void alert("無効なレスポンスです。");const a=JSON.parse(JSON.stringify(m));a.push(l),p(a),N("success","マイセットを登録しました")}},"登録"))))),(0,e.createElement)(xt.PanelBody,{title:"吹き出しスタイルの変更",className:"voice-controle stk-icon"},(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("吹き出しデザイン"),help:(0,wt.__)("吹き出しコメントの全体の色を変更できます。"),className:"voice-controle-design",options:[{value:"default",label:(0,wt.__)("デフォルト")},{value:"comment_gray",label:(0,wt.__)("グレー")},{value:"fb",label:(0,wt.__)("ブルー")},{value:"line",label:(0,wt.__)("グリーン")},{value:"comment_pink",label:(0,wt.__)("ピンク")},{value:"comment_yellow",label:(0,wt.__)("イエロー")},{value:"comment_white",label:(0,wt.__)("ホワイト")}],selected:s,onChange:e=>t.setAttributes({commentdesign:e})}),(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("アイコン位置"),help:(0,wt.__)("アイコンの表示位置を変更できます。"),className:"voice-controle-icon_align",options:[{value:"l",label:(0,wt.__)("左")},{value:"r",label:(0,wt.__)("右")}],selected:r,onChange:e=>t.setAttributes({alignment:e})}),(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("アイコン色"),help:(0,wt.__)("アイコン周りの色を変更できます。"),className:"voice-controle-icon_color radio-style-column-4",options:[{value:"icon_default",label:(0,wt.__)("デフォルト")},{value:"icon_yellow",label:(0,wt.__)("イエロー")},{value:"icon_red",label:(0,wt.__)("レッド")},{value:"icon_blue",label:(0,wt.__)("ブルー")},{value:"icon_black",label:(0,wt.__)("ブラック")},{value:"icon_color_none",label:(0,wt.__)("枠なし")}],selected:c,onChange:e=>t.setAttributes({iconcolor:e})}))),(0,e.createElement)("div",{className:me()("voice",t.className,s,r,c)},(0,e.createElement)("div",{className:me()("icon")},(0,e.createElement)(Nt.MediaUpload,{buttonProps:{className:"change-image"},onSelect:e=>i({avatarUrl:e.url,avatarId:e.id}),type:"image",value:n,render:t=>{let{open:l}=t;return(0,e.createElement)(xt.Button,{onClick:l},n?(0,e.createElement)("img",{className:"voice_icon__img",src:a,alt:"avatar"}):(0,e.createElement)("div",{className:"svg_icon"},Et.upload))}}),(0,e.createElement)(Nt.RichText,{tagName:"div",placeholder:(0,wt.__)("ここに名前"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:"avatar-name name",onChange:e=>i({name:e})})),(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks,{template:[["core/paragraph"]]}))))},save:function(t){const{attributes:{voicecomment:l,avatarUrl:a,name:n,commentdesign:o,alignment:s,iconcolor:r}}=t;return(0,e.createElement)("div",{className:me()("voice",o,s,r)},(0,e.createElement)("figure",{className:me()("icon")},a&&!!a.length&&(0,e.createElement)("img",{className:"voice_icon__img",src:a,width:"100",height:"100"}),n&&!!n.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"figcaption",className:"avatar-name name",value:n})),l&&!!l.length&&(0,e.createElement)("div",{className:me()("voicecomment")},(0,e.createElement)(Nt.InnerBlocks.Content,null)))}}),(0,Ct.registerBlockType)("stk-plugin/faq",{title:(0,wt.__)("FAQ(Q&A)"),icon:{foreground:"#1ab4d3",src:"feedback"},category:"common",keywords:[(0,wt.__)("faq"),(0,wt.__)("qa"),(0,wt.__)("しつもん")],styles:[{name:"faq_type_normal",label:"シンプル",isDefault:!0},{name:"faq_type_border",label:"枠"},{name:"faq_type_border__dot",label:"枠(ドット)"},{name:"faq_type_bg1",label:"背景(テーマ)"},{name:"faq_type_bg2",label:"背景(グレー)"},{name:"faq_type_bg3",label:"背景(ホワイト)"}],supports:{className:!1,typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{attributes:{faqtitle:"Title",faqIconType:"faq-icon--bg_themecolor"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,wt.__)("Contents Text...")}}]},transforms:{to:[{type:"block",blocks:["stk-plugin/faq-accordion"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/faq-accordion",e,t)}]},attributes:{faqcomment:{type:"string",default:"This is a text..."},faqtitle:{type:"string"},faqIconType:{type:"string",default:"faq-icon--border"},faqIconRadius:{type:"string",default:"faq-icon--radius_kadomaru"},showRichResults:{type:"boolean",default:!1}},edit:function(t){const{attributes:{faqcomment:l,faqtitle:a,faqIconType:n,faqIconRadius:o,showRichResults:s}}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.InspectorControls,{key:"inspector"},(0,e.createElement)(xt.PanelBody,{title:"構造化データ設定",className:"stk-icon"},(0,e.createElement)(xt.ToggleControl,{label:"構造化データを利用する",checked:s,onChange:e=>t.setAttributes({showRichResults:e}),help:"FAQ用の構造化データ用のコードを出力することができます。"})),(0,e.createElement)(xt.PanelBody,{title:"Q&Aアイコン設定",className:"stk-icon"},(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("アイコンデザイン"),help:(0,wt.__)("アイコンのデザインを変更可能です。"),className:"radio-style-column-2 faq-icon-controle",options:[{label:"枠線",value:"faq-icon--border"},{label:"シンプル",value:"faq-icon--simple"},{label:"背景(テーマ)",value:"faq-icon--bg_themecolor"},{label:"背景(白黒)",value:"faq-icon--bg_monoqlo"}],selected:n,onChange:e=>t.setAttributes({faqIconType:e})}),(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("角丸"),help:(0,wt.__)("アイコンの形を変更可能です。※「シンプル」を選択している場合には適用されません。"),className:"radio-style-column-2 faq-icon-controle",options:[{label:"角丸",value:"faq-icon--radius_kadomaru"},{label:"角",value:"faq-icon--radius_none"},{label:"丸",value:"faq-icon--radius_maru"}],selected:o,onChange:e=>t.setAttributes({faqIconRadius:e})}))),(0,e.createElement)("div",{className:me()("oc-faq",t.className,n,o)},(0,e.createElement)("div",{className:me()("oc-faq__title")},(0,e.createElement)(Nt.RichText,{tagName:"div",placeholder:(0,wt.__)("ここに質問を入力"),keepPlaceholderOnFocus:!0,value:a,allowedFormats:["core/italic","core/strikethrough"],onChange:e=>t.setAttributes({faqtitle:e})})),(0,e.createElement)("div",{className:me()("oc-faq__comment")},(0,e.createElement)(Nt.InnerBlocks,null))))},save:function(t){const{attributes:{faqcomment:l,faqtitle:a,faqIconType:n,faqIconRadius:o}}=t;return(0,e.createElement)("dl",{className:me()("oc-faq",n,o)},a&&!!a.length&&(0,e.createElement)(Nt.RichText.Content,{tagName:"dt",className:me()("oc-faq__title"),value:a}),l&&!!l.length&&(0,e.createElement)("dd",{className:me()("oc-faq__comment")},(0,e.createElement)(Nt.InnerBlocks.Content,null)))}}),(0,Ct.registerBlockType)("stk-plugin/faq-accordion",{title:(0,wt.__)("FAQ(開閉式)"),icon:{foreground:"#1ab4d3",src:"insert"},category:"common",keywords:[(0,wt.__)("faq"),(0,wt.__)("qa"),(0,wt.__)("しつもん")],styles:[{name:"faq_type_normal",label:"シンプル",isDefault:!0},{name:"faq_type_border",label:"枠"},{name:"faq_type_border__dot",label:"枠(ドット)"},{name:"faq_type_bg1",label:"背景(テーマ)"},{name:"faq_type_bg2",label:"背景(グレー)"},{name:"faq_type_bg3",label:"背景(ホワイト)"}],supports:{className:!1,typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{attributes:{faqtitle:"Title",faqIconType:"faq-icon--bg_themecolor"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,wt.__)("Contents Text...")}}]},transforms:{to:[{type:"block",blocks:["stk-plugin/faq"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/faq",e,t)}]},attributes:{faqcomment:{type:"string",default:"This is a text..."},faqtitle:{type:"string"},faqIconType:{type:"string",default:"faq-icon--border"},faqIconRadius:{type:"string",default:"faq-icon--radius_kadomaru"},showRichResults:{type:"boolean",default:!1},labelID:{type:"string",default:""}},edit:function(t){const{attributes:{faqcomment:l,faqtitle:a,faqIconType:n,faqIconRadius:o,showRichResults:s,labelID:r},clientId:c}=t;return r!==c&&t.setAttributes({labelID:c}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.InspectorControls,{key:"inspector"},(0,e.createElement)(xt.PanelBody,{title:"構造化データ設定",className:"stk-icon"},(0,e.createElement)(xt.ToggleControl,{label:"構造化データを利用する",checked:s,onChange:e=>t.setAttributes({showRichResults:e}),help:"FAQ用の構造化データ用のコードを出力することができます。"})),(0,e.createElement)(xt.PanelBody,{title:"Q&Aアイコン設定",className:"stk-icon"},(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("アイコンデザイン"),help:(0,wt.__)("アイコンのデザインを変更可能です。"),className:"radio-style-column-2 faq-icon-controle",options:[{label:"枠線",value:"faq-icon--border"},{label:"シンプル",value:"faq-icon--simple"},{label:"背景(テーマ)",value:"faq-icon--bg_themecolor"},{label:"背景(白黒)",value:"faq-icon--bg_monoqlo"}],selected:n,onChange:e=>t.setAttributes({faqIconType:e})}),(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("角丸"),help:(0,wt.__)("アイコンの形を変更可能です。※「シンプル」を選択している場合には適用されません。"),className:"radio-style-column-2 faq-icon-controle",options:[{label:"角丸",value:"faq-icon--radius_kadomaru"},{label:"角",value:"faq-icon--radius_none"},{label:"丸",value:"faq-icon--radius_maru"}],selected:o,onChange:e=>t.setAttributes({faqIconRadius:e})}))),(0,e.createElement)("div",{className:me()("oc-faq",t.className,n,o)},(0,e.createElement)("div",{className:me()("oc-faq__title","faq__label"),id:r},(0,e.createElement)(Nt.RichText,{tagName:"div",placeholder:(0,wt.__)("ここに質問を入力"),keepPlaceholderOnFocus:!0,value:a,allowedFormats:["core/italic","core/strikethrough"],onChange:e=>t.setAttributes({faqtitle:e})})),(0,e.createElement)("div",{className:me()("oc-faq__comment")},(0,e.createElement)(Nt.InnerBlocks,null))))},save:function(t){const{attributes:{faqcomment:l,faqtitle:a,faqIconType:n,faqIconRadius:o,labelID:s}}=t;return(0,e.createElement)("div",{className:me()("oc-faq",n,o)},(0,e.createElement)("input",{type:"checkbox",id:s,className:me()("accordion_check")}),(0,e.createElement)("label",{className:me()("oc-faq__title","faq__label"),htmlFor:s},a&&!!a.length&&(0,e.createElement)(Nt.RichText.Content,{value:a})),l&&!!l.length&&(0,e.createElement)("div",{className:me()("oc-faq__comment")},(0,e.createElement)(Nt.InnerBlocks.Content,null)))}});const{__:Tt}=wp.i18n,{Component:At}=wp.element,{registerBlockType:St}=wp.blocks,{RichText:qt,InnerBlocks:Ft,InspectorControls:Rt}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:Dt,RadioControl:Pt}=wp.components,Mt={cboxcomment:{type:"string",default:"This is a text..."},cboxtitle:{type:"string"},cboxcolor:{type:"string",default:"is-style-site_color"},cboxtype:{type:"string",default:"type_normal"},listIconColor:{type:"string",default:""}};class Ot extends At{constructor(e){super(...arguments)}render(){const{attributes:{cboxcolor:t,cboxtype:l,listIconColor:a},setAttributes:n}=this.props;return(0,e.createElement)(Rt,{key:"inspector"},(0,e.createElement)(Dt,{title:"ボックススタイルの変更",className:"cbox-controle intitle stk-icon"},(0,e.createElement)(Pt,{label:Tt("ボックスデザイン"),className:"cbox-controle-type",options:[{value:"type_normal",label:Tt("ノーマル")},{value:"type_simple",label:Tt("シンプル")},{value:"type_ttl",label:Tt("タイトル")}],selected:l,onChange:e=>this.props.setAttributes({cboxtype:e})}),(0,e.createElement)(Pt,{label:Tt("ボックスカラー"),help:Tt("ユーザーカラーはカスタマイズ画面(ブロックエディタ設定)から変更できます。"),className:"cbox-controle-color radio-style-column-3",options:[{value:"is-style-site_color",label:Tt("サイトカラー(見出し色)")},{value:"is-style-blue_box",label:Tt("ブルー")},{value:"is-style-red_box",label:Tt("レッド")},{value:"is-style-yellow_box",label:Tt("イエロー")},{value:"is-style-green_box",label:Tt("グリーン")},{value:"is-style-pink_box",label:Tt("ピンク")},{value:"is-style-glay_box",label:Tt("グレー")},{value:"is-style-black_box",label:Tt("ブラック")},{value:"is-style-editor_color1",label:Tt("ユーザーカラー1")},{value:"is-style-editor_color2",label:Tt("ユーザーカラー2")},{value:"is-style-editor_color3",label:Tt("ユーザーカラー3")}],selected:t,onChange:e=>this.props.setAttributes({cboxcolor:e})}),(0,e.createElement)(Pt,{label:Tt("リストアイコンカラー"),help:Tt("ボックス内にリストを設置した場合のアイコンカラーを選択できます。"),options:[{value:"list-icon-box_default",label:Tt("サイトカラー(見出し色)")},{value:"list-icon-box_color",label:Tt("ボックスカラーに合わせる")}],selected:a,onChange:e=>this.props.setAttributes({listIconColor:e})})))}}St("stk-plugin/cbox",{title:Tt("ボックス(タイトル付き)"),icon:{foreground:"#1ab4d3",src:"archive"},category:"common",keywords:[Tt("cbox"),Tt("box"),Tt("ぼっくす")],supports:{typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{attributes:{cboxtitle:"Title"},innerBlocks:[{name:"core/paragraph",attributes:{content:Tt("Contents Text...")}}]},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return wp.blocks.createBlock("stk-plugin/cbox",{},[wp.blocks.createBlock("core/paragraph",{content:t})])}}],to:[{type:"block",blocks:["stk-plugin/cbox-notitle"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/cbox-notitle",e,t)},{type:"block",blocks:["stk-plugin/supplement2"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/supplement2",e,t)}]},attributes:Mt,edit:class extends At{render(){const{attributes:{cboxcomment:t,cboxtitle:l,cboxcolor:a,cboxtype:n,listIconColor:o},setAttributes:s}=this.props;return[(0,e.createElement)(Ot,It({setAttributes:s},this.props)),(0,e.createElement)("div",{className:me()("cbox intitle",this.props.className,a,n,o)},(0,e.createElement)("div",{className:me()("box_title")},(0,e.createElement)(qt,{tagtitle:"span",placeholder:Tt("ここにタイトル"),keepPlaceholderOnFocus:!0,value:l,allowedFormats:["core/bold","core/italic","core/strikethrough"],className:"span__box_title",onChange:e=>s({cboxtitle:e})})),(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(Ft,{template:[["core/paragraph"]]})))]}},save:function(t){const{attributes:{cboxcomment:l,cboxtitle:a,cboxcolor:n,cboxtype:o,listIconColor:s}}=t;return(0,e.createElement)("div",{className:me()("cbox intitle",n,o,s)},(0,e.createElement)("div",{className:me()("box_title")},(0,e.createElement)("span",{className:me()("span__box_title")},a&&!!a.length&&(0,e.createElement)(qt.Content,{value:a}))),l&&!!l.length&&(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(Ft.Content,null)))},deprecated:[{attributes:{...Mt,cboxcolor:{type:"string",default:"is-style-blue_box"}},migrate(e){let{cboxcolor:t,cboxtitle:l,cboxtype:a,listIconColor:n,cboxcomment:o}=e;return{cboxcolor:t,cboxtitle:l,cboxtype:a,listIconColor:n,cboxcomment:o}},save:function(t){const{attributes:{cboxcomment:l,cboxtitle:a,cboxcolor:n,cboxtype:o,listIconColor:s}}=t;return(0,e.createElement)("div",{className:me()("cbox intitle",n,o,s)},(0,e.createElement)("div",{className:me()("box_title")},(0,e.createElement)("span",{className:me()("span__box_title")},a&&!!a.length&&(0,e.createElement)(qt.Content,{value:a}))),l&&!!l.length&&(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(Ft.Content,null)))}}]});const{__:Ht}=wp.i18n,{Component:Lt}=wp.element,{registerBlockType:Vt,createBlock:zt}=wp.blocks,{InnerBlocks:jt,InspectorControls:Ut}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{PanelBody:Gt,RadioControl:Zt}=wp.components,Wt={cboxcomment:{type:"string",default:"This is a text..."},cboxcolor:{type:"string",default:"is-style-site_color"},cboxtype:{type:"string",default:"type_normal"},listIconColor:{type:"string",default:""}};class $t extends Lt{constructor(e){super(...arguments)}render(){const{setAttributes:t,attributes:{cboxcolor:l,cboxtype:a,listIconColor:n}}=this.props;return(0,e.createElement)(Ut,{key:"inspector"},(0,e.createElement)(Gt,{title:"ボックススタイルの変更",className:"cbox-controle cbox-notitle stk-icon"},(0,e.createElement)(Zt,{label:Ht("ボックスデザイン"),className:"cbox-controle-type",options:[{value:"type_normal",label:Ht("ノーマル")},{value:"type_simple",label:Ht("シンプル")}],selected:a,onChange:e=>this.props.setAttributes({cboxtype:e})}),(0,e.createElement)(Zt,{label:Ht("ボックスカラー"),help:Ht("ユーザーカラーはカスタマイズ画面(ブロックエディタ設定)から変更できます。"),className:"cbox-controle-color radio-style-column-3",options:[{value:"is-style-site_color",label:Ht("サイトカラー(見出し色)")},{value:"is-style-blue_box",label:Ht("ブルー")},{value:"is-style-red_box",label:Ht("レッド")},{value:"is-style-yellow_box",label:Ht("イエロー")},{value:"is-style-green_box",label:Ht("グリーン")},{value:"is-style-pink_box",label:Ht("ピンク")},{value:"is-style-glay_box",label:Ht("グレー")},{value:"is-style-black_box",label:Ht("ブラック")},{value:"is-style-editor_color1",label:Ht("ユーザーカラー1")},{value:"is-style-editor_color2",label:Ht("ユーザーカラー2")},{value:"is-style-editor_color3",label:Ht("ユーザーカラー3")}],selected:l,onChange:e=>this.props.setAttributes({cboxcolor:e})}),(0,e.createElement)(Zt,{label:Ht("リストアイコンカラー"),help:Ht("ボックス内にリストを設置した場合のアイコンカラーを選択できます。"),options:[{value:"list-icon-box_default",label:Ht("サイトカラー(見出し色)")},{value:"list-icon-box_color",label:Ht("ボックスカラーに合わせる")}],selected:n,onChange:e=>this.props.setAttributes({listIconColor:e})})))}}Vt("stk-plugin/cbox-notitle",{title:Ht("ボックス"),icon:{foreground:"#1ab4d3",src:"archive"},category:"common",keywords:[Ht("cbox"),Ht("box"),Ht("ぼっくす")],supports:{typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{innerBlocks:[{name:"core/paragraph",attributes:{content:Ht("Contents Text...")}}]},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return wp.blocks.createBlock("stk-plugin/cbox-notitle",{},[wp.blocks.createBlock("core/paragraph",{content:t})])}}],to:[{type:"block",blocks:["stk-plugin/cbox"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/cbox",e,t)},{type:"block",blocks:["stk-plugin/supplement2"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/supplement2",e,t)}]},attributes:Wt,edit:class extends Lt{render(){const{attributes:{cboxcomment:t,cboxcolor:l,cboxtype:a,listIconColor:n},setAttributes:o}=this.props;return[(0,e.createElement)($t,It({setAttributes:o},this.props)),(0,e.createElement)("div",{className:me()("cbox",this.props.className,l,a,n)},(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(jt,{template:[["core/paragraph"]]})))]}},save:function(t){const{attributes:{cboxcomment:l,cboxcolor:a,cboxtype:n,listIconColor:o}}=t;return(0,e.createElement)("div",{className:me()("cbox",a,n,o)},l&&!!l.length&&(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(jt.Content,null)))},deprecated:[{attributes:{...Wt,cboxcolor:{type:"string",default:"is-style-blue_box"}},migrate(e){let{cboxcolor:t,cboxtype:l,listIconColor:a,cboxcomment:n}=e;return{cboxcolor:t,cboxtype:l,listIconColor:a,cboxcomment:n}},save:function(t){const{attributes:{cboxcomment:l,cboxcolor:a,cboxtype:n,listIconColor:o}}=t;return(0,e.createElement)("div",{className:me()("cbox",a,n,o)},l&&!!l.length&&(0,e.createElement)("div",{className:me()("cboxcomment")},(0,e.createElement)(jt.Content,null)))}}]}),l(594);const{__:Jt}=wp.i18n,{registerBlockType:Qt}=wp.blocks,{InnerBlocks:Kt}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{omit:Xt}=lodash;Qt("stk-plugin/supplement2",{title:Jt("補足説明"),icon:{foreground:"#1ab4d3",src:"info"},category:"common",keywords:[Jt("hosoku"),Jt("ほそく"),Jt("せつめい")],styles:[{name:"default",label:"default",isDefault:!0},{name:"succes",label:"サクセス"},{name:"warning",label:"Warning"},{name:"memo",label:"メモ"},{name:"hint",label:"ヒント"},{name:"border",label:"シンプルな枠"}],supports:{typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{innerBlocks:[{name:"core/paragraph",attributes:{content:Jt("Contents Text...")}}]},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return wp.blocks.createBlock("stk-plugin/supplement2",{},[wp.blocks.createBlock("core/paragraph",{content:t})])}}],to:[{type:"block",blocks:["stk-plugin/cbox-notitle"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/cbox-notitle",e,t)},{type:"block",blocks:["stk-plugin/cbox"],transform:(e,t)=>wp.blocks.createBlock("stk-plugin/cbox",e,t)}]},edit:t=>{let{className:l}=t;return(0,e.createElement)("div",{className:me()("supplement",l)},(0,e.createElement)(Kt,{template:[["core/paragraph"]]}))},save:t=>{let{className:l}=t;return(0,e.createElement)("div",{className:me()("supplement",l)},(0,e.createElement)(Kt.Content,null))},deprecated:[{attributes:{content:{type:"array",source:"children",selector:"div.supplement"}},migrate:(e,t)=>[Xt(e,"content"),[createBlock("core/paragraph",{content:e.content,fontSize:"large"}),...t]],save:t=>(0,e.createElement)("div",{className:me()("supplement",t.className)},(0,e.createElement)("p",null,t.attributes.content))}]});const{__:Yt}=wp.i18n,{Component:el}=wp.element,{registerBlockType:tl}=wp.blocks,{RichText:ll,InnerBlocks:al}=wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,{withInstanceId:nl}=wp.compose;tl("stk-plugin/accordion",{title:Yt("アコーディオン"),icon:{foreground:"#1ab4d3",src:"plus-alt"},category:"common",keywords:[Yt("accordion"),Yt("open"),Yt("あこーでぃおん")],styles:[{name:"accordion_type_default",label:"サイトカラー",isDefault:!0},{name:"accordion_type_border",label:"ボーダー"},{name:"accordion_type_simple",label:"シンプル"}],example:{attributes:{accordiontitle:"Title"},innerBlocks:[{name:"core/paragraph",attributes:{content:Yt("Contents Text...")}}]},attributes:{accordiontitle:{type:"string"},labelID:{type:"string",default:""}},supports:{className:!1,typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},edit:class extends el{render(){const{attributes:t,setAttributes:l,clientId:a}=this.props,{accordiontitle:n,content:o,labelID:s}=t;return s!==a&&l({labelID:a}),[(0,e.createElement)("div",{className:me()("accordion",this.props.className)},(0,e.createElement)("div",{className:me()("accordion_label"),id:s},(0,e.createElement)(ll,{tagtitle:"div",placeholder:Yt("ここにタイトル"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:["core/italic","core/strikethrough"],onChange:e=>l({accordiontitle:e})})),(0,e.createElement)("div",{className:me()("accordion_content")},(0,e.createElement)(al,{template:[["core/paragraph"]]})))]}},save:t=>{const{content:l,labelID:a,accordiontitle:n}=t.attributes;return(0,e.createElement)("div",{className:me()("accordion")},(0,e.createElement)("input",{type:"checkbox",id:a,className:me()("accordion_check")}),(0,e.createElement)("label",{className:me()("accordion_label"),htmlFor:a},n&&!!n.length&&(0,e.createElement)(ll.Content,{value:n})),(0,e.createElement)("div",{className:me()("accordion_content")},(0,e.createElement)(al.Content,null)))}}),(0,Ct.registerBlockType)("stk-plugin/steps",{title:(0,wt.__)("ステップ"),icon:{foreground:"#1ab4d3",src:"editor-ol"},category:"common",keywords:[(0,wt.__)("step"),(0,wt.__)("すてっぷ"),(0,wt.__)("tl")],supports:{className:!1},attributes:{step_design:{type:"string",default:""},bg_color:{type:"string"},text_color:{type:"string"},labeltext:{type:"string",default:"STEP"},firstnum:{type:"string",default:1}},providesContext:{"stk-plugin/steplabeltext":"labeltext"},edit(t){let{attributes:l,setAttributes:a,className:n}=t;const{step_design:o,bg_color:s,text_color:r,labeltext:c,firstnum:i}=l,m={className:me()("stk_step",n,o),style:{"--label_color":r,"--label_bg":s,"--first_num":i-1+""}};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.InspectorControls,null,(0,e.createElement)(xt.PanelBody,{title:"ステップ設定",className:"basic_setting stk-icon"},(0,e.createElement)(xt.RadioControl,{label:(0,wt.__)("デザイン"),className:"radio-style-column-2 step-design-controle",options:[{value:"",label:(0,wt.__)("デフォルト")},{value:"is-style-step_design1",label:(0,wt.__)("デザイン1")},{value:"is-style-step_design2",label:(0,wt.__)("デザイン2")}],selected:o,onChange:e=>a({step_design:e})}),(0,e.createElement)(xt.TextControl,{label:(0,wt.__)("ラベル名"),placeholder:"入力例) STEP",value:c,type:"text",onChange:e=>{a({labeltext:e})}}),(0,e.createElement)(xt.TextControl,{label:(0,wt.__)("最初の数字"),placeholder:"1",help:(0,wt.__)("整数のみ可 ※小数点以下は切り捨て"),value:i,type:"number",onChange:e=>a({firstnum:e})})),(0,e.createElement)(Nt.PanelColorSettings,{title:(0,wt.__)("色の設定"),className:"basic_setting stk-icon",colorSettings:[{label:(0,wt.__)("ステップラベル文字色"),value:r,onChange:e=>a({text_color:e})},{label:(0,wt.__)("ステップラベル背景色"),value:s,onChange:e=>a({bg_color:e})}]})),(0,e.createElement)("div",m,(0,e.createElement)(Nt.InnerBlocks,{renderAppender:Nt.InnerBlocks.ButtonBlockAppender,template:[["stk-plugin/step",{}],["stk-plugin/step",{}]],allowedBlocks:["stk-plugin/step"]})))},save(t){const{step_design:l,bg_color:a,text_color:n,firstnum:o}=t.attributes,s={className:me()("stk_step",t.className,l),style:{"--label_color":n,"--label_bg":a,"--first_num":o-1+""}};return(0,e.createElement)("div",s,(0,e.createElement)(Nt.InnerBlocks.Content,null))}});const ol=[["core/paragraph",{placeholder:"ここにステップのテキストを書きます。"}]];(0,Ct.registerBlockType)("stk-plugin/step",{title:(0,wt.__)("ステップパーツ"),parent:["stk-plugin/steps"],icon:{foreground:"#1ab4d3",src:"excerpt-view"},category:"common",keywords:[(0,wt.__)("step"),(0,wt.__)("すてっぷ"),(0,wt.__)("たいむらいん")],supports:{className:!1},attributes:{labeltext:{type:"string",default:"STEP"}},usesContext:["stk-plugin/steplabeltext"],edit(t){let{attributes:l,setAttributes:a,context:n}=t;return a({labeltext:n["stk-plugin/steplabeltext"]}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"stk_step__child"},(0,e.createElement)("div",{className:"stk_step__label"},""!=n["stk-plugin/steplabeltext"]?(0,e.createElement)("span",{className:"__labeltext"},n["stk-plugin/steplabeltext"]):null),(0,e.createElement)("div",{className:me()("stk_step__content")},(0,e.createElement)(Nt.InnerBlocks,{template:ol}))))},save:t=>(0,e.createElement)("div",{className:"stk_step__child"},(0,e.createElement)("div",{className:"stk_step__label"},""!=t.attributes.labeltext?(0,e.createElement)("span",{className:"__labeltext"},t.attributes.labeltext):null),(0,e.createElement)("div",{className:me()("stk_step__content")},(0,e.createElement)(Nt.InnerBlocks.Content,null)))});const{__:sl}=wp.i18n;(0,Ct.registerBlockType)("stk-plugin/grids",{title:sl("グリッド"),icon:{foreground:"#1ab4d3",src:"grid-view"},category:"common",keywords:[sl("grid"),sl("ぐりっど")],supports:{align:["wide","full"],color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,className:!1},attributes:{gridgap_pc:{type:"integerg",default:"16"},gridgap_sp:{type:"integerg",default:"16"},gridcolumn_pc:{type:"integerg",default:"3"},gridcolumn_sp:{type:"integerg",default:"2"}},edit(t){let{attributes:l,setAttributes:a}=t;const{gridgap_pc:n,gridgap_sp:o,gridcolumn_pc:s,gridcolumn_sp:r}=l,c={className:"stk_grids",style:{"--gridgap_pc":n+"px","--gridgap_sp":o+"px","--gridcolumn_pc":s+"","--gridcolumn_sp":r+""}};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.InspectorControls,{key:"inspector"},(0,e.createElement)(xt.PanelBody,{title:"グリッド設定",className:"grid-controle intitle stk-icon"},(0,e.createElement)("p",null,(0,e.createElement)(xt.Dashicon,{icon:"desktop"})," PC設定"),(0,e.createElement)(xt.RangeControl,{label:"グリッド同士の余白(初期値16px)",className:"grid-controle__gap",value:n,min:0,max:100,initialPosition:16,onChange:e=>a({gridgap_pc:e})}),(0,e.createElement)(xt.RangeControl,{label:"カラム数(初期値3)",className:"grid-controle__column_pc",value:s,min:1,max:12,initialPosition:3,onChange:e=>a({gridcolumn_pc:e})}),(0,e.createElement)("hr",null),(0,e.createElement)("p",null,(0,e.createElement)(xt.Dashicon,{icon:"smartphone"})," モバイル設定"),(0,e.createElement)(xt.RangeControl,{label:"グリッド同士の余白(初期値16px)",className:"grid-controle__gap",value:o,min:0,max:100,initialPosition:16,onChange:e=>a({gridgap_sp:e})}),(0,e.createElement)(xt.RangeControl,{label:"カラム数(初期値2)",className:"grid-controle__column_sp",value:r,min:1,max:6,initialPosition:2,onChange:e=>a({gridcolumn_sp:e})}))),(0,e.createElement)("div",c,(0,e.createElement)(Nt.InnerBlocks,{template:[["stk-plugin/grid",{}],["stk-plugin/grid",{}],["stk-plugin/grid",{}]],allowedBlocks:["stk-plugin/grid"],orientation:"horizontal",renderAppender:Nt.InnerBlocks.DefaultBlockAppender})))},save(t){let{attributes:l}=t;const{gridgap_pc:a,gridgap_sp:n,gridcolumn_pc:o,gridcolumn_sp:s}=l,r={"--gridgap_pc":a+"px","--gridgap_sp":n+"px","--gridcolumn_pc":o+"","--gridcolumn_sp":s+""},c=Nt.useBlockProps.save({className:"stk_grids",style:r});return(0,e.createElement)("div",c,(0,e.createElement)(Nt.InnerBlocks.Content,null))}});const{__:rl}=wp.i18n,cl=[["core/paragraph"]];(0,Ct.registerBlockType)("stk-plugin/grid",{title:rl("グリッドパーツ"),parent:["stk-plugin/grids"],icon:{foreground:"#1ab4d3",src:"format-aside"},category:"common",keywords:[rl("grid"),rl("ぐりっど")],supports:{className:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1},edit:()=>(0,e.createElement)("div",{className:"stk_grid__child"},(0,e.createElement)(Nt.InnerBlocks,{template:cl})),save(){const t=Nt.useBlockProps.save({className:"stk_grid__child"});return(0,e.createElement)("div",t,(0,e.createElement)(Nt.InnerBlocks.Content,null))}}),l(762);const{__:il}=wp.i18n;(0,Ct.registerBlockVariation)("core/paragraph",{name:"icons_circle",title:"アイコン_サークル",description:il("FontAwesomeアイコンをあらかじめ含んだ段落ブロック"),keywords:["icon","circle","stk"],icon:{foreground:"#1ab4d3",src:"flag"},attributes:{align:"center",content:'<i class="fas fa-flag stk_icons-circle"></i> <br>Text here...'}}),(0,Ct.registerBlockVariation)("core/paragraph",{name:"icons_circle__bg_dark",title:"アイコン_サークル(暗)",description:il("FontAwesomeアイコンをあらかじめ含んだ段落ブロック"),keywords:["icon","circle","stk"],icon:{foreground:"#1ab4d3",src:"flag"},attributes:{align:"center",content:'<i class="fas fa-flag stk_icons-circle --bg_dark"></i> <br>Text here...'}}),(0,Ct.registerBlockVariation)("core/paragraph",{name:"icons_circle_shadow",title:"アイコン_サークル(影)",description:il("FontAwesomeアイコンをあらかじめ含んだ段落ブロック"),keywords:["icon","circle","stk"],icon:{foreground:"#1ab4d3",src:"flag"},attributes:{align:"center",content:'<i class="fas fa-flag stk_icons-circle_shadow"></i> <br>Text here...'}}),(0,Ct.registerBlockVariation)("core/paragraph",{name:"icons_circle_shadow__bg_dark",title:"アイコン_サークル(影,暗)",description:il("FontAwesomeアイコンをあらかじめ含んだ段落ブロック"),keywords:["icon","circle","stk"],icon:{foreground:"#1ab4d3",src:"flag"},attributes:{align:"center",content:'<i class="fas fa-flag stk_icons-circle_shadow --bg_dark"></i> <br>Text here...'}}),l(833);const{__:ml}=wp.i18n;(0,Ct.registerBlockVariation)("core/group",{name:"full",title:"フルワイドセクション(見出し付)",description:ml("画面幅いっぱいのフルワイドブロックを利用できます。"),keywords:["wide","full","section","stk"],icon:{foreground:"#1ab4d3",src:"align-full-width"},attributes:{align:"full",backgroundColor:void 0,style:{color:{background:"#fafafa"}}},innerBlocks:[["core/heading",{textAlign:"center",className:"is-style-style__section_ttl__border_under"}],["core/paragraph"]]}),(0,Ct.registerBlockVariation)("core/group",{name:"full_ttlcolor",title:"フルワイドセクション(見出し付、背景見出し色)",description:ml("画面幅いっぱいのフルワイドブロックを利用できます。"),keywords:["wide","full","section","stk"],icon:{foreground:"#1ab4d3",src:"align-full-width"},attributes:{align:"full",backgroundColor:"mainttlbg",textColor:"mainttltext"},innerBlocks:[["core/heading",{textAlign:"center",className:"is-style-style__section_ttl__border_under"}],["core/paragraph"]]}),l(807),l(21);var pl=window.lodash,ul=window.wp.data,dl=window.wp.keycodes,bl=window.wp.deprecated,gl=window.wp.richText;function kl(e,t){if("string"==typeof(t={name:e,...t}).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if((0,ul.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^([_a-zA-Z]+[a-zA-Z0-9-]*)(\s+[_a-zA-Z]+[a-zA-Z0-9-]*)*$/.test(t.className)){if(null===t.className){const e=(0,ul.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(e)return void window.console.error(`Format "${e.name}" is already registered to handle bare tag name "${t.tagName}".`)}else{const e=(0,ul.select)("core/rich-text").getFormatTypeForClassName(t.className);if(e)return void window.console.error(`Format "${e.name}" is already registered to handle class name "${t.className}".`)}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return(0,ul.dispatch)("core/rich-text").addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function _l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={...e,...t};return t.className&&e.className&&(l.className=me()(t.className,e.className)),l}function vl(t){let l,{children:a,className:n,controls:o,icon:s="menu",label:r,popoverProps:c,toggleProps:i,menuProps:m,disableOpenOnArrowDown:p=!1,menuLabel:u,position:d,noIcons:b}=t;if(u&&(0,bl.deprecated)("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),d&&(0,bl.deprecated)("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),(0,pl.isEmpty)(o)&&!(0,pl.isFunction)(a))return null;(0,pl.isEmpty)(o)||(l=o,Array.isArray(l[0])||(l=[l]));const g=_l({className:"components-dropdown-menu__popover",position:d},c);let k=!0;return l.map(((e,t)=>k=_.every(e,(function(e){return 0==e.isActive})))),(0,e.createElement)(xt.Dropdown,{className:me()("components-dropdown-menu",n),popoverProps:g,renderToggle:t=>{let{isOpen:l,onToggle:a}=t;const n=_l({className:me()("components-dropdown-menu__toggle",{"is-opened":l})},i);return(0,e.createElement)(xt.Button,It({},n,{className:me()(["components-icon-button components-toolbar__control"],{"is-pressed":!k}),icon:s,onClick:e=>{a(e),n.onClick&&n.onClick(e)},onKeyDown:e=>{(e=>{p||l||e.keyCode!==dl.DOWN||(e.preventDefault(),e.stopPropagation(),a())})(e),n.onKeyDown&&n.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":l,label:r,showTooltip:!0}),n.children)},renderContent:t=>{const n=_l({"aria-label":u||r,className:me()("components-dropdown-menu__menu",{"no-icons":b})},m);return(0,e.createElement)(xt.NavigableMenu,It({},n,{role:"menu"}),(0,pl.isFunction)(a)?a(t):null,(0,pl.flatMap)(l,((l,a)=>l.map(((l,n)=>(0,e.createElement)(xt.Button,{key:[a,n].join(),onClick:e=>{e.stopPropagation(),t.onClose(),l.onClick&&l.onClick()},className:me()("components-dropdown-menu__menu-item",{"has-separator":a>0&&0===n,"is-active":l.isActive}),icon:l.icon,"aria-checked":"menuitemcheckbox"===l.role||"menuitemradio"===l.role?l.isActive:void 0,role:"menuitemcheckbox"===l.role||"menuitemradio"===l.role?l.role:"menuitem",disabled:l.isDisabled},(0,e.createElement)("span",{className:`dropdown-item-title ${l.formatClass}`},l.title)))))))}})}function hl(t){let l,{name:a,shortcutType:n,shortcutCharacter:o,...s}=t,r="MyRichText.ToolbarControls";return a&&(r+=`.${a}`),n&&o&&(l=dl.displayShortcut[n](o)),(0,e.createElement)(xt.Fill,{name:r},(0,e.createElement)(xt.ToolbarButton,It({},s,{shortcut:l})))}const yl=t=>{const{formatTypeName:l,slotName:a,toolbarClass:n,toolbarIcon:o,toolbarLabel:s,dropdownPosition:r,childButtons:c}=t;l&&c&&(kl(l,{title:"buttons",tagName:"dropdown",className:n?`stk-toolbar-controls-${n}`:null,edit(t){let{isActive:l,value:n,onChange:c}=t;return(0,e.createElement)(Nt.BlockFormatControls,null,(0,e.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar stk-components-toolbar"},(0,e.createElement)(xt.ToolbarGroup,null,(0,e.createElement)(xt.Slot,{name:`MyRichText.ToolbarControls.${a}`},(t=>0!==t.length&&(0,e.createElement)(vl,{icon:o||"admin-customizer",label:s,hasArrowIndicator:!0,popoverProps:{position:r},controls:t.map((e=>{let[{props:t}]=e;return t}))}))))))}}),c.map((t=>{let l="stk-toolbar/richtext-"+t.tag;null!==t.class&&(l+="-"+t.class.replace(/\s/,"-")),kl(l,{title:t.title,tagName:t.tag,className:t.class,edit(n){let{isActive:o,value:s,onChange:r}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(hl,{name:a,icon:t.icon?t.icon:null,title:t.title,formatClass:t.class,isActive:o,onClick:()=>r((0,gl.toggleFormat)(s,{type:l}))}))}})})))},fl=(0,e.createElement)("svg",{viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M86.88,25.06a8,8,0,0,1,2.24,5.25,6.94,6.94,0,0,1-2,5.25L63.37,63.4,39.72,39.75,67.57,16a6.93,6.93,0,0,1,5.25-2,8,8,0,0,1,5.24,2.24ZM30.49,47.59l5.74-4.9L60.43,66.9l-4.9,5.88a4.8,4.8,0,0,1-5.31,1.4l-6-1.82-7.13,7.13L23.63,66.06l7.14-7.14-1.82-6a4.06,4.06,0,0,1-.28-1.54A4.79,4.79,0,0,1,30.49,47.59ZM13,81.17l9.51-9.79,9.38,9.37L27,85.65Z"})),El=[];El.push({tag:"span",class:"span-stk-maker-yellow",title:(0,wt.__)("マーカー(イエロー)","create-block")}),El.push({tag:"span",class:"span-stk-maker-pink",title:(0,wt.__)("マーカー(ピンク)","create-block")}),El.push({tag:"span",class:"span-stk-maker-blue",title:(0,wt.__)("マーカー(ブルー)","create-block")}),El.push({tag:"span",class:"span-stk-maker-green",title:(0,wt.__)("マーカー(グリーン)","create-block")}),yl({formatTypeName:"stork19-editor/custom-format-maker",slotName:"Maker",toolbarClass:"maker",toolbarIcon:fl,toolbarLabel:(0,wt.__)("マーカー"),dropdownPosition:"bottom center",childButtons:El});const wl=(0,e.createElement)("svg",{viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M94,10.52H6a6,6,0,0,0-6,6V85.47a6,6,0,0,0,6,6H94a6,6,0,0,0,6-6V16.53A6,6,0,0,0,94,10.52ZM78.63,45.67a7.12,7.12,0,0,1-2.41,5L49.41,77.46a7.11,7.11,0,0,1-10.11,0L23.48,61.64a6.69,6.69,0,0,1-2.11-5,6.88,6.88,0,0,1,2.11-5L50.29,24.87a7,7,0,0,1,5.07-2.44H71.51a7.1,7.1,0,0,1,7.12,7.12ZM62.57,31.85a6.45,6.45,0,0,0-4.74,2,6.58,6.58,0,0,0,0,9.37,6.48,6.48,0,0,0,4.74,2,6.65,6.65,0,0,0,4.7-11.34A6.44,6.44,0,0,0,62.57,31.85Z"})),Cl=[];Cl.push({tag:"span",class:"span-stk-label-sitecolor",title:(0,wt.__)("ラベル(サイトカラー)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-yellow",title:(0,wt.__)("ラベル(イエロー)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-pink",title:(0,wt.__)("ラベル(ピンク)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-red",title:(0,wt.__)("ラベル(レッド)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-blue",title:(0,wt.__)("ラベル(ブルー)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-green",title:(0,wt.__)("ラベル(グリーン)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-gray",title:(0,wt.__)("ラベル(グレー)","create-block")}),Cl.push({tag:"span",class:"span-stk-label-black",title:(0,wt.__)("ラベル(ブラック)","create-block")}),yl({formatTypeName:"stork19-editor/custom-format-label",slotName:"Label",toolbarClass:"label",toolbarIcon:wl,toolbarLabel:(0,wt.__)("ラベル"),dropdownPosition:"bottom center",childButtons:Cl});const Nl=(0,e.createElement)("svg",{viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M39.71,51.8a1.19,1.19,0,0,1,.9.36,1.21,1.21,0,0,1,.36.9V60.6a1.21,1.21,0,0,1-1.26,1.26H37.2a1.2,1.2,0,0,1-1.26-1.26V58.09h-4.4V82h3.14a1.21,1.21,0,0,1,1.26,1.26v2.51A1.2,1.2,0,0,1,34.68,87H22.11a1.25,1.25,0,0,1-.9-.35,1.22,1.22,0,0,1-.35-.91V83.23a1.18,1.18,0,0,1,.35-.9,1.22,1.22,0,0,1,.9-.36h3.15V58.09h-4.4V60.6a1.21,1.21,0,0,1-1.26,1.26H17.09a1.2,1.2,0,0,1-1.26-1.26V53.06a1.21,1.21,0,0,1,1.26-1.26Z"}),(0,e.createElement)("path",{d:"M89.18,22a2.78,2.78,0,0,1,2,.73A2.42,2.42,0,0,1,92,24.59V40.11A2.42,2.42,0,0,1,91.17,42a2.78,2.78,0,0,1-2,.73H83.66a2.74,2.74,0,0,1-2-.73,2.42,2.42,0,0,1-.78-1.86V34.94H71.23V76.65h6.91a2.77,2.77,0,0,1,2,.73,2.42,2.42,0,0,1,.78,1.86v5.17a2.42,2.42,0,0,1-.78,1.86,2.77,2.77,0,0,1-2,.73H50.52a2.78,2.78,0,0,1-2-.73,2.41,2.41,0,0,1-.77-1.86V79.24a2.41,2.41,0,0,1,.77-1.86,2.78,2.78,0,0,1,2-.73h6.9V34.94H47.76v5.17A2.42,2.42,0,0,1,47,42a2.78,2.78,0,0,1-2,.73H39.47a2.78,2.78,0,0,1-2-.73,2.44,2.44,0,0,1-.77-1.86V24.59a2.44,2.44,0,0,1,.77-1.86,2.78,2.78,0,0,1,2-.73Z"}),(0,e.createElement)("polygon",{points:"23.71 2.5 23.71 7.5 30.96 7.5 8.5 29.96 8.5 22.71 3.5 22.71 3.5 38.5 19.29 38.5 19.29 33.5 12.04 33.5 34.5 11.04 34.5 18.29 39.5 18.29 39.5 2.5 23.71 2.5"})),xl=[];var Bl,Il,Tl;xl.push({tag:"span",class:"span-stk-fs-ss",title:(0,wt.__)("フォントサイズ 70%","create-block")}),xl.push({tag:"span",class:"span-stk-fs-s",title:(0,wt.__)("フォントサイズ 90%","create-block")}),xl.push({tag:"span",class:"span-stk-fs-m",title:(0,wt.__)("フォントサイズ 120%","create-block")}),xl.push({tag:"span",class:"span-stk-fs-l",title:(0,wt.__)("フォントサイズ 150%","create-block")}),xl.push({tag:"span",class:"span-stk-fs-ll",title:(0,wt.__)("フォントサイズ 180%","create-block")}),xl.push({tag:"span",class:"span-stk-fs-sub",title:(0,wt.__)("固定フォントサイズ 小","create-block")}),xl.push({tag:"span",class:"span-stk-fs-large",title:(0,wt.__)("固定フォントサイズ 大","create-block")}),yl({formatTypeName:"stork19-editor/custom-format-font-size",slotName:"fontSize",toolbarClass:"font-size",toolbarIcon:Nl,toolbarLabel:(0,wt.__)("フォントサイズ"),dropdownPosition:"bottom center",childButtons:xl}),(0,gl.registerFormatType)("stk-plugin/rt",{title:(0,wt.__)("Ruby Character","stk-plugin"),tagName:"rt",className:null,edit(t){let{isActive:l,value:a,onChange:n}=t;return(0,e.createElement)(e.Fragment,null)}}),(0,gl.registerFormatType)("stk-plugin/ruby",{title:(0,wt.__)("Ruby","stk-plugin"),tagName:"ruby",className:null,edit(t){let{isActive:l,value:a,onChange:n}=t;const o=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M39.7,7.3c0,0.2-0.2,0.4-0.4,0.5c-1.5,0.9-3.1,2.4-4.4,3.6c-0.2,0.2-0.3,0.4-0.3,0.6c0,0.4,0.4,0.8,0.8,0.8 c0.1,0,0.3,0,0.4,0c0.5,0,1.8,0.2,2.5,0.4c3.9,1.2,6.3,4.3,6.3,8.4c0,6.9-5.9,10.3-12.2,10.3c-3.4,0-8-1.4-8-5.5c0-2.9,2.6-5,5.4-5 c1.9,0,3.7,0.9,4.9,2.3c0.5,0.7,0.6,1,1,1.8c0.1,0.4,0.5,0.7,0.9,0.7c0.9,0,2.6-1.8,2.6-4.2c0-3.1-2.5-4.4-5.3-4.4 c-2.6,0-5,1-6.9,2.8c-1.3,1.2-3.3,3.2-4.4,4.5c-0.5,0.6-0.8,0.9-0.9,0.9c-0.8,0-3.6-3-3.6-3.6c0-0.4,0.4-0.8,1.1-1.3 c0.9-0.7,6.9-6.7,8.1-7.9c0.7-0.7,1.2-1.3,1.8-2c0.3-0.3,0.5-0.5,0.5-0.8c0-0.4-0.6-0.5-0.7-0.5c-0.1,0-4,0.7-5,0.9 c-0.1,0-0.3,0-0.4,0c-0.8,0-1-4.1-1-4.8V5.4c0-0.5,0.1-0.5,1.2-0.5h0.8c2.3,0,7.5-0.4,9.5-1.3C34.7,3.2,35.1,3,35.4,3 C36.9,3,39.7,6.5,39.7,7.3z M29.9,25.4c-0.6,0-1.2,0.3-1.2,1c0,1,1.2,1.4,2.1,1.4c0.5,0,0.9-0.3,0.9-0.8 C31.7,26.6,31.1,25.4,29.9,25.4z"}),(0,e.createElement)("path",{d:"M68.6,7c0,0.4-0.4,0.7-0.6,0.9c-3.7,3.4-7.5,9-7.5,14.2c0,2.7,1.1,4.6,4,4.6c2.1,0,4.1-1,5.3-2.7c1.8-2.5,2.2-6.5,2.2-9.5 c0-3.3-0.4-5.8-1.6-8.9c-0.1-0.2-0.1-0.5-0.1-0.7c0-1.1,3.5-1.8,4.4-1.8c1.1,0,1.2,0.5,1.4,1.6c0.6,3.9,3,7.5,5.3,10.4 c0.4,0.6,0.8,1,0.8,1.4c0,0.5-0.7,1-1.4,1.5c-0.5,0.3-1.9,1.3-2.4,1.3c-0.5,0-0.9-0.6-1.1-1c-0.1-0.3-0.3-0.4-0.5-0.4 c-0.4,0-0.4,0.4-0.4,0.9c-0.1,2.4-0.5,5.1-1.6,7.2c-2,3.7-5.7,6-9.9,6c-5.7,0-9.3-3.9-9.3-9.5c0-2.9,0.8-5.7,2.1-8.2 c0.1-0.1,0.1-0.3,0.1-0.4c0-0.1-0.1-0.3-0.3-0.3c-0.2,0-0.4,0.1-0.5,0.2c-0.2,0.1-0.5,0.2-0.7,0.2c-0.4,0-0.7-0.5-0.9-0.9 c-0.5-0.9-1.4-3.2-1.4-4.2c0-0.6,0.4-0.6,1.5-0.8c1.9-0.2,3.5-0.4,5.2-0.9c1.5-0.5,2.2-1.2,3-2.6c0.3-0.4,0.6-1,1.2-1 C65.9,3.6,68.6,6,68.6,7z M82.6,8.2c0,0.7-1.9,1.8-2.3,1.8c-0.1,0-0.4-0.3-0.9-1.1c-0.4-0.6-1-1.5-1.8-2.5 c-0.2-0.3-0.3-0.4-0.3-0.6c0-0.5,2.1-1.5,2.4-1.5C80,4.2,82.6,7.7,82.6,8.2z M84.6,3.1c0.3,0.4,1.3,1.7,1.3,2.1 c0,0.7-1.9,1.8-2.3,1.8c-0.2,0-0.3-0.2-0.4-0.4c-0.9-1.4-1.4-2-2.4-3.3c-0.1-0.1-0.2-0.3-0.2-0.4c0-0.6,2.1-1.6,2.4-1.6 C83.3,1.3,84.4,2.7,84.6,3.1z"})),(0,e.createElement)("path",{d:"M72.5,35c0.7,0,1.3,0.2,1.8,0.6c0.5,0.4,0.7,1,0.7,1.7v13.9c0,0.7-0.2,1.2-0.7,1.7c-0.5,0.4-1.1,0.6-1.8,0.6h-4.9 c-0.7,0-1.3-0.2-1.8-0.6c-0.5-0.4-0.7-1-0.7-1.7v-4.6h-8.6v37.2h6.2c0.7,0,1.3,0.2,1.8,0.6c0.5,0.4,0.7,1,0.7,1.7v4.6 c0,0.7-0.2,1.2-0.7,1.7C64,92.8,63.4,93,62.6,93H38c-0.7,0-1.3-0.2-1.8-0.6c-0.5-0.4-0.7-1-0.7-1.7v-4.6c0-0.7,0.2-1.2,0.7-1.7 c0.5-0.4,1.1-0.6,1.8-0.6h6.2V46.5h-8.6v4.6c0,0.7-0.2,1.2-0.7,1.7c-0.5,0.4-1.1,0.6-1.8,0.6h-4.9c-0.7,0-1.3-0.2-1.8-0.6 c-0.5-0.4-0.7-1-0.7-1.7V37.3c0-0.7,0.2-1.2,0.7-1.7c0.5-0.4,1.1-0.6,1.8-0.6H72.5z"}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.RichTextToolbarButton,{icon:o,title:(0,wt.__)("ふりがな(ルビ)","stk-plugin"),onClick:()=>{let e="";if(l)a=(0,gl.toggleFormat)(a,{type:"stk-plugin/ruby"});else{e=window.prompt((0,wt.__)("ふりがなを入力...","stk-plugin"))||a.text.substring(a.start,a.end);const t=a.end,l=a.start;a=(0,gl.insert)(a,e,t),a.start=l,a.end=t+e.length,a=(0,gl.applyFormat)(a,{type:"stk-plugin/ruby"},l,t+e.length),a=(0,gl.applyFormat)(a,{type:"stk-plugin/rt"},t,t+e.length)}return n(a)},isActive:l}))}}),Bl=window.wp.richText,Il=window.wp.element,Tl=window.wp.blockEditor,Bl.registerFormatType("stk-plugin/stk-googlefont1",{title:"stk-plugin",tagName:"span",className:"gf",edit:function(t){return Il.createElement(Tl.RichTextToolbarButton,{icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M70.54,71a8.72,8.72,0,0,1-.12,1.34,3.4,3.4,0,0,1-.57,1.44,3.72,3.72,0,0,1-1.35,1.17,5,5,0,0,1-2.4.49,6.28,6.28,0,0,1-2.66-.47A3.88,3.88,0,0,1,62,73.79a3.6,3.6,0,0,1-.66-1.44A6.43,6.43,0,0,1,61.13,71V68.31a17.08,17.08,0,0,1-5.43,5.13,15.7,15.7,0,0,1-8.14,2c-.57,0-1.44,0-2.62-.13a23.28,23.28,0,0,1-4-.71,24.37,24.37,0,0,1-4.57-1.73,14.57,14.57,0,0,1-4.28-3.22,16.37,16.37,0,0,1-3.18-5.14A20.37,20.37,0,0,1,27.68,57V32.11a21.3,21.3,0,0,1,.89-6.43,18,18,0,0,1,2.33-4.86,15.14,15.14,0,0,1,3.3-3.46A23,23,0,0,1,38,15a27.57,27.57,0,0,1,10.33-2.44,28.06,28.06,0,0,1,8.43,1.11,20.48,20.48,0,0,1,5.95,2.89,15.4,15.4,0,0,1,3.9,4,20.3,20.3,0,0,1,2.26,4.55,20.83,20.83,0,0,1,1,4.43,33.58,33.58,0,0,1,.24,3.69,15.48,15.48,0,0,1-.11,1.62,3.54,3.54,0,0,1-.78,1.81,5,5,0,0,1-2.1,1.47,11.08,11.08,0,0,1-4.11.6c-.62,0-1.38,0-2.28-.11a10.3,10.3,0,0,1-2.6-.56,5.82,5.82,0,0,1-2.13-1.31,3.14,3.14,0,0,1-.88-2.37,28.81,28.81,0,0,0-.29-4.28,9.39,9.39,0,0,0-1-3.22,5.08,5.08,0,0,0-2.09-2,7.54,7.54,0,0,0-3.42-.68A5.46,5.46,0,0,0,45,25.1a5.64,5.64,0,0,0-1.71,2,7,7,0,0,0-.71,2.83v28.4A7,7,0,0,0,43.1,61a6.54,6.54,0,0,0,1.44,2.17,6.85,6.85,0,0,0,2.2,1.47,7.12,7.12,0,0,0,2.77.53,6.63,6.63,0,0,0,3.21-.78,9.17,9.17,0,0,0,2.6-2.08,16.47,16.47,0,0,0,2.06-3A28.51,28.51,0,0,0,59,55.8H54.74a6,6,0,0,1-2.26-.66,4.58,4.58,0,0,1-1.57-1.33,3.91,3.91,0,0,1-.69-2.44,4.24,4.24,0,0,1,.69-2.6,4.44,4.44,0,0,1,1.57-1.35,5.83,5.83,0,0,1,2.26-.58H66.28a7.88,7.88,0,0,1,1,.11,3.44,3.44,0,0,1,1.42.65A4.59,4.59,0,0,1,70,49.17a6.27,6.27,0,0,1,.56,2.91Z"}),(0,e.createElement)("path",{d:"M37.93,79.9a5.63,5.63,0,0,1,.58,0,1.78,1.78,0,0,1,.54.14.94.94,0,0,1,.39.32,1,1,0,0,1,.15.58,1,1,0,0,1-.15.59.94.94,0,0,1-.39.32,1.78,1.78,0,0,1-.54.14,5.63,5.63,0,0,1-.58,0H36.2v1.88h.91a5.63,5.63,0,0,1,.58,0,1.53,1.53,0,0,1,.54.12,1,1,0,0,1,.4.32,1.06,1.06,0,0,1,.15.61,1.08,1.08,0,0,1-.15.61.94.94,0,0,1-.39.32,2.14,2.14,0,0,1-.54.12l-.59,0H36.2v2.31c0,.21,0,.42,0,.61a1.53,1.53,0,0,1-.12.54.84.84,0,0,1-.33.37,1.13,1.13,0,0,1-.63.15,1.14,1.14,0,0,1-.64-.15.84.84,0,0,1-.33-.37A2.14,2.14,0,0,1,34,89c0-.19,0-.4,0-.61V81.57c0-.21,0-.41,0-.61a2,2,0,0,1,.12-.53.81.81,0,0,1,.33-.38,1.14,1.14,0,0,1,.64-.15Z"}),(0,e.createElement)("path",{d:"M40.54,82.77a3.16,3.16,0,0,1,.2-1.18,2.68,2.68,0,0,1,.52-.82,2.29,2.29,0,0,1,.7-.51A4,4,0,0,1,42.7,80a3.31,3.31,0,0,1,.64-.11l.43,0H44l.43,0a3.31,3.31,0,0,1,.64.11,4,4,0,0,1,.74.28,2.37,2.37,0,0,1,.69.51,2.86,2.86,0,0,1,.51.82,3.17,3.17,0,0,1,.19,1.18v4.34A3.36,3.36,0,0,1,47,88.33a2.92,2.92,0,0,1-.51.83,2.45,2.45,0,0,1-.69.53,4,4,0,0,1-.74.29,3.31,3.31,0,0,1-.64.11,4,4,0,0,1-.43,0h-.25a4,4,0,0,1-.43,0A3.31,3.31,0,0,1,42.7,90a4,4,0,0,1-.74-.29,2.36,2.36,0,0,1-.7-.53,2.73,2.73,0,0,1-.52-.83,3.35,3.35,0,0,1-.2-1.22ZM43,87.39a1.16,1.16,0,0,0,.12.47.88.88,0,0,0,.29.32.85.85,0,0,0,.54.15.87.87,0,0,0,.54-.15.84.84,0,0,0,.28-.32,1.36,1.36,0,0,0,.13-.47V82.66a1.36,1.36,0,0,0-.13-.47,1,1,0,0,0-.28-.33.87.87,0,0,0-.54-.15.85.85,0,0,0-.54.15,1,1,0,0,0-.29.33,1.16,1.16,0,0,0-.12.47Z"}),(0,e.createElement)("path",{d:"M54.61,87.05h.17V81a3.15,3.15,0,0,1,0-.44.82.82,0,0,1,.13-.35.6.6,0,0,1,.29-.25,1.25,1.25,0,0,1,.52-.09,1.55,1.55,0,0,1,.59.09.68.68,0,0,1,.32.25.83.83,0,0,1,.14.35,3.15,3.15,0,0,1,0,.44v7.36c0,.21,0,.42,0,.61a1.53,1.53,0,0,1-.12.54.8.8,0,0,1-.31.37,1.13,1.13,0,0,1-.63.15h-1a1.09,1.09,0,0,1-.57-.14,1.35,1.35,0,0,1-.38-.33,2.06,2.06,0,0,1-.25-.4c-.06-.14-.1-.26-.14-.35L51.27,82.9H51.1v6a2.94,2.94,0,0,1,0,.44.82.82,0,0,1-.13.36.64.64,0,0,1-.29.24,1.09,1.09,0,0,1-.52.1,1.44,1.44,0,0,1-.6-.1.73.73,0,0,1-.32-.24.72.72,0,0,1-.14-.36,2.94,2.94,0,0,1,0-.44V81.57c0-.21,0-.41,0-.61a1.53,1.53,0,0,1,.12-.54A.79.79,0,0,1,49.5,80a1.23,1.23,0,0,1,.63-.14h.95a1.12,1.12,0,0,1,.59.14,1.76,1.76,0,0,1,.38.31,1.63,1.63,0,0,1,.25.45Z"}),(0,e.createElement)("path",{d:"M63.24,79.9l.58,0a1.78,1.78,0,0,1,.54.13.89.89,0,0,1,.39.3,1.06,1.06,0,0,1,.14.58,1,1,0,0,1-.14.57.92.92,0,0,1-.39.31,1.78,1.78,0,0,1-.54.13l-.58,0H62.5V88.4c0,.21,0,.41,0,.61a1.42,1.42,0,0,1-.12.53.77.77,0,0,1-.32.37,1.17,1.17,0,0,1-.64.15,1.14,1.14,0,0,1-.64-.15.79.79,0,0,1-.33-.37,2,2,0,0,1-.12-.53c0-.2,0-.4,0-.61V82h-.73l-.59,0a1.79,1.79,0,0,1-.53-.13.92.92,0,0,1-.39-.31,1,1,0,0,1-.15-.57,1,1,0,0,1,.15-.58.89.89,0,0,1,.39-.3,1.79,1.79,0,0,1,.53-.13l.59,0Z"})),title:"Googleフォントを適用",onClick:function(){t.onChange(Bl.toggleFormat(t.value,{type:"stk-plugin/stk-googlefont1"}))},isActive:t.isActive})}}),Bl.registerFormatType("stk-plugin/stk-classbold",{title:"stk-plugin",tagName:"span",className:"bold",edit:function(t){return Il.createElement(Tl.RichTextToolbarButton,{icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},(0,e.createElement)("path",{d:"M49.91,14a26.31,26.31,0,0,1,7.43,1A17.85,17.85,0,0,1,63.42,18a14.39,14.39,0,0,1,4.08,5.08A15.94,15.94,0,0,1,69,30.19,12.21,12.21,0,0,1,68.43,34,13.6,13.6,0,0,1,67,37.06a12.89,12.89,0,0,1-1.9,2.4,21.45,21.45,0,0,1-2,1.75,15.56,15.56,0,0,1-1.73,1.15,6.39,6.39,0,0,1-1.07.51,16.77,16.77,0,0,1,4.48,1.93,14,14,0,0,1,3,2.58,12.3,12.3,0,0,1,1.91,2.88,15.11,15.11,0,0,1,1,2.88,15.5,15.5,0,0,1,.4,2.58c0,.78.07,1.41.07,1.88a20.11,20.11,0,0,1-.85,6.1,16.33,16.33,0,0,1-2.22,4.57A14.69,14.69,0,0,1,65,71.55a18.86,18.86,0,0,1-3.59,2.2,25.9,25.9,0,0,1-9.8,2.31H37.05a7.33,7.33,0,0,1-3.91-.87,5.06,5.06,0,0,1-2-2.31,9.63,9.63,0,0,1-.74-3.26c-.07-1.21-.11-2.47-.11-3.77V24.06c0-1.27,0-2.51.11-3.72a9.4,9.4,0,0,1,.74-3.24,5.06,5.06,0,0,1,2-2.29A7.43,7.43,0,0,1,37.05,14ZM43.79,24.42V39.5h5.68a7.87,7.87,0,0,0,3.41-.89,5.71,5.71,0,0,0,1.25-.84,6.11,6.11,0,0,0,1.1-1.26A5.93,5.93,0,0,0,56,34.75a8.73,8.73,0,0,0,.29-2.35A10,10,0,0,0,56,29.76a7.58,7.58,0,0,0-.82-2A6.46,6.46,0,0,0,54,26.41a8.12,8.12,0,0,0-1.3-1,9.53,9.53,0,0,0-3.6-1Zm0,24.49V65.59h6.48a8.48,8.48,0,0,0,3.72-1,7.27,7.27,0,0,0,1.38-.93,6.65,6.65,0,0,0,1.2-1.44,8.07,8.07,0,0,0,.84-2,9.86,9.86,0,0,0,.31-2.64,11,11,0,0,0-.33-2.86,8.63,8.63,0,0,0-.89-2.13,6.75,6.75,0,0,0-1.27-1.55A8,8,0,0,0,53.82,50a9.76,9.76,0,0,0-3.91-1.1Z"}),(0,e.createElement)("path",{d:"M41,79.84a4.71,4.71,0,0,1,1.38.18,3.51,3.51,0,0,1,1,.48,2.58,2.58,0,0,1,.63.65,3.48,3.48,0,0,1,.37.75,4.14,4.14,0,0,1,.17.72c0,.23,0,.43,0,.6s0,.16,0,.27a.66.66,0,0,1-.13.3.84.84,0,0,1-.34.25,1.93,1.93,0,0,1-.67.1l-.37,0a1.29,1.29,0,0,1-.42-.1,1.13,1.13,0,0,1-.35-.21.57.57,0,0,1-.14-.4,4.9,4.9,0,0,0-.05-.7,1.5,1.5,0,0,0-.17-.53.8.8,0,0,0-.34-.34,1.27,1.27,0,0,0-.56-.11.83.83,0,0,0-.82.47,1.21,1.21,0,0,0-.12.47v4.6a1.59,1.59,0,0,0,.12.56,1,1,0,0,0,.27.38.79.79,0,0,0,.55.18.93.93,0,0,0,.9-.52,1.84,1.84,0,0,0,.17-.56,4.4,4.4,0,0,0,.05-.65.57.57,0,0,1,0-.22.46.46,0,0,1,.16-.22,1.2,1.2,0,0,1,.39-.16,3.05,3.05,0,0,1,.69-.07,1.93,1.93,0,0,1,.67.1.92.92,0,0,1,.34.23.48.48,0,0,1,.13.24c0,.08,0,.14,0,.16a3.53,3.53,0,0,1-.27,1.42,2.94,2.94,0,0,1-.76,1.07,3.36,3.36,0,0,1-1.17.66,4.7,4.7,0,0,1-1.49.23l-.42,0A4.65,4.65,0,0,1,39.8,90a4.34,4.34,0,0,1-.75-.28,2.49,2.49,0,0,1-.7-.53,2.67,2.67,0,0,1-.52-.84,3.37,3.37,0,0,1-.2-1.23V83a3.41,3.41,0,0,1,.15-1,2.64,2.64,0,0,1,.38-.79,2.68,2.68,0,0,1,.54-.57,3.69,3.69,0,0,1,.62-.38A4.71,4.71,0,0,1,41,79.84Z"}),(0,e.createElement)("path",{d:"M47.92,82.45a.94.94,0,0,0,.17.55,2.44,2.44,0,0,0,.45.46,5.48,5.48,0,0,0,.64.43c.24.13.48.28.73.43a8.59,8.59,0,0,1,.73.5,4.1,4.1,0,0,1,.64.61,2.94,2.94,0,0,1,.45.77,2.66,2.66,0,0,1,.19,1v.06a3.51,3.51,0,0,1-.14,1,2.78,2.78,0,0,1-.39.77,2.13,2.13,0,0,1-.56.52,2.78,2.78,0,0,1-.67.33,4.35,4.35,0,0,1-.71.18,5.45,5.45,0,0,1-.68,0H48.7A4.35,4.35,0,0,1,47.62,90a2.79,2.79,0,0,1-.8-.33,2.34,2.34,0,0,1-.55-.47,2.26,2.26,0,0,1-.35-.56,2.72,2.72,0,0,1-.25-1.1,1,1,0,0,1,.09-.44.79.79,0,0,1,.22-.31,1.06,1.06,0,0,1,.33-.18,1.23,1.23,0,0,1,.39-.06,1.43,1.43,0,0,1,.39.06,1.22,1.22,0,0,1,.36.18.91.91,0,0,1,.27.31.83.83,0,0,1,.11.43,1,1,0,0,0,.25.74,1,1,0,0,0,.66.2,1.77,1.77,0,0,0,.41,0,.78.78,0,0,0,.31-.17.81.81,0,0,0,.21-.32,1.41,1.41,0,0,0,.08-.5,1.34,1.34,0,0,0-.18-.69,2.31,2.31,0,0,0-.44-.56,5.33,5.33,0,0,0-.63-.5l-.73-.47-.72-.49a3.82,3.82,0,0,1-.63-.57,2.58,2.58,0,0,1-.46-.67,2.25,2.25,0,0,1-.18-.84v-.12A3.91,3.91,0,0,1,46,81.22a1.85,1.85,0,0,1,.59-.82,2.37,2.37,0,0,1,1-.43,6.28,6.28,0,0,1,1.3-.13H49a3.73,3.73,0,0,1,1.13.15,2.4,2.4,0,0,1,.77.37,1.82,1.82,0,0,1,.49.51,2,2,0,0,1,.26.55,2.21,2.21,0,0,1,.11.52,2.91,2.91,0,0,1,0,.38.87.87,0,0,1-.08.4.84.84,0,0,1-.22.3,1,1,0,0,1-.34.19,1.1,1.1,0,0,1-.41.07.84.84,0,0,1-.35-.07.87.87,0,0,1-.31-.18.78.78,0,0,1-.23-.25.51.51,0,0,1-.09-.28,1.26,1.26,0,0,0-.21-.83.82.82,0,0,0-.63-.23l-.38,0a.69.69,0,0,0-.32.12.71.71,0,0,0-.23.3A1.5,1.5,0,0,0,47.92,82.45Z"}),(0,e.createElement)("path",{d:"M55.27,82.45a1,1,0,0,0,.18.55,2,2,0,0,0,.45.46,5.32,5.32,0,0,0,.63.43c.24.13.48.28.73.43a8.59,8.59,0,0,1,.73.5,3.7,3.7,0,0,1,.64.61,3,3,0,0,1,.46.77,2.88,2.88,0,0,1,.19,1v.06a3.2,3.2,0,0,1-.15,1,2.77,2.77,0,0,1-.38.77,2.3,2.3,0,0,1-.56.52,3.2,3.2,0,0,1-.67.33,4.93,4.93,0,0,1-.71.18,5.59,5.59,0,0,1-.68,0h-.08A4.35,4.35,0,0,1,55,90a2.85,2.85,0,0,1-.79-.33,2.4,2.4,0,0,1-.56-.47,2.6,2.6,0,0,1-.35-.56,2.72,2.72,0,0,1-.25-1.1,1,1,0,0,1,.09-.44.81.81,0,0,1,.23-.31.88.88,0,0,1,.33-.18,1.21,1.21,0,0,1,.38-.06,1.32,1.32,0,0,1,.39.06,1.11,1.11,0,0,1,.36.18.91.91,0,0,1,.27.31.83.83,0,0,1,.11.43,1,1,0,0,0,.25.74,1,1,0,0,0,.67.2,1.68,1.68,0,0,0,.4,0,.9.9,0,0,0,.32-.17.92.92,0,0,0,.2-.32,1.41,1.41,0,0,0,.08-.5,1.44,1.44,0,0,0-.17-.69,2.13,2.13,0,0,0-.45-.56,4.08,4.08,0,0,0-.63-.5l-.72-.47-.73-.49a4.27,4.27,0,0,1-.63-.57,2.32,2.32,0,0,1-.45-.67,1.92,1.92,0,0,1-.18-.84v-.12a3.45,3.45,0,0,1,.21-1.29,1.83,1.83,0,0,1,.58-.82,2.35,2.35,0,0,1,1-.43,6.21,6.21,0,0,1,1.3-.13h.18a3.75,3.75,0,0,1,1.14.15,2.63,2.63,0,0,1,.77.37,1.77,1.77,0,0,1,.48.51,2.33,2.33,0,0,1,.27.55,2.86,2.86,0,0,1,.11.52c0,.16,0,.29,0,.38a1,1,0,0,1-.08.4.86.86,0,0,1-.23.3.89.89,0,0,1-.33.19,1.16,1.16,0,0,1-.42.07.87.87,0,0,1-.35-.07,1,1,0,0,1-.31-.18.75.75,0,0,1-.22-.25.51.51,0,0,1-.09-.28,1.2,1.2,0,0,0-.22-.83.81.81,0,0,0-.62-.23l-.38,0a.69.69,0,0,0-.33.12.8.8,0,0,0-.23.3A1.73,1.73,0,0,0,55.27,82.45Z"})),title:"BOLD(CSS)",onClick:function(){t.onChange(Bl.toggleFormat(t.value,{type:"stk-plugin/stk-classbold"}))},isActive:t.isActive})}});const Al={name:"stk-plugin/fontawesome-icon",title:"FontAwesome Icon",tagName:"i",className:null,attributes:{className:"class"},edit:function(t){let{value:l,onChange:a,isObjectActive:n,activeObjectAttributes:o,contentRef:s}=t;return(0,e.useEffect)((()=>{var e,t;const{defaultView:l}=s.current.ownerDocument,a=l.getSelection();if(null!==(e=a.anchorNode)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("fa")){const e=document.createRange();e.selectNode(a.anchorNode),a.removeAllRanges(),a.addRange(e)}})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nt.RichTextToolbarButton,{icon:(0,e.createElement)(xt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},(0,e.createElement)(xt.Path,{d:"M90,13.96v58.59c-10.99,4.01-14.3,5.58-20.75,5.58-10.99,0-15.17-5.58-26.16-5.58-3.49,0-6.28,.7-8.89,1.4v-11.16c2.62-.7,5.41-1.4,8.89-1.4,10.99,0,15.17,5.58,26.16,5.58,3.49,0,6.1-.52,9.59-1.57V29.13c-3.49,1.05-6.1,1.57-9.59,1.57-10.99,0-15.17-5.58-26.16-5.58-8.89,0-13.08,3.66-20.05,5.06v53.53c0,3.14-2.44,5.58-5.58,5.58s-5.58-2.44-5.58-5.58V16.75c0-3.14,2.44-5.58,5.58-5.58s5.58,2.44,5.58,5.58v2.27c6.98-1.4,11.16-5.06,20.05-5.06,10.99,0,15.17,5.58,26.16,5.58,6.45,0,9.77-1.57,20.75-5.58Z"})),title:"FontAwesome Icon",onClick:function(){const e=(0,gl.create)({html:'<i class="fas fa-flag"></i> '});a((0,gl.insert)(l,e))},isActive:n}),n&&(0,e.createElement)(Sl,{value:l,onChange:a,activeObjectAttributes:o,isObjectActive:n,contentRef:s}))}};function Sl(t){let{value:l,onChange:a,activeObjectAttributes:n,contentRef:o}=t;const{className:s}=n,[r,c]=(0,e.useState)(s),i=(0,gl.useAnchorRef)({ref:o,value:l,settings:Al});return(0,e.createElement)(xt.Popover,{position:"bottom center",focusOnMount:!1,anchorRef:i,className:"block-editor-format-toolbar__image-popover stk-fontawesomeicon"},(0,e.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onSubmit:e=>{const t=l.replacements.slice();t[l.start]={type:Al.name,attributes:{...n,className:r}},a({...l,replacements:t}),e.preventDefault()}},(0,e.createElement)(xt.TextControl,{className:"block-editor-format-toolbar__image-container-value",label:(0,wt.__)("FontAwesome Class names"),value:r,onChange:e=>c(e)}),(0,e.createElement)(xt.Button,{icon:(0,e.createElement)(xt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,e.createElement)(xt.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),label:(0,wt.__)("Apply"),type:"submit"})),(0,e.createElement)("div",{className:"stk-component-help"},(0,e.createElement)("p",null,(0,e.createElement)("a",{target:"_blank",rel:"noopener",href:"https://fontawesome.com/search?m=free&s=solid%2Cbrands"},"FontAwesome"),"のアイコンを利用可能です。")))}(0,gl.registerFormatType)(Al.name,Al);const ql=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M14.2,45H9.2c-1.2,0-2.1-0.9-2.1-2.1V5C7.1,3.9,8.1,3,9.2,3h1.2h15.4C27,3,27.9,3.9,27.9,5v13.3c0,0.8,0.7,1.5,1.5,1.5 c0.8,0,1.5-0.7,1.5-1.5V5c0-2.8-2.3-5-5-5H10.4H9.2c-2.8,0-5,2.3-5,5V43c0,2.8,2.3,5,5,5h4.9c0.8,0,1.5-0.7,1.5-1.5S15,45,14.2,45z "}),(0,e.createElement)("path",{d:"M14.6,5.4c-0.5,0-1,0.4-1,1c0,0.5,0.4,1,1,1h5.8c0.5,0,1-0.4,1-1c0-0.5-0.4-1-1-1H14.6z"}),(0,e.createElement)("path",{d:"M40.8,21.7H20.5c-1.7,0-3,1.3-3,3V45c0,1.7,1.3,3,3,3h20.3c1.6,0,2.9-1.3,3-3V24.7C43.8,23,42.5,21.7,40.8,21.7z M38.3,38.8h-9.6v5.7l-6.9-6.9l6.9-7v5.7h7.1v-9.9h2.5V38.8z"}))),Fl={"PCとタブレットで改行":"pcbr","モバイルで改行":"spbr"};if((0,gl.registerFormatType)("stk-plugin/shortcode",{title:(0,wt.__)("ショートコード"),tagName:"shortcode",className:null,edit:t=>{const{onChange:l,value:a}=t;return(0,e.createElement)(Nt.BlockControls,null,(0,e.createElement)(xt.ToolbarGroup,null,(0,e.createElement)(xt.ToolbarItem,null,(t=>(0,e.createElement)(xt.DropdownMenu,{icon:ql,toggleProps:t,label:(0,wt.__)("画面サイズに応じて改行"),controls:Object.entries(Fl).map((e=>{let[t,n]=e;return{title:(0,wt.__)(`${t}`)+` [${n}]`,onClick:()=>{((e,t,l)=>{t((0,gl.insert)(e,`[${l}]`,e.start,e.end))})(a,l,n)}}}))})))))}}),wp.blockEditor&&wp.blockEditor.BlockEdit){const{registerBlockCollection:e}=wp.blocks;e("stk-plugin",{title:"STORK19 BLOCKS",icon:"wordpress"})}}()}();
💾 Save Changes
❌ Cancel