diff --git a/blocks/dist/blocks.build.js b/blocks/dist/blocks.build.js index 9ea4b6b9f..ff55eac06 100644 --- a/blocks/dist/blocks.build.js +++ b/blocks/dist/blocks.build.js @@ -1 +1 @@ -!function(){var e={184:function(e,t){var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,P=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(A);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},F=e=>"*"===e||"x"===e||"X"===e,I=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},V=(e,t)=>{if(F(e)||F(t))return 0;const[o,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(I(e),I(t));return o>n?1:o{for(let o=0;o{const{textColor:o,backgroundColor:n,borderColor:a,fontSize:l,customFontSize:r}=t.attributes,c=e.querySelector('[contenteditable="true"]'),s=c?$(c):null;return{fallbackBackgroundColor:n||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackBorderColor:a||!s?void 0:s.color,fallbackFontSize:l||r||!s?void 0:parseInt(s.fontSize)||void 0}}));const ae=[{value:"",label:"fab-none"},{value:"fab-info-circle",label:(0,H.__)("fab-info-circle",G)},{value:"fab-question-circle",label:(0,H.__)("fab-question-circle",G)},{value:"fab-exclamation-circle",label:(0,H.__)("fab-exclamation-circle",G)},{value:"fab-pencil",label:(0,H.__)("fab-pencil",G)},{value:"fab-edit",label:(0,H.__)("fab-edit",G)},{value:"fab-comment",label:(0,H.__)("fab-comment",G)},{value:"fab-ok",label:(0,H.__)("fab-ok",G)},{value:"fab-bad",label:(0,H.__)("fab-bad",G)},{value:"fab-thumbs-up",label:(0,H.__)("fab-thumbs-up",G)},{value:"fab-thumbs-down",label:(0,H.__)("fab-thumbs-down",G)},{value:"fab-check",label:(0,H.__)("fab-check",G)},{value:"fab-star",label:(0,H.__)("fab-star",G)},{value:"fab-bell",label:(0,H.__)("fab-bell",G)},{value:"fab-trophy",label:(0,H.__)("fab-trophy",G)},{value:"fab-lightbulb",label:(0,H.__)("fab-lightbulb",G)},{value:"fab-graduation-cap",label:(0,H.__)("fab-graduation-cap",G)},{value:"fab-bolt",label:(0,H.__)("fab-bolt",G)},{value:"fab-bookmark",label:(0,H.__)("fab-bookmark",G)},{value:"fab-book",label:(0,H.__)("fab-book",G)},{value:"fab-download",label:(0,H.__)("fab-download",G)},{value:"fab-coffee",label:(0,H.__)("fab-coffee",G)},{value:"fab-amazon",label:(0,H.__)("fab-amazon",G)},{value:"fab-user",label:(0,H.__)("fab-user",G)},{value:"fab-envelope",label:(0,H.__)("fab-envelope",G)},{value:"fab-flag",label:(0,H.__)("fab-flag",G)},{value:"fab-ban",label:(0,H.__)("fab-ban",G)},{value:"fab-calendar",label:(0,H.__)("fab-calendar",G)},{value:"fab-clock",label:(0,H.__)("fab-clock",G)},{value:"fab-cutlery",label:(0,H.__)("fab-cutlery",G)},{value:"fab-heart",label:(0,H.__)("fab-heart",G)},{value:"fab-camera",label:(0,H.__)("fab-camera",G)},{value:"fab-search",label:(0,H.__)("fab-search",G)},{value:"fab-file-text",label:(0,H.__)("fab-file-text",G)},{value:"fab-folder",label:(0,H.__)("fab-folder",G)},{value:"fab-tag",label:(0,H.__)("fab-tag",G)},{value:"fab-car",label:(0,H.__)("fab-car",G)},{value:"fab-truck",label:(0,H.__)("fab-truck",G)},{value:"fab-bicycle",label:(0,H.__)("fab-bicycle",G)},{value:"fab-motorcycle",label:(0,H.__)("fab-motorcycle",G)},{value:"fab-bus",label:(0,H.__)("fab-bus",G)},{value:"fab-plane",label:(0,H.__)("fab-plane",G)},{value:"fab-train",label:(0,H.__)("fab-train",G)},{value:"fab-subway",label:(0,H.__)("fab-subway",G)},{value:"fab-taxi",label:(0,H.__)("fab-taxi",G)},{value:"fab-ship",label:(0,H.__)("fab-ship",G)},{value:"fab-jpy",label:(0,H.__)("fab-jpy",G)},{value:"fab-usd",label:(0,H.__)("fab-usd",G)},{value:"fab-eur",label:(0,H.__)("fab-eur",G)},{value:"fab-btc",label:(0,H.__)("fab-btc",G)},{value:"fab-apple",label:(0,H.__)("fab-apple",G)},{value:"fab-android",label:(0,H.__)("fab-android",G)},{value:"fab-wordpress",label:(0,H.__)("fab-wordpress",G)}],le=[{value:"list-caret-right",label:(0,H.__)("fab-caret-right",G)},{value:"list-check",label:(0,H.__)("fab-check",G)},{value:"list-check-circle",label:(0,H.__)("fab-check-circle",G)},{value:"list-check-circle-o",label:(0,H.__)("fab-check-circle-o",G)},{value:"list-check-square",label:(0,H.__)("fab-check-square",G)},{value:"list-check-square-o",label:(0,H.__)("fab-check-square-o",G)},{value:"list-caret-square-o-right",label:(0,H.__)("fab-caret-square-o-right",G)},{value:"list-arrow-right",label:(0,H.__)("fab-arrow-right",G)},{value:"list-angle-right",label:(0,H.__)("fab-angle-right",G)},{value:"list-angle-double-right",label:(0,H.__)("fab-angle-double-right",G)},{value:"list-arrow-circle-right",label:(0,H.__)("fab-arrow-circle-right",G)},{value:"list-arrow-circle-o-right",label:(0,H.__)("fab-arrow-circle-o-right",G)},{value:"list-play-circle",label:(0,H.__)("fab-play-circle",G)},{value:"list-play-circle-o",label:(0,H.__)("fab-play-circle-o",G)},{value:"list-chevron-right",label:(0,H.__)("fab-chevron-right",G)},{value:"list-chevron-circle-right",label:(0,H.__)("fab-chevron-circle-right",G)},{value:"list-hand-o-right",label:(0,H.__)("fab-hand-o-right",G)},{value:"list-star",label:(0,H.__)("fab-star",G)},{value:"list-star-o",label:(0,H.__)("fab-star-o",G)},{value:"list-heart",label:(0,H.__)("fab-heart",G)},{value:"list-heart-o",label:(0,H.__)("fab-heart-o",G)},{value:"list-square",label:(0,H.__)("fab-square",G)},{value:"list-square-o",label:(0,H.__)("fab-square-o",G)},{value:"list-circle",label:(0,H.__)("fab-circle",G)},{value:"list-circle-o",label:(0,H.__)("fab-circle-o",G)},{value:"list-dot-circle-o",label:(0,H.__)("fab-dot-circle-o",G)},{value:"list-plus",label:(0,H.__)("fab-plus",G)},{value:"list-plus-circle",label:(0,H.__)("fab-plus-circle",G)},{value:"list-plus-square",label:(0,H.__)("fab-plus-square",G)},{value:"list-plus-square-o",label:(0,H.__)("fab-plus-square-o",G)},{value:"list-minus",label:(0,H.__)("fab-minus",G)},{value:"list-minus-circle",label:(0,H.__)("fab-minus-circle",G)},{value:"list-minus-square",label:(0,H.__)("fab-minus-square",G)},{value:"list-minus-square-o",label:(0,H.__)("fab-minus-square-o",G)},{value:"list-times",label:(0,H.__)("fab-times",G)},{value:"list-times-circle",label:(0,H.__)("fab-times-circle",G)},{value:"list-times-circle-o",label:(0,H.__)("fab-times-circle-o",G)},{value:"list-window-close",label:(0,H.__)("fab-window-close",G)},{value:"list-window-close-o",label:(0,H.__)("fab-window-close-o",G)},{value:"list-paw",label:(0,H.__)("fab-paw",G)}];function re({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Letter.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ce({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Marker.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function se({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Badge.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ie({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="FontSize.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ue({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Affiliate.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function me({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Template.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function be({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Shortcode.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function de({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Ranking.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}const pe=gbCodeLanguages;function ge(e,t,o,n){if(null==e)return null;let a=[],l=o.split(",");return e.forEach((e=>{let r=!1;for(var c=0;c{!function(t){var a="";a=1==t?function(e,t){let o="";if(""==e)o=String(t);else{let a=e.split(","),l=!1;for(var n=0;n0&&ke.some(((e,t)=>{if("1"==e.visible)return p=e.id,g=e.icon,f=e.style,v=e.position,_=e.iconstyle,b||(b=e.name),o({name:b,index:t,id:p,icon:g,style:f,position:v,iconstyle:_}),!0})),ke[d]&&te(d,p,g,f,v,_)&&(p=ke[d].id,g=ke[d].icon,f=ke[d].style,v=ke[d].position,_=ke[d].iconstyle,b||(b=ke[d].name));const S=[];ke.map(((e,t)=>{"1"==ke[t].visible&&S.push({value:t,label:e.title})})),(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&x&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const B=L()(ee(p,f,v,_),{"not-nested-style":x,"cocoon-block-balloon":!0}),T={"--cocoon-custom-border-color":C||void 0,"--cocoon-custom-background-color":h||void 0,"--cocoon-custom-text-color":k||void 0};x&&(T["--cocoon-custom-border-color"]=w,T["--cocoon-custom-background-color"]=E,T["--cocoon-custom-text-color"]=N);const z=(0,D.useBlockProps)({className:B,style:T});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("人物",G),value:d,onChange:e=>o({index:e,name:ke[e].name,id:ke[e].id,icon:ke[e].icon,style:ke[e].style,position:ke[e].position,iconstyle:ke[e].iconstyle}),options:S}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("吹き出しスタイル",G),value:f,onChange:e=>o({style:e}),options:[{value:"stn",label:(0,H.__)("デフォルト",G)},{value:"flat",label:(0,H.__)("フラット",G)},{value:"line",label:(0,H.__)("LINE風",G)},{value:"think",label:(0,H.__)("考え事",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("人物位置",G),value:v,onChange:e=>o({position:e}),options:[{value:"l",label:(0,H.__)("左",G)},{value:"r",label:(0,H.__)("右",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("アイコンスタイル",G),value:_,onChange:e=>o({iconstyle:e}),options:[{value:"sn",label:(0,H.__)("四角(枠線なし)",G)},{value:"sb",label:(0,H.__)("四角(枠線あり)",G)},{value:"cn",label:(0,H.__)("丸(枠線なし)",G)},{value:"cb",label:(0,H.__)("丸(枠線あり)",G)}]})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("吹き出し色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...z},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)(D.MediaUpload,{onSelect:e=>{const t=e.sizes.thumbnail?e.sizes.thumbnail.url:e.url;o({icon:t,iconid:e.id})},type:"image",value:y,render:e=>(0,R.createElement)(j.Button,{className:"image-button",onClick:e.open,style:{padding:0}},(0,R.createElement)("img",{src:g||ke[d].icon,alt:g?"":ke[d].name,className:`speech-icon-image wp-image-${y}`}))})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText,{value:b,placeholder:ye,onChange:e=>o({name:e})}))),(0,R.createElement)("div",{className:L()(n,{"speech-balloon":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class})},(0,R.createElement)(D.InnerBlocks,{placeholder:(0,H.__)("セリフの入力",G)}))))}));const{createBlock:xe}=wp.blocks,Ee={migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",c),d=(0,D.getColorClassName)("color",s),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=ee(o,a,l,r),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s,"has-background":c,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g})},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Ne={attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},id:{type:"string",default:""},icon:{type:"string",default:""},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"},iconid:{type:"number",default:0},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d}=e,p=(0,D.getColorClassName)("background-color",c),g=(0,D.getColorClassName)("color",s),f=(0,D.getColorClassName)("border-color",i),v=(0,D.getFontSizeClass)(d),_=ee(o,a,l,r),y={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0},h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[g]:g,[p]:p,[f]:f,[v]:v})},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var we=[Ne,Ee,{attributes:{content:{type:"string",default:X},borderColor:{type:"string",default:""}},migrate(e){const{content:t,borderColor:o}=e;return{content:t,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{borderColor:t}=e,o=L()({"blank-box":!0,[`bb-${ne(t)}`]:!!ne(t),"block-box":!0});return(0,R.createElement)("div",{className:o},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:Se}=wp.blocks;var Be={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:({content:e})=>Se("cocoon-blocks/sticky-box",{content:e})},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:({content:e})=>Se("cocoon-blocks/tab-box-1",{content:e})},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:({content:e})=>Se("cocoon-blocks/icon-box",{content:e})},{type:"block",blocks:["cocoon-blocks/info-box"],transform:({content:e})=>Se("cocoon-blocks/info-box",{content:e})}]},Te=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/balloon-ex-box-1","category":"cocoon-block","keywords":["balloon","box"],"attributes":{"name":{"type":"string","default":""},"index":{"type":"string","default":"0"},"id":{"type":"string","default":""},"icon":{"type":"string","default":""},"style":{"type":"string","default":"stn"},"position":{"type":"string","default":"l"},"iconstyle":{"type":"string","default":"cb"},"iconid":{"type":"number","default":0},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod!"}}]},"supports":{"anchor":true}}');const{name:ze}=Te,Ae={title:(0,H.__)("吹き出し",G),icon:(0,R.createElement)("svg",{id:"Capa_1","enable-background":"new 0 0 511.072 511.072",height:"512",viewBox:"0 0 511.072 511.072",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("g",{id:"Speech_Bubble_48_"},(0,R.createElement)("g",null,(0,R.createElement)("path",{d:"m74.39 480.536h-36.213l25.607-25.607c13.807-13.807 22.429-31.765 24.747-51.246-36.029-23.644-62.375-54.751-76.478-90.425-14.093-35.647-15.864-74.888-5.121-113.482 12.89-46.309 43.123-88.518 85.128-118.853 45.646-32.963 102.47-50.387 164.33-50.387 77.927 0 143.611 22.389 189.948 64.745 41.744 38.159 64.734 89.63 64.734 144.933 0 26.868-5.471 53.011-16.26 77.703-11.165 25.551-27.514 48.302-48.593 67.619-46.399 42.523-112.042 65-189.83 65-28.877 0-59.01-3.855-85.913-10.929-25.465 26.123-59.972 40.929-96.086 40.929zm182-420c-124.039 0-200.15 73.973-220.557 147.285-19.284 69.28 9.143 134.743 76.043 175.115l7.475 4.511-.23 8.727c-.456 17.274-4.574 33.912-11.945 48.952 17.949-6.073 34.236-17.083 46.99-32.151l6.342-7.493 9.405 2.813c26.393 7.894 57.104 12.241 86.477 12.241 154.372 0 224.682-93.473 224.682-180.322 0-46.776-19.524-90.384-54.976-122.79-40.713-37.216-99.397-56.888-169.706-56.888z"})))),description:(0,H.__)("登録されている吹き出しのオプションを変更できます。",G),edit:Ce,save:function({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d,notNestedStyle:p,backgroundColorValue:g,textColorValue:f,borderColorValue:v}=e,_=(0,D.getColorClassName)("background-color",c),y=(0,D.getColorClassName)("color",s),h=(0,D.getColorClassName)("border-color",i),k=(0,D.getFontSizeClass)(d),C=L()(ee(o,a,l,r),{"not-nested-style":p,"cocoon-block-balloon":!0}),x={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0};p&&(x["--cocoon-custom-border-color"]=v,x["--cocoon-custom-background-color"]=g,x["--cocoon-custom-text-color"]=f);const E=D.useBlockProps.save({className:C,style:x});return(0,R.createElement)("div",{...E},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[y]:y,[_]:_,[h]:h,[k]:k})},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:we,transforms:Be};function Pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,n=new Array(t);o0;)t+=jt[62*Math.random()|0];return t}function Yt(e){for(var t=[],o=(e||[]).length>>>0;o--;)t[o]=e[o];return t}function $t(e){return e.classList?Yt(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Gt(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ut(e){return Object.keys(e||{}).reduce((function(t,o){return t+"".concat(o,": ").concat(e[o].trim(),";")}),"")}function Jt(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}var Wt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Xt(){var e=rt,t=ct,o=Mt.cssPrefix,n=Mt.replacementClass,a=Wt;if(o!==e||n!==t){var l=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");a=a.replace(l,".".concat(o,"-")).replace(r,"--".concat(o,"-")).replace(c,".".concat(n))}return a}var Qt=!1;function Kt(){Mt.autoAddCss&&!Qt&&(function(e){if(e&&nt){var t=et.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var o=et.head.childNodes,n=null,a=o.length-1;a>-1;a--){var l=o[a],r=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(n=l)}et.head.insertBefore(t,n)}}(Xt()),Qt=!0)}var Zt={mixout:function(){return{dom:{css:Xt,insertCss:Kt}}},hooks:function(){return{beforeDOMElementCreation:function(){Kt()},beforeI2svg:function(){Kt()}}}},eo=Ze||{};eo[lt]||(eo[lt]={}),eo[lt].styles||(eo[lt].styles={}),eo[lt].hooks||(eo[lt].hooks={}),eo[lt].shims||(eo[lt].shims=[]);var to=eo[lt],oo=[],no=!1;function ao(e){var t=e.tag,o=e.attributes,n=void 0===o?{}:o,a=e.children,l=void 0===a?[]:a;return"string"==typeof e?Gt(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,o){return t+"".concat(o,'="').concat(Gt(e[o]),'" ')}),"").trim()}(n),">").concat(l.map(ao).join(""),"")}function lo(e,t,o){if(e&&e[t]&&e[t][o])return{prefix:t,iconName:o,icon:e[t][o]}}nt&&((no=(et.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(et.readyState))||et.addEventListener("DOMContentLoaded",(function e(){et.removeEventListener("DOMContentLoaded",e),no=1,oo.map((function(e){return e()}))})));var ro=function(e,t,o,n){var a,l,r,c=Object.keys(e),s=c.length,i=void 0!==n?function(e,t){return function(o,n,a,l){return e.call(t,o,n,a,l)}}(t,n):t;for(void 0===o?(a=1,r=e[c[0]]):(a=0,r=o);a=55296&&a<=56319&&o2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==o&&o,a=so(t);"function"!=typeof to.hooks.addPack||n?to.styles[e]=Fe(Fe({},to.styles[e]||{}),a):to.hooks.addPack(e,so(t)),"fas"===e&&io("fa",t)}var uo,mo,bo,po=to.styles,go=to.shims,fo=(Oe(uo={},vt,Object.values(xt[vt])),Oe(uo,_t,Object.values(xt[_t])),uo),vo=null,_o={},yo={},ho={},ko={},Co={},xo=(Oe(mo={},vt,Object.keys(kt[vt])),Oe(mo,_t,Object.keys(kt[_t])),mo);var Eo,No=function(){var e=function(e){return ro(po,(function(t,o,n){return t[n]=ro(o,e,{}),t}),{})};_o=e((function(e,t,o){return t[3]&&(e[t[3]]=o),t[2]&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=o})),e})),yo=e((function(e,t,o){return e[o]=o,t[2]&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=o})),e})),Co=e((function(e,t,o){var n=t[2];return e[o]=o,n.forEach((function(t){e[t]=o})),e}));var t="far"in po||Mt.autoFetchSvg,o=ro(go,(function(e,o){var n=o[0],a=o[1],l=o[2];return"far"!==a||t||(a="fas"),"string"==typeof n&&(e.names[n]={prefix:a,iconName:l}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:a,iconName:l}),e}),{names:{},unicodes:{}});ho=o.names,ko=o.unicodes,vo=Ao(Mt.styleDefault,{family:Mt.familyDefault})};function wo(e,t){return(_o[e]||{})[t]}function So(e,t){return(Co[e]||{})[t]}function Bo(e){return ho[e]||{prefix:null,iconName:null}}function To(){return vo}Eo=function(e){vo=Ao(e.styleDefault,{family:Mt.familyDefault})},qt.push(Eo),No();var zo=function(){return{prefix:null,iconName:null,rest:[]}};function Ao(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,o=void 0===t?vt:t,n=kt[o][e],a=Ct[o][e]||Ct[o][n],l=e in to.styles?e:null;return a||l||null}var Po=(Oe(bo={},vt,Object.keys(xt[vt])),Oe(bo,_t,Object.keys(xt[_t])),bo);function Fo(e){var t,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==o&&o,a=(Oe(t={},vt,"".concat(Mt.cssPrefix,"-").concat(vt)),Oe(t,_t,"".concat(Mt.cssPrefix,"-").concat(_t)),t),l=null,r=vt;(e.includes(a[vt])||e.some((function(e){return Po[vt].includes(e)})))&&(r=vt),(e.includes(a[_t])||e.some((function(e){return Po[_t].includes(e)})))&&(r=_t);var c=e.reduce((function(e,t){var o=function(e,t){var o,n=t.split("-"),a=n[0],l=n.slice(1).join("-");return a!==e||""===l||(o=l,~It.indexOf(o))?null:l}(Mt.cssPrefix,t);if(po[t]?(t=fo[r].includes(t)?Et[r][t]:t,l=t,e.prefix=t):xo[r].indexOf(t)>-1?(l=t,e.prefix=Ao(t,{family:r})):o?e.iconName=o:t!==Mt.replacementClass&&t!==a[vt]&&t!==a[_t]&&e.rest.push(t),!n&&e.prefix&&e.iconName){var c="fa"===l?Bo(e.iconName):{},s=So(e.prefix,e.iconName);c.prefix&&(l=null),e.iconName=c.iconName||s||e.iconName,e.prefix=c.prefix||e.prefix,"far"!==e.prefix||po.far||!po.fas||Mt.autoFetchSvg||(e.prefix="fas")}return e}),zo());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),c.prefix||r!==_t||!po.fass&&!Mt.autoFetchSvg||(c.prefix="fass",c.iconName=So(c.prefix,c.iconName)||c.iconName),"fa"!==c.prefix&&"fa"!==l||(c.prefix=To()||"fas"),c}var Io=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,o;return t=e,o=[{key:"add",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n0&&c.forEach((function(t){"string"==typeof t&&(e[a][t]=r)})),e[a][l]=r})),e}}],o&&Ve(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Vo=[],Oo={},Ro={},Mo=Object.keys(Ro);function qo(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),a=2;a1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return nt?(Lo("beforeI2svg",e),Ho("pseudoElements2svg",e),Ho("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.autoReplaceSvgRoot;!1===Mt.autoReplaceSvg&&(Mt.autoReplaceSvg=!0),Mt.observeMutations=!0,e=function(){Go({autoReplaceSvgRoot:o}),Lo("watch",t)},nt&&(no?setTimeout(e,0):oo.push(e))}},$o={noAuto:function(){Mt.autoReplaceSvg=!1,Mt.observeMutations=!1,Lo("noAuto")},config:Mt,dom:Yo,parse:{icon:function(e){if(null===e)return null;if("object"===Ie(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:So(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],o=Ao(e[0]);return{prefix:o,iconName:So(o,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Mt.cssPrefix,"-"))>-1||e.match(Nt))){var n=Fo(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||To(),iconName:So(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var a=To();return{prefix:a,iconName:So(a,e)||e}}}},library:Do,findIconDefinition:jo,toHtml:ao},Go=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?et:e;(Object.keys(to.styles).length>0||Mt.autoFetchSvg)&&nt&&Mt.autoReplaceSvg&&$o.dom.i2svg({node:t})};function Uo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ao(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(nt){var t=et.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Jo(e){var t=e.icons,o=t.main,n=t.mask,a=e.prefix,l=e.iconName,r=e.transform,c=e.symbol,s=e.title,i=e.maskId,u=e.titleId,m=e.extra,b=e.watchable,d=void 0!==b&&b,p=n.found?n:o,g=p.width,f=p.height,v="fak"===a,_=[Mt.replacementClass,l?"".concat(Mt.cssPrefix,"-").concat(l):""].filter((function(e){return-1===m.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(m.classes).join(" "),y={children:[],attributes:Fe(Fe({},m.attributes),{},{"data-prefix":a,"data-icon":l,class:_,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(f)})},h=v&&!~m.classes.indexOf("fa-fw")?{width:"".concat(g/f*16*.0625,"em")}:{};d&&(y.attributes[st]=""),s&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(u||Dt())},children:[s]}),delete y.attributes.title);var k=Fe(Fe({},y),{},{prefix:a,iconName:l,main:o,mask:n,maskId:i,transform:r,symbol:c,styles:Fe(Fe({},h),m.styles)}),C=n.found&&o.found?Ho("generateAbstractMask",k)||{children:[],attributes:{}}:Ho("generateAbstractIcon",k)||{children:[],attributes:{}},x=C.children,E=C.attributes;return k.children=x,k.attributes=E,c?function(e){var t=e.prefix,o=e.iconName,n=e.children,a=e.attributes,l=e.symbol,r=!0===l?"".concat(t,"-").concat(Mt.cssPrefix,"-").concat(o):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},a),{},{id:r}),children:n}]}]}(k):function(e){var t=e.children,o=e.main,n=e.mask,a=e.attributes,l=e.styles,r=e.transform;if(Jt(r)&&o.found&&!n.found){var c={x:o.width/o.height/2,y:.5};a.style=Ut(Fe(Fe({},l),{},{"transform-origin":"".concat(c.x+r.x/16,"em ").concat(c.y+r.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(k)}function Wo(e){var t=e.content,o=e.width,n=e.height,a=e.transform,l=e.title,r=e.extra,c=e.watchable,s=void 0!==c&&c,i=Fe(Fe(Fe({},r.attributes),l?{title:l}:{}),{},{class:r.classes.join(" ")});s&&(i[st]="");var u=Fe({},r.styles);Jt(a)&&(u.transform=function(e){var t=e.transform,o=e.width,n=void 0===o?16:o,a=e.height,l=void 0===a?16:a,r=e.startCentered,c=void 0!==r&&r,s="";return s+=c&&at?"translate(".concat(t.x/Lt-n/2,"em, ").concat(t.y/Lt-l/2,"em) "):c?"translate(calc(-50% + ".concat(t.x/Lt,"em), calc(-50% + ").concat(t.y/Lt,"em)) "):"translate(".concat(t.x/Lt,"em, ").concat(t.y/Lt,"em) "),(s+="scale(".concat(t.size/Lt*(t.flipX?-1:1),", ").concat(t.size/Lt*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:o,height:n}),u["-webkit-transform"]=u.transform);var m=Ut(u);m.length>0&&(i.style=m);var b=[];return b.push({tag:"span",attributes:i,children:[t]}),l&&b.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),b}var Xo=to.styles;function Qo(e){var t=e[0],o=e[1],n=Re(e.slice(4),1)[0];return{found:!0,width:t,height:o,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var Ko={found:!1,width:512,height:512};function Zo(e,t){var o=t;return"fa"===t&&null!==Mt.styleDefault&&(t=To()),new Promise((function(n,a){if(Ho("missingIconAbstract"),"fa"===o){var l=Bo(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&Xo[t]&&Xo[t][e])return n(Qo(Xo[t][e]));!function(e,t){ft||Mt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(Fe(Fe({},Ko),{},{icon:Mt.showMissingIcons&&e&&Ho("missingIconAbstract")||{}}))}))}var en=function(){},tn=Mt.measurePerformance&&ot&&ot.mark&&ot.measure?ot:{mark:en,measure:en},on='FA "6.5.1"',nn=function(e){tn.mark("".concat(on," ").concat(e," ends")),tn.measure("".concat(on," ").concat(e),"".concat(on," ").concat(e," begins"),"".concat(on," ").concat(e," ends"))},an={begin:function(e){return tn.mark("".concat(on," ").concat(e," begins")),function(){return nn(e)}},end:nn},ln=function(){};function rn(e){return"string"==typeof(e.getAttribute?e.getAttribute(st):null)}function cn(e){return et.createElementNS("http://www.w3.org/2000/svg",e)}function sn(e){return et.createElement(e)}function un(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,o=void 0===t?"svg"===e.tag?cn:sn:t;if("string"==typeof e)return et.createTextNode(e);var n=o(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){n.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){n.appendChild(un(e,{ceFn:o}))})),n}var mn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(un(e),t)})),null===t.getAttribute(st)&&Mt.keepOriginalSource){var o=et.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(o,t)}else t.remove()},nest:function(e){var t=e[0],o=e[1];if(~$t(t).indexOf(Mt.replacementClass))return mn.replace(e);var n=new RegExp("".concat(Mt.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var a=o[0].attributes.class.split(" ").reduce((function(e,t){return t===Mt.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});o[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var l=o.map((function(e){return ao(e)})).join("\n");t.setAttribute(st,""),t.innerHTML=l}};function bn(e){e()}function dn(e,t){var o="function"==typeof t?t:ln;if(0===e.length)o();else{var n=bn;Mt.mutateApproach===pt&&(n=Ze.requestAnimationFrame||bn),n((function(){var t=!0===Mt.autoReplaceSvg?mn.replace:mn[Mt.autoReplaceSvg]||mn.replace,n=an.begin("mutate");e.map(t),n(),o()}))}}var pn=!1;function gn(){pn=!0}function fn(){pn=!1}var vn=null;function yn(e){if(tt&&Mt.observeMutations){var t=e.treeCallback,o=void 0===t?ln:t,n=e.nodeCallback,a=void 0===n?ln:n,l=e.pseudoElementsCallback,r=void 0===l?ln:l,c=e.observeMutationsRoot,s=void 0===c?et:c;vn=new tt((function(e){if(!pn){var t=To();Yt(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!rn(e.addedNodes[0])&&(Mt.searchPseudoElements&&r(e.target),o(e.target)),"attributes"===e.type&&e.target.parentNode&&Mt.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&rn(e.target)&&~At.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(mt):null,o=e.getAttribute?e.getAttribute(bt):null;return t&&o}(e.target)){var n=Fo($t(e.target)),l=n.prefix,c=n.iconName;e.target.setAttribute(mt,l||t),c&&e.target.setAttribute(bt,c)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Mt.replacementClass)&&a(e.target);var s}))}})),nt&&vn.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},o=function(e){var t,o,n=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),l=void 0!==e.innerText?e.innerText.trim():"",r=Fo($t(e));return r.prefix||(r.prefix=To()),n&&a&&(r.prefix=n,r.iconName=a),r.iconName&&r.prefix||(r.prefix&&l.length>0&&(r.iconName=(t=r.prefix,o=e.innerText,(yo[t]||{})[o]||wo(r.prefix,co(e.innerText)))),!r.iconName&&Mt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),n=o.iconName,a=o.prefix,l=o.rest,r=function(e){var t=Yt(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),o=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Mt.autoA11y&&(o?t["aria-labelledby"]="".concat(Mt.replacementClass,"-title-").concat(n||Dt()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),c=qo("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),o=[];return t&&(o=t.split(";").reduce((function(e,t){var o=t.split(":"),n=o[0],a=o.slice(1);return n&&a.length>0&&(e[n]=a.join(":").trim()),e}),{})),o}(e):[];return Fe({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:s,attributes:r}},c)}var kn=to.styles;function Cn(e){var t="nest"===Mt.autoReplaceSvg?hn(e,{styleParser:!1}):hn(e);return~t.extra.classes.indexOf(wt)?Ho("generateLayersText",e,t):Ho("generateSvgReplacementMutation",e,t)}var xn=new Set;function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!nt)return Promise.resolve();var o=et.documentElement.classList,n=function(e){return o.add("".concat(dt,"-").concat(e))},a=function(e){return o.remove("".concat(dt,"-").concat(e))},l=Mt.autoFetchSvg?xn:yt.map((function(e){return"fa-".concat(e)})).concat(Object.keys(kn));l.includes("fa")||l.push("fa");var r=[".".concat(wt,":not([").concat(st,"])")].concat(l.map((function(e){return".".concat(e,":not([").concat(st,"])")}))).join(", ");if(0===r.length)return Promise.resolve();var c=[];try{c=Yt(e.querySelectorAll(r))}catch(e){}if(!(c.length>0))return Promise.resolve();n("pending"),a("complete");var s=an.begin("onTree"),i=c.reduce((function(e,t){try{var o=Cn(t);o&&e.push(o)}catch(e){ft||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,o){Promise.all(i).then((function(o){dn(o,(function(){n("active"),n("complete"),a("pending"),"function"==typeof t&&t(),s(),e()}))})).catch((function(e){s(),o(e)}))}))}function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Cn(e).then((function(e){e&&dn([e],t)}))}yt.map((function(e){xn.add("fa-".concat(e))})),Object.keys(kt[vt]).map(xn.add.bind(xn)),Object.keys(kt[_t]).map(xn.add.bind(xn)),xn=Me(xn);var wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.transform,n=void 0===o?Ht:o,a=t.symbol,l=void 0!==a&&a,r=t.mask,c=void 0===r?null:r,s=t.maskId,i=void 0===s?null:s,u=t.title,m=void 0===u?null:u,b=t.titleId,d=void 0===b?null:b,p=t.classes,g=void 0===p?[]:p,f=t.attributes,v=void 0===f?{}:f,_=t.styles,y=void 0===_?{}:_;if(e){var h=e.prefix,k=e.iconName,C=e.icon;return Uo(Fe({type:"icon"},e),(function(){return Lo("beforeDOMElementCreation",{iconDefinition:e,params:t}),Mt.autoA11y&&(m?v["aria-labelledby"]="".concat(Mt.replacementClass,"-title-").concat(d||Dt()):(v["aria-hidden"]="true",v.focusable="false")),Jo({icons:{main:Qo(C),mask:c?Qo(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:k,transform:Fe(Fe({},Ht),n),symbol:l,title:m,maskId:i,titleId:d,extra:{attributes:v,styles:y,classes:g}})}))}},Sn={mixout:function(){return{icon:(e=wn,function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:jo(t||{}),a=o.mask;return a&&(a=(a||{}).icon?a:jo(a||{})),e(n,Fe(Fe({},o),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=En,e.nodeCallback=Nn,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,o=void 0===t?et:t,n=e.callback;return En(o,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var o=t.iconName,n=t.title,a=t.titleId,l=t.prefix,r=t.transform,c=t.symbol,s=t.mask,i=t.maskId,u=t.extra;return new Promise((function(t,m){Promise.all([Zo(o,l),s.iconName?Zo(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(s){var m=Re(s,2),b=m[0],d=m[1];t([e,Jo({icons:{main:b,mask:d},prefix:l,iconName:o,transform:r,symbol:c,maskId:i,title:n,titleId:a,extra:u,watchable:!0})])})).catch(m)}))},e.generateAbstractIcon=function(e){var t,o=e.children,n=e.attributes,a=e.main,l=e.transform,r=Ut(e.styles);return r.length>0&&(n.style=r),Jt(l)&&(t=Ho("generateAbstractTransformGrouping",{main:a,transform:l,containerWidth:a.width,iconWidth:a.width})),o.push(t||a.icon),{children:o,attributes:n}}}},Bn={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.classes,n=void 0===o?[]:o;return Uo({type:"layer"},(function(){Lo("beforeDOMElementCreation",{assembler:e,params:t});var o=[];return e((function(e){Array.isArray(e)?e.map((function(e){o=o.concat(e.abstract)})):o=o.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Mt.cssPrefix,"-layers")].concat(Me(n)).join(" ")},children:o}]}))}}}},Tn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.title,n=void 0===o?null:o,a=t.classes,l=void 0===a?[]:a,r=t.attributes,c=void 0===r?{}:r,s=t.styles,i=void 0===s?{}:s;return Uo({type:"counter",content:e},(function(){return Lo("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,o=e.title,n=e.extra,a=Fe(Fe(Fe({},n.attributes),o?{title:o}:{}),{},{class:n.classes.join(" ")}),l=Ut(n.styles);l.length>0&&(a.style=l);var r=[];return r.push({tag:"span",attributes:a,children:[t]}),o&&r.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),r}({content:e.toString(),title:n,extra:{attributes:c,styles:i,classes:["".concat(Mt.cssPrefix,"-layers-counter")].concat(Me(l))}})}))}}}},zn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.transform,n=void 0===o?Ht:o,a=t.title,l=void 0===a?null:a,r=t.classes,c=void 0===r?[]:r,s=t.attributes,i=void 0===s?{}:s,u=t.styles,m=void 0===u?{}:u;return Uo({type:"text",content:e},(function(){return Lo("beforeDOMElementCreation",{content:e,params:t}),Wo({content:e,transform:Fe(Fe({},Ht),n),title:l,extra:{attributes:i,styles:m,classes:["".concat(Mt.cssPrefix,"-layers-text")].concat(Me(c))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var o=t.title,n=t.transform,a=t.extra,l=null,r=null;if(at){var c=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();l=s.width/c,r=s.height/c}return Mt.autoA11y&&!o&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,Wo({content:e.innerHTML,width:l,height:r,transform:n,title:o,extra:a,watchable:!0})])}}},An=new RegExp('"',"ug"),Pn=[1105920,1112319];function Fn(e,t){var o="".concat(ut).concat(t.replace(":","-"));return new Promise((function(n,a){if(null!==e.getAttribute(o))return n();var l,r,c,s=Yt(e.children).filter((function(e){return e.getAttribute(it)===t}))[0],i=Ze.getComputedStyle(e,t),u=i.getPropertyValue("font-family").match(St),m=i.getPropertyValue("font-weight"),b=i.getPropertyValue("content");if(s&&!u)return e.removeChild(s),n();if(u&&"none"!==b&&""!==b){var d=i.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?_t:vt,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Ct[p][u[2].toLowerCase()]:Bt[p][m],f=function(e){var t,o,n,a,l=e.replace(An,""),r=(0,n=(t=l).length,(a=t.charCodeAt(0))>=55296&&a<=56319&&n>1&&(o=t.charCodeAt(1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a),c=r>=Pn[0]&&r<=Pn[1],s=2===l.length&&l[0]===l[1];return{value:co(s?l[0]:l),isSecondary:c||s}}(d),v=f.value,_=f.isSecondary,y=u[0].startsWith("FontAwesome"),h=wo(g,v),k=h;if(y){var C=(r=ko[l=v],c=wo("fas",l),r||(c?{prefix:"fas",iconName:c}:null)||{prefix:null,iconName:null});C.iconName&&C.prefix&&(h=C.iconName,g=C.prefix)}if(!h||_||s&&s.getAttribute(mt)===g&&s.getAttribute(bt)===k)n();else{e.setAttribute(o,k),s&&e.removeChild(s);var x={iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},E=x.extra;E.attributes[it]=t,Zo(h,g).then((function(a){var l=Jo(Fe(Fe({},x),{},{icons:{main:a,mask:zo()},prefix:g,iconName:k,extra:E,watchable:!0})),r=et.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(r,e.firstChild):e.appendChild(r),r.outerHTML=l.map((function(e){return ao(e)})).join("\n"),e.removeAttribute(o),n()})).catch(a)}}else n()}))}function In(e){return Promise.all([Fn(e,"::before"),Fn(e,"::after")])}function Vn(e){return!(e.parentNode===document.head||~gt.indexOf(e.tagName.toUpperCase())||e.getAttribute(it)||e.parentNode&&"svg"===e.parentNode.tagName)}function On(e){if(nt)return new Promise((function(t,o){var n=Yt(e.querySelectorAll("*")).filter(Vn).map(In),a=an.begin("searchPseudoElements");gn(),Promise.all(n).then((function(){a(),fn(),t()})).catch((function(){a(),fn(),o()}))}))}var Rn=!1,Mn=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var o=t.toLowerCase().split("-"),n=o[0],a=o.slice(1).join("-");if(n&&"h"===a)return e.flipX=!0,e;if(n&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(n){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},qn={mixout:function(){return{parse:{transform:function(e){return Mn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-transform");return o&&(e.transform=Mn(o)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,o=e.transform,n=e.containerWidth,a=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(32*o.x,", ").concat(32*o.y,") "),c="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),s="rotate(".concat(o.rotate," 0 0)"),i={outer:l,inner:{transform:"".concat(r," ").concat(c," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:Fe({},i.outer),children:[{tag:"g",attributes:Fe({},i.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Fe(Fe({},t.icon.attributes),i.path)}]}]}}}},Ln={x:0,y:0,width:"100%",height:"100%"};function Hn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var jn,Dn={hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-mask"),n=o?Fo(o.split(" ").map((function(e){return e.trim()}))):zo();return n.prefix||(n.prefix=To()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,o=e.children,n=e.attributes,a=e.main,l=e.mask,r=e.maskId,c=e.transform,s=a.width,i=a.icon,u=l.width,m=l.icon,b=function(e){var t=e.transform,o=e.iconWidth,n={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),l="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),r="rotate(".concat(t.rotate," 0 0)");return{outer:n,inner:{transform:"".concat(a," ").concat(l," ").concat(r)},path:{transform:"translate(".concat(o/2*-1," -256)")}}}({transform:c,containerWidth:u,iconWidth:s}),d={tag:"rect",attributes:Fe(Fe({},Ln),{},{fill:"white"})},p=i.children?{children:i.children.map(Hn)}:{},g={tag:"g",attributes:Fe({},b.inner),children:[Hn(Fe({tag:i.tag,attributes:Fe(Fe({},i.attributes),b.path)},p))]},f={tag:"g",attributes:Fe({},b.outer),children:[g]},v="mask-".concat(r||Dt()),_="clip-".concat(r||Dt()),y={tag:"mask",attributes:Fe(Fe({},Ln),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,f]},h={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:(t=m,"g"===t.tag?t.children:[t])},y]};return o.push(h,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(v,")")},Ln)}),{children:o,attributes:n}}}},Yn={provides:function(e){var t=!1;Ze.matchMedia&&(t=Ze.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],o={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Fe(Fe({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Fe(Fe({},n),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Fe(Fe({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||l.children.push({tag:"animate",attributes:Fe(Fe({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(l),e.push({tag:"path",attributes:Fe(Fe({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Fe(Fe({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};jn={mixoutsTo:$o}.mixoutsTo,Vo=[Zt,Sn,Bn,Tn,zn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=On,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,o=void 0===t?et:t;Mt.searchPseudoElements&&On(o)}}},{mixout:function(){return{dom:{unwatch:function(){gn(),Rn=!0}}}},hooks:function(){return{bootstrap:function(){yn(qo("mutationObserverCallbacks",{}))},noAuto:function(){vn&&vn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Rn?fn():yn(qo("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},qn,Dn,Yn,{hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-symbol"),n=null!==o&&(""===o||o);return e.symbol=n,e}}}}],Oo={},Object.keys(Ro).forEach((function(e){-1===Mo.indexOf(e)&&delete Ro[e]})),Vo.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(jn[e]=t[e]),"object"===Ie(t[e])&&Object.keys(t[e]).forEach((function(o){jn[e]||(jn[e]={}),jn[e][o]=t[e][o]}))})),e.hooks){var o=e.hooks();Object.keys(o).forEach((function(e){Oo[e]||(Oo[e]=[]),Oo[e].push(o[e])}))}e.provides&&e.provides(Ro)}));var $n=$o.parse,Gn=$o.icon,Un=o(697),Jn=o.n(Un);function Wn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xn(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,n=new Array(t);o0||!Array.isArray(t)&&t?Kn({},e,t):{}}var ra=M().forwardRef((function(e,t){var o=e.icon,n=e.mask,a=e.symbol,l=e.className,r=e.title,c=e.titleId,s=e.maskId,i=aa(o),u=la("classes",[].concat(Zn(function(e){var t,o=e.beat,n=e.fade,a=e.beatFade,l=e.bounce,r=e.shake,c=e.flash,s=e.spin,i=e.spinPulse,u=e.spinReverse,m=e.pulse,b=e.fixedWidth,d=e.inverse,p=e.border,g=e.listItem,f=e.flip,v=e.size,_=e.rotation,y=e.pull,h=(Kn(t={"fa-beat":o,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":l,"fa-shake":r,"fa-flash":c,"fa-spin":s,"fa-spin-reverse":u,"fa-spin-pulse":i,"fa-pulse":m,"fa-fw":b,"fa-inverse":d,"fa-border":p,"fa-li":g,"fa-flip":!0===f,"fa-flip-horizontal":"horizontal"===f||"both"===f,"fa-flip-vertical":"vertical"===f||"both"===f},"fa-".concat(v),null!=v),Kn(t,"fa-rotate-".concat(_),null!=_&&0!==_),Kn(t,"fa-pull-".concat(y),null!=y),Kn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(e)),Zn(l.split(" ")))),m=la("transform","string"==typeof e.transform?$n.transform(e.transform):e.transform),b=la("mask",aa(n)),d=Gn(i,Xn(Xn(Xn(Xn({},u),m),b),{},{symbol:a,title:r,titleId:c,maskId:s}));if(!d)return function(){var e;!na&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",i),null;var p=d.abstract,g={ref:t};return Object.keys(e).forEach((function(t){ra.defaultProps.hasOwnProperty(t)||(g[t]=e[t])})),ca(p[0],g)}));ra.displayName="FontAwesomeIcon",ra.propTypes={beat:Jn().bool,border:Jn().bool,beatFade:Jn().bool,bounce:Jn().bool,className:Jn().string,fade:Jn().bool,flash:Jn().bool,mask:Jn().oneOfType([Jn().object,Jn().array,Jn().string]),maskId:Jn().string,fixedWidth:Jn().bool,inverse:Jn().bool,flip:Jn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Jn().oneOfType([Jn().object,Jn().array,Jn().string]),listItem:Jn().bool,pull:Jn().oneOf(["right","left"]),pulse:Jn().bool,rotation:Jn().oneOf([0,90,180,270]),shake:Jn().bool,size:Jn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Jn().bool,spinPulse:Jn().bool,spinReverse:Jn().bool,symbol:Jn().oneOfType([Jn().bool,Jn().string]),title:Jn().string,titleId:Jn().string,transform:Jn().oneOfType([Jn().string,Jn().object]),swapOpacity:Jn().bool},ra.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var ca=function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof o)return o;var a=(o.children||[]).map((function(o){return e(t,o)})),l=Object.keys(o.attributes||{}).reduce((function(e,t){var n=o.attributes[t];switch(t){case"class":e.attrs.className=n,delete o.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var o,n=t.indexOf(":"),a=ta(t.slice(0,n)),l=t.slice(n+1).trim();return a.startsWith("webkit")?e[(o=a,o.charAt(0).toUpperCase()+o.slice(1))]=l:e[a]=l,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[ta(t)]=n}return e}),{attrs:{}}),r=n.style,c=void 0===r?{}:r,s=function(e,t){if(null==e)return{};var o,n,a=function(e,t){if(null==e)return{};var o,n,a={},l=Object.keys(e);for(n=0;n=0||(a[o]=e[o]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a}(n,oa);return l.attrs.style=Xn(Xn({},l.attrs.style),c),t.apply(void 0,[o.tag,Xn(Xn({},l.attrs),s)].concat(Zn(a)))}.bind(null,M().createElement),sa={prefix:"far",iconName:"file-alt",icon:[384,512,[],"f15c","M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"]},ia={prefix:"far",iconName:"square",icon:[448,512,[],"f0c8","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"]},ua=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",iconColor:"icon-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,className:o,backgroundColor:n,setBackgroundColor:a,textColor:l,setTextColor:r,borderColor:c,setBorderColor:s,fontSize:i}=e,{customBackgroundColor:u,customTextColor:m,customBorderColor:b}=t,d=L()(o,{"blank-box":!0,"block-box":!0,"has-text-color":l.color,"has-background":n.color,"has-border-color":c.color,[n.class]:n.class,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class}),p={"--cocoon-custom-border-color":b||void 0,"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0},g=(0,D.useBlockProps)({className:d,style:p});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:s,value:c.color},{label:(0,H.__)("背景色",G),onChange:a,value:n.color},{label:(0,H.__)("文字色",G),onChange:r,value:l.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...g},(0,R.createElement)(D.InnerBlocks,null)))}));const{createBlock:ma}=wp.blocks;var ba=[{save({attributes:e}){const{backgroundColor:t,textColor:o,borderColor:n,customBorderColor:a,fontSize:l}=e,r=(0,D.getColorClassName)("background-color",t),c=(0,D.getColorClassName)("color",o),s=(0,D.getColorClassName)("border-color",n),i=(0,D.getFontSizeClass)(l),u=L()({"blank-box":!0,"block-box":!0,"has-text-color":o,"has-background":t,"has-border-color":n||a,[c]:c,[r]:r,[s]:s,[i]:i}),m=D.useBlockProps.save({className:u});return(0,R.createElement)("div",{...m},(0,R.createElement)(D.InnerBlocks.Content,null))}},{attributes:{content:{type:"string",default:X},borderColor:{type:"string",default:""}},migrate(e){const{content:t,borderColor:o}=e;return{content:t,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{borderColor:t}=e,o=L()({"blank-box":!0,[`bb-${ne(t)}`]:!!ne(t),"block-box":!0});return(0,R.createElement)("div",{className:o},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:da}=wp.blocks;var pa={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>da("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>da("cocoon-blocks/tab-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>da("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>da("cocoon-blocks/info-box",{},t)}]},ga=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/blank-box-1","category":"cocoon-block","keywords":["blank","box"],"attributes":{"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:fa}=ga,va={title:(0,H.__)("白抜きボックス",G),icon:(0,R.createElement)(ra,{icon:ia}),description:(0,H.__)("コンテンツを囲むだけのブランクボックスを表示します。",G),edit:ua,save:function({attributes:e}){const{backgroundColor:t,textColor:o,borderColor:n,customBackgroundColor:a,customTextColor:l,customBorderColor:r,fontSize:c}=e,s=(0,D.getColorClassName)("background-color",t),i=(0,D.getColorClassName)("color",o),u=(0,D.getColorClassName)("border-color",n),m=(0,D.getFontSizeClass)(c),b=L()({"blank-box":!0,"block-box":!0,"has-background":t||a,"has-text-color":o||l,"has-border-color":n||r,[i]:i,[s]:s,[u]:u,[m]:m}),d={"--cocoon-custom-background-color":a||void 0,"--cocoon-custom-text-color":l||void 0,"--cocoon-custom-border-color":r||void 0},p=D.useBlockProps.save({className:b,style:d});return(0,R.createElement)("div",{...p},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:ba,transforms:pa},{InspectorControls:_a}=wp.editor,{PanelBody:ya,SelectControl:ha}=wp.components;var ka=[{attributes:{content:{type:"string",source:"html",selector:"div",default:""},style:{type:"string",default:"blogcard-type bct-none"}},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(_a,null,(0,R.createElement)(ya,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(ha,{label:(0,H.__)("ラベル",G),value:a,onChange:e=>t({style:e}),options:[{value:"blogcard-type bct-none",label:(0,H.__)("なし",G)},{value:"blogcard-type bct-related",label:(0,H.__)("関連記事",G)},{value:"blogcard-type bct-reference",label:(0,H.__)("参考記事",G)},{value:"blogcard-type bct-reference-link",label:(0,H.__)("参考リンク",G)},{value:"blogcard-type bct-popular",label:(0,H.__)("人気記事",G)},{value:"blogcard-type bct-together",label:(0,H.__)("あわせて読みたい",G)},{value:"blogcard-type bct-detail",label:(0,H.__)("詳細はこちら",G)},{value:"blogcard-type bct-check",label:(0,H.__)("チェック",G)},{value:"blogcard-type bct-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blogcard-type bct-official",label:(0,H.__)("公式サイト",G)},{value:"blogcard-type bct-dl",label:(0,H.__)("ダウンロード",G)}]}))),(0,R.createElement)("div",{className:L()(a,o)},(0,R.createElement)(RichText,{onChange:function(e){t({content:e})},value:n,multiline:"p"})))},save({attributes:e}){let{content:t}=e;return(0,R.createElement)("div",{className:e.style},(0,R.createElement)(RichText.Content,{value:t.replace(/<\/p>

/g,"

\n

").replace(/^

/g,"\n

").replace(/<\/p>$/g,"

\n"),multiline:"p"}))}}],Ca=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/blogcard","category":"cocoon-block","keywords":["blogcard","box","wrap"],"attributes":{"content":{"type":"string","source":"html","selector":"div","default":""},"style":{"type":"string","default":"blogcard-type bct-none"}},"example":{"attributes":{"content":"https://wp-cocoon.com/"}},"supports":{"anchor":true}}');const{name:xa}=Ca,Ea={title:(0,H.__)("ブログカード",G),description:(0,H.__)("ブログカード表示用の入力ブロックを表示します。URLは複数入力可能です。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e,l=L()(a,o),r=(0,D.useBlockProps)({className:l});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ラベル",G),value:a,onChange:e=>t({style:e}),options:[{value:"blogcard-type bct-none",label:(0,H.__)("なし",G)},{value:"blogcard-type bct-related",label:(0,H.__)("関連記事",G)},{value:"blogcard-type bct-reference",label:(0,H.__)("参考記事",G)},{value:"blogcard-type bct-reference-link",label:(0,H.__)("参考リンク",G)},{value:"blogcard-type bct-popular",label:(0,H.__)("人気記事",G)},{value:"blogcard-type bct-together",label:(0,H.__)("あわせて読みたい",G)},{value:"blogcard-type bct-detail",label:(0,H.__)("詳細はこちら",G)},{value:"blogcard-type bct-check",label:(0,H.__)("チェック",G)},{value:"blogcard-type bct-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blogcard-type bct-official",label:(0,H.__)("公式サイト",G)},{value:"blogcard-type bct-dl",label:(0,H.__)("ダウンロード",G)},{value:"blogcard-type bct-prev",label:(0,H.__)("前回の記事",G)},{value:"blogcard-type bct-next",label:(0,H.__)("続きの記事",G)}]}))),(0,R.createElement)("div",{...r},(0,R.createElement)(D.RichText,{onChange:function(e){t({content:e})},value:n.replace(/^\s+/,"").replace(/\s+$/,"")})))},save:function({attributes:e}){let{content:t,style:o}=e;const n=o,a=D.useBlockProps.save({className:n});return(0,R.createElement)("div",{...a},(0,R.createElement)(D.RichText.Content,{value:t.replace(/<\/p>

/g,"

\n

").replace(/^

/g,"\n

").replace(/<\/p>$/g,"

\n").replace(/\s+

/g,"\n

").replace(/<\p>\s+/g,"

\n").replace(/
/g,"\n
\n").replace(/^/g,"\n").replace(/$/g,"\n").replace(/\n /g,"\n").replace(/\n\n/g,"\n")}))},deprecated:ka};function Na({selectedWidth:e,setAttributes:t}){return(0,R.createElement)(j.PanelBody,{title:(0,H.__)("幅設定",G)},(0,R.createElement)(j.ButtonGroup,{"aria-label":(0,H.__)("幅",G)},["25","50","75","100"].map((o=>(0,R.createElement)(j.Button,{key:o,isSmall:!0,isPrimary:o===e,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})}},o,"%")))))}var wa=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fallbackFontSize:u,fontSize:m,setFontSize:b}=e,{content:d,size:p,url:g,target:f,isCircle:v,isShine:_,customBackgroundColor:y,customTextColor:h,customBorderColor:k,width:C}=t,x=L()(n,{[J]:!0}),E={"--cocoon-custom-border-color":k||void 0,"--cocoon-custom-background-color":y||void 0,"--cocoon-custom-text-color":h||void 0},N=(0,D.useBlockProps)({className:x,style:E});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("ボタン設定",G)},(0,R.createElement)(j.TextControl,{label:(0,H.__)("URL",G),value:g,onChange:e=>o({url:e})}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("リンクの開き方",G),value:f,onChange:e=>o({target:e}),options:[{value:"_self",label:(0,H.__)("現在のタブで開く",G)},{value:"_blank",label:(0,H.__)("新しいタブで開く",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("サイズ",G),value:p,onChange:e=>o({size:e}),options:[{value:"btn-s",label:(0,H.__)("小",G)},{value:"btn-m",label:(0,H.__)("中",G)},{value:"btn-l",label:(0,H.__)("大",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:v,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("光らせる",G),checked:_,onChange:e=>o({isShine:e})})),(0,R.createElement)(Na,{selectedWidth:C,setAttributes:o}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("文字サイズ",G),className:"blocks-font-size"},(0,R.createElement)(D.FontSizePicker,{fallbackFontSize:u,value:m.size,onChange:b,__nextHasNoMarginBottom:!0})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...N},(0,R.createElement)("span",{className:L()(n,{btn:!0,[p]:p,"btn-circle":!!v,"btn-shine":!!_,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[m.class]:m.class,"has-custom-width":C,[`cocoon-block-button__width-${C}`]:C}),href:g,target:f},(0,R.createElement)(D.RichText,{value:d,onChange:e=>o({content:e})}))))}));const{createBlock:Sa}=wp.blocks;var Ba=[{save({attributes:e}){const{content:t,size:o,url:n,target:a,isCircle:l,isShine:r,backgroundColor:c,textColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",c),d=(0,D.getColorClassName)("color",s),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({[J]:!0}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("a",{href:n,className:L()({btn:!0,[o]:o,"btn-circle":!!l,"btn-shine":!!r,"has-text-color":s,"has-background":c,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),target:a,rel:"noopener"},(0,R.createElement)(D.RichText.Content,{value:t})))}},{attributes:{content:{type:"string",default:(0,H.__)("ボタン",G)},url:{type:"string",default:""},target:{type:"string",default:"_self"},color:{type:"string",default:Q},size:{type:"string",default:""},isCircle:{type:"boolean",default:!1},isShine:{type:"boolean",default:!1},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,color:o,size:n,url:a,target:l,isCircle:r,isShine:c,align:s}=e;return{content:t,size:n,url:a,target:l,isCircle:r,isShine:c,align:s,backgroundColor:ne(o),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,color:o,size:n,url:a,target:l,isCircle:r,isShine:c}=e,s=L()({btn:!0,[`btn-${ne(o)}`]:!!ne(o),[n]:n,"btn-circle":!!r,"btn-shine":!!c});return(0,R.createElement)("div",{className:J},(0,R.createElement)("a",{href:a,className:s,target:l},(0,R.createElement)(D.RichText.Content,{value:t})))}}],Ta=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/button-1","category":"cocoon-block","keywords":["button","btn"],"attributes":{"content":{"type":"string","default":"ボタン"},"url":{"type":"string","default":""},"target":{"type":"string","default":"_self"},"size":{"type":"string","default":""},"isCircle":{"type":"boolean","default":false},"isShine":{"type":"boolean","default":false},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"width":{"type":"string"}},"example":{"attributes":{"content":"Button"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:za}=Ta,Aa={title:(0,H.__)("ボタン",G),icon:"embed-generic",description:(0,H.__)("一般的なリンクボタンを作成します。",G),edit:wa,save:function({attributes:e}){const{content:t,size:o,url:n,target:a,isCircle:l,isShine:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d,width:p}=e,g=(0,D.getColorClassName)("background-color",c),f=(0,D.getColorClassName)("color",s),v=(0,D.getColorClassName)("border-color",i),_=(0,D.getFontSizeClass)(d),y=L()({[J]:!0}),h={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0},k=D.useBlockProps.save({className:y,style:h});return(0,R.createElement)("div",{...k},(0,R.createElement)("a",{href:n,className:L()({btn:!0,[o]:o,"btn-circle":!!l,"btn-shine":!!r,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[f]:f,[g]:g,[v]:v,[_]:_,"has-custom-width":p,[`cocoon-block-button__width-${p}`]:p}),target:a,rel:"noopener"},(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:Ba};var Pa={prefix:"fas",iconName:"crown",icon:[640,512,[],"f521","M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"]},Fa={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},Ia={prefix:"fas",iconName:"text-height",icon:[576,512,[],"f034","M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]},Va=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fallbackFontSize:u,fontSize:m,setFontSize:b}=e,{tag:d,size:p,isCircle:g,isShine:f,customBackgroundColor:v,customTextColor:_,customBorderColor:y,width:h}=t,k=L()(n,{"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[p]:p,"btn-wrap-circle":!!g,"btn-wrap-shine":!!f,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[m.class]:m.class,"has-custom-width":h,[`cocoon-block-button__width-${h}`]:h}),C={"--cocoon-custom-border-color":y||void 0,"--cocoon-custom-background-color":v||void 0,"--cocoon-custom-text-color":_||void 0},x=(0,D.useBlockProps)({className:k,style:C,dangerouslySetInnerHTML:{__html:d}});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("囲みボタン設定",G)},(0,R.createElement)(j.TextareaControl,{label:(0,H.__)("リンクタグ・ショートコード",G),value:d,onChange:e=>o({tag:e})}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("サイズ",G),value:p,onChange:e=>o({size:e}),options:[{value:"btn-wrap-s",label:(0,H.__)("小",G)},{value:"btn-wrap-m",label:(0,H.__)("中",G)},{value:"btn-wrap-l",label:(0,H.__)("大",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:g,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("光らせる",G),checked:f,onChange:e=>o({isShine:e})})),(0,R.createElement)(Na,{selectedWidth:h,setAttributes:o}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("文字サイズ",G),className:"blocks-font-size"},(0,R.createElement)(D.FontSizePicker,{fallbackFontSize:u,value:m.size,onChange:b,__nextHasNoMarginBottom:!0})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x}))}));const{createBlock:Oa}=wp.blocks;var Ra=[{save({attributes:e}){const{tag:t,size:o,isCircle:n,isShine:a,backgroundColor:l,textColor:r,borderColor:c,customBorderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("background-color",l),m=(0,D.getColorClassName)("color",r),b=(0,D.getColorClassName)("border-color",c),d=(0,D.getFontSizeClass)(i),p=L()({"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[o]:o,"btn-wrap-circle":!!n,"btn-wrap-shine":!!a,"has-text-color":r,"has-background":l,"has-border-color":c||s,[m]:m,[u]:u,[b]:b,[d]:d}),g=D.useBlockProps.save({className:p});return(0,R.createElement)("div",{...g},(0,R.createElement)(D.RichText.Content,{value:t}))}},{attributes:{content:{type:"string",default:(0,H.__)("こちらをクリックしてリンクタグを設定エリア入力してください。この入力は公開ページで反映されません。",G)},tag:{type:"string",default:""},color:{type:"string",default:Q},size:{type:"string",default:""},isCircle:{type:"boolean",default:!1},isShine:{type:"boolean",default:!1},align:{type:"string"},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,tag:o,color:n,size:a,isCircle:l,isShine:r,align:c}=e;return{content:t,tag:o,size:a,isCircle:l,isShine:r,align:c,backgroundColor:ne(n),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,tag:o,color:n,size:a,isCircle:l,isShine:r,align:c}=e,s=L()({"btn-wrap":!0,[`btn-wrap-${ne(n)}`]:!!ne(n),[a]:a,[J]:!0,"btn-wrap-circle":!!l,"btn-wrap-shine":!!r});return(0,R.createElement)("div",{className:s},(0,R.createElement)(D.RichText.Content,{value:o}))}}],Ma=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/button-wrap-1","category":"cocoon-block","keywords":["button","btn","wrap"],"attributes":{"tag":{"type":"string","default":""},"size":{"type":"string","default":""},"isCircle":{"type":"boolean","default":false},"isShine":{"type":"boolean","default":false},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"customFontSize":{"type":"string"},"width":{"type":"string"}},"example":{"attributes":{"tag":"Button"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:qa}=Ma,La={title:(0,H.__)("囲みボタン",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"ticket-alt",icon:[576,512,[],"f3ff","M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"]}}),description:(0,H.__)("アスリートタグ等のタグを変更できないリンクをボタン化します。",G),edit:Va,save:function({attributes:e}){const{tag:t,size:o,isCircle:n,isShine:a,backgroundColor:l,textColor:r,borderColor:c,customBackgroundColor:s,customTextColor:i,customBorderColor:u,fontSize:m,width:b}=e,d=(0,D.getColorClassName)("background-color",l),p=(0,D.getColorClassName)("color",r),g=(0,D.getColorClassName)("border-color",c),f=(0,D.getFontSizeClass)(m),v=L()({"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[o]:o,"btn-wrap-circle":!!n,"btn-wrap-shine":!!a,"has-text-color":r||i,"has-background":l||s,"has-border-color":c||u,[p]:p,[d]:d,[g]:g,[f]:f,"has-custom-width":b,[`cocoon-block-button__width-${b}`]:b}),_={"--cocoon-custom-background-color":s||void 0,"--cocoon-custom-text-color":i||void 0,"--cocoon-custom-border-color":u||void 0},y=D.useBlockProps.save({className:v,style:_});let h;return t.includes(' rel="noopener')||(h=t.replace(' target="_blank"',' target="_blank" rel="noopener"')),(0,R.createElement)("div",{...y},(0,R.createElement)(D.RichText.Content,{value:h}))},deprecated:Ra};var Ha=(0,fe.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,fe.cloneElement)(e,{width:t,height:t,...o,ref:n})})),ja=window.wp.primitives,Da=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,R.createElement)(ja.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}));const{createBlock:Ya}=wp.blocks,{InnerBlocks:$a,InspectorControls:Ga}=wp.editor,{PanelBody:Ua,SelectControl:Ja}=wp.components;function Wa(e){return L()({[e]:!!e,"common-icon-box":!0,"block-box":!0})}var Xa=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:"information-box"}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>Ya("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Ya("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>Ya("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Ya("cocoon-blocks/info-box",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Ga,null,(0,R.createElement)(Ua,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Ja,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"information-box",label:(0,H.__)("補足情報(i)",G)},{value:"question-box",label:(0,H.__)("補足情報(?)",G)},{value:"alert-box",label:(0,H.__)("補足情報(!)",G)},{value:"memo-box",label:(0,H.__)("メモ",G)},{value:"comment-box",label:(0,H.__)("コメント",G)},{value:"ok-box",label:(0,H.__)("OK",G)},{value:"ng-box",label:(0,H.__)("NG",G)},{value:"good-box",label:(0,H.__)("GOOD",G)},{value:"bad-box",label:(0,H.__)("BAD",G)},{value:"profile-box",label:(0,H.__)("プロフィール",G)}]}))),(0,R.createElement)("div",{className:L()(Wa(a),o)},(0,R.createElement)($a,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:Wa(o)},(0,R.createElement)($a.Content,null))}}],Qa={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/info-box",{},t)}]},Ka=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/icon-box","category":"cocoon-block","keywords":["icon","box"],"attributes":{"style":{"type":"string","default":"information-box"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Za}=Ka,el={title:(0,H.__)("アイコンボックス",G),icon:(0,R.createElement)(Ha,{icon:Da,size:32}),description:(0,H.__)("アイコンを用いて直感的にメッセージ内容を伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("common-icon-box","block-box",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"information-box",label:(0,H.__)("補足情報(i)",G)},{value:"question-box",label:(0,H.__)("補足情報(?)",G)},{value:"alert-box",label:(0,H.__)("補足情報(!)",G)},{value:"memo-box",label:(0,H.__)("メモ",G)},{value:"comment-box",label:(0,H.__)("コメント",G)},{value:"ok-box",label:(0,H.__)("OK",G)},{value:"ng-box",label:(0,H.__)("NG",G)},{value:"good-box",label:(0,H.__)("GOOD",G)},{value:"bad-box",label:(0,H.__)("BAD",G)},{value:"profile-box",label:(0,H.__)("プロフィール",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("common-icon-box","block-box",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Xa,transforms:Qa};var tl=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"})),ol=window.lodash;const nl=["core/list"];var al=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",iconColor:"icon-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,mergeBlocks:n,onReplace:a,className:l,backgroundColor:r,setBackgroundColor:c,textColor:s,setTextColor:i,borderColor:u,setBorderColor:m,iconColor:b,setIconColor:d,fallbackBackgroundColor:p,fallbackTextColor:g,fallbackBorderColor:f,fallbackIconColor:v,fallbackFontSize:_,fontSize:y,setFontSize:h}=e,{title:k,icon:C,customBackgroundColor:x,customTextColor:E,customBorderColor:N,customIconColor:w}=t,S=L()(l,{"iconlist-box":!0,"blank-box":!0,[C]:!!C,"block-box":!0,"has-text-color":s.color,"has-background":r.color,"has-border-color":u.color,"has-icon-color":b.color,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,[b.class]:b.class,[y.class]:y.class}),B={"--cocoon-custom-border-color":N||void 0,"--cocoon-custom-background-color":x||void 0,"--cocoon-custom-text-color":E||void 0,"--cocoon-custom-icon-color":w||void 0},T=(0,D.useBlockProps)({className:S,style:B});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(le.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:C===le[e].value,className:le[e].label,onClick:()=>{o({icon:le[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("アイコン色",G),onChange:d,value:b.color},{label:(0,H.__)("ボーダー色",G),onChange:m,value:u.color},{label:(0,H.__)("背景色",G),onChange:c,value:r.color},{label:(0,H.__)("文字色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...T},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText,{value:k,placeholder:(0,H.__)("タイトルがある場合は入力",G),onChange:e=>o({title:e})})),(0,R.createElement)(D.InnerBlocks,{template:[["core/list"]],templateLock:"all",allowedBlocks:nl})))}));const ll={attributes:{title:{type:"string",default:""},iconColor:{type:"string",default:""},borderColor:{type:"string",default:""},icon:{type:"string",default:"list-caret-right"}},migrate(e){const{title:t,icon:o,iconColor:n,borderColor:a}=e;return{title:t,icon:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(a),customBorderColor:void 0,iconColor:ne(n),customIconColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{title:t,icon:o,iconColor:n,borderColor:a}=e,l=L()({"iconlist-box":!0,[o]:!!o,[`iic-${ne(n)}`]:!!ne(n),[`blank-box bb-${ne(a)}`]:!!ne(a),"block-box":!0});return(0,R.createElement)("div",{className:l},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}},rl={save(e){const{title:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,iconColor:c,customIconColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getColorClassName)("icon-color",c),p=(0,D.getFontSizeClass)(i),g=L()({"iconlist-box":!0,"blank-box":!0,[o]:!!o,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,"has-icon-color":c||s,[m]:m,[u]:u,[b]:b,[d]:d,[p]:p}),f=D.useBlockProps.save({className:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}};var cl=[rl,ll],sl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/iconlist-box","category":"cocoon-block","keywords":["icon","list","box"],"attributes":{"title":{"type":"string","default":""},"icon":{"type":"string","default":"list-caret-right"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"iconColor":{"type":"string"},"customIconColor":{"type":"string"},"fontSize":{"type":"string"}},"supports":{"anchor":true},"example":{"attributes":{"title":"Title"},"innerBlocks":[{"name":"core/list","innerBlocks":[{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}}]}]}}');const{name:il}=sl,ul={title:(0,H.__)("アイコンリスト",G),icon:(0,R.createElement)(Ha,{icon:tl,size:32}),description:(0,H.__)("リストポイントにアイコンを適用した非順序リストです。",G),edit:al,save:function(e){const{title:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,iconColor:i,customIconColor:u,fontSize:m}=e.attributes,b=(0,D.getColorClassName)("background-color",n),d=(0,D.getColorClassName)("color",a),p=(0,D.getColorClassName)("border-color",l),g=(0,D.getColorClassName)("icon-color",i),f=(0,D.getFontSizeClass)(m),v=L()({"iconlist-box":!0,"blank-box":!0,[o]:!!o,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,"has-icon-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g,[f]:f}),_={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0,"--cooon-custom-icon-color":u||void 0},y=D.useBlockProps.save({className:v,style:_});return(0,R.createElement)("div",{...y},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:cl};var ml=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));const{createBlock:bl}=wp.blocks,{InnerBlocks:dl,InspectorControls:pl}=wp.editor,{PanelBody:gl,SelectControl:fl}=wp.components;function vl(e){return L()({[e]:!!e,"block-box":!0})}var _l=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:"primary-box"}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>bl("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>bl("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>bl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>bl("cocoon-blocks/tab-box-1",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(pl,null,(0,R.createElement)(gl,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(fl,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"primary-box",label:(0,H.__)("プライマリー(濃い水色)",G)},{value:"secondary-box",label:(0,H.__)("セカンダリー(濃い灰色)",G)},{value:"info-box",label:(0,H.__)("インフォ(薄い青)",G)},{value:"success-box",label:(0,H.__)("サクセス(薄い緑)",G)},{value:"warning-box",label:(0,H.__)("ワーニング(薄い黄色)",G)},{value:"danger-box",label:(0,H.__)("デンジャー(薄い赤色)",G)},{value:"light-box",label:(0,H.__)("ライト(白色)",G)},{value:"dark-box",label:(0,H.__)("ダーク(暗い灰色)",G)}]}))),(0,R.createElement)("div",{className:L()(vl(a),o)},(0,R.createElement)(dl,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:vl(o)},(0,R.createElement)(dl.Content,null))}}],yl={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)}]},hl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/info-box","category":"cocoon-block","keywords":["info","box"],"attributes":{"style":{"type":"string","default":"primary-box"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:kl}=hl,Cl={title:(0,H.__)("案内ボックス",G),icon:(0,R.createElement)(Ha,{icon:ml,size:32}),description:(0,H.__)("ボックスの背景色により、直感的にメッセージ内容を伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("block-box",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"primary-box",label:(0,H.__)("プライマリー(濃い水色)",G)},{value:"secondary-box",label:(0,H.__)("セカンダリー(濃い灰色)",G)},{value:"info-box",label:(0,H.__)("インフォ(薄い青)",G)},{value:"success-box",label:(0,H.__)("サクセス(薄い緑)",G)},{value:"warning-box",label:(0,H.__)("ワーニング(薄い黄色)",G)},{value:"danger-box",label:(0,H.__)("デンジャー(薄い赤色)",G)},{value:"light-box",label:(0,H.__)("ライト(白色)",G)},{value:"dark-box",label:(0,H.__)("ダーク(暗い灰色)",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("block-box",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:_l,transforms:yl};var xl=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const El=(0,H.__)("キーワード",G),{RichText:Nl}=wp.editor,wl=(0,H.__)("キーワード",G);function Sl(){return L()({"search-form":!0,"block-box":!0})}var Bl=[{attributes:{content:{type:"string",default:wl}},edit({attributes:e,setAttributes:t,className:o}){const{content:n}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{className:L()(Sl(),o)},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(Nl,{value:n,onChange:e=>t({content:e}),placeholder:wl})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G))))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:Sl()},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(Nl.Content,{value:t})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G)))}}],Tl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/search-box","category":"cocoon-block","keywords":["search","box"],"attributes":{"content":{"type":"string","default":"キーワード"}},"example":{"attributes":{"content":"Keywords"}},"supports":{"anchor":true}}');const{name:zl}=Tl,Al={title:(0,H.__)("検索案内",G),icon:(0,R.createElement)(Ha,{icon:xl,size:32}),description:(0,H.__)("訪問者に検索を促すためのボックスです。検索をクリックすることで検索結果へ跳びます(※AMPページ以外)。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{content:n}=e,a=L()("search-form","block-box",o),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...l},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(D.RichText,{value:n,onChange:e=>t({content:e}),placeholder:El})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G))))},save:function({attributes:e}){const{content:t}=e,o=L()("search-form","block-box"),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G)))},deprecated:Bl},{createBlock:Pl}=wp.blocks,{InnerBlocks:Fl,InspectorControls:Il}=wp.editor,{PanelBody:Vl,SelectControl:Ol}=wp.components;function Rl(e){return L()({"blank-box":!0,sticky:!0,[e]:!!e,"block-box":!0})}var Ml=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Pl("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>Pl("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>Pl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Pl("cocoon-blocks/info-box",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Il,null,(0,R.createElement)(Vl,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Ol,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:"st-yellow",label:(0,H.__)("黄色",G)},{value:"st-red",label:(0,H.__)("赤色",G)},{value:"st-blue",label:(0,H.__)("青色",G)},{value:"st-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:L()(Rl(a),o)},(0,R.createElement)(Fl,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:Rl(o)},(0,R.createElement)(Fl.Content,null))}}],ql={to:[{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/info-box",{},t)}]},Ll=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/sticky-box","category":"cocoon-block","keywords":["sticky","box"],"attributes":{"style":{"type":"string","default":""}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Hl}=Ll,jl={title:(0,H.__)("付箋風ボックス",G),icon:"button",description:(0,H.__)("目立つ濃いめの色で付箋風にメッセージを伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("blank-box","block-box","sticky",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:"st-yellow",label:(0,H.__)("黄色",G)},{value:"st-red",label:(0,H.__)("赤色",G)},{value:"st-blue",label:(0,H.__)("青色",G)},{value:"st-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("blank-box","block-box","sticky",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Ml,transforms:ql};var Dl=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"})),Yl=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u}=e,{label:m,customBackgroundColor:b,customTextColor:d,customBorderColor:p}=t,g=L()(n,{"blank-box":!0,"bb-tab":!0,[m]:!!m,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class}),f={"--cocoon-custom-border-color":p||void 0,"--cocoon-custom-background-color":b||void 0,"--cocoon-custom-text-color":d||void 0},v=(0,D.useBlockProps)({className:g,style:f});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ラベル",G),value:m,onChange:e=>o({label:e}),options:[{value:"bb-check",label:(0,H.__)("チェック",G)},{value:"bb-comment",label:(0,H.__)("コメント",G)},{value:"bb-point",label:(0,H.__)("ポイント",G)},{value:"bb-tips",label:(0,H.__)("ティップス",G)},{value:"bb-hint",label:(0,H.__)("ヒント",G)},{value:"bb-pickup",label:(0,H.__)("ピックアップ",G)},{value:"bb-bookmark",label:(0,H.__)("ブックマーク",G)},{value:"bb-memo",label:(0,H.__)("メモ",G)},{value:"bb-download",label:(0,H.__)("ダウンロード",G)},{value:"bb-break",label:(0,H.__)("ブレイク",G)},{value:"bb-amazon",label:(0,H.__)("Amazon",G)},{value:"bb-ok",label:(0,H.__)("OK",G)},{value:"bb-ng",label:(0,H.__)("NG",G)},{value:"bb-good",label:(0,H.__)("GOOD",G)},{value:"bb-bad",label:(0,H.__)("BAD",G)},{value:"bb-profile",label:(0,H.__)("プロフィール",G)}]})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("枠の色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...v},(0,R.createElement)(D.InnerBlocks,null)))}));const{createBlock:$l}=wp.blocks;var Gl=[{save(e){const{label:t,backgroundColor:o,textColor:n,borderColor:a,customBorderColor:l,fontSize:r}=e.attributes,c=(0,D.getColorClassName)("background-color",o),s=(0,D.getColorClassName)("color",n),i=(0,D.getColorClassName)("border-color",a),u=(0,D.getFontSizeClass)(r),m=L()({"blank-box":!0,"bb-tab":!0,[t]:!!t,"block-box":!0,"has-text-color":n,"has-background":o,"has-border-color":a||l,[s]:s,[c]:c,[i]:i,[u]:u}),b=D.useBlockProps.save({className:m});return(0,R.createElement)("div",{...b},(0,R.createElement)(D.InnerBlocks.Content,null))}},{attributes:{content:{type:"string",default:X},style:{type:"string",default:"bb-check"},color:{type:"string",default:""}},migrate(e){const{content:t,style:o,color:n}=e;return{content:t,label:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(n),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,color:n}=e,a=L()({"blank-box":!0,"bb-tab":!0,[o]:!!o,[`bb-${ne(n)}`]:!!ne(n),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:Ul}=wp.blocks;var Jl={to:[{type:"block",blocks:["cocoon-blocks/micro-text"],transform:e=>Ul("cocoon-blocks/micro-text",e)}]};const{createBlock:Wl}=wp.blocks;var Xl={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>Wl("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Wl("cocoon-blocks/blank-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>Wl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Wl("cocoon-blocks/info-box",{},t)}]},Ql=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/tab-box-1","category":"cocoon-block","keywords":["tab","box"],"attributes":{"label":{"type":"string","default":"bb-check"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Kl}=Ql,Zl={title:(0,H.__)("タブボックス",G),icon:(0,R.createElement)(Ha,{icon:Dl,size:32}),description:(0,H.__)("タブにメッセージ内容を伝えるための文字が書かれているボックスです。",G),edit:Yl,save:function(e){const{label:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,fontSize:s}=e.attributes,i=(0,D.getColorClassName)("background-color",o),u=(0,D.getColorClassName)("color",n),m=(0,D.getColorClassName)("border-color",a),b=(0,D.getFontSizeClass)(s),d=L()({"blank-box":!0,"bb-tab":!0,[t]:!!t,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,[u]:u,[i]:i,[m]:m,[b]:b}),p={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0},g=D.useBlockProps.save({className:d,style:p});return(0,R.createElement)("div",{...g},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Gl,transforms:Xl},er=["cocoon-blocks/timeline-item"],tr=function(e,t){var o,n,a=0;function l(){var l,r,c=o,s=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(r=0;r(0,ol.times)(e,(()=>["cocoon-blocks/timeline-item"]))));var or=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",pointColor:"point-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,pointColor:u,setPointColor:m,fontSize:b,clientId:d}=e,{title:p,items:g,customBackgroundColor:f,customTextColor:v,customBorderColor:_,customPointColor:y,notNestedStyle:h,backgroundColorValue:k,textColorValue:C,borderColorValue:x,pointColorValue:E}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(d);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&h&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color}),o({pointColorValue:u.color})}),[a,r,s,u]);const N=L()(n,{"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,"has-point-color":u.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,[b.class]:b.class,"not-nested-style":h,"cocoon-block-timeline":!0}),w={"--cocoon-custom-border-color":_||void 0,"--cocoon-custom-background-color":f||void 0,"--cocoon-custom-text-color":v||void 0,"--cocoon-custom-point-color":y||void 0};h&&(w["--cocoon-custom-border-color"]=x,w["--cocoon-custom-background-color"]=k,w["--cocoon-custom-text-color"]=C,w["--cocoon-custom-point-color"]=E);const S=(0,D.useBlockProps)({className:N,style:w});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("アイテム数"),value:g,onChange:e=>o({items:e}),min:1,max:50})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ポイント色",G),onChange:m,value:u.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...S},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText,{value:p,onChange:e=>o({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks,{template:tr(g),templateLock:"all",allowedBlocks:er}))))}));const nr={attributes:{title:{type:"string",default:""},iconColor:{type:"string",default:""},borderColor:{type:"string",default:""},icon:{type:"string",default:"list-caret-right"}},migrate(e){const{title:t,icon:o,iconColor:n,borderColor:a}=e;return{title:t,icon:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(a),customBorderColor:void 0,iconColor:ne(n),customIconColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{title:t,icon:o,iconColor:n,borderColor:a}=e,l=L()({"iconlist-box":!0,[o]:!!o,[`iic-${ne(n)}`]:!!ne(n),[`blank-box bb-${ne(a)}`]:!!ne(a),"block-box":!0});return(0,R.createElement)("div",{className:l},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}},ar={attributes:{title:{type:"string",default:"タイムラインのタイトル"},items:{type:"number",default:1},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},pointColor:{type:"string"},customPointColor:{type:"string"},fontSize:{type:"string"},notNestedStyle:{type:"boolean",default:!0},backgroundColorValue:{type:"string"},textColorValue:{type:"string"},borderColorValue:{type:"string"},pointColorValue:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,pointColor:s,customPointColor:i,fontSize:u}=e,m=(0,D.getColorClassName)("background-color",o),b=(0,D.getColorClassName)("color",n),d=(0,D.getColorClassName)("border-color",a),p=(0,D.getColorClassName)("point-color",s),g=(0,D.getFontSizeClass)(u),f=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,"has-point-color":s||i,[b]:b,[m]:m,[d]:d,[p]:p,[g]:g}),v={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0,"--cocoon-custom-point-color":i||void 0},_=D.useBlockProps.save({className:f,style:v});return(0,R.createElement)("div",{..._},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var lr=[ar,{save({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBorderColor:l,pointColor:r,customPointColor:c,fontSize:s}=e,i=(0,D.getColorClassName)("background-color",o),u=(0,D.getColorClassName)("color",n),m=(0,D.getColorClassName)("border-color",a),b=(0,D.getColorClassName)("point-color",r),d=(0,D.getFontSizeClass)(s),p=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n,"has-background":o,"has-border-color":a||l,"has-point-color":r||c,[u]:u,[i]:i,[m]:m,[b]:b,[d]:d}),g=D.useBlockProps.save({className:p});return(0,R.createElement)("div",{...g},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},nr],rr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/timeline","category":"cocoon-block","keywords":["timeline","box"],"attributes":{"title":{"type":"string","default":"タイムラインのタイトル"},"items":{"type":"number","default":1},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"pointColor":{"type":"string"},"customPointColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"},"pointColorValue":{"type":"string"}},"example":{"attributes":{"title":"Title"},"innerBlocks":[{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 1","title":"Volutpat consequat mauris nunc congue"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Adipiscing enim eu turpis egestas pretium aenean pharetra magna ac."}}]},{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 2","title":"Elementum curabitur vitae nunc sed"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Suspendisse in est ante in nibh mauris cursus mattis molestie."}}]},{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 3","title":"Adipiscing bibendum est ultricies integer"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Donec ac odio tempor orci dapibus ultrices in iaculis nunc."}}]}]},"supports":{"anchor":true}}');const{name:cr}=rr,sr={title:(0,H.__)("タイムライン",G),icon:(0,R.createElement)("svg",{id:"Capa_1","enable-background":"new 0 0 443.294 443.294",height:"512",viewBox:"0 0 443.294 443.294",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m221.647 0c-122.214 0-221.647 99.433-221.647 221.647s99.433 221.647 221.647 221.647 221.647-99.433 221.647-221.647-99.433-221.647-221.647-221.647zm0 415.588c-106.941 0-193.941-87-193.941-193.941s87-193.941 193.941-193.941 193.941 87 193.941 193.941-87 193.941-193.941 193.941z"}),(0,R.createElement)("path",{d:"m235.5 83.118h-27.706v144.265l87.176 87.176 19.589-19.589-79.059-79.059z"})),description:(0,H.__)("時系列を表現するためのブロックです。",G),edit:or,save:function({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,pointColor:s,customPointColor:i,fontSize:u,notNestedStyle:m,backgroundColorValue:b,textColorValue:d,borderColorValue:p,pointColorValue:g}=e,f=(0,D.getColorClassName)("background-color",o),v=(0,D.getColorClassName)("color",n),_=(0,D.getColorClassName)("border-color",a),y=(0,D.getColorClassName)("point-color",s),h=(0,D.getFontSizeClass)(u),k=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,"has-point-color":s||i,[v]:v,[f]:f,[_]:_,[y]:y,[h]:h,"not-nested-style":m,"cocoon-block-timeline":!0}),C={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0,"--cocoon-custom-point-color":i||void 0};m&&(C["--cocoon-custom-border-color"]=p,C["--cocoon-custom-background-color"]=b,C["--cocoon-custom-text-color"]=d,C["--cocoon-custom-point-color"]=g);const x=D.useBlockProps.save({className:k,style:C});return(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:lr},{InnerBlocks:ir,RichText:ur}=wp.editor,{Fragment:mr}=wp.element;var br=[{attributes:{label:{type:"string",default:(0,H.__)("ラベル",G)},title:{type:"string",default:(0,H.__)("タイトル",G)}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{title:o,label:n}=e;return(0,R.createElement)(mr,null,(0,R.createElement)("li",{className:"timeline-item cf"},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(ur,{value:n,onChange:e=>t({label:e}),placeholder:(0,H.__)("ラベル",G)})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(ur,{value:o,onChange:e=>t({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(ir,{templateLock:!1})))))},save({attributes:e}){const{title:t,label:o}=e;return(0,R.createElement)("li",{className:"timeline-item cf"},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(ur.Content,{value:o})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(ur.Content,{value:t})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(ir.Content,null))))}}],dr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/timeline-item","category":"cocoon-block","parent":["cocoon-blocks/timeline"],"attributes":{"label":{"type":"string","default":"ラベル"},"title":{"type":"string","default":"タイトル"}},"supports":{"anchor":true},"example":{}}');const{name:pr}=dr,gr={title:(0,H.__)("タイムラインアイテム",G),icon:(0,R.createElement)(ra,{icon:ia}),description:(0,H.__)("カラム左側に表示される内容内容を入力。",G),edit:function({attributes:e,setAttributes:t}){const{title:o,label:n}=e,a=(0,D.useBlockProps)({className:"timeline-item cf"});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("li",{...a},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(D.RichText,{value:n,onChange:e=>t({label:e}),placeholder:(0,H.__)("ラベル",G)})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(D.RichText,{value:o,onChange:e=>t({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))))},save:function({attributes:e}){const{title:t,label:o}=e,n=D.useBlockProps.save({className:"timeline-item cf"});return(0,R.createElement)("li",{...n},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(D.RichText.Content,{value:o})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(D.InnerBlocks.Content,null))))},deprecated:br};var fr=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),vr=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function e(t){const{attributes:o,setAttributes:n,className:a,backgroundColor:l,setBackgroundColor:r,textColor:c,setTextColor:s,borderColor:i,setBorderColor:u,fontSize:m,clientId:b}=t,{content:d,dateID:p,customBackgroundColor:g,customTextColor:f,customBorderColor:v,notNestedStyle:_,backgroundColorValue:y,textColorValue:h,borderColorValue:k}=o;(0,_e.useSelect)((e=>{const o=e("core/block-editor").getBlockParents(b);for(const n of o){const o=e("core/block-editor").getBlock(n);if(o.name===t.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&_&&n({notNestedStyle:!1}),(0,fe.useEffect)((()=>{n({backgroundColorValue:l.color}),n({textColorValue:c.color}),n({borderColorValue:i.color})}),[i,l,c]);const C=L()(a,{"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":c.color,"has-background":l.color,"has-border-color":i.color,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class,[m.class]:m.class,"not-nested-style":_,"cocoon-block-toggle":!0}),x={"--cocoon-custom-border-color":v||void 0,"--cocoon-custom-background-color":g||void 0,"--cocoon-custom-text-color":f||void 0};_&&(x["--cocoon-custom-border-color"]=k,x["--cocoon-custom-background-color"]=y,x["--cocoon-custom-text-color"]=h);const E=(0,D.useBlockProps)({className:C,style:x}),N=(0,ve.useInstanceId)(e);return(0,fe.useEffect)((()=>{n({dateID:K()+N})}),[N]),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:u,value:i.color},{label:(0,H.__)("背景色",G),onChange:r,value:l.color},{label:(0,H.__)("文字色",G),onChange:s,value:c.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...E},(0,R.createElement)("input",{id:"toggle-checkbox-"+p,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+p},(0,R.createElement)(D.RichText,{value:d,onChange:e=>n({content:e})})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks,null))))}));const _r={attributes:{content:{type:"string",selector:"div",default:"アコーディオン見出し"},dateID:{type:"string",default:""},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var yr=[_r,{migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},{attributes:{content:{type:"string",selector:"div",default:(0,H.__)("トグルボックス見出し",G)},color:{type:"string",default:""},dateID:{type:"string",default:""}},migrate(e){const{content:t,color:o,dateID:n}=e;return{content:t,dateID:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,dateID:n}=e,a=L()({"toggle-wrap":!0,[`tb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("input",{id:"toggle-checkbox-"+n,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+n},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}}],hr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/toggle-box-1","category":"cocoon-block","keywords":["toggle","box"],"attributes":{"content":{"type":"string","selector":"div","default":"アコーディオン見出し"},"dateID":{"type":"string","default":""},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Accordion heading"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"reusable":false,"anchor":true}}');const{name:kr}=hr,Cr={title:(0,H.__)("アコーディオン(トグル)",G),icon:(0,R.createElement)(Ha,{icon:fr,size:32}),description:(0,H.__)("旧トグルボックス。クリックすることでコンテンツ内容の表示を切り替えることができるボックスです。",G),edit:vr,save:function({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-toggle":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:yr};var xr=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",questionColor:"question-color",answerColor:"answer-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{className:t,setAttributes:o,questionColor:n,setQuestionColor:a,answerColor:l,setAnswerColor:r,backgroundColor:c,setBackgroundColor:s,textColor:i,setTextColor:u,borderColor:m,setBorderColor:b,fontSize:d,clientId:p}=e,{question:g,questionLabel:f,answerLabel:v,customBackgroundColor:_,customTextColor:y,customBorderColor:h,customQuestionColor:k,customAnswerColor:C,notNestedStyle:x,questionColorValue:E,answerColorValue:N,backgroundColorValue:w,textColorValue:S,borderColorValue:B}=e.attributes;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(p);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&x&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({questionColorValue:n.color}),o({answerColorValue:l.color}),o({backgroundColorValue:c.color}),o({textColorValue:i.color}),o({borderColorValue:m.color})}),[n,l,m,c,i]);const T=L()(t,{"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":n.color,"has-answer-color":l.color,"has-text-color":i.color,"has-background":c.color,"has-border-color":m.color,[n.class]:n.class,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class,[m.class]:m.class,[d.class]:d.class,"not-nested-style":x,"cocoon-block-faq":!0}),z={"--cocoon-custom-question-color":k||void 0,"--cocoon-custom-answer-color":C||void 0,"--cocoon-custom-border-color":h||void 0,"--cocoon-custom-background-color":_||void 0,"--cocoon-custom-text-color":y||void 0};x&&(z["--cocoon-custom-question-color"]=E,z["--cocoon-custom-answer-color"]=N,z["--cocoon-custom-border-color"]=B,z["--cocoon-custom-background-color"]=w,z["--cocoon-custom-text-color"]=S);const A=(0,D.useBlockProps)({className:T,style:z});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("設定",G)},(0,R.createElement)(j.BaseControl,{id:"questionLabel",label:(0,H.__)("質問ラベル",G)},(0,R.createElement)(j.TextControl,{value:f,placeholder:(0,H.__)("Q",G),onChange:e=>o({questionLabel:e}),help:(0,H.__)("※2文字以下推奨",G)})),(0,R.createElement)(j.BaseControl,{id:"answerLabel",label:(0,H.__)("回答ラベル",G)},(0,R.createElement)(j.TextControl,{value:v,placeholder:(0,H.__)("A",G),onChange:e=>o({answerLabel:e}),help:(0,H.__)("※2文字以下推奨",G)}))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("質問ラベル色",G),onChange:a,value:n.color},{label:(0,H.__)("回答ラベル色",G),onChange:r,value:l.color},{label:(0,H.__)("ボーダー色",G),onChange:b,value:m.color},{label:(0,H.__)("背景色",G),onChange:s,value:c.color},{label:(0,H.__)("文字色",G),onChange:u,value:i.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...A},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},f),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText,{tagName:"div",className:"faq-question-content",placeholder:(0,H.__)("質問を入力してください…",G),value:g,onChange:e=>o({question:e})}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},v),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks,null))))))}));const Er={attributes:{question:{type:"string",default:""},questionLabel:{type:"string",default:"Q"},answerLabel:{type:"string",default:"A"},questionColor:{type:"string"},answerColor:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customQuestionColor:{type:"string"},customAnswerColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,customQuestionColor:i,customAnswerColor:u,customBackgroundColor:m,customTextColor:b,customBorderColor:d,fontSize:p}=e,g=(0,D.getColorClassName)("question-color",a),f=(0,D.getColorClassName)("answer-color",l),v=(0,D.getColorClassName)("background-color",r),_=(0,D.getColorClassName)("color",c),y=(0,D.getColorClassName)("border-color",s),h=(0,D.getFontSizeClass)(p),k=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a||i,"has-answer-color":l||u,"has-text-color":c||b,"has-background":r||m,"has-border-color":s||d,[g]:g,[f]:f,[_]:_,[v]:v,[y]:y,[h]:h}),C={"--cocoon-custom-question-color":i||void 0,"--cocoon-custom-answer-color":u||void 0,"--cocoon-custom-background-color":m||void 0,"--cocoon-custom-text-color":b||void 0,"--cocoon-custom-border-color":d||void 0},x=D.useBlockProps.save({className:k,style:C});return(0,R.createElement)("div",{...x},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))}};var Nr=[Er,{migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("question-color",a),m=(0,D.getColorClassName)("answer-color",l),b=(0,D.getColorClassName)("background-color",r),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",s),g=(0,D.getFontSizeClass)(i),f=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a,"has-answer-color":l,"has-text-color":c,"has-background":r,"has-border-color":s,[u]:u,[m]:m,[d]:d,[b]:b,[p]:p,[g]:g}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))}}],wr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/faq","category":"cocoon-block","keywords":["faq","box"],"attributes":{"question":{"type":"string","default":""},"questionLabel":{"type":"string","default":"Q"},"answerLabel":{"type":"string","default":"A"},"questionColor":{"type":"string"},"answerColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customQuestionColor":{"type":"string"},"customAnswerColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"questionColorValue":{"type":"string"},"answerColorValue":{"type":"string"},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"question":"Lorem ipsum dolor sit amet ?"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Sr}=wr,Br={title:(0,H.__)("FAQ",G),icon:(0,R.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512"},(0,R.createElement)("g",null,(0,R.createElement)("path",{d:"M496,128H296V64a8,8,0,0,0-8-8H16a8,8,0,0,0-8,8V304a8,8,0,0,0,8,8H40v56a8,8,0,0,0,13.66,5.66L115.31,312H216v64a8,8,0,0,0,8,8H396.69l61.65,61.66A8,8,0,0,0,472,440V384h24a8,8,0,0,0,8-8V136A8,8,0,0,0,496,128ZM112,296a8.008,8.008,0,0,0-5.66,2.34L56,348.69V304a8,8,0,0,0-8-8H24V72H280V296Zm376,72H464a8,8,0,0,0-8,8v44.69l-50.34-50.35A8.008,8.008,0,0,0,400,368H232V312h56a8,8,0,0,0,8-8V144H488Z"}),(0,R.createElement)("path",{d:"M341.31,311.534a8,8,0,0,0,10.224-4.843L363.924,272h40.152l12.39,34.691a8,8,0,0,0,15.068-5.382l-40-112a8,8,0,0,0-15.068,0l-40,112A8,8,0,0,0,341.31,311.534ZM384,215.786,398.362,256H369.638Z"}),(0,R.createElement)("path",{d:"M194.19,214.876A47.708,47.708,0,0,0,200,192V160a48,48,0,0,0-96,0v32a47.976,47.976,0,0,0,80.228,35.542l10.115,10.115a8,8,0,0,0,11.314-11.314ZM152,224a32.036,32.036,0,0,1-32-32V160a32,32,0,0,1,64,0v32a31.848,31.848,0,0,1-1.882,10.8l-8.461-8.461a8,8,0,0,0-11.314,11.314l10.55,10.55A31.852,31.852,0,0,1,152,224Z"}))),description:(0,H.__)("よくある質問と回答。",G),edit:xr,save:function({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,customQuestionColor:i,customAnswerColor:u,customBackgroundColor:m,customTextColor:b,customBorderColor:d,fontSize:p,notNestedStyle:g,questionColorValue:f,answerColorValue:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=e,k=(0,D.getColorClassName)("question-color",a),C=(0,D.getColorClassName)("answer-color",l),x=(0,D.getColorClassName)("background-color",r),E=(0,D.getColorClassName)("color",c),N=(0,D.getColorClassName)("border-color",s),w=(0,D.getFontSizeClass)(p),S=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a||i,"has-answer-color":l||u,"has-text-color":c||b,"has-background":r||m,"has-border-color":s||d,[k]:k,[C]:C,[E]:E,[x]:x,[N]:N,[w]:w,"not-nested-style":g,"cocoon-block-faq":!0}),B={"--cocoon-custom-question-color":i||void 0,"--cocoon-custom-answer-color":u||void 0,"--cocoon-custom-background-color":m||void 0,"--cocoon-custom-text-color":b||void 0,"--cocoon-custom-border-color":d||void 0};g&&(B["--cocoon-custom-question-color"]=f,B["--cocoon-custom-answer-color"]=v,B["--cocoon-custom-background-color"]=_,B["--cocoon-custom-text-color"]=y,B["--cocoon-custom-border-color"]=h);const T=D.useBlockProps.save({className:S,style:B});return(0,R.createElement)("div",{...T},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))},deprecated:Nr,transforms:{}};var Tr=window.wp.editor,zr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/ranking","category":"cocoon-block","keywords":["ranking"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Ar}=zr,Pr={title:(0,H.__)("ランキング",G),icon:(0,R.createElement)(ra,{icon:Pa}),description:(0,H.__)("登録されているランキングを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("ranking-box","block-box",{["ranking-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;var s=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbItemRankings&&gbItemRankings.forEach((t=>{!1===r&&t.id==a&&(r=!0),"1"==t.visible?(e.push({value:t.id,label:t.title,disabled:!1}),c+=1):e.push({value:t.id,label:t.title+(0,H.__)("(リスト非表示)",G),disabled:!0})})),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ランキング",G),labelPosition:"side",className:"cocoon-render-dropdown editor-ranking-dropdown",value:a,onChange:e=>o({id:e,classNames:l}),options:s}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「Cocoon設定」→「ランキング」からランキングを作成してください。",G);if("undefined"==typeof gbItemRankings||0===gbItemRankings.length)e=(0,H.__)("ランキングが登録されていません。",G)+t;else if("undefined"!=typeof gbItemRankings&&0===c)e=(0,H.__)("有効なランキングが登録されていません。",G)+t+(0,H.__)("もしくは登録されているランキングを表示設定にしてください。。",G);else{if("undefined"==typeof gbItemRankings)return"";e=(0,H.__)("ランキングを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-ranking-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Fr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/template","category":"cocoon-block","keywords":["template"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Ir}=Fr,Vr={title:(0,H.__)("テンプレート",G),icon:(0,R.createElement)(ra,{icon:sa}),description:(0,H.__)("登録されているテンプレートを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("template-box","block-box",{["template-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;var s=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbTemplates&&gbTemplates.forEach((t=>{!1===r&&t.id==a&&(r=!0),"1"==t.visible?(e.push({value:t.id,label:t.title,disabled:!1}),c+=1):e.push({value:t.id,label:t.title+(0,H.__)("(リスト非表示)",G),disabled:!0})})),console.log(c),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("テンプレート",G),labelPosition:"side",className:"cocoon-render-dropdown editor-template-dropdown",value:a,onChange:e=>o({id:e,classNames:l}),options:s}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「Cocoon設定」→「テンプレート」からテンプレートを作成してください。",G);if("undefined"==typeof gbTemplates||0===gbTemplates.length)e=(0,H.__)("テンプレートが登録されていません。",G)+t;else if("undefined"!=typeof gbTemplates&&0===c)e=(0,H.__)("有効なテンプレートが登録されていません。",G)+t+(0,H.__)("もしくは登録されているテンプレートを表示設定にしてください。。",G);else{if("undefined"==typeof gbTemplates)return"";e=(0,H.__)("テンプレートを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-template-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Or=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/box-menu","category":"cocoon-block","keywords":["box-menu"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"boxName":{"type":"string","default":""},"target":{"type":"string","default":"_self"}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Rr}=Or,Mr={title:(0,H.__)("ボックスメニュー",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"th-large",icon:[512,512,[],"f009","M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"]}}),description:(0,H.__)("登録されているボックスメニューを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("box-menu-box","block-box",{["box-menu-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;function s(e){var t="";if("undefined"!=typeof gbNavMenus)for(let o of gbNavMenus)if(o.term_id==e){t=o.name;break}return t}var i=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbNavMenus&&gbNavMenus.forEach((t=>{!1===r&&t.term_id==a&&(r=!0),e.push({value:t.term_id,label:t.name,disabled:!1}),c+=1})),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ボックスメニュー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-box-menu-dropdown",value:a,onChange:e=>o({id:e,classNames:l,boxName:s(e)}),options:i}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「外観」→「メニュー」からボックスメニューを作成してください。",G);if("undefined"==typeof gbNavMenus||0===gbNavMenus.length)e=(0,H.__)("ボックスメニューが登録されていません。",G)+t;else if("undefined"!=typeof gbNavMenus&&0===c)e=(0,H.__)("有効なボックスメニューが登録されていません。",G)+t+(0,H.__)("もしくは登録されているボックスメニューを表示設定にしてください。",G);else{if("undefined"==typeof gbNavMenus)return"";e=(0,H.__)("ボックスメニューを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-box-menu-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var qr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/ad","category":"cocoon-block","keywords":["ad"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"adVisible":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Lr}=qr,Hr={title:(0,H.__)("広告",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"ad",icon:[512,512,[],"f641","M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"]}}),description:(0,H.__)("広告を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,a=L()("ad-box","block-box",{[n]:!!n,[t.className]:!!t.className});return o({classNames:a}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(()=>{let e="",t=!1;0==gbSettings.isAdsVisible?e=(0,H.__)("広告が非表示です。",G):0==gbSettings.isAdShortcodeEnable?e=(0,H.__)("[ad]ショートコードが無効です。",G):(e=(0,H.__)("広告",G),t=!0),o({adVisible:t});const n=L()("cocoon-render-message","editor-ad-message",{"is-ads-visible":1===gbSettings.isAdsVisible,"is-ad-shortcode-enable":1===gbSettings.isAdShortcodeEnable});return(0,R.createElement)("div",{className:n},e)})()))},save:function(e){const{attributes:t}=e,o=D.useBlockProps.save({className:t.classNames});return(0,R.createElement)("div",{...o},"[ad]")},deprecated:[],transforms:{}};var jr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/profile","category":"cocoon-block","keywords":["profile","author","box"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"label":{"type":"string","default":""},"isImageCircle":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Dr}=jr,Yr={title:(0,H.__)("プロフィールボックス",G),icon:(0,R.createElement)(ra,{icon:{prefix:"far",iconName:"id-card",icon:[576,512,[],"f2c2","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"]}}),description:(0,H.__)("プロフィールを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a,label:l,isImageCircle:r}=t,c=L()("profile-block-box","block-box",{["profile-block-box-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:c});let s=!1,i=0;var u=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbUsers&&gbUsers.forEach((t=>{!1===s&&t.id==a&&(s=!0),e.push({value:t.id,label:t.user_nicename,disabled:!1}),i+=1})),e}();return s||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("ラベル",G),value:l,onChange:e=>o({label:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("画像を円形にする",G),checked:r,onChange:e=>o({isImageCircle:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ユーザー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-profile-block-box-dropdown",value:a,onChange:e=>o({id:e,classNames:c}),options:u}),"-1"==a?(()=>{let e="";if("undefined"!=typeof gbUsers&&0===i)e=(0,H.__)("選択できるユーザーがありません。",G);else{if("undefined"==typeof gbUsers)return"";e=(0,H.__)("ユーザーを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-profile-block-box-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var $r=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/new-list","category":"cocoon-block","keywords":["new","list"],"attributes":{"classNames":{"type":"string","default":""},"count":{"type":"number","default":5},"type":{"type":"string","default":"default"},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"children":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false},"showAllTags":{"type":"boolean","default":true},"tags":{"type":"string","default":""},"modified":{"type":"boolean","default":false},"order":{"type":"string","default":"desc"},"offset":{"type":"number","default":0},"sticky":{"type":"boolean","default":true},"snippet":{"type":"boolean","default":false},"post_type":{"type":"string","default":"post"},"taxonomy":{"type":"string","default":"category"},"author":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Gr}=$r,Ur={title:(0,H.__)("新着記事",G),icon:(0,R.createElement)(ra,{icon:{prefix:"far",iconName:"newspaper",icon:[576,512,[],"f1ea","M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"]}}),description:(0,H.__)("新着記事の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{count:a,type:l,bold:r,arrow:c,showAllCats:s,cats:i,children:u,horizontal:m,showAllTags:b,tags:d,modified:p,order:g,offset:f,sticky:v,snippet:_,post_type:y,taxonomy:h,author:k}=t,C=L()("new-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:C});const[x,E]=(0,fe.useState)(""),N=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let w=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:i,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("表示カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:x,onChange:E}),ge(N,x,i,(e=>{o({cats:e})}))),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("子カテゴリーの内容を含めて表示",G),checked:u,onChange:e=>o({children:e})}));s&&(w=(0,R.createElement)(j.Disabled,null,w));let S=(0,R.createElement)(j.TextControl,{label:(0,H.__)("タグ",G),value:d,onChange:e=>o({tags:e})});return b&&(S=(0,R.createElement)(j.Disabled,null,S," ")),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示する記事の数",G),isShiftStepEnabled:!1,value:a,onChange:e=>o({count:e}),min:1,max:100}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:l,onChange:e=>o({type:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示順",G),value:p?"1":"0",options:[{label:(0,H.__)("更新日順",G),value:"1"},{label:(0,H.__)("投稿日順",G),value:"0"}],onChange:e=>{o("0"===e?{modified:!1}:{modified:!0})}}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("並び替え",G),value:g,options:[{label:(0,H.__)("昇順",G),value:"asc"},{label:(0,H.__)("降順",G),value:"desc"}],onChange:e=>{o({order:e})}}),(0,R.createElement)(j.RangeControl,{label:(0,H.__)("読み飛ばし",G),isShiftStepEnabled:!1,value:f,onChange:e=>o({offset:e}),min:0}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:r,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:c,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:m,onChange:e=>o({horizontal:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("説明文の表示",G),checked:_,onChange:e=>o({snippet:e})})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:s,onChange:e=>{o({showAllCats:e}),E("")}}),w,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全タグ表示",G),checked:b,onChange:e=>{o({showAllTags:e})}}),S,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("固定記事の表示",G),checked:v,onChange:e=>o({sticky:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿タイプ",G),value:y,onChange:e=>o({post_type:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("検索グループ",G),value:h,onChange:e=>o({taxonomy:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿ユーザ",G),value:k,onChange:e=>o({author:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Jr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/popular-list","category":"cocoon-block","keywords":["popular","list"],"attributes":{"classNames":{"type":"string","default":""},"showAllDays":{"type":"boolean","default":true},"days":{"type":"number","default":0},"rank":{"type":"boolean","default":false},"pv":{"type":"boolean","default":false},"post_type":{"type":"string","default":"post"},"count":{"type":"number","default":5},"type":{"type":"string","default":"default"},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"children":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false},"ex_posts":{"type":"string","default":""},"ex_cats":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Wr}=Jr,Xr={title:(0,H.__)("人気記事",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"fire",icon:[384,512,[],"f06d","M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]}}),description:(0,H.__)("人気記事の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{showAllDays:a,days:l,rank:r,pv:c,post_type:s,count:i,type:u,bold:m,arrow:b,showAllCats:d,cats:p,children:g,horizontal:f,ex_posts:v,ex_cats:_}=t,y=L()("popular-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:y});const[h,k]=(0,fe.useState)(""),[C,x]=(0,fe.useState)(""),E=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let N=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:p,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("表示カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:h,onChange:k}),ge(E,h,p,(e=>{o({cats:e})}))),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("子カテゴリーの内容を含めて表示",G),checked:g,onChange:e=>o({children:e})}));d&&(N=(0,R.createElement)(j.Disabled,null,N));let w=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("除外するカテゴリーをカンマ区切りで指定",G),value:_,onChange:e=>o({ex_cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("除外カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:C,onChange:x}),ge(E,C,_,(e=>{o({ex_cats:e})}))));0==d&&(w=(0,R.createElement)(j.Disabled,null,w));let S=(0,R.createElement)(j.SelectControl,{label:(0,H.__)("データの集計期間",G),value:l,onChange:e=>o({days:parseInt(e)}),options:[{label:(0,H.__)("全期間",G),value:0},{label:(0,H.__)("1日",G),value:1},{label:(0,H.__)("3日",G),value:3},{label:(0,H.__)("1週間",G),value:7},{label:(0,H.__)("2週間",G),value:14},{label:(0,H.__)("1ヶ月",G),value:30},{label:(0,H.__)("2ヶ月",G),value:60},{label:(0,H.__)("3ヶ月",G),value:90},{label:(0,H.__)("半年",G),value:182},{label:(0,H.__)("1年",G),value:365}]});return a&&(S=(0,R.createElement)(j.Disabled,null,S)),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示する記事の数",G),isShiftStepEnabled:!1,value:i,onChange:e=>o({count:e}),min:1}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全期間集計",G),checked:a,onChange:e=>{o({showAllDays:e})}}),S,(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:u,onChange:e=>o({type:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:m,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:b,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:f,onChange:e=>o({horizontal:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("ランキング番号表示",G),checked:r,onChange:e=>{o({rank:e})}}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("PV数表示",G),checked:c,onChange:e=>{o({pv:e})}})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:d,onChange:e=>{o({showAllCats:e}),k("")}}),N,w,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿タイプ",G),value:s,onChange:e=>o({post_type:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("除外投稿(ID)",G),value:v,onChange:e=>o({ex_posts:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Qr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/info-list","category":"cocoon-block","keywords":["info","list"],"attributes":{"classNames":{"type":"string","default":""},"count":{"type":"number","default":5},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"caption":{"type":"string","default":""},"showFrame":{"type":"boolean","default":true},"showDivider":{"type":"boolean","default":true},"modified":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Kr}=Qr,Zr={title:(0,H.__)("新着情報",G),icon:(0,R.createElement)(ra,{icon:sa}),description:(0,H.__)("新着情報の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{count:a,showAllCats:l,cats:r,caption:c,showFrame:s,showDivider:i,modified:u}=t,m=L()("info-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:m});const[b,d]=(0,fe.useState)(""),p=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let g=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:r,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("カテゴリー検索",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:b,onChange:d}),ge(p,b,r,(e=>{o({cats:e})}))));return l&&(g=(0,R.createElement)(j.Disabled,null,g)),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.TextControl,{label:(0,H.__)("キャプション(枠線内表示)",G),value:c,onChange:e=>o({caption:e})}),(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示数",G),isShiftStepEnabled:!1,value:a,onChange:e=>o({count:e}),min:1,max:100}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("枠線表示",G),checked:s,onChange:e=>o({showFrame:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("仕切り線表示",G),checked:i,onChange:e=>o({showDivider:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("更新日順に並び替え",G),checked:u,onChange:e=>o({modified:e})})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:l,onChange:e=>{o({showAllCats:e}),d("")}}),g)),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var ec=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/navicard","category":"cocoon-block","keywords":["navi","card"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"menuName":{"type":"string","default":""},"menuType":{"type":"string","default":""},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:tc}=ec,oc={title:(0,H.__)("ナビカード",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"bars",icon:[448,512,[],"f0c9","M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]}}),description:(0,H.__)("登録されているメニューからナビカードを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a,menuType:l,bold:r,arrow:c,horizontal:s}=t,i=L()("navicard","block-box",{["menu-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:i});let u=!1,m=0;function b(e){var t="";if("undefined"!=typeof gbNavMenus)for(let o of gbNavMenus)if(o.term_id==e){t=o.name;break}return t}var d=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbNavMenus&&gbNavMenus.forEach((t=>{!1===u&&t.term_id==a&&(u=!0),e.push({value:t.term_id,label:t.name,disabled:!1}),m+=1})),e}();return u||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:l,onChange:e=>o({menuType:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:r,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:c,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:s,onChange:e=>o({horizontal:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("メニュー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-navicard-dropdown",value:a,onChange:e=>o({id:e,classNames:i,menuName:b(e)}),options:d}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「外観」→「メニュー」からメニューを作成してください。",G);if("undefined"==typeof gbNavMenus||0===gbNavMenus.length)e=(0,H.__)("メニューが登録されていません。",G)+t;else{if("undefined"==typeof gbNavMenus)return"";e=(0,H.__)("メニューを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-navicard-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var nc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const ac=(0,H.__)("見出し",G);var lc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"caption-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-caption-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("枠の色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:ac}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const rc="caption-box",cc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[rc]:!0,[`cb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},sc={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[rc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},ic={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[rc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var uc=[ic,sc,cc];const{createBlock:mc}=wp.blocks;var bc={to:[{type:"block",blocks:["cocoon-blocks/label-box-1"],transform:(e,t)=>mc("cocoon-blocks/label-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/tab-caption-box-1"],transform:(e,t)=>mc("cocoon-blocks/tab-caption-box-1",e,t)}]},dc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/caption-box-1","category":"cocoon-universal-block","keywords":["caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:pc}=dc,gc={title:(0,H.__)("見出しボックス",G),icon:(0,R.createElement)(Ha,{icon:nc,size:32}),description:(0,H.__)("ボックス「見出し」を入力できる汎用ボックスです。",G),edit:lc,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"caption-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-caption-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:uc,transforms:bc};var fc=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));const vc=(0,H.__)("見出し",G);var _c=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"label-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-label-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{id:"labelBoxIcon",label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("枠の色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:vc}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const yc="label-box",hc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[yc]:!0,[`lb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},kc={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[yc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Cc={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[yc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var xc=[Cc,kc,hc];const{createBlock:Ec}=wp.blocks;var Nc={to:[{type:"block",blocks:["cocoon-blocks/caption-box-1"],transform:(e,t)=>Ec("cocoon-blocks/caption-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/tab-caption-box-1"],transform:(e,t)=>Ec("cocoon-blocks/tab-caption-box-1",e,t)}]},wc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/label-box-1","category":"cocoon-universal-block","keywords":["label","caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Sc}=wc,Bc={title:(0,H.__)("ラベルボックス",G),icon:(0,R.createElement)(Ha,{icon:fc,size:32}),description:(0,H.__)("ボックスに「ラベル見出し」入力できる汎用ボックスです。",G),edit:_c,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"label-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-label-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:xc,transforms:Nc};var Tc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));const zc=(0,H.__)("見出し",G);var Ac=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"tab-caption-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-tab-caption-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{id:"tabCaptionBoxIcon",label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("枠の色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:zc}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const Pc="tab-caption-box",Fc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[Pc]:!0,[`tcb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Ic={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[Pc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Vc={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[Pc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var Oc=[Vc,Ic,Fc];const{createBlock:Rc}=wp.blocks;var Mc={to:[{type:"block",blocks:["cocoon-blocks/caption-box-1"],transform:(e,t)=>Rc("cocoon-blocks/caption-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/label-box-1"],transform:(e,t)=>Rc("cocoon-blocks/label-box-1",e,t)}]},qc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/tab-caption-box-1","category":"cocoon-universal-block","keywords":["tab","caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Lc}=qc,Hc={title:(0,H.__)("タブ見出しボックス",G),icon:(0,R.createElement)(Ha,{icon:Tc,size:32}),description:(0,H.__)("ボックスに「タブ見出し」を入力できる汎用ボックスです。",G),edit:Ac,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"tab-caption-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-tab-caption-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:Oc,transforms:Mc};var jc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})),Dc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u}=e,{content:m,type:b,isCircle:d,icon:p,customBackgroundColor:g,customTextColor:f,customBorderColor:v}=t,_=L()(n,{"micro-balloon":!0,[b]:!!b,"mc-circle":!!d,"micro-copy":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class}),y={"--cocoon-custom-border-color":v||void 0,"--cocoon-custom-background-color":g||void 0,"--cocoon-custom-text-color":f||void 0},h=(0,D.useBlockProps)({className:_,style:y});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:b,onChange:e=>o({type:e}),options:[{value:"micro-top",label:(0,H.__)("下寄り",G)},{value:"micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:d,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:p===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{className:"admin-micro-balloon-wrap wp-block micro-copy"},(0,R.createElement)("div",{...h},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},p&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",p)}),(0,R.createElement)(D.RichText,{value:m,onChange:e=>o({content:e})})))))}));const Yc=(0,H.__)("マイクロコピーバルーン",G),$c="micro-copy",Gc={save({attributes:e}){const{content:t,type:o,isCircle:n,icon:a,backgroundColor:l,customBackgroundColor:r,textColor:c,customTextColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",l),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({"micro-balloon":!0,[o]:!!o,"mc-circle":!!n,[$c]:!0,"has-text-color":c||s,"has-background":l||r,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},a&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",a)}),(0,R.createElement)(D.RichText.Content,{value:t})))}};var Uc=[Gc,{attributes:{content:{type:"string",default:Yc},style:{type:"string",default:"micro-top"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,style:o,color:n,isCircle:a,align:l}=e;return{content:t,type:o,isCircle:a,align:l,backgroundColor:ne(n),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,color:n,isCircle:a,align:l}=e,r=L()({"micro-balloon":!0,[o]:!!o,[`mc-${ne(n)}`]:!!ne(n),"mc-circle":!!a,[$c]:!0,"block-box":!0});return(0,R.createElement)("div",{className:r},(0,R.createElement)(D.RichText.Content,{value:t}))}}],Jc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/micro-balloon-2","category":"cocoon-micro","keywords":["micro","copy","balloon"],"attributes":{"content":{"type":"string","default":"マイクロコピーバルーン"},"type":{"type":"string","default":"micro-top"},"isCircle":{"type":"boolean","default":false},"icon":{"type":"string"},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"attributes":{"content":"microcopy balloon"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:Wc}=Jc,Xc={title:(0,H.__)("マイクロバルーン",G),icon:(0,R.createElement)(Ha,{icon:jc,size:32}),description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),edit:Dc,save:function({attributes:e}){const{content:t,type:o,isCircle:n,icon:a,backgroundColor:l,customBackgroundColor:r,textColor:c,customTextColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",l),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({"micro-balloon":!0,[o]:!!o,"mc-circle":!!n,"micro-copy":!0,"has-text-color":c||s,"has-background":l||r,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),v={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":s||void 0,"--cocoon-custom-border-color":u||void 0},_=D.useBlockProps.save({className:f,style:v});return(0,R.createElement)("div",{..._},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},a&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",a)}),(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:Uc,transforms:Jl};var Qc=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),Kc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,textColor:a,setTextColor:l}=e,{content:r,type:c,icon:s,customTextColor:i}=t,u=L()(n,{"micro-text":!0,"micro-copy":!0,[c]:!!c,"has-text-color":a.color,[a.class]:a.class}),m={"--cocoon-custom-text-color":i||void 0},b=(0,D.useBlockProps)({className:u,style:m});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:c,onChange:e=>o({type:e}),options:[{value:"micro-top",label:(0,H.__)("下寄り",G)},{value:"micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:s===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("文字色",G),onChange:l,value:a.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...b},(0,R.createElement)("span",{className:"micro-text-content micro-content"},s&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",s)}),(0,R.createElement)(D.RichText,{value:r,onChange:e=>o({content:e})}))))}));const Zc=(0,H.__)("マイクロコピーテキスト",G),es="micro-copy",ts={save({attributes:e}){const{content:t,type:o,icon:n,textColor:a}=e,l=(0,D.getColorClassName)("color",a),r=L()({"micro-text":!0,[es]:!0,[o]:!!o,"has-text-color":a,[l]:l}),c=D.useBlockProps.save({className:r});return(0,R.createElement)("div",{...c},(0,R.createElement)("span",{className:"micro-text-content micro-content"},n&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",n)}),(0,R.createElement)(D.RichText.Content,{value:t})))}};var os=[ts,{attributes:{content:{type:"string",default:Zc},style:{type:"string",default:"micro-top"},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,style:o,align:n}=e;return{content:t,type:o,align:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,align:n}=e,a=L()({[es]:!0,[o]:!!o,"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)(D.RichText.Content,{value:t}))}}];const{createBlock:ns}=wp.blocks;var as={to:[{type:"block",blocks:["cocoon-blocks/micro-balloon-2"],transform:e=>ns("cocoon-blocks/micro-balloon-2",e)}]},ls=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/micro-text","category":"cocoon-micro","keywords":["micro","copy","text"],"attributes":{"content":{"type":"string","default":"マイクロコピーテキスト"},"type":{"type":"string","default":"micro-top"},"icon":{"type":"string"},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customTextColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"attributes":{"content":"microcopy text"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:rs}=ls,cs={title:(0,H.__)("マイクロテキスト",G),icon:(0,R.createElement)(Ha,{icon:Qc,size:32}),description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下に小さくテキスト表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),edit:Kc,save:function({attributes:e}){const{content:t,type:o,icon:n,textColor:a,customTextColor:l}=e,r=(0,D.getColorClassName)("color",a),c=L()({"micro-text":!0,"micro-copy":!0,[o]:!!o,"has-text-color":a||l,[r]:r}),s={"--cocoon-custom-text-color":l||void 0},i=D.useBlockProps.save({className:c,style:s});return(0,R.createElement)("div",{...i},(0,R.createElement)("span",{className:"micro-text-content micro-content"},n&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",n)}),(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:os,transforms:as},{addFilter:ss}=wp.hooks,{PanelBody:is,SelectControl:us}=wp.components,{InspectorControls:ms}=wp.editor,{createHigherOrderComponent:bs}=wp.compose,ds=(0,H.__)("言語",G),ps=[{label:(0,H.__)("言語選択",G),value:""}],gs={"core/code":pe};ss("editor.BlockEdit","cocoon-blocks/code-props",bs((e=>{let t="";return o=>{const{className:n}=o.attributes;if(a=o.name,Object.keys(gs).includes(a)&&o.isSelected){let a=ps.concat(gs[o.name]).map((({value:e})=>e));const l=()=>{if(!n)return"";let e=a.slice();return e.sort(((e,t)=>t.trim().split(/\s+/).length-e.trim().split(/\s+/).length)),e.find((e=>{const t=n.trim().split(/\s+/);return e.trim().split(/\s+/).every((e=>t.includes(e)))}))||""};t=l(),a=a.join(" ").split(/\s+/);const r=ps.concat(gs[o.name]);return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...o}),(0,R.createElement)(ms,null,(0,R.createElement)(is,{title:ds,initialOpen:!0,className:"my-classname-controle"},(0,R.createElement)(us,{value:t,options:r,onChange:e=>{let l=e;if(n){let t=n;t=t.split(/\s+/);let o=t.filter((e=>!a.includes(e)));o.push(e),l=o.join(" ")}t=e,o.setAttributes({className:l})}}))))}var a;return(0,R.createElement)(e,{...o})}}),"addMyCustomBlockControls"));var fs=window.wp.hooks;const vs=["core/paragraph","core/list"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return vs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraBorder:{type:"string",default:""}})),e}));const _s=(0,ve.createHigherOrderComponent)((e=>t=>{if(vs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraBorder:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"border-solid",buttonText:(0,H.__)("実線",G)},{style:"border-double",buttonText:(0,H.__)("二重線",G)},{style:"border-dashed",buttonText:(0,H.__)("破線",G)},{style:"border-dotted",buttonText:(0,H.__)("点線",G)},{style:"border-thin-and-thick",buttonText:(0,H.__)("薄太",G)},{style:"border-convex",buttonText:(0,H.__)("微凸",G)},{style:"border-radius-s-solid",buttonText:(0,H.__)("実線(角丸小)",G)},{style:"border-radius-s-double",buttonText:(0,H.__)("二重線(角丸小)",G)},{style:"border-radius-s-dashed",buttonText:(0,H.__)("破線(角丸小)",G)},{style:"border-radius-s-dotted",buttonText:(0,H.__)("点線(角丸小)",G)},{style:"border-radius-s-thin-and-thick",buttonText:(0,H.__)("薄太(角丸小)",G)},{style:"border-radius-s-convex",buttonText:(0,H.__)("微凸(角丸小)",G)},{style:"border-radius-l-solid",buttonText:(0,H.__)("実線(角丸大)",G)},{style:"border-radius-l-double",buttonText:(0,H.__)("二重線(角丸大)",G)},{style:"border-radius-l-dashed",buttonText:(0,H.__)("破線(角丸大)",G)},{style:"border-radius-l-dotted",buttonText:(0,H.__)("点線(角丸大)",G)},{style:"border-radius-l-thin-and-thick",buttonText:(0,H.__)("薄太(角丸大)",G)},{style:"border-radius-l-convex",buttonText:(0,H.__)("微凸(角丸大)",G)},{style:"blank-box-gray",buttonText:(0,H.__)("白抜き灰",G)},{style:"blank-box-red",buttonText:(0,H.__)("白抜き赤",G)},{style:"blank-box-pink",buttonText:(0,H.__)("白抜きピンク",G)},{style:"blank-box-navy",buttonText:(0,H.__)("白抜き紺",G)},{style:"blank-box-blue",buttonText:(0,H.__)("白抜き青",G)},{style:"blank-box-purple",buttonText:(0,H.__)("白抜き紫",G)},{style:"blank-box-orange",buttonText:(0,H.__)("白抜きオレンジ",G)},{style:"blank-box-yellow",buttonText:(0,H.__)("白抜き黄",G)},{style:"blank-box-green",buttonText:(0,H.__)("白抜き緑",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] ボーダー設定",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraBorder:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("ボーダーをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-border01-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraBorder:""}):o({extraBorder:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-border01-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("span",{className:L()("__prev",{["is-style-"+e.style]:!!e.style,"has-border":e.style})})),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraBorder:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("ボーダーをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",_s);const ys=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&vs.includes(a)){const{extraBorder:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-border":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",ys),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(vs.includes(t.name)){const{className:t}=e,{extraBorder:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-border":n})),Object.assign(e)}return e}));const hs=["core/paragraph"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return hs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraStyle:{type:"string",default:""}})),e}));const ks=(0,ve.createHigherOrderComponent)((e=>t=>{if(hs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraStyle:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"light-background-box",buttonText:(0,H.__)("薄背景",G)},{style:"stripe-box",buttonText:(0,H.__)("ストライプ",G)},{style:"section-paper-box",buttonText:(0,H.__)("方眼紙",G)},{style:"checkered-box",buttonText:(0,H.__)("チェック",G)},{style:"stitch-box",buttonText:(0,H.__)("ステッチ",G)},{style:"square-brackets-box",buttonText:(0,H.__)("かぎ括弧",G)},{style:"parenthetic-box",buttonText:(0,H.__)("角括弧",G)},{style:"cross-line",buttonText:(0,H.__)("交差線",G)},{style:"p-style-08",buttonText:(0,H.__)("ずれた二重線",G)},{style:"triangle-box",buttonText:(0,H.__)("角三角",G)},{style:"clip-box",buttonText:(0,H.__)("クリップ",G)},{style:"stapler-box",buttonText:(0,H.__)("ホチキス",G)},{style:"stapler-top-left-box",buttonText:(0,H.__)("ホチキス左上",G)},{style:"hole-punch-box",buttonText:(0,H.__)("穴あけパンチ",G)},{style:"handwritten-box",buttonText:(0,H.__)("手書き風",G)},{style:"border-top-box",buttonText:(0,H.__)("上線",G)},{style:"border-left-box",buttonText:(0,H.__)("付箋",G)},{style:"balloon-left-box",buttonText:(0,H.__)("左吹き出し",G)},{style:"balloon-right-box",buttonText:(0,H.__)("右吹き出し",G)},{style:"balloon-top-box",buttonText:(0,H.__)("上吹き出し",G)},{style:"balloon-bottom-box",buttonText:(0,H.__)("下吹き出し",G)},{style:"information-box",buttonText:(0,H.__)("情報",G)},{style:"question-box",buttonText:(0,H.__)("質問",G)},{style:"alert-box",buttonText:(0,H.__)("アラート",G)},{style:"memo-box",buttonText:(0,H.__)("メモ",G)},{style:"comment-box",buttonText:(0,H.__)("コメント",G)},{style:"ok-box",buttonText:(0,H.__)("OK",G)},{style:"ng-box",buttonText:(0,H.__)("NG",G)},{style:"good-box",buttonText:(0,H.__)("グッド",G)},{style:"bad-box",buttonText:(0,H.__)("バッド",G)},{style:"profile-box",buttonText:(0,H.__)("プロフィール",G)},{style:"primary-box",buttonText:(0,H.__)("プライマリー",G)},{style:"success-box",buttonText:(0,H.__)("サクセス",G)},{style:"info-box",buttonText:(0,H.__)("インフォ",G)},{style:"warning-box",buttonText:(0,H.__)("ワーニング",G)},{style:"danger-box",buttonText:(0,H.__)("デンジャー",G)},{style:"secondary-box",buttonText:(0,H.__)("セカンダリー",G)},{style:"light-box",buttonText:(0,H.__)("ライト",G)},{style:"dark-box",buttonText:(0,H.__)("ダーク",G)},{style:"sticky-gray",buttonText:(0,H.__)("付箋灰",G)},{style:"sticky-red",buttonText:(0,H.__)("付箋赤",G)},{style:"sticky-blue",buttonText:(0,H.__)("付箋青",G)},{style:"sticky-yellow",buttonText:(0,H.__)("付箋黄",G)},{style:"sticky-green",buttonText:(0,H.__)("付箋緑",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] スタイル",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-style01-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraStyle:""}):o({extraStyle:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-style01-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("span",{className:L()("__prev",{["is-style-"+e.style]:!!e.style,"has-box-style":e.style})})),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",ks);const Cs=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&hs.includes(a)){const{extraStyle:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-box-style":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",Cs),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(hs.includes(t.name)){const{className:t}=e,{extraStyle:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-box-style":n})),Object.assign(e)}return e}));const xs=["core/list"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return xs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraStyle:{type:"string",default:""}})),e}));const Es=(0,ve.createHigherOrderComponent)((e=>t=>{if(xs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraStyle:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"numeric-list-enclosed",buttonText:(0,H.__)("丸数字",G)},{style:"numeric-list-rank",buttonText:(0,H.__)("順位",G)},{style:"numeric-list-step",buttonText:(0,H.__)("ステップ",G)},{style:"icon-list-check",buttonText:(0,H.__)("チェック",G)},{style:"icon-list-check-valid",buttonText:(0,H.__)("チェック有効",G)},{style:"icon-list-check-disabled",buttonText:(0,H.__)("チェック無効",G)},{style:"icon-list-circle",buttonText:(0,H.__)("丸",G)},{style:"icon-list-triangle",buttonText:(0,H.__)("三角",G)},{style:"icon-list-cross",buttonText:(0,H.__)("バツ",G)},{style:"icon-list-info",buttonText:(0,H.__)("情報",G)},{style:"icon-list-question",buttonText:(0,H.__)("疑問",G)},{style:"icon-list-warning",buttonText:(0,H.__)("警告",G)},{style:"icon-list-paw",buttonText:(0,H.__)("肉球",G)},{style:"icon-list-thumb-up",buttonText:(0,H.__)("サムアップ",G)},{style:"icon-list-thumb-down",buttonText:(0,H.__)("サムダウン",G)},{style:"icon-list-comment",buttonText:(0,H.__)("コメント",G)},{style:"icon-list-user-man",buttonText:(0,H.__)("男性",G)},{style:"icon-list-user-woman",buttonText:(0,H.__)("女性",G)},{style:"icon-list-heart",buttonText:(0,H.__)("ハート",G)},{style:"icon-list-heart-broken",buttonText:(0,H.__)("ハートブレイク",G)},{style:"icon-list-ban",buttonText:(0,H.__)("禁止",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] スタイル",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-style02-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraStyle:""}):o({extraStyle:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-style02-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("ul",{className:L()("__prev","wp-block-list",{["is-style-"+e.style]:!!e.style,"has-list-style":e.style})},(0,R.createElement)("li",null,"aaa"),(0,R.createElement)("li",null,"bbb"),(0,R.createElement)("li",null,"ccc"))),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",Es);const Ns=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&xs.includes(a)){const{extraStyle:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-list-style":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",Ns),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(xs.includes(t.name)){const{className:t}=e,{extraStyle:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-list-style":n})),Object.assign(e)}return e})),(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/layout-custom-attributes",(function(e){return e.attributes=Object.assign(e.attributes,{extraBottomMargin:{type:"string",default:""}}),e}));const ws=[{value:0,label:"0em"},{value:10,label:"10em"},{value:20,label:"20em"}],Ss=(0,ve.createHigherOrderComponent)((e=>t=>{if(t.isSelected){const{setAttributes:n,isSelected:a,attributes:l}=t,{className:r,extraBottomMargin:c}=l;var o;function s(){return""+(""===c?(0,H.__)("未設定",G):(0,H.__)("文字高の",G)+c+(0,H.__)("倍の余白設定",G))}function i(){return""===c?0:Number(c)}return o=t.name.includes("cocoon-blocks")?(0,H.__)("ブロック下余白",G):(0,H.__)("[C] ブロック下余白",G),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),a&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:o,initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>n({extraBottomMargin:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("余白をクリア",G))),(0,R.createElement)(j.RangeControl,{label:s(),value:i(),onChange:e=>{n({extraBottomMargin:String(e)})},min:0,max:20,step:1,resetFallbackValue:0,initialPosition:0,marks:ws}))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/layout-custom-edit",Ss);const Bs=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,isValid:a}=t;if(a){const{extraBottomMargin:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-bottom-margin-"+a+"em"]:!!a,"has-bottom-margin":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/layout-apply-attributes",Bs),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/layout-custom-save",((e,t,o)=>{const{className:n}=e,{extraBottomMargin:a}=o;return(n||a)&&(e.className=L()({[n]:!!n,["is-style-bottom-margin-"+a+"em"]:!!a,"has-bottom-margin":a})),Object.assign(e)})),(0,z.registerBlockType)("cocoon-blocks/column-left",{apiVersion:2,title:(0,H.__)("左カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム左側に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-left":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-left":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}}),(0,z.registerBlockType)("cocoon-blocks/column-center",{apiVersion:2,title:(0,H.__)("中央カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム中央に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-center":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-center":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}}),(0,z.registerBlockType)("cocoon-blocks/column-right",{apiVersion:2,title:(0,H.__)("右カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム右側に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-right":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-right":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}});const Ts=["cocoon-blocks/column-left","cocoon-blocks/column-right"];(0,H.__)("左側に入力する内容",G),(0,H.__)("右側に入力する内容",G),(0,z.registerBlockType)("cocoon-blocks/column-2",{apiVersion:2,title:(0,H.__)("2カラム",G),icon:(0,R.createElement)("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m22.5 24h-8c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h8c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-8-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h8c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m9.5 24h-8c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h8c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-8-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h8c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"})),category:G+"-layout",description:(0,H.__)("本文を左右カラムに分けます。オプションでカラム比率を変更できます。",G),keywords:["column","2"],attributes:{ratio:{type:"string",default:"column-2-2-1-1"}},edit({attributes:e,setAttributes:t,className:o}){const{ratio:n}=e,a=L()(o,{"column-wrap":!0,"column-2":!0,[n]:!!n,[W]:!0}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("カラム比率",G),value:n,onChange:e=>t({ratio:e}),options:[{value:"column-2-2-1-1",label:(0,H.__)("1:1(|□|□|)",G)},{value:"column-2-3-1-2",label:(0,H.__)("1:2(|□|□□|)",G)},{value:"column-2-3-2-1",label:(0,H.__)("2:1(|□□|□|)",G)},{value:"column-2-4-1-3",label:(0,H.__)("1:3(|□|□□□|))",G)},{value:"column-2-4-3-1",label:(0,H.__)("3:1,(|□□□|□|)",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,{template:[["cocoon-blocks/column-left",{placeholder:(0,H.__)("左側に入力する内容",G)}],["cocoon-blocks/column-right",{placeholder:(0,H.__)("右側に入力する内容",G)}]],templateLock:"all",allowedBlocks:Ts})))},save({attributes:e,className:t}){const{ratio:o}=e,n=L()(t,{"column-wrap":!0,"column-2":!0,[o]:!!o,[W]:!0}),a=D.useBlockProps.save({className:n});return(0,R.createElement)("div",{...a},(0,R.createElement)(D.InnerBlocks.Content,null))}});const zs=["cocoon-blocks/column-left","cocoon-blocks/column-center","cocoon-blocks/column-right"];(0,z.registerBlockType)("cocoon-blocks/column-3",{apiVersion:2,title:(0,H.__)("3カラム",G),icon:(0,R.createElement)("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m22.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m13.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m4.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"})),category:G+"-layout",description:(0,H.__)("本文を左・中央・右カラムに分けます。",G),keywords:["column","3"],edit({className:e}){const t=L()(e,{"column-wrap":!0,"column-3":!0,[W]:!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{template:[["cocoon-blocks/column-left",{placeholder:(0,H.__)("左側に入力する内容",G)}],["cocoon-blocks/column-center",{placeholder:(0,H.__)("中央に入力する内容",G)}],["cocoon-blocks/column-right",{placeholder:(0,H.__)("右側に入力する内容",G)}]],templateLock:"all",allowedBlocks:zs})))},save({className:e}){const t=L()(e,{"column-wrap":!0,"column-3":!0,[W]:!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}});var As=window.wp.richText,Ps=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"}));const Fs="cocoon-blocks/bold",Is=(0,H.__)("太字(boldクラス指定)",G);(0,As.registerFormatType)(Fs,{title:Is,tagName:"span",className:"bold",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold"},Is),onClick:()=>o((0,As.toggleFormat)(t,{type:Fs})),isActive:e}))}});var Vs=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));const Os="cocoon-blocks/red",Rs=(0,H.__)("赤色",G);(0,As.registerFormatType)(Os,{title:Rs,tagName:"span",className:"red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"red"},Rs),onClick:()=>o((0,As.toggleFormat)(t,{type:Os})),isActive:e}))}});const Ms="cocoon-blocks/bold-red",qs=(0,H.__)("赤太字",G);(0,As.registerFormatType)(Ms,{title:qs,tagName:"span",className:"bold-red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-red"},qs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ms})),isActive:e}))}});const Ls="cocoon-blocks/blue",Hs=(0,H.__)("青色",G);(0,As.registerFormatType)(Ls,{title:Hs,tagName:"span",className:"blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"blue"},Hs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ls})),isActive:e}))}});const js="cocoon-blocks/bold-blue",Ds=(0,H.__)("青太字",G);(0,As.registerFormatType)(js,{title:Ds,tagName:"span",className:"bold-blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-blue"},Ds),onClick:()=>o((0,As.toggleFormat)(t,{type:js})),isActive:e}))}});const Ys="cocoon-blocks/green",$s=(0,H.__)("緑色",G);(0,As.registerFormatType)(Ys,{title:$s,tagName:"span",className:"green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"green"},$s),onClick:()=>o((0,As.toggleFormat)(t,{type:Ys})),isActive:e}))}});const Gs="cocoon-blocks/bold-green",Us=(0,H.__)("緑太字",G);(0,As.registerFormatType)(Gs,{title:Us,tagName:"span",className:"bold-green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-green"},Us),onClick:()=>o((0,As.toggleFormat)(t,{type:Gs})),isActive:e}))}});var Js=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));const Ws="cocoon-blocks/keyboard-key",Xs=(0,H.__)("キーボードキー",G);(0,As.registerFormatType)(Ws,{title:Xs,tagName:"span",className:"keyboard-key",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Js,size:32}),title:(0,R.createElement)("span",{className:"keyboard-key"},Xs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ws})),isActive:e}))}}),Number(gbSettings.isRubyVisible?gbSettings.isRubyVisible:0)&&((0,As.registerFormatType)("cocoon-blocks/rt",{title:(0,H.__)("ふりがな(ルビ)キャラクター",G),tagName:"rt",className:null,edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null)}}),(0,As.registerFormatType)("cocoon-blocks/ruby",{title:(0,H.__)("ふりがな(ルビ)",G),tagName:"ruby",className:null,edit({isActive:e,value:t,onChange:o}){const n=()=>{let n="";if(e)t=(0,As.toggleFormat)(t,{type:"cocoon-blocks/ruby"});else{n=window.prompt((0,H.__)("ふりがな(ルビ)を入力してください。",G))||t.text.substr(t.start,t.end-t.start);const e=t.end,o=t.start;(t=(0,As.insert)(t,n,e)).start=o,t.end=e+n.length,t=(0,As.applyFormat)(t,{type:"cocoon-blocks/ruby"},o,e+n.length),t=(0,As.applyFormat)(t,{type:"cocoon-blocks/rt"},e,e+n.length)}return o(t)},a="primaryAlt",l=(0,R.createElement)(ra,{icon:Fa});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"r",onUse:n}),(0,R.createElement)(D.RichTextToolbarButton,{icon:l,title:(0,H.__)("ふりがな(ルビ)",G),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"r"}))}}));const Qs=(0,H.__)("書式のクリア",G);Number(gbSettings.isClearFormatVisible?gbSettings.isClearFormatVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/clear-format",{title:Qs,tagName:"span",className:"clear-format",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.RichTextToolbarButton,{icon:"editor-removeformatting",title:Qs,onClick:()=>{const e=(0,_e.select)("core/rich-text").getFormatTypes();if(0{n=(0,As.removeFormat)(n,e.name)})),o({...n})}},isActive:e})}});var Ks=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));gbSettings.isPrivilegeActivationCodeAvailable&&gbSettings.isPrivilegeActivationCodeAvailable,(0,As.registerFormatType)("cocoon-blocks/html",{title:(0,H.__)("HTML挿入",G),tagName:"span",className:"insert-html",edit({isActive:e,value:t,onChange:o}){const n=()=>{let e="";return t.end-t.start>0?t=(0,As.insert)(t,"[html]"+t.text.substr(t.start,t.end-t.start)+"[/html]",t.start,t.end):(e=window.prompt((0,H.__)("HTMLを入力してください。",G))||t.text.substr(t.start,t.end-t.start),e&&(t=(0,As.insert)(t,"[html]"+e+"[/html]",t.start,t.end))),o(t)},a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"h",onUse:n}),(0,R.createElement)(D.RichTextToolbarButton,{icon:(0,R.createElement)(Ha,{icon:Ks,size:32}),title:(0,H.__)("HTML挿入",G),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"h"}))}});var Zs=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const ei="cocoon-blocks/marker",ti=(0,H.__)("黄色マーカー",G);(0,As.registerFormatType)(ei,{title:ti,tagName:"span",className:"marker",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ei})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"y",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker"},ti),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"y"}))}});var oi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 11.5h10V13H7z"}));const ni="cocoon-blocks/marker-under",ai=(0,H.__)("黄色アンダーラインマーカー",G);(0,As.registerFormatType)(ni,{title:ai,tagName:"span",className:"marker-under",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ni})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"z",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under"},ai),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"z"}))}});const li="cocoon-blocks/marker-red",ri=(0,H.__)("赤色マーカー",G);(0,As.registerFormatType)(li,{title:ri,tagName:"span",className:"marker-red",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:li})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"r",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker-red"},ri),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"r"}))}});const ci="cocoon-blocks/marker-under-red",si=(0,H.__)("赤色アンダーラインマーカー",G);(0,As.registerFormatType)(ci,{title:si,tagName:"span",className:"marker-under-red",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ci})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"s",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under-red"},si),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"s"}))}});const ii="cocoon-blocks/marker-blue",ui=(0,H.__)("青色マーカー",G);(0,As.registerFormatType)(ii,{title:ui,tagName:"span",className:"marker-blue",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ii})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"b",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker-blue"},ui),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"b"}))}});const mi="cocoon-blocks/marker-under-blue",bi=(0,H.__)("青色アンダーラインマーカー",G);(0,As.registerFormatType)(mi,{title:bi,tagName:"span",className:"marker-under-blue",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:mi})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"c",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under-blue"},bi),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"c"}))}});const di="cocoon-blocks/badge",pi=(0,H.__)("オレンジ",G);(0,As.registerFormatType)(di,{title:pi,tagName:"span",className:"badge",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge"},pi),onClick:()=>o((0,As.toggleFormat)(t,{type:di})),isActive:e}))}});const gi="cocoon-blocks/badge-red",fi=(0,H.__)("赤色",G);(0,As.registerFormatType)(gi,{title:fi,tagName:"span",className:"badge-red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-red"},fi),onClick:()=>o((0,As.toggleFormat)(t,{type:gi})),isActive:e}))}});const vi="cocoon-blocks/badge-pink",_i=(0,H.__)("ピンク",G);(0,As.registerFormatType)(vi,{title:_i,tagName:"span",className:"badge-pink",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-pink"},_i),onClick:()=>o((0,As.toggleFormat)(t,{type:vi})),isActive:e}))}});const yi="cocoon-blocks/badge-purple",hi=(0,H.__)("紫色",G);(0,As.registerFormatType)(yi,{title:hi,tagName:"span",className:"badge-purple",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-purple"},hi),onClick:()=>o((0,As.toggleFormat)(t,{type:yi})),isActive:e}))}});const ki="cocoon-blocks/badge-blue",Ci=(0,H.__)("青色",G);(0,As.registerFormatType)(ki,{title:Ci,tagName:"span",className:"badge-blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-blue"},Ci),onClick:()=>o((0,As.toggleFormat)(t,{type:ki})),isActive:e}))}});const xi="cocoon-blocks/badge-green",Ei=(0,H.__)("緑色",G);(0,As.registerFormatType)(xi,{title:Ei,tagName:"span",className:"badge-green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-green"},Ei),onClick:()=>o((0,As.toggleFormat)(t,{type:xi})),isActive:e}))}});const Ni="cocoon-blocks/badge-yellow",wi=(0,H.__)("黄色",G);(0,As.registerFormatType)(Ni,{title:wi,tagName:"span",className:"badge-yellow",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-yellow"},wi),onClick:()=>o((0,As.toggleFormat)(t,{type:Ni})),isActive:e}))}});const Si="cocoon-blocks/badge-brown",Bi=(0,H.__)("茶色",G);(0,As.registerFormatType)(Si,{title:Bi,tagName:"span",className:"badge-brown",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-brown"},Bi),onClick:()=>o((0,As.toggleFormat)(t,{type:Si})),isActive:e}))}});const Ti="cocoon-blocks/badge-grey",zi=(0,H.__)("灰色",G);(0,As.registerFormatType)(Ti,{title:zi,tagName:"span",className:"badge-grey",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-grey"},zi),onClick:()=>o((0,As.toggleFormat)(t,{type:Ti})),isActive:e}))}}),Number(gbSettings.isLetterVisible?gbSettings.isLetterVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/letters",{title:(0,H.__)("文字",G),tagName:"span",className:"letters",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Letter.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Qc,size:32}),label:(0,H.__)("文字",G),className:"letters",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}),Number(gbSettings.isMarkerVisible?gbSettings.isMarkerVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/markers",{title:(0,H.__)("マーカー",G),tagName:"span",className:"markers",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Marker.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),label:(0,H.__)("文字",G),className:"letters",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}),Number(gbSettings.isBadgeVisible?gbSettings.isBadgeVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/badges",{title:(0,H.__)("バッジ",G),tagName:"span",className:"badges",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Badge.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),label:(0,H.__)("バッジ",G),className:"badges",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Ai=Vs;[12,14,16,18,20,22,24,28,32,36,40,44,48].map(((e,t)=>{const o=e+"px",n="fz-"+o,a="cocoon-blocks/"+n;(0,As.registerFormatType)(a,{title:n,tagName:"span",className:n,edit({isActive:e,value:t,onChange:l}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(ie,{icon:(0,R.createElement)(Ha,{icon:Ai,size:32}),title:(0,R.createElement)("span",{className:n},o),onClick:()=>l((0,As.toggleFormat)(t,{type:a})),isActive:e}))}})})),Number(gbSettings.isFontSizeVisible?gbSettings.isFontSizeVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/font-sizes",{title:(0,H.__)("フォントサイズ",G),tagName:"span",className:"font-sizes",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"FontSize.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(ra,{icon:Ia}),label:(0,H.__)("フォントサイズ",G),className:"font-sizes",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Pi=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));function Fi(e,t,o,n){var a="cocoon-blocks/"+e;(0,As.registerFormatType)(a,{title:t,tagName:e,className:null,edit({value:n,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(be,{icon:(0,R.createElement)(Ha,{icon:Pi,size:32}),title:(0,R.createElement)("span",{className:e},t),onClick:()=>a((0,As.insert)(n,o,n.start,n.end))}))}})}Fi("shortcode-ad",(0,H.__)("広告",G),"[ad]"),Fi("shortcode-new-list",(0,H.__)("新着記事一覧",G),'[new_list count="5" type="default" cats="all" children="0" post_type="post"]'),Fi("shortcode-popular-list",(0,H.__)("人気記事一覧",G),'[popular_list days="all" rank="0" pv="0" count="5" type="default" cats="all"]'),Fi("shortcode-navi-list",(0,H.__)("ナビカード一覧",G),'[navi_list name="'+(0,H.__)("メニュー名",G)+'" type="default" bold="0" arrow="0"]'),Fi("shortcode-profile",(0,H.__)("プロフィールボックス",G),'[author_box label="'+(0,H.__)("この記事を書いた人",G)+"]"),Fi("shortcode-amazon",(0,H.__)("Amazonリンク",G),'[amazon asin="ASIN" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-amazon-title",(0,H.__)("Amazonリンク(商品名変更)",G),'[amazon asin="ASIN" title="'+(0,H.__)("商品名",G)+'" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-amazon-no-buttons",(0,H.__)("Amazonリンク(ボタン非表示)",G),'[amazon asin="ASIN" kw="'+(0,H.__)("キーワード",G)+'" amazon=0 rakuten=0 yahoo=0]'),Fi("shortcode-rakuten",(0,H.__)("楽天リンク",G),'[rakuten id="ID" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-rakuten-title",(0,H.__)("楽天リンク(商品名変更)",G),'[rakuten id="ID" title="'+(0,H.__)("商品名",G)+'" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-rakuten-no-buttons",(0,H.__)("楽天リンク(ボタン非表示)",G),'[rakuten id="ID" kw="'+(0,H.__)("キーワード",G)+'" amazon=0 rakuten=0 yahoo=0]'),Fi("shortcode-ago",(0,H.__)("過去日時",G),'[ago from="YYYY/MM/DD"]'),Fi("shortcode-yago",(0,H.__)("過去日時(年)",G),'[yago from="YYYY/MM/DD"]'),Fi("shortcode-age",(0,H.__)("年齢",G),'[age birth="YYYY/MM/DD"]'),Fi("shortcode-date",(0,H.__)("ページ読み込み時の日付",G),'[date format="Y/m/d"]'),Fi("shortcode-updated",(0,H.__)("ページの更新日",G),'[updated format="Y/m/d"]'),Fi("shortcode-countdown",(0,H.__)("カウントダウン",G),'[countdown to="YYYY/MM/DD"]'),Fi("shortcode-star",(0,H.__)("評価スター",G),'[star rate="3.7" max="5" number="1"]'),Fi("shortcode-login",(0,H.__)("ログインコンテンツ",G),'[login_user_only msg="'+(0,H.__)("こちらのコンテンツはログインユーザーのみに表示されます。",G)+'"]'+(0,H.__)("内容",G)+"[/login_user_only]"),Number(gbSettings.isGeneralVisible?gbSettings.isGeneralVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/shortcodes",{title:(0,H.__)("汎用ショートコード",G),tagName:"span",className:"shortcodes",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Shortcode.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Pi,size:32}),label:(0,H.__)("ショートコード",G),className:"shortcodes",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Ii=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),Vi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));Number(gbSettings.isTemplateVisible?gbSettings.isTemplateVisible:0)&&(gbTemplates.map(((e,t)=>{var o="template-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(me,{icon:(0,R.createElement)(Ha,{icon:Ii,size:32}),title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[temp id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/templates",{title:(0,H.__)("テンプレート",G),tagName:"span",className:"templates",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Template.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Vi,size:32}),label:(0,H.__)("テンプレート",G),className:"templates",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}));var Oi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"}));Number(gbSettings.isAffiliateVisible?gbSettings.isAffiliateVisible:0)&&(gbAffiliateTags.map(((e,t)=>{var o="affiliate-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(ue,{icon:(0,R.createElement)(Ha,{icon:Ii,size:32}),title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[affi id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/affiliates",{title:(0,H.__)("アフィリエイト",G),tagName:"span",className:"affiliates",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Affiliate.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Oi,size:32}),label:(0,H.__)("アフィリエイトタグ",G),className:"affiliates",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}})),Number(gbSettings.isRankingVisible?gbSettings.isRankingVisible:0)&&(gbItemRankings.map(((e,t)=>{const o="ranking-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(de,{icon:"editor-code",title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[rank id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/rankings",{title:(0,H.__)("ランキング",G),tagName:"span",className:"rankings",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Ranking.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(ra,{icon:Pa}),label:(0,H.__)("ランキング",G),className:"rankings",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}));const{InnerBlocks:Ri,RichText:Mi,InspectorControls:qi}=wp.editor,{PanelBody:Li,SelectControl:Hi,BaseControl:ji,ToggleControl:Di}=wp.components,Yi=(0,H.__)("マイクロコピーバルーン",G),$i=" micro-copy";function Gi(e){return e?" mc-circle":""}(0,z.registerBlockType)("cocoon-blocks/micro-balloon",{title:(0,H.__)("マイクロバルーン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),attributes:{content:{type:"string",selector:"div",default:Yi},style:{type:"string",default:"micro-balloon"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,isCircle:a,color:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(qi,null,(0,R.createElement)(Li,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Hi,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"micro-balloon",label:(0,H.__)("下寄り",G)},{value:"micro-balloon micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(Hi,{label:(0,H.__)("色設定",G),value:l,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" mc-yellow",label:(0,H.__)("黄色",G)},{value:" mc-red",label:(0,H.__)("赤色",G)},{value:" mc-blue",label:(0,H.__)("青色",G)},{value:" mc-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Di,{label:(0,H.__)("円形にする",G),checked:a,onChange:e=>t({isCircle:e})}))),(0,R.createElement)("div",{className:n+l+Gi(a)+$i+U},(0,R.createElement)(Mi,{value:o,onChange:e=>t({content:e})})))},save({attributes:e}){const{content:t,style:o,isCircle:n,color:a}=e;return(0,R.createElement)("div",{className:o+a+Gi(n)+$i+U},(0,R.createElement)(Mi.Content,{value:t}))}});const{InnerBlocks:Ui,RichText:Ji,InspectorControls:Wi}=wp.editor,{PanelBody:Xi,SelectControl:Qi,BaseControl:Ki,ToggleControl:Zi}=wp.components,eu=(0,H.__)("マイクロコピーバルーン",G),tu=" micro-copy";function ou(e){return e?" mc-circle":""}(0,z.registerBlockType)("cocoon-blocks/micro-balloon-1",{title:(0,H.__)("マイクロバルーン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),attributes:{content:{type:"string",selector:"div",default:eu},style:{type:"string",default:" micro-top"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,isCircle:a,color:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Wi,null,(0,R.createElement)(Xi,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Qi,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:" micro-top",label:(0,H.__)("下寄り",G)},{value:" micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(Qi,{label:(0,H.__)("色設定",G),value:l,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" mc-yellow",label:(0,H.__)("黄色",G)},{value:" mc-red",label:(0,H.__)("赤色",G)},{value:" mc-blue",label:(0,H.__)("青色",G)},{value:" mc-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Zi,{label:(0,H.__)("円形にする",G),checked:a,onChange:e=>t({isCircle:e})}))),(0,R.createElement)("div",{className:"micro-balloon"+n+l+ou(a)+tu+U},(0,R.createElement)(Ji,{value:o,onChange:e=>t({content:e})})))},save({attributes:e}){const{content:t,style:o,isCircle:n,color:a}=e;return(0,R.createElement)("div",{className:"micro-balloon"+o+a+ou(n)+tu+U},(0,R.createElement)(Ji.Content,{value:t}))}});const{registerBlockType:nu,createBlock:au}=wp.blocks,{InnerBlocks:lu,RichText:ru,InspectorControls:cu}=wp.editor,{PanelBody:su,SelectControl:iu,BaseControl:uu}=wp.components,mu=(0,H.__)("未入力",G),bu=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let du=gbSpeechBalloons;oe(du)||(du=[{name:"",id:"0",icon:bu,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),nu("cocoon-blocks/balloon-box",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),attributes:{content:{type:"string",selector:"div",default:""},index:{type:"string",default:"0"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{content:o,index:n}=e;du[n]||(n=0);var a=[];return du.map(((e,t)=>{"1"==du[t].visible&&a.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(cu,null,(0,R.createElement)(su,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(iu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e}),options:a}))),(0,R.createElement)("div",{className:"speech-wrap sb-id-"+du[n].id+" sbs-"+du[n].style+" sbp-"+du[n].position+" sbis-"+du[n].iconindex+" cf"+U},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:du[n].icon,alt:du[n].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(ru,{value:o||du[n].name,placeholder:mu,onChange:e=>t({content:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(lu,null))))},save({attributes:e}){var{content:t,index:o}=e;return du[o]||(o=0),(0,R.createElement)("div",{className:"speech-wrap sb-id-"+du[o].id+" sbs-"+du[o].style+" sbp-"+du[o].position+" sbis-"+du[o].iconindex+" cf"+U},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:du[o].icon,alt:du[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(ru.Content,{value:t||du[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(lu.Content,null)))}});const{InnerBlocks:pu,RichText:gu,InspectorControls:fu}=wp.editor,{PanelBody:vu,SelectControl:_u,BaseControl:yu}=wp.components,hu=(0,H.__)("未入力",G),ku=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Cu=gbSpeechBalloons;function xu(e){return L()({"speech-wrap":!0,[`sb-id-${Cu[e].id}`]:!!Cu[e].id,[`sbs-${Cu[e].style}`]:!!Cu[e].style,[`sbp-${Cu[e].position}`]:!!Cu[e].position,[`sbis-${Cu[e].iconstyle}`]:!!Cu[e].iconstyle,cf:!0,"block-box":!0})}oe(Cu)||(Cu=[{name:"",id:"0",icon:ku,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-box-1",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n}=e;Cu[n]||(n=0);var a=[];return Cu.map(((e,t)=>{"1"==Cu[t].visible&&a.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(fu,null,(0,R.createElement)(vu,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(_u,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e}),options:a}))),(0,R.createElement)("div",{className:xu(n)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:Cu[n].icon,alt:Cu[n].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(gu,{value:o||Cu[n].name,placeholder:hu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(pu,null))))},save({attributes:e}){var{name:t,index:o}=e;return Cu[o]||(o=0),(0,R.createElement)("div",{className:xu(o)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:Cu[o].icon,alt:Cu[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(gu.Content,{value:t||Cu[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(pu.Content,null)))}});const{InnerBlocks:Eu,RichText:Nu,InspectorControls:wu}=wp.editor,{PanelBody:Su,SelectControl:Bu,BaseControl:Tu}=wp.components,zu=(0,H.__)("未入力",G),Au=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Pu=gbSpeechBalloons;oe(Pu)||(Pu=[{name:"",id:"0",icon:Au,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-box-2",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},id:{type:"string",default:""},icon:{type:"string",default:""},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n,id:a,icon:l,style:r,position:c,iconstyle:s}=e;Pu[n]||(n=0),!l&&"0"==n&&Pu[0]&&(a=Pu[0].id,l=Pu[0].icon,r=Pu[0].style,c=Pu[0].position,s=Pu[0].iconstyle,o||(o=Pu[0].name),t({name:o,index:n,id:a,icon:l,style:r,position:c,iconstyle:s})),Pu[n]&&te(n,a,l,r,c,s)&&(a=Pu[n].id,l=Pu[n].icon,r=Pu[n].style,c=Pu[n].position,s=Pu[n].iconstyle,o||(o=Pu[n].name),t({index:n,id:a,icon:l,style:r,position:c,iconstyle:s}));var i=[];return Pu.map(((e,t)=>{"1"==Pu[t].visible&&i.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(wu,null,(0,R.createElement)(Su,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Bu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e,name:Pu[e].name,id:Pu[e].id,icon:Pu[e].icon,style:Pu[e].style,position:Pu[e].position,iconstyle:Pu[e].iconstyle}),options:i}))),(0,R.createElement)("div",{className:ee(a,r,c,s)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:l,alt:o,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Nu,{value:o,placeholder:zu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Eu,null))))},save({attributes:e}){const{name:t,index:o,id:n,icon:a,style:l,position:r,iconstyle:c}=e;return(0,R.createElement)("div",{className:ee(n,l,r,c)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:a,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Nu.Content,{value:t}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Eu.Content,null)))}});const{InnerBlocks:Fu,RichText:Iu,MediaUpload:Vu,InspectorControls:Ou}=wp.editor,{Button:Ru,PanelBody:Mu,SelectControl:qu,BaseControl:Lu}=wp.components,Hu=(0,H.__)("未入力",G),ju=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Du=gbSpeechBalloons;function Yu(e,t,o,n){return L()({"speech-wrap":!0,[`sb-id-${Du[e].id}`]:!!Du[e].id,[`sbs-${t}`]:!!t,[`sbp-${o}`]:!!o,[`sbis-${n}`]:!!n,cf:!0,"block-box":!0})}oe(Du)||(Du=[{name:"",id:"0",icon:ju,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-ex-box",{title:(0,H.__)("吹き出しEX",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しのオプションを変更できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"},icon:{type:"string",default:""},iconid:{type:"number",default:0}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n,style:a,position:l,iconstyle:r,icon:c,iconid:s}=e;Du[n]||(n=0);var i=[];return Du.map(((e,t)=>{"1"==Du[t].visible&&i.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Ou,null,(0,R.createElement)(Mu,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(qu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e,icon:""}),options:i}),(0,R.createElement)(qu,{label:(0,H.__)("吹き出しスタイル",G),value:a,onChange:e=>t({style:e}),options:[{value:"stn",label:(0,H.__)("デフォルト",G)},{value:"flat",label:(0,H.__)("フラット",G)},{value:"line",label:(0,H.__)("LINE風",G)},{value:"think",label:(0,H.__)("考え事",G)}]}),(0,R.createElement)(qu,{label:(0,H.__)("人物位置",G),value:l,onChange:e=>t({position:e}),options:[{value:"l",label:(0,H.__)("左",G)},{value:"r",label:(0,H.__)("右",G)}]}),(0,R.createElement)(qu,{label:(0,H.__)("アイコンスタイル",G),value:r,onChange:e=>t({iconstyle:e}),options:[{value:"sn",label:(0,H.__)("四角(枠線なし)",G)},{value:"sb",label:(0,H.__)("四角(枠線あり)",G)},{value:"cn",label:(0,H.__)("丸(枠線なし)",G)},{value:"cb",label:(0,H.__)("丸(枠線あり)",G)}]}))),(0,R.createElement)("div",{className:Yu(n,a,l,r)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)(Vu,{onSelect:e=>{let o=e.sizes.thumbnail?e.sizes.thumbnail.url:e.url;t({icon:o,iconid:e.id})},type:"image",value:s,render:e=>(0,R.createElement)(Ru,{className:"image-button",onClick:e.open,style:{padding:0}},(0,R.createElement)("img",{src:c||Du[n].icon,alt:c?"":Du[n].name,className:`speech-icon-image wp-image-${s}`}))})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Iu,{value:o||Du[n].name,placeholder:Hu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Fu,null))))},save({attributes:e}){var{name:t,index:o,style:n,position:a,iconstyle:l,icon:r}=e;return Du[o]||(o=0),(0,R.createElement)("div",{className:Yu(o,n,a,l)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:r||Du[o].icon,alt:r?"":Du[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Iu.Content,{value:t||Du[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Fu.Content,null)))}});const{InnerBlocks:$u,RichText:Gu,InspectorControls:Uu}=wp.editor,{PanelBody:Ju,SelectControl:Wu,BaseControl:Xu}=wp.components,Qu=(0,H.__)("こちらをクリックして設定変更。この入力は公開ページで反映されません。",G);(0,z.registerBlockType)("cocoon-blocks/blank-box",{title:(0,H.__)("白抜きボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンテンツを囲むだけのブランクボックスを表示します。",G),attributes:{content:{type:"string",selector:"div",default:Qu},style:{type:"string",default:"blank-box"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,alignment:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Uu,null,(0,R.createElement)(Ju,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Wu,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"blank-box",label:(0,H.__)("デフォルト",G)},{value:"blank-box bb-yellow",label:(0,H.__)("黄色",G)},{value:"blank-box bb-red",label:(0,H.__)("赤色",G)},{value:"blank-box bb-blue",label:(0,H.__)("青色",G)},{value:"blank-box bb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:e.style+U},(0,R.createElement)("span",{className:"box-block-msg"},(0,R.createElement)(Gu,{value:o,placeholder:Qu})),(0,R.createElement)($u,null)))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:e.style+U},(0,R.createElement)($u.Content,null))}});const{InnerBlocks:Ku,RichText:Zu,InspectorControls:em}=wp.editor,{PanelBody:tm,SelectControl:om,BaseControl:nm}=wp.components,am=(0,H.__)("こちらをクリックして設定変更。この入力は公開ページで反映されません。",G);(0,z.registerBlockType)("cocoon-blocks/tab-box",{title:(0,H.__)("タブボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("タブにメッセージ内容を伝えるための文字が書かれているボックスです。",G),attributes:{content:{type:"string",source:"html",selector:"div",default:am},style:{type:"string",default:"blank-box bb-tab bb-check"},color:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,color:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(em,null,(0,R.createElement)(tm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(om,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"blank-box bb-tab bb-check",label:(0,H.__)("チェック",G)},{value:"blank-box bb-tab bb-comment",label:(0,H.__)("コメント",G)},{value:"blank-box bb-tab bb-point",label:(0,H.__)("ポイント",G)},{value:"blank-box bb-tab bb-tips",label:(0,H.__)("ティップス",G)},{value:"blank-box bb-tab bb-hint",label:(0,H.__)("ヒント",G)},{value:"blank-box bb-tab bb-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blank-box bb-tab bb-bookmark",label:(0,H.__)("ブックマーク",G)},{value:"blank-box bb-tab bb-memo",label:(0,H.__)("メモ",G)},{value:"blank-box bb-tab bb-download",label:(0,H.__)("ダウンロード",G)},{value:"blank-box bb-tab bb-break",label:(0,H.__)("ブレイク",G)},{value:"blank-box bb-tab bb-amazon",label:(0,H.__)("Amazon",G)},{value:"blank-box bb-tab bb-ok",label:(0,H.__)("OK",G)},{value:"blank-box bb-tab bb-ng",label:(0,H.__)("NG",G)},{value:"blank-box bb-tab bb-good",label:(0,H.__)("GOOD",G)},{value:"blank-box bb-tab bb-bad",label:(0,H.__)("BAD",G)},{value:"blank-box bb-tab bb-profile",label:(0,H.__)("プロフィール",G)}]}),(0,R.createElement)(om,{label:(0,H.__)("色設定",G),value:a,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:" bb-yellow",label:(0,H.__)("黄色",G)},{value:" bb-red",label:(0,H.__)("赤色",G)},{value:" bb-blue",label:(0,H.__)("青色",G)},{value:" bb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:e.style+e.color+U},(0,R.createElement)("span",{className:"box-block-msg"},(0,R.createElement)(Zu,{value:o,placeholder:am})),(0,R.createElement)(Ku,null)))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:e.style+e.color+U},(0,R.createElement)(Ku.Content,null))}});const{InnerBlocks:lm,RichText:rm,InspectorControls:cm}=wp.editor,{PanelBody:sm,SelectControl:im,BaseControl:um}=wp.components,mm=(0,H.__)("トグルボックス見出し",G);(0,z.registerBlockType)("cocoon-blocks/toggle-box",{title:(0,H.__)("トグルボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("クリックすることでコンテンツ内容の表示を切り替えることができるボックスです。",G),attributes:{content:{type:"string",selector:"div",default:mm},color:{type:"string",default:"toggle-wrap"},dateID:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,dateID:a}=e;return""==a&&t({dateID:K()}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(cm,null,(0,R.createElement)(sm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(im,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"toggle-wrap",label:(0,H.__)("デフォルト",G)},{value:"toggle-wrap tb-yellow",label:(0,H.__)("黄色",G)},{value:"toggle-wrap tb-red",label:(0,H.__)("赤色",G)},{value:"toggle-wrap tb-blue",label:(0,H.__)("青色",G)},{value:"toggle-wrap tb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:n+U},(0,R.createElement)("input",{id:"toggle-checkbox-"+a,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",for:"toggle-checkbox-"+a},(0,R.createElement)(rm,{value:o,onChange:function(e){t({content:e})},placeholder:mm})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(lm,null))))},save({attributes:e}){const{content:t,color:o,dateID:n}=e;return(0,R.createElement)("div",{className:o+U},(0,R.createElement)("input",{id:"toggle-checkbox-"+n,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",for:"toggle-checkbox-"+n},(0,R.createElement)(rm.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(lm.Content,null)))}});const{times:bm}=lodash,{InnerBlocks:dm,RichText:pm,InspectorControls:gm}=wp.editor,{PanelBody:fm,SelectControl:vm,BaseControl:_m,Button:ym}=wp.components,hm="caption-box",km=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/caption-box",{title:(0,H.__)("見出しボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックス「見出し」を入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:km},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(gm,null,(0,R.createElement)(fm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(vm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" cb-yellow",label:(0,H.__)("黄色",G)},{value:" cb-red",label:(0,H.__)("赤色",G)},{value:" cb-blue",label:(0,H.__)("青色",G)},{value:" cb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(_m,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},bm(ae.length,(e=>(0,R.createElement)(ym,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:hm+n+U},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(pm,{value:o,onChange:e=>t({content:e}),placeholder:km}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(dm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:hm+o+U},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(pm.Content,{value:t}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(dm.Content,null)))}});const{times:Cm}=lodash,{InnerBlocks:xm,RichText:Em,InspectorControls:Nm}=wp.editor,{PanelBody:wm,SelectControl:Sm,BaseControl:Bm,Button:Tm}=wp.components,zm="tab-caption-box",Am=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/tab-caption-box",{title:(0,H.__)("タブ見出しボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックスに「タブ見出し」を入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:Am},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Nm,null,(0,R.createElement)(wm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Sm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" tcb-yellow",label:(0,H.__)("黄色",G)},{value:" tcb-red",label:(0,H.__)("赤色",G)},{value:" tcb-blue",label:(0,H.__)("青色",G)},{value:" tcb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Bm,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},Cm(ae.length,(e=>(0,R.createElement)(Tm,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:zm+n+U},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(Em,{value:o,onChange:e=>t({content:e}),placeholder:Am}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(xm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:zm+o+U},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(Em.Content,{value:t}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(xm.Content,null)))}});const{times:Pm}=lodash,{InnerBlocks:Fm,RichText:Im,InspectorControls:Vm}=wp.editor,{PanelBody:Om,SelectControl:Rm,BaseControl:Mm,Button:qm}=wp.components,Lm="label-box",Hm=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/label-box",{title:(0,H.__)("ラベルボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックスに「ラベル見出し」入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:Hm},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Vm,null,(0,R.createElement)(Om,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Rm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" lb-yellow",label:(0,H.__)("黄色",G)},{value:" lb-red",label:(0,H.__)("赤色",G)},{value:" lb-blue",label:(0,H.__)("青色",G)},{value:" lb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Mm,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},Pm(ae.length,(e=>(0,R.createElement)(qm,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:Lm+n+U},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(Im,{value:o,onChange:e=>t({content:e}),placeholder:Hm}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(Fm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:Lm+o+U},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(Im.Content,{value:t}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(Fm.Content,null)))}});const{RichText:jm,InspectorControls:Dm}=wp.editor,{PanelBody:Ym,SelectControl:$m,BaseControl:Gm,TextControl:Um}=wp.components,Jm=" button-block";(0,z.registerBlockType)("cocoon-blocks/button",{title:(0,H.__)("ボタン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("一般的なリンクボタンを作成します。",G),attributes:{content:{type:"string",default:(0,H.__)("ボタン",G)},url:{type:"string",default:""},target:{type:"string",default:"_self"},color:{type:"string",default:"btn btn-red"},size:{type:"string",default:""}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,size:a,url:l,target:r}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Dm,null,(0,R.createElement)(Ym,{title:(0,H.__)("ボタン設定",G)},(0,R.createElement)(Um,{label:(0,H.__)("URL",G),value:l,onChange:e=>t({url:e})}),(0,R.createElement)($m,{label:(0,H.__)("リンクの開き方",G),value:r,onChange:e=>t({target:e}),options:[{value:"_self",label:(0,H.__)("現在のタブで開く",G)},{value:"_blank",label:(0,H.__)("新しいタブで開く",G)}]}),(0,R.createElement)($m,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"btn btn-red",label:(0,H.__)("レッド",G)},{value:"btn btn-pink",label:(0,H.__)("ピンク",G)},{value:"btn btn-purple",label:(0,H.__)("パープル",G)},{value:"btn btn-deep",label:(0,H.__)("ディープパープル",G)},{value:"btn btn-indigo",label:(0,H.__)("インディゴ[紺色]",G)},{value:"btn btn-blue",label:(0,H.__)("ブルー",G)},{value:"btn btn-blue",label:(0,H.__)("ライトブルー",G)},{value:"btn btn-cyan",label:(0,H.__)("シアン",G)},{value:"btn btn-teal",label:(0,H.__)("ティール[緑色がかった青]",G)},{value:"btn btn-green",label:(0,H.__)("グリーン",G)},{value:"btn btn-light-green",label:(0,H.__)("ライトグリーン",G)},{value:"btn btn-lime",label:(0,H.__)("ライム",G)},{value:"btn btn-yellow",label:(0,H.__)("イエロー",G)},{value:"btn btn-amber",label:(0,H.__)("アンバー[琥珀色]",G)},{value:"btn btn-orange",label:(0,H.__)("オレンジ",G)},{value:"btn btn-deep-orange",label:(0,H.__)("ディープオレンジ",G)},{value:"btn btn-brown",label:(0,H.__)("ブラウン",G)},{value:"btn btn-grey",label:(0,H.__)("グレー",G)}]}),(0,R.createElement)($m,{label:(0,H.__)("サイズ",G),value:a,onChange:e=>t({size:e}),options:[{value:"",label:(0,H.__)("小",G)},{value:" btn-m",label:(0,H.__)("中",G)},{value:" btn-l",label:(0,H.__)("大",G)}]}))),(0,R.createElement)("div",{className:Jm},(0,R.createElement)("span",{className:n+a,href:l,target:r},(0,R.createElement)(jm,{value:o,onChange:e=>t({content:e})}))))},save({attributes:e}){const{content:t,color:o,size:n,url:a,target:l}=e;return(0,R.createElement)("div",{className:Jm},(0,R.createElement)("a",{href:a,className:o+n,target:l},(0,R.createElement)(jm.Content,{value:t})))}});const{RichText:Wm,InspectorControls:Xm}=wp.editor,{PanelBody:Qm,SelectControl:Km,BaseControl:Zm,TextareaControl:eb}=wp.components,tb=" button-block";(0,z.registerBlockType)("cocoon-blocks/button-wrap",{title:(0,H.__)("囲みボタン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("アスリートタグ等のタグを変更できないリンクをボタン化します。",G),attributes:{content:{type:"string",default:(0,H.__)("こちらをクリックしてリンクタグを設定エリア入力してください。この入力は公開ページで反映されません。",G)},tag:{type:"string",default:""},color:{type:"string",default:"btn-wrap btn-wrap-red"},size:{type:"string",default:""}},supports:{align:["left","center","right"],inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,size:a,tag:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Xm,null,(0,R.createElement)(Qm,{title:(0,H.__)("囲みボタン設定",G)},(0,R.createElement)(eb,{label:(0,H.__)("リンクタグ・ショートコード",G),value:l,onChange:e=>t({tag:e})}),(0,R.createElement)(Km,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"btn-wrap btn-wrap-red",label:(0,H.__)("レッド",G)},{value:"btn-wrap btn-wrap-pink",label:(0,H.__)("ピンク",G)},{value:"btn-wrap btn-wrap-purple",label:(0,H.__)("パープル",G)},{value:"btn-wrap btn-wrap-deep",label:(0,H.__)("ディープパープル",G)},{value:"btn-wrap btn-wrap-indigo",label:(0,H.__)("インディゴ[紺色]",G)},{value:"btn-wrap btn-wrap-blue",label:(0,H.__)("ブルー",G)},{value:"btn-wrap btn-wrap-blue",label:(0,H.__)("ライトブルー",G)},{value:"btn-wrap btn-wrap-cyan",label:(0,H.__)("シアン",G)},{value:"btn-wrap btn-wrap-teal",label:(0,H.__)("ティール[緑色がかった青]",G)},{value:"btn-wrap btn-wrap-green",label:(0,H.__)("グリーン",G)},{value:"btn-wrap btn-wrap-light-green",label:(0,H.__)("ライトグリーン",G)},{value:"btn-wrap btn-wrap-lime",label:(0,H.__)("ライム",G)},{value:"btn-wrap btn-wrap-yellow",label:(0,H.__)("イエロー",G)},{value:"btn-wrap btn-wrap-amber",label:(0,H.__)("アンバー[琥珀色]",G)},{value:"btn-wrap btn-wrap-orange",label:(0,H.__)("オレンジ",G)},{value:"btn-wrap btn-wrap-deep-orange",label:(0,H.__)("ディープオレンジ",G)},{value:"btn-wrap btn-wrap-brown",label:(0,H.__)("ブラウン",G)},{value:"btn-wrap btn-wrap-grey",label:(0,H.__)("グレー",G)}]}),(0,R.createElement)(Km,{label:(0,H.__)("サイズ",G),value:a,onChange:e=>t({size:e}),options:[{value:"",label:(0,H.__)("小",G)},{value:" btn-wrap-m",label:(0,H.__)("中",G)},{value:" btn-wrap-l",label:(0,H.__)("大",G)}]}))),(0,R.createElement)("span",{className:"button-wrap-msg"},(0,R.createElement)(Wm,{value:o})),(0,R.createElement)("div",{className:n+a+tb,dangerouslySetInnerHTML:{__html:l}}))},save({attributes:e}){const{content:t,color:o,size:n,tag:a}=e;return(0,R.createElement)("div",{className:o+n+tb},(0,R.createElement)(Wm.Content,{value:a}))}});const ob=[],nb=[r,s,t,u,m,e,n,a,l,p,i,b,d,c,g,f,v,_,y,h,k,C,x,E,N,S,w,B,T],ab=e=>{if(!e)return;let{metadata:t,settings:o,name:n}=e,a=0;gbSettings.wpVersion&&(a=gbSettings.wpVersion),a=a.replace(/-.+$/,""),((e,t)=>{const o=P(e),n=P("5.5"),a=o.pop(),l=n.pop(),r=O(o,n);return 0!==r?r:a&&l?O(a.split("."),l.split(".")):a||l?a?-1:1:0})(a)<0?(delete t.name,o={...o,...t}):t&&(0,z.unstable__bootstrapServerSideBlockDefinitions)({[n]:t}),(0,z.registerBlockType)(n,o)};((e=(()=>nb.concat(ob))())=>{e.forEach(ab)})()}()}(); \ No newline at end of file +!function(){var e={184:function(e,t){var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,P=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(A);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},F=e=>"*"===e||"x"===e||"X"===e,I=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},V=(e,t)=>{if(F(e)||F(t))return 0;const[o,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(I(e),I(t));return o>n?1:o{for(let o=0;o{const{textColor:o,backgroundColor:n,borderColor:a,fontSize:l,customFontSize:r}=t.attributes,c=e.querySelector('[contenteditable="true"]'),s=c?$(c):null;return{fallbackBackgroundColor:n||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackBorderColor:a||!s?void 0:s.color,fallbackFontSize:l||r||!s?void 0:parseInt(s.fontSize)||void 0}}));const ae=[{value:"",label:"fab-none"},{value:"fab-info-circle",label:(0,H.__)("fab-info-circle",G)},{value:"fab-question-circle",label:(0,H.__)("fab-question-circle",G)},{value:"fab-exclamation-circle",label:(0,H.__)("fab-exclamation-circle",G)},{value:"fab-pencil",label:(0,H.__)("fab-pencil",G)},{value:"fab-edit",label:(0,H.__)("fab-edit",G)},{value:"fab-comment",label:(0,H.__)("fab-comment",G)},{value:"fab-ok",label:(0,H.__)("fab-ok",G)},{value:"fab-bad",label:(0,H.__)("fab-bad",G)},{value:"fab-thumbs-up",label:(0,H.__)("fab-thumbs-up",G)},{value:"fab-thumbs-down",label:(0,H.__)("fab-thumbs-down",G)},{value:"fab-check",label:(0,H.__)("fab-check",G)},{value:"fab-star",label:(0,H.__)("fab-star",G)},{value:"fab-bell",label:(0,H.__)("fab-bell",G)},{value:"fab-trophy",label:(0,H.__)("fab-trophy",G)},{value:"fab-lightbulb",label:(0,H.__)("fab-lightbulb",G)},{value:"fab-graduation-cap",label:(0,H.__)("fab-graduation-cap",G)},{value:"fab-bolt",label:(0,H.__)("fab-bolt",G)},{value:"fab-bookmark",label:(0,H.__)("fab-bookmark",G)},{value:"fab-book",label:(0,H.__)("fab-book",G)},{value:"fab-download",label:(0,H.__)("fab-download",G)},{value:"fab-coffee",label:(0,H.__)("fab-coffee",G)},{value:"fab-amazon",label:(0,H.__)("fab-amazon",G)},{value:"fab-user",label:(0,H.__)("fab-user",G)},{value:"fab-envelope",label:(0,H.__)("fab-envelope",G)},{value:"fab-flag",label:(0,H.__)("fab-flag",G)},{value:"fab-ban",label:(0,H.__)("fab-ban",G)},{value:"fab-calendar",label:(0,H.__)("fab-calendar",G)},{value:"fab-clock",label:(0,H.__)("fab-clock",G)},{value:"fab-cutlery",label:(0,H.__)("fab-cutlery",G)},{value:"fab-heart",label:(0,H.__)("fab-heart",G)},{value:"fab-camera",label:(0,H.__)("fab-camera",G)},{value:"fab-search",label:(0,H.__)("fab-search",G)},{value:"fab-file-text",label:(0,H.__)("fab-file-text",G)},{value:"fab-folder",label:(0,H.__)("fab-folder",G)},{value:"fab-tag",label:(0,H.__)("fab-tag",G)},{value:"fab-car",label:(0,H.__)("fab-car",G)},{value:"fab-truck",label:(0,H.__)("fab-truck",G)},{value:"fab-bicycle",label:(0,H.__)("fab-bicycle",G)},{value:"fab-motorcycle",label:(0,H.__)("fab-motorcycle",G)},{value:"fab-bus",label:(0,H.__)("fab-bus",G)},{value:"fab-plane",label:(0,H.__)("fab-plane",G)},{value:"fab-train",label:(0,H.__)("fab-train",G)},{value:"fab-subway",label:(0,H.__)("fab-subway",G)},{value:"fab-taxi",label:(0,H.__)("fab-taxi",G)},{value:"fab-ship",label:(0,H.__)("fab-ship",G)},{value:"fab-jpy",label:(0,H.__)("fab-jpy",G)},{value:"fab-usd",label:(0,H.__)("fab-usd",G)},{value:"fab-eur",label:(0,H.__)("fab-eur",G)},{value:"fab-btc",label:(0,H.__)("fab-btc",G)},{value:"fab-apple",label:(0,H.__)("fab-apple",G)},{value:"fab-android",label:(0,H.__)("fab-android",G)},{value:"fab-wordpress",label:(0,H.__)("fab-wordpress",G)}],le=[{value:"list-caret-right",label:(0,H.__)("fab-caret-right",G)},{value:"list-check",label:(0,H.__)("fab-check",G)},{value:"list-check-circle",label:(0,H.__)("fab-check-circle",G)},{value:"list-check-circle-o",label:(0,H.__)("fab-check-circle-o",G)},{value:"list-check-square",label:(0,H.__)("fab-check-square",G)},{value:"list-check-square-o",label:(0,H.__)("fab-check-square-o",G)},{value:"list-caret-square-o-right",label:(0,H.__)("fab-caret-square-o-right",G)},{value:"list-arrow-right",label:(0,H.__)("fab-arrow-right",G)},{value:"list-angle-right",label:(0,H.__)("fab-angle-right",G)},{value:"list-angle-double-right",label:(0,H.__)("fab-angle-double-right",G)},{value:"list-arrow-circle-right",label:(0,H.__)("fab-arrow-circle-right",G)},{value:"list-arrow-circle-o-right",label:(0,H.__)("fab-arrow-circle-o-right",G)},{value:"list-play-circle",label:(0,H.__)("fab-play-circle",G)},{value:"list-play-circle-o",label:(0,H.__)("fab-play-circle-o",G)},{value:"list-chevron-right",label:(0,H.__)("fab-chevron-right",G)},{value:"list-chevron-circle-right",label:(0,H.__)("fab-chevron-circle-right",G)},{value:"list-hand-o-right",label:(0,H.__)("fab-hand-o-right",G)},{value:"list-star",label:(0,H.__)("fab-star",G)},{value:"list-star-o",label:(0,H.__)("fab-star-o",G)},{value:"list-heart",label:(0,H.__)("fab-heart",G)},{value:"list-heart-o",label:(0,H.__)("fab-heart-o",G)},{value:"list-square",label:(0,H.__)("fab-square",G)},{value:"list-square-o",label:(0,H.__)("fab-square-o",G)},{value:"list-circle",label:(0,H.__)("fab-circle",G)},{value:"list-circle-o",label:(0,H.__)("fab-circle-o",G)},{value:"list-dot-circle-o",label:(0,H.__)("fab-dot-circle-o",G)},{value:"list-plus",label:(0,H.__)("fab-plus",G)},{value:"list-plus-circle",label:(0,H.__)("fab-plus-circle",G)},{value:"list-plus-square",label:(0,H.__)("fab-plus-square",G)},{value:"list-plus-square-o",label:(0,H.__)("fab-plus-square-o",G)},{value:"list-minus",label:(0,H.__)("fab-minus",G)},{value:"list-minus-circle",label:(0,H.__)("fab-minus-circle",G)},{value:"list-minus-square",label:(0,H.__)("fab-minus-square",G)},{value:"list-minus-square-o",label:(0,H.__)("fab-minus-square-o",G)},{value:"list-times",label:(0,H.__)("fab-times",G)},{value:"list-times-circle",label:(0,H.__)("fab-times-circle",G)},{value:"list-times-circle-o",label:(0,H.__)("fab-times-circle-o",G)},{value:"list-window-close",label:(0,H.__)("fab-window-close",G)},{value:"list-window-close-o",label:(0,H.__)("fab-window-close-o",G)},{value:"list-paw",label:(0,H.__)("fab-paw",G)}];function re({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Letter.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ce({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Marker.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function se({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Badge.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ie({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="FontSize.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function ue({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Affiliate.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function me({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Template.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function be({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Shortcode.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}function de({name:e,shortcutType:t,shortcutCharacter:o,...n}){let a,l="Ranking.ToolbarControls";return e&&(l+=`.${e}`),t&&o&&(a=Y.displayShortcut[t](o)),(0,R.createElement)(j.Fill,{name:l},(0,R.createElement)(j.ToolbarButton,{...n,shortcut:a}))}const pe=gbCodeLanguages;function ge(e,t,o,n){if(null==e)return null;let a=[],l=o.split(",");return e.forEach((e=>{let r=!1;for(var c=0;c{!function(t){var a="";a=1==t?function(e,t){let o="";if(""==e)o=String(t);else{let a=e.split(","),l=!1;for(var n=0;n0&&ke.some(((e,t)=>{if("1"==e.visible)return p=e.id,g=e.icon,f=e.style,v=e.position,_=e.iconstyle,b||(b=e.name),o({name:b,index:t,id:p,icon:g,style:f,position:v,iconstyle:_}),!0})),ke[d]&&te(d,p,g,f,v,_)&&(p=ke[d].id,g=ke[d].icon,f=ke[d].style,v=ke[d].position,_=ke[d].iconstyle,b||(b=ke[d].name));const S=[];ke.map(((e,t)=>{"1"==ke[t].visible&&S.push({value:t,label:e.title})})),(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&x&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const B=L()(ee(p,f,v,_),{"not-nested-style":x,"cocoon-block-balloon":!0}),T={"--cocoon-custom-border-color":C||void 0,"--cocoon-custom-background-color":h||void 0,"--cocoon-custom-text-color":k||void 0};x&&(T["--cocoon-custom-border-color"]=w,T["--cocoon-custom-background-color"]=E,T["--cocoon-custom-text-color"]=N);const z=(0,D.useBlockProps)({className:B,style:T});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("人物",G),value:d,onChange:e=>o({index:e,name:ke[e].name,id:ke[e].id,icon:ke[e].icon,style:ke[e].style,position:ke[e].position,iconstyle:ke[e].iconstyle}),options:S}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("吹き出しスタイル",G),value:f,onChange:e=>o({style:e}),options:[{value:"stn",label:(0,H.__)("デフォルト",G)},{value:"flat",label:(0,H.__)("フラット",G)},{value:"line",label:(0,H.__)("LINE風",G)},{value:"think",label:(0,H.__)("考え事",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("人物位置",G),value:v,onChange:e=>o({position:e}),options:[{value:"l",label:(0,H.__)("左",G)},{value:"r",label:(0,H.__)("右",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("アイコンスタイル",G),value:_,onChange:e=>o({iconstyle:e}),options:[{value:"sn",label:(0,H.__)("四角(枠線なし)",G)},{value:"sb",label:(0,H.__)("四角(枠線あり)",G)},{value:"cn",label:(0,H.__)("丸(枠線なし)",G)},{value:"cb",label:(0,H.__)("丸(枠線あり)",G)}]})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("吹き出し色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...z},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)(D.MediaUpload,{onSelect:e=>{const t=e.sizes.thumbnail?e.sizes.thumbnail.url:e.url;o({icon:t,iconid:e.id})},type:"image",value:y,render:e=>(0,R.createElement)(j.Button,{className:"image-button",onClick:e.open,style:{padding:0}},(0,R.createElement)("img",{src:g||ke[d].icon,alt:g?"":ke[d].name,className:`speech-icon-image wp-image-${y}`}))})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText,{value:b,placeholder:ye,onChange:e=>o({name:e})}))),(0,R.createElement)("div",{className:L()(n,{"speech-balloon":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class})},(0,R.createElement)(D.InnerBlocks,{placeholder:(0,H.__)("セリフの入力",G)}))))}));const{createBlock:xe}=wp.blocks,Ee={migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",c),d=(0,D.getColorClassName)("color",s),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=ee(o,a,l,r),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s,"has-background":c,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g})},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Ne={attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},id:{type:"string",default:""},icon:{type:"string",default:""},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"},iconid:{type:"number",default:0},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d}=e,p=(0,D.getColorClassName)("background-color",c),g=(0,D.getColorClassName)("color",s),f=(0,D.getColorClassName)("border-color",i),v=(0,D.getFontSizeClass)(d),_=ee(o,a,l,r),y={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0},h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[g]:g,[p]:p,[f]:f,[v]:v})},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var we=[Ne,Ee,{attributes:{content:{type:"string",default:X},borderColor:{type:"string",default:""}},migrate(e){const{content:t,borderColor:o}=e;return{content:t,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{borderColor:t}=e,o=L()({"blank-box":!0,[`bb-${ne(t)}`]:!!ne(t),"block-box":!0});return(0,R.createElement)("div",{className:o},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:Se}=wp.blocks;var Be={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:({content:e})=>Se("cocoon-blocks/sticky-box",{content:e})},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:({content:e})=>Se("cocoon-blocks/tab-box-1",{content:e})},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:({content:e})=>Se("cocoon-blocks/icon-box",{content:e})},{type:"block",blocks:["cocoon-blocks/info-box"],transform:({content:e})=>Se("cocoon-blocks/info-box",{content:e})}]},Te=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/balloon-ex-box-1","category":"cocoon-block","keywords":["balloon","box"],"attributes":{"name":{"type":"string","default":""},"index":{"type":"string","default":"0"},"id":{"type":"string","default":""},"icon":{"type":"string","default":""},"style":{"type":"string","default":"stn"},"position":{"type":"string","default":"l"},"iconstyle":{"type":"string","default":"cb"},"iconid":{"type":"number","default":0},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod!"}}]},"supports":{"anchor":true}}');const{name:ze}=Te,Ae={title:(0,H.__)("吹き出し",G),icon:(0,R.createElement)("svg",{id:"Capa_1","enable-background":"new 0 0 511.072 511.072",height:"512",viewBox:"0 0 511.072 511.072",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("g",{id:"Speech_Bubble_48_"},(0,R.createElement)("g",null,(0,R.createElement)("path",{d:"m74.39 480.536h-36.213l25.607-25.607c13.807-13.807 22.429-31.765 24.747-51.246-36.029-23.644-62.375-54.751-76.478-90.425-14.093-35.647-15.864-74.888-5.121-113.482 12.89-46.309 43.123-88.518 85.128-118.853 45.646-32.963 102.47-50.387 164.33-50.387 77.927 0 143.611 22.389 189.948 64.745 41.744 38.159 64.734 89.63 64.734 144.933 0 26.868-5.471 53.011-16.26 77.703-11.165 25.551-27.514 48.302-48.593 67.619-46.399 42.523-112.042 65-189.83 65-28.877 0-59.01-3.855-85.913-10.929-25.465 26.123-59.972 40.929-96.086 40.929zm182-420c-124.039 0-200.15 73.973-220.557 147.285-19.284 69.28 9.143 134.743 76.043 175.115l7.475 4.511-.23 8.727c-.456 17.274-4.574 33.912-11.945 48.952 17.949-6.073 34.236-17.083 46.99-32.151l6.342-7.493 9.405 2.813c26.393 7.894 57.104 12.241 86.477 12.241 154.372 0 224.682-93.473 224.682-180.322 0-46.776-19.524-90.384-54.976-122.79-40.713-37.216-99.397-56.888-169.706-56.888z"})))),description:(0,H.__)("登録されている吹き出しのオプションを変更できます。",G),edit:Ce,save:function({attributes:e}){const{name:t,id:o,icon:n,style:a,position:l,iconstyle:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d,notNestedStyle:p,backgroundColorValue:g,textColorValue:f,borderColorValue:v}=e,_=(0,D.getColorClassName)("background-color",c),y=(0,D.getColorClassName)("color",s),h=(0,D.getColorClassName)("border-color",i),k=(0,D.getFontSizeClass)(d),C=L()(ee(o,a,l,r),{"not-nested-style":p,"cocoon-block-balloon":!0}),x={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0};p&&(x["--cocoon-custom-border-color"]=v,x["--cocoon-custom-background-color"]=g,x["--cocoon-custom-text-color"]=f);const E=D.useBlockProps.save({className:C,style:x});return(0,R.createElement)("div",{...E},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:n,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()({"speech-balloon":!0,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[y]:y,[_]:_,[h]:h,[k]:k})},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:we,transforms:Be};function Pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,n=new Array(t);o0;)t+=jt[62*Math.random()|0];return t}function Yt(e){for(var t=[],o=(e||[]).length>>>0;o--;)t[o]=e[o];return t}function $t(e){return e.classList?Yt(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Gt(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ut(e){return Object.keys(e||{}).reduce((function(t,o){return t+"".concat(o,": ").concat(e[o].trim(),";")}),"")}function Jt(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}var Wt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Xt(){var e=rt,t=ct,o=Mt.cssPrefix,n=Mt.replacementClass,a=Wt;if(o!==e||n!==t){var l=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");a=a.replace(l,".".concat(o,"-")).replace(r,"--".concat(o,"-")).replace(c,".".concat(n))}return a}var Qt=!1;function Kt(){Mt.autoAddCss&&!Qt&&(function(e){if(e&&nt){var t=et.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var o=et.head.childNodes,n=null,a=o.length-1;a>-1;a--){var l=o[a],r=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(n=l)}et.head.insertBefore(t,n)}}(Xt()),Qt=!0)}var Zt={mixout:function(){return{dom:{css:Xt,insertCss:Kt}}},hooks:function(){return{beforeDOMElementCreation:function(){Kt()},beforeI2svg:function(){Kt()}}}},eo=Ze||{};eo[lt]||(eo[lt]={}),eo[lt].styles||(eo[lt].styles={}),eo[lt].hooks||(eo[lt].hooks={}),eo[lt].shims||(eo[lt].shims=[]);var to=eo[lt],oo=[],no=!1;function ao(e){var t=e.tag,o=e.attributes,n=void 0===o?{}:o,a=e.children,l=void 0===a?[]:a;return"string"==typeof e?Gt(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,o){return t+"".concat(o,'="').concat(Gt(e[o]),'" ')}),"").trim()}(n),">").concat(l.map(ao).join(""),"")}function lo(e,t,o){if(e&&e[t]&&e[t][o])return{prefix:t,iconName:o,icon:e[t][o]}}nt&&((no=(et.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(et.readyState))||et.addEventListener("DOMContentLoaded",(function e(){et.removeEventListener("DOMContentLoaded",e),no=1,oo.map((function(e){return e()}))})));var ro=function(e,t,o,n){var a,l,r,c=Object.keys(e),s=c.length,i=void 0!==n?function(e,t){return function(o,n,a,l){return e.call(t,o,n,a,l)}}(t,n):t;for(void 0===o?(a=1,r=e[c[0]]):(a=0,r=o);a=55296&&a<=56319&&o2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==o&&o,a=so(t);"function"!=typeof to.hooks.addPack||n?to.styles[e]=Fe(Fe({},to.styles[e]||{}),a):to.hooks.addPack(e,so(t)),"fas"===e&&io("fa",t)}var uo,mo,bo,po=to.styles,go=to.shims,fo=(Oe(uo={},vt,Object.values(xt[vt])),Oe(uo,_t,Object.values(xt[_t])),uo),vo=null,_o={},yo={},ho={},ko={},Co={},xo=(Oe(mo={},vt,Object.keys(kt[vt])),Oe(mo,_t,Object.keys(kt[_t])),mo);var Eo,No=function(){var e=function(e){return ro(po,(function(t,o,n){return t[n]=ro(o,e,{}),t}),{})};_o=e((function(e,t,o){return t[3]&&(e[t[3]]=o),t[2]&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=o})),e})),yo=e((function(e,t,o){return e[o]=o,t[2]&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=o})),e})),Co=e((function(e,t,o){var n=t[2];return e[o]=o,n.forEach((function(t){e[t]=o})),e}));var t="far"in po||Mt.autoFetchSvg,o=ro(go,(function(e,o){var n=o[0],a=o[1],l=o[2];return"far"!==a||t||(a="fas"),"string"==typeof n&&(e.names[n]={prefix:a,iconName:l}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:a,iconName:l}),e}),{names:{},unicodes:{}});ho=o.names,ko=o.unicodes,vo=Ao(Mt.styleDefault,{family:Mt.familyDefault})};function wo(e,t){return(_o[e]||{})[t]}function So(e,t){return(Co[e]||{})[t]}function Bo(e){return ho[e]||{prefix:null,iconName:null}}function To(){return vo}Eo=function(e){vo=Ao(e.styleDefault,{family:Mt.familyDefault})},qt.push(Eo),No();var zo=function(){return{prefix:null,iconName:null,rest:[]}};function Ao(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,o=void 0===t?vt:t,n=kt[o][e],a=Ct[o][e]||Ct[o][n],l=e in to.styles?e:null;return a||l||null}var Po=(Oe(bo={},vt,Object.keys(xt[vt])),Oe(bo,_t,Object.keys(xt[_t])),bo);function Fo(e){var t,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==o&&o,a=(Oe(t={},vt,"".concat(Mt.cssPrefix,"-").concat(vt)),Oe(t,_t,"".concat(Mt.cssPrefix,"-").concat(_t)),t),l=null,r=vt;(e.includes(a[vt])||e.some((function(e){return Po[vt].includes(e)})))&&(r=vt),(e.includes(a[_t])||e.some((function(e){return Po[_t].includes(e)})))&&(r=_t);var c=e.reduce((function(e,t){var o=function(e,t){var o,n=t.split("-"),a=n[0],l=n.slice(1).join("-");return a!==e||""===l||(o=l,~It.indexOf(o))?null:l}(Mt.cssPrefix,t);if(po[t]?(t=fo[r].includes(t)?Et[r][t]:t,l=t,e.prefix=t):xo[r].indexOf(t)>-1?(l=t,e.prefix=Ao(t,{family:r})):o?e.iconName=o:t!==Mt.replacementClass&&t!==a[vt]&&t!==a[_t]&&e.rest.push(t),!n&&e.prefix&&e.iconName){var c="fa"===l?Bo(e.iconName):{},s=So(e.prefix,e.iconName);c.prefix&&(l=null),e.iconName=c.iconName||s||e.iconName,e.prefix=c.prefix||e.prefix,"far"!==e.prefix||po.far||!po.fas||Mt.autoFetchSvg||(e.prefix="fas")}return e}),zo());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),c.prefix||r!==_t||!po.fass&&!Mt.autoFetchSvg||(c.prefix="fass",c.iconName=So(c.prefix,c.iconName)||c.iconName),"fa"!==c.prefix&&"fa"!==l||(c.prefix=To()||"fas"),c}var Io=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,o;return t=e,o=[{key:"add",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n0&&c.forEach((function(t){"string"==typeof t&&(e[a][t]=r)})),e[a][l]=r})),e}}],o&&Ve(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Vo=[],Oo={},Ro={},Mo=Object.keys(Ro);function qo(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),a=2;a1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return nt?(Lo("beforeI2svg",e),Ho("pseudoElements2svg",e),Ho("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.autoReplaceSvgRoot;!1===Mt.autoReplaceSvg&&(Mt.autoReplaceSvg=!0),Mt.observeMutations=!0,e=function(){Go({autoReplaceSvgRoot:o}),Lo("watch",t)},nt&&(no?setTimeout(e,0):oo.push(e))}},$o={noAuto:function(){Mt.autoReplaceSvg=!1,Mt.observeMutations=!1,Lo("noAuto")},config:Mt,dom:Yo,parse:{icon:function(e){if(null===e)return null;if("object"===Ie(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:So(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],o=Ao(e[0]);return{prefix:o,iconName:So(o,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Mt.cssPrefix,"-"))>-1||e.match(Nt))){var n=Fo(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||To(),iconName:So(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var a=To();return{prefix:a,iconName:So(a,e)||e}}}},library:Do,findIconDefinition:jo,toHtml:ao},Go=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?et:e;(Object.keys(to.styles).length>0||Mt.autoFetchSvg)&&nt&&Mt.autoReplaceSvg&&$o.dom.i2svg({node:t})};function Uo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ao(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(nt){var t=et.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Jo(e){var t=e.icons,o=t.main,n=t.mask,a=e.prefix,l=e.iconName,r=e.transform,c=e.symbol,s=e.title,i=e.maskId,u=e.titleId,m=e.extra,b=e.watchable,d=void 0!==b&&b,p=n.found?n:o,g=p.width,f=p.height,v="fak"===a,_=[Mt.replacementClass,l?"".concat(Mt.cssPrefix,"-").concat(l):""].filter((function(e){return-1===m.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(m.classes).join(" "),y={children:[],attributes:Fe(Fe({},m.attributes),{},{"data-prefix":a,"data-icon":l,class:_,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(f)})},h=v&&!~m.classes.indexOf("fa-fw")?{width:"".concat(g/f*16*.0625,"em")}:{};d&&(y.attributes[st]=""),s&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(u||Dt())},children:[s]}),delete y.attributes.title);var k=Fe(Fe({},y),{},{prefix:a,iconName:l,main:o,mask:n,maskId:i,transform:r,symbol:c,styles:Fe(Fe({},h),m.styles)}),C=n.found&&o.found?Ho("generateAbstractMask",k)||{children:[],attributes:{}}:Ho("generateAbstractIcon",k)||{children:[],attributes:{}},x=C.children,E=C.attributes;return k.children=x,k.attributes=E,c?function(e){var t=e.prefix,o=e.iconName,n=e.children,a=e.attributes,l=e.symbol,r=!0===l?"".concat(t,"-").concat(Mt.cssPrefix,"-").concat(o):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},a),{},{id:r}),children:n}]}]}(k):function(e){var t=e.children,o=e.main,n=e.mask,a=e.attributes,l=e.styles,r=e.transform;if(Jt(r)&&o.found&&!n.found){var c={x:o.width/o.height/2,y:.5};a.style=Ut(Fe(Fe({},l),{},{"transform-origin":"".concat(c.x+r.x/16,"em ").concat(c.y+r.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(k)}function Wo(e){var t=e.content,o=e.width,n=e.height,a=e.transform,l=e.title,r=e.extra,c=e.watchable,s=void 0!==c&&c,i=Fe(Fe(Fe({},r.attributes),l?{title:l}:{}),{},{class:r.classes.join(" ")});s&&(i[st]="");var u=Fe({},r.styles);Jt(a)&&(u.transform=function(e){var t=e.transform,o=e.width,n=void 0===o?16:o,a=e.height,l=void 0===a?16:a,r=e.startCentered,c=void 0!==r&&r,s="";return s+=c&&at?"translate(".concat(t.x/Lt-n/2,"em, ").concat(t.y/Lt-l/2,"em) "):c?"translate(calc(-50% + ".concat(t.x/Lt,"em), calc(-50% + ").concat(t.y/Lt,"em)) "):"translate(".concat(t.x/Lt,"em, ").concat(t.y/Lt,"em) "),(s+="scale(".concat(t.size/Lt*(t.flipX?-1:1),", ").concat(t.size/Lt*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:o,height:n}),u["-webkit-transform"]=u.transform);var m=Ut(u);m.length>0&&(i.style=m);var b=[];return b.push({tag:"span",attributes:i,children:[t]}),l&&b.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),b}var Xo=to.styles;function Qo(e){var t=e[0],o=e[1],n=Re(e.slice(4),1)[0];return{found:!0,width:t,height:o,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(Mt.cssPrefix,"-").concat(Pt.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var Ko={found:!1,width:512,height:512};function Zo(e,t){var o=t;return"fa"===t&&null!==Mt.styleDefault&&(t=To()),new Promise((function(n,a){if(Ho("missingIconAbstract"),"fa"===o){var l=Bo(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&Xo[t]&&Xo[t][e])return n(Qo(Xo[t][e]));!function(e,t){ft||Mt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(Fe(Fe({},Ko),{},{icon:Mt.showMissingIcons&&e&&Ho("missingIconAbstract")||{}}))}))}var en=function(){},tn=Mt.measurePerformance&&ot&&ot.mark&&ot.measure?ot:{mark:en,measure:en},on='FA "6.5.1"',nn=function(e){tn.mark("".concat(on," ").concat(e," ends")),tn.measure("".concat(on," ").concat(e),"".concat(on," ").concat(e," begins"),"".concat(on," ").concat(e," ends"))},an={begin:function(e){return tn.mark("".concat(on," ").concat(e," begins")),function(){return nn(e)}},end:nn},ln=function(){};function rn(e){return"string"==typeof(e.getAttribute?e.getAttribute(st):null)}function cn(e){return et.createElementNS("http://www.w3.org/2000/svg",e)}function sn(e){return et.createElement(e)}function un(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,o=void 0===t?"svg"===e.tag?cn:sn:t;if("string"==typeof e)return et.createTextNode(e);var n=o(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){n.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){n.appendChild(un(e,{ceFn:o}))})),n}var mn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(un(e),t)})),null===t.getAttribute(st)&&Mt.keepOriginalSource){var o=et.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(o,t)}else t.remove()},nest:function(e){var t=e[0],o=e[1];if(~$t(t).indexOf(Mt.replacementClass))return mn.replace(e);var n=new RegExp("".concat(Mt.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var a=o[0].attributes.class.split(" ").reduce((function(e,t){return t===Mt.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});o[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var l=o.map((function(e){return ao(e)})).join("\n");t.setAttribute(st,""),t.innerHTML=l}};function bn(e){e()}function dn(e,t){var o="function"==typeof t?t:ln;if(0===e.length)o();else{var n=bn;Mt.mutateApproach===pt&&(n=Ze.requestAnimationFrame||bn),n((function(){var t=!0===Mt.autoReplaceSvg?mn.replace:mn[Mt.autoReplaceSvg]||mn.replace,n=an.begin("mutate");e.map(t),n(),o()}))}}var pn=!1;function gn(){pn=!0}function fn(){pn=!1}var vn=null;function yn(e){if(tt&&Mt.observeMutations){var t=e.treeCallback,o=void 0===t?ln:t,n=e.nodeCallback,a=void 0===n?ln:n,l=e.pseudoElementsCallback,r=void 0===l?ln:l,c=e.observeMutationsRoot,s=void 0===c?et:c;vn=new tt((function(e){if(!pn){var t=To();Yt(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!rn(e.addedNodes[0])&&(Mt.searchPseudoElements&&r(e.target),o(e.target)),"attributes"===e.type&&e.target.parentNode&&Mt.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&rn(e.target)&&~At.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(mt):null,o=e.getAttribute?e.getAttribute(bt):null;return t&&o}(e.target)){var n=Fo($t(e.target)),l=n.prefix,c=n.iconName;e.target.setAttribute(mt,l||t),c&&e.target.setAttribute(bt,c)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(Mt.replacementClass)&&a(e.target);var s}))}})),nt&&vn.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},o=function(e){var t,o,n=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),l=void 0!==e.innerText?e.innerText.trim():"",r=Fo($t(e));return r.prefix||(r.prefix=To()),n&&a&&(r.prefix=n,r.iconName=a),r.iconName&&r.prefix||(r.prefix&&l.length>0&&(r.iconName=(t=r.prefix,o=e.innerText,(yo[t]||{})[o]||wo(r.prefix,co(e.innerText)))),!r.iconName&&Mt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),n=o.iconName,a=o.prefix,l=o.rest,r=function(e){var t=Yt(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),o=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Mt.autoA11y&&(o?t["aria-labelledby"]="".concat(Mt.replacementClass,"-title-").concat(n||Dt()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),c=qo("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),o=[];return t&&(o=t.split(";").reduce((function(e,t){var o=t.split(":"),n=o[0],a=o.slice(1);return n&&a.length>0&&(e[n]=a.join(":").trim()),e}),{})),o}(e):[];return Fe({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:s,attributes:r}},c)}var kn=to.styles;function Cn(e){var t="nest"===Mt.autoReplaceSvg?hn(e,{styleParser:!1}):hn(e);return~t.extra.classes.indexOf(wt)?Ho("generateLayersText",e,t):Ho("generateSvgReplacementMutation",e,t)}var xn=new Set;function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!nt)return Promise.resolve();var o=et.documentElement.classList,n=function(e){return o.add("".concat(dt,"-").concat(e))},a=function(e){return o.remove("".concat(dt,"-").concat(e))},l=Mt.autoFetchSvg?xn:yt.map((function(e){return"fa-".concat(e)})).concat(Object.keys(kn));l.includes("fa")||l.push("fa");var r=[".".concat(wt,":not([").concat(st,"])")].concat(l.map((function(e){return".".concat(e,":not([").concat(st,"])")}))).join(", ");if(0===r.length)return Promise.resolve();var c=[];try{c=Yt(e.querySelectorAll(r))}catch(e){}if(!(c.length>0))return Promise.resolve();n("pending"),a("complete");var s=an.begin("onTree"),i=c.reduce((function(e,t){try{var o=Cn(t);o&&e.push(o)}catch(e){ft||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,o){Promise.all(i).then((function(o){dn(o,(function(){n("active"),n("complete"),a("pending"),"function"==typeof t&&t(),s(),e()}))})).catch((function(e){s(),o(e)}))}))}function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Cn(e).then((function(e){e&&dn([e],t)}))}yt.map((function(e){xn.add("fa-".concat(e))})),Object.keys(kt[vt]).map(xn.add.bind(xn)),Object.keys(kt[_t]).map(xn.add.bind(xn)),xn=Me(xn);var wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.transform,n=void 0===o?Ht:o,a=t.symbol,l=void 0!==a&&a,r=t.mask,c=void 0===r?null:r,s=t.maskId,i=void 0===s?null:s,u=t.title,m=void 0===u?null:u,b=t.titleId,d=void 0===b?null:b,p=t.classes,g=void 0===p?[]:p,f=t.attributes,v=void 0===f?{}:f,_=t.styles,y=void 0===_?{}:_;if(e){var h=e.prefix,k=e.iconName,C=e.icon;return Uo(Fe({type:"icon"},e),(function(){return Lo("beforeDOMElementCreation",{iconDefinition:e,params:t}),Mt.autoA11y&&(m?v["aria-labelledby"]="".concat(Mt.replacementClass,"-title-").concat(d||Dt()):(v["aria-hidden"]="true",v.focusable="false")),Jo({icons:{main:Qo(C),mask:c?Qo(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:k,transform:Fe(Fe({},Ht),n),symbol:l,title:m,maskId:i,titleId:d,extra:{attributes:v,styles:y,classes:g}})}))}},Sn={mixout:function(){return{icon:(e=wn,function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:jo(t||{}),a=o.mask;return a&&(a=(a||{}).icon?a:jo(a||{})),e(n,Fe(Fe({},o),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=En,e.nodeCallback=Nn,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,o=void 0===t?et:t,n=e.callback;return En(o,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var o=t.iconName,n=t.title,a=t.titleId,l=t.prefix,r=t.transform,c=t.symbol,s=t.mask,i=t.maskId,u=t.extra;return new Promise((function(t,m){Promise.all([Zo(o,l),s.iconName?Zo(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(s){var m=Re(s,2),b=m[0],d=m[1];t([e,Jo({icons:{main:b,mask:d},prefix:l,iconName:o,transform:r,symbol:c,maskId:i,title:n,titleId:a,extra:u,watchable:!0})])})).catch(m)}))},e.generateAbstractIcon=function(e){var t,o=e.children,n=e.attributes,a=e.main,l=e.transform,r=Ut(e.styles);return r.length>0&&(n.style=r),Jt(l)&&(t=Ho("generateAbstractTransformGrouping",{main:a,transform:l,containerWidth:a.width,iconWidth:a.width})),o.push(t||a.icon),{children:o,attributes:n}}}},Bn={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.classes,n=void 0===o?[]:o;return Uo({type:"layer"},(function(){Lo("beforeDOMElementCreation",{assembler:e,params:t});var o=[];return e((function(e){Array.isArray(e)?e.map((function(e){o=o.concat(e.abstract)})):o=o.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Mt.cssPrefix,"-layers")].concat(Me(n)).join(" ")},children:o}]}))}}}},Tn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.title,n=void 0===o?null:o,a=t.classes,l=void 0===a?[]:a,r=t.attributes,c=void 0===r?{}:r,s=t.styles,i=void 0===s?{}:s;return Uo({type:"counter",content:e},(function(){return Lo("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,o=e.title,n=e.extra,a=Fe(Fe(Fe({},n.attributes),o?{title:o}:{}),{},{class:n.classes.join(" ")}),l=Ut(n.styles);l.length>0&&(a.style=l);var r=[];return r.push({tag:"span",attributes:a,children:[t]}),o&&r.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),r}({content:e.toString(),title:n,extra:{attributes:c,styles:i,classes:["".concat(Mt.cssPrefix,"-layers-counter")].concat(Me(l))}})}))}}}},zn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.transform,n=void 0===o?Ht:o,a=t.title,l=void 0===a?null:a,r=t.classes,c=void 0===r?[]:r,s=t.attributes,i=void 0===s?{}:s,u=t.styles,m=void 0===u?{}:u;return Uo({type:"text",content:e},(function(){return Lo("beforeDOMElementCreation",{content:e,params:t}),Wo({content:e,transform:Fe(Fe({},Ht),n),title:l,extra:{attributes:i,styles:m,classes:["".concat(Mt.cssPrefix,"-layers-text")].concat(Me(c))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var o=t.title,n=t.transform,a=t.extra,l=null,r=null;if(at){var c=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();l=s.width/c,r=s.height/c}return Mt.autoA11y&&!o&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,Wo({content:e.innerHTML,width:l,height:r,transform:n,title:o,extra:a,watchable:!0})])}}},An=new RegExp('"',"ug"),Pn=[1105920,1112319];function Fn(e,t){var o="".concat(ut).concat(t.replace(":","-"));return new Promise((function(n,a){if(null!==e.getAttribute(o))return n();var l,r,c,s=Yt(e.children).filter((function(e){return e.getAttribute(it)===t}))[0],i=Ze.getComputedStyle(e,t),u=i.getPropertyValue("font-family").match(St),m=i.getPropertyValue("font-weight"),b=i.getPropertyValue("content");if(s&&!u)return e.removeChild(s),n();if(u&&"none"!==b&&""!==b){var d=i.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?_t:vt,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Ct[p][u[2].toLowerCase()]:Bt[p][m],f=function(e){var t,o,n,a,l=e.replace(An,""),r=(0,n=(t=l).length,(a=t.charCodeAt(0))>=55296&&a<=56319&&n>1&&(o=t.charCodeAt(1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a),c=r>=Pn[0]&&r<=Pn[1],s=2===l.length&&l[0]===l[1];return{value:co(s?l[0]:l),isSecondary:c||s}}(d),v=f.value,_=f.isSecondary,y=u[0].startsWith("FontAwesome"),h=wo(g,v),k=h;if(y){var C=(r=ko[l=v],c=wo("fas",l),r||(c?{prefix:"fas",iconName:c}:null)||{prefix:null,iconName:null});C.iconName&&C.prefix&&(h=C.iconName,g=C.prefix)}if(!h||_||s&&s.getAttribute(mt)===g&&s.getAttribute(bt)===k)n();else{e.setAttribute(o,k),s&&e.removeChild(s);var x={iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},E=x.extra;E.attributes[it]=t,Zo(h,g).then((function(a){var l=Jo(Fe(Fe({},x),{},{icons:{main:a,mask:zo()},prefix:g,iconName:k,extra:E,watchable:!0})),r=et.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(r,e.firstChild):e.appendChild(r),r.outerHTML=l.map((function(e){return ao(e)})).join("\n"),e.removeAttribute(o),n()})).catch(a)}}else n()}))}function In(e){return Promise.all([Fn(e,"::before"),Fn(e,"::after")])}function Vn(e){return!(e.parentNode===document.head||~gt.indexOf(e.tagName.toUpperCase())||e.getAttribute(it)||e.parentNode&&"svg"===e.parentNode.tagName)}function On(e){if(nt)return new Promise((function(t,o){var n=Yt(e.querySelectorAll("*")).filter(Vn).map(In),a=an.begin("searchPseudoElements");gn(),Promise.all(n).then((function(){a(),fn(),t()})).catch((function(){a(),fn(),o()}))}))}var Rn=!1,Mn=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var o=t.toLowerCase().split("-"),n=o[0],a=o.slice(1).join("-");if(n&&"h"===a)return e.flipX=!0,e;if(n&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(n){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},qn={mixout:function(){return{parse:{transform:function(e){return Mn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-transform");return o&&(e.transform=Mn(o)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,o=e.transform,n=e.containerWidth,a=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(32*o.x,", ").concat(32*o.y,") "),c="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),s="rotate(".concat(o.rotate," 0 0)"),i={outer:l,inner:{transform:"".concat(r," ").concat(c," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:Fe({},i.outer),children:[{tag:"g",attributes:Fe({},i.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Fe(Fe({},t.icon.attributes),i.path)}]}]}}}},Ln={x:0,y:0,width:"100%",height:"100%"};function Hn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var jn,Dn={hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-mask"),n=o?Fo(o.split(" ").map((function(e){return e.trim()}))):zo();return n.prefix||(n.prefix=To()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,o=e.children,n=e.attributes,a=e.main,l=e.mask,r=e.maskId,c=e.transform,s=a.width,i=a.icon,u=l.width,m=l.icon,b=function(e){var t=e.transform,o=e.iconWidth,n={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),l="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),r="rotate(".concat(t.rotate," 0 0)");return{outer:n,inner:{transform:"".concat(a," ").concat(l," ").concat(r)},path:{transform:"translate(".concat(o/2*-1," -256)")}}}({transform:c,containerWidth:u,iconWidth:s}),d={tag:"rect",attributes:Fe(Fe({},Ln),{},{fill:"white"})},p=i.children?{children:i.children.map(Hn)}:{},g={tag:"g",attributes:Fe({},b.inner),children:[Hn(Fe({tag:i.tag,attributes:Fe(Fe({},i.attributes),b.path)},p))]},f={tag:"g",attributes:Fe({},b.outer),children:[g]},v="mask-".concat(r||Dt()),_="clip-".concat(r||Dt()),y={tag:"mask",attributes:Fe(Fe({},Ln),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,f]},h={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:(t=m,"g"===t.tag?t.children:[t])},y]};return o.push(h,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(v,")")},Ln)}),{children:o,attributes:n}}}},Yn={provides:function(e){var t=!1;Ze.matchMedia&&(t=Ze.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],o={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Fe(Fe({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Fe(Fe({},n),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Fe(Fe({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||l.children.push({tag:"animate",attributes:Fe(Fe({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(l),e.push({tag:"path",attributes:Fe(Fe({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Fe(Fe({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};jn={mixoutsTo:$o}.mixoutsTo,Vo=[Zt,Sn,Bn,Tn,zn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=On,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,o=void 0===t?et:t;Mt.searchPseudoElements&&On(o)}}},{mixout:function(){return{dom:{unwatch:function(){gn(),Rn=!0}}}},hooks:function(){return{bootstrap:function(){yn(qo("mutationObserverCallbacks",{}))},noAuto:function(){vn&&vn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Rn?fn():yn(qo("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},qn,Dn,Yn,{hooks:function(){return{parseNodeAttributes:function(e,t){var o=t.getAttribute("data-fa-symbol"),n=null!==o&&(""===o||o);return e.symbol=n,e}}}}],Oo={},Object.keys(Ro).forEach((function(e){-1===Mo.indexOf(e)&&delete Ro[e]})),Vo.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(jn[e]=t[e]),"object"===Ie(t[e])&&Object.keys(t[e]).forEach((function(o){jn[e]||(jn[e]={}),jn[e][o]=t[e][o]}))})),e.hooks){var o=e.hooks();Object.keys(o).forEach((function(e){Oo[e]||(Oo[e]=[]),Oo[e].push(o[e])}))}e.provides&&e.provides(Ro)}));var $n=$o.parse,Gn=$o.icon,Un=o(697),Jn=o.n(Un);function Wn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xn(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,n=new Array(t);o0||!Array.isArray(t)&&t?Kn({},e,t):{}}var ra=M().forwardRef((function(e,t){var o=e.icon,n=e.mask,a=e.symbol,l=e.className,r=e.title,c=e.titleId,s=e.maskId,i=aa(o),u=la("classes",[].concat(Zn(function(e){var t,o=e.beat,n=e.fade,a=e.beatFade,l=e.bounce,r=e.shake,c=e.flash,s=e.spin,i=e.spinPulse,u=e.spinReverse,m=e.pulse,b=e.fixedWidth,d=e.inverse,p=e.border,g=e.listItem,f=e.flip,v=e.size,_=e.rotation,y=e.pull,h=(Kn(t={"fa-beat":o,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":l,"fa-shake":r,"fa-flash":c,"fa-spin":s,"fa-spin-reverse":u,"fa-spin-pulse":i,"fa-pulse":m,"fa-fw":b,"fa-inverse":d,"fa-border":p,"fa-li":g,"fa-flip":!0===f,"fa-flip-horizontal":"horizontal"===f||"both"===f,"fa-flip-vertical":"vertical"===f||"both"===f},"fa-".concat(v),null!=v),Kn(t,"fa-rotate-".concat(_),null!=_&&0!==_),Kn(t,"fa-pull-".concat(y),null!=y),Kn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(e)),Zn(l.split(" ")))),m=la("transform","string"==typeof e.transform?$n.transform(e.transform):e.transform),b=la("mask",aa(n)),d=Gn(i,Xn(Xn(Xn(Xn({},u),m),b),{},{symbol:a,title:r,titleId:c,maskId:s}));if(!d)return function(){var e;!na&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",i),null;var p=d.abstract,g={ref:t};return Object.keys(e).forEach((function(t){ra.defaultProps.hasOwnProperty(t)||(g[t]=e[t])})),ca(p[0],g)}));ra.displayName="FontAwesomeIcon",ra.propTypes={beat:Jn().bool,border:Jn().bool,beatFade:Jn().bool,bounce:Jn().bool,className:Jn().string,fade:Jn().bool,flash:Jn().bool,mask:Jn().oneOfType([Jn().object,Jn().array,Jn().string]),maskId:Jn().string,fixedWidth:Jn().bool,inverse:Jn().bool,flip:Jn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Jn().oneOfType([Jn().object,Jn().array,Jn().string]),listItem:Jn().bool,pull:Jn().oneOf(["right","left"]),pulse:Jn().bool,rotation:Jn().oneOf([0,90,180,270]),shake:Jn().bool,size:Jn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Jn().bool,spinPulse:Jn().bool,spinReverse:Jn().bool,symbol:Jn().oneOfType([Jn().bool,Jn().string]),title:Jn().string,titleId:Jn().string,transform:Jn().oneOfType([Jn().string,Jn().object]),swapOpacity:Jn().bool},ra.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var ca=function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof o)return o;var a=(o.children||[]).map((function(o){return e(t,o)})),l=Object.keys(o.attributes||{}).reduce((function(e,t){var n=o.attributes[t];switch(t){case"class":e.attrs.className=n,delete o.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var o,n=t.indexOf(":"),a=ta(t.slice(0,n)),l=t.slice(n+1).trim();return a.startsWith("webkit")?e[(o=a,o.charAt(0).toUpperCase()+o.slice(1))]=l:e[a]=l,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[ta(t)]=n}return e}),{attrs:{}}),r=n.style,c=void 0===r?{}:r,s=function(e,t){if(null==e)return{};var o,n,a=function(e,t){if(null==e)return{};var o,n,a={},l=Object.keys(e);for(n=0;n=0||(a[o]=e[o]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a}(n,oa);return l.attrs.style=Xn(Xn({},l.attrs.style),c),t.apply(void 0,[o.tag,Xn(Xn({},l.attrs),s)].concat(Zn(a)))}.bind(null,M().createElement),sa={prefix:"far",iconName:"file-alt",icon:[384,512,[],"f15c","M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"]},ia={prefix:"far",iconName:"square",icon:[448,512,[],"f0c8","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"]},ua=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",iconColor:"icon-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,className:o,backgroundColor:n,setBackgroundColor:a,textColor:l,setTextColor:r,borderColor:c,setBorderColor:s,fontSize:i}=e,{customBackgroundColor:u,customTextColor:m,customBorderColor:b}=t,d=L()(o,{"blank-box":!0,"block-box":!0,"has-text-color":l.color,"has-background":n.color,"has-border-color":c.color,[n.class]:n.class,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class}),p={"--cocoon-custom-border-color":b||void 0,"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0},g=(0,D.useBlockProps)({className:d,style:p});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:s,value:c.color},{label:(0,H.__)("背景色",G),onChange:a,value:n.color},{label:(0,H.__)("文字色",G),onChange:r,value:l.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...g},(0,R.createElement)(D.InnerBlocks,null)))}));const{createBlock:ma}=wp.blocks;var ba=[{save({attributes:e}){const{backgroundColor:t,textColor:o,borderColor:n,customBorderColor:a,fontSize:l}=e,r=(0,D.getColorClassName)("background-color",t),c=(0,D.getColorClassName)("color",o),s=(0,D.getColorClassName)("border-color",n),i=(0,D.getFontSizeClass)(l),u=L()({"blank-box":!0,"block-box":!0,"has-text-color":o,"has-background":t,"has-border-color":n||a,[c]:c,[r]:r,[s]:s,[i]:i}),m=D.useBlockProps.save({className:u});return(0,R.createElement)("div",{...m},(0,R.createElement)(D.InnerBlocks.Content,null))}},{attributes:{content:{type:"string",default:X},borderColor:{type:"string",default:""}},migrate(e){const{content:t,borderColor:o}=e;return{content:t,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{borderColor:t}=e,o=L()({"blank-box":!0,[`bb-${ne(t)}`]:!!ne(t),"block-box":!0});return(0,R.createElement)("div",{className:o},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:da}=wp.blocks;var pa={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>da("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>da("cocoon-blocks/tab-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>da("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>da("cocoon-blocks/info-box",{},t)}]},ga=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/blank-box-1","category":"cocoon-block","keywords":["blank","box"],"attributes":{"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:fa}=ga,va={title:(0,H.__)("白抜きボックス",G),icon:(0,R.createElement)(ra,{icon:ia}),description:(0,H.__)("コンテンツを囲むだけのブランクボックスを表示します。",G),edit:ua,save:function({attributes:e}){const{backgroundColor:t,textColor:o,borderColor:n,customBackgroundColor:a,customTextColor:l,customBorderColor:r,fontSize:c}=e,s=(0,D.getColorClassName)("background-color",t),i=(0,D.getColorClassName)("color",o),u=(0,D.getColorClassName)("border-color",n),m=(0,D.getFontSizeClass)(c),b=L()({"blank-box":!0,"block-box":!0,"has-background":t||a,"has-text-color":o||l,"has-border-color":n||r,[i]:i,[s]:s,[u]:u,[m]:m}),d={"--cocoon-custom-background-color":a||void 0,"--cocoon-custom-text-color":l||void 0,"--cocoon-custom-border-color":r||void 0},p=D.useBlockProps.save({className:b,style:d});return(0,R.createElement)("div",{...p},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:ba,transforms:pa},{InspectorControls:_a}=wp.editor,{PanelBody:ya,SelectControl:ha}=wp.components;var ka=[{attributes:{content:{type:"string",source:"html",selector:"div",default:""},style:{type:"string",default:"blogcard-type bct-none"}},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(_a,null,(0,R.createElement)(ya,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(ha,{label:(0,H.__)("ラベル",G),value:a,onChange:e=>t({style:e}),options:[{value:"blogcard-type bct-none",label:(0,H.__)("なし",G)},{value:"blogcard-type bct-related",label:(0,H.__)("関連記事",G)},{value:"blogcard-type bct-reference",label:(0,H.__)("参考記事",G)},{value:"blogcard-type bct-reference-link",label:(0,H.__)("参考リンク",G)},{value:"blogcard-type bct-popular",label:(0,H.__)("人気記事",G)},{value:"blogcard-type bct-together",label:(0,H.__)("あわせて読みたい",G)},{value:"blogcard-type bct-detail",label:(0,H.__)("詳細はこちら",G)},{value:"blogcard-type bct-check",label:(0,H.__)("チェック",G)},{value:"blogcard-type bct-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blogcard-type bct-official",label:(0,H.__)("公式サイト",G)},{value:"blogcard-type bct-dl",label:(0,H.__)("ダウンロード",G)}]}))),(0,R.createElement)("div",{className:L()(a,o)},(0,R.createElement)(RichText,{onChange:function(e){t({content:e})},value:n,multiline:"p"})))},save({attributes:e}){let{content:t}=e;return(0,R.createElement)("div",{className:e.style},(0,R.createElement)(RichText.Content,{value:t.replace(/<\/p>

/g,"

\n

").replace(/^

/g,"\n

").replace(/<\/p>$/g,"

\n"),multiline:"p"}))}}],Ca=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/blogcard","category":"cocoon-block","keywords":["blogcard","box","wrap"],"attributes":{"content":{"type":"string","source":"html","selector":"div","default":""},"style":{"type":"string","default":"blogcard-type bct-none"}},"example":{"attributes":{"content":"https://wp-cocoon.com/"}},"supports":{"anchor":true}}');const{name:xa}=Ca,Ea={title:(0,H.__)("ブログカード",G),description:(0,H.__)("ブログカード表示用の入力ブロックを表示します。URLは複数入力可能です。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e,l=L()(a,o),r=(0,D.useBlockProps)({className:l});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ラベル",G),value:a,onChange:e=>t({style:e}),options:[{value:"blogcard-type bct-none",label:(0,H.__)("なし",G)},{value:"blogcard-type bct-related",label:(0,H.__)("関連記事",G)},{value:"blogcard-type bct-reference",label:(0,H.__)("参考記事",G)},{value:"blogcard-type bct-reference-link",label:(0,H.__)("参考リンク",G)},{value:"blogcard-type bct-popular",label:(0,H.__)("人気記事",G)},{value:"blogcard-type bct-together",label:(0,H.__)("あわせて読みたい",G)},{value:"blogcard-type bct-detail",label:(0,H.__)("詳細はこちら",G)},{value:"blogcard-type bct-check",label:(0,H.__)("チェック",G)},{value:"blogcard-type bct-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blogcard-type bct-official",label:(0,H.__)("公式サイト",G)},{value:"blogcard-type bct-dl",label:(0,H.__)("ダウンロード",G)},{value:"blogcard-type bct-prev",label:(0,H.__)("前回の記事",G)},{value:"blogcard-type bct-next",label:(0,H.__)("続きの記事",G)}]}))),(0,R.createElement)("div",{...r},(0,R.createElement)(D.RichText,{onChange:function(e){t({content:e})},value:n.replace(/^\s+/,"").replace(/\s+$/,"")})))},save:function({attributes:e}){let{content:t,style:o}=e;const n=o,a=D.useBlockProps.save({className:n});return(0,R.createElement)("div",{...a},(0,R.createElement)(D.RichText.Content,{value:t.replace(/<\/p>

/g,"

\n

").replace(/^

/g,"\n

").replace(/<\/p>$/g,"

\n").replace(/\s+

/g,"\n

").replace(/<\p>\s+/g,"

\n").replace(/
/g,"\n
\n").replace(/^/g,"\n").replace(/$/g,"\n").replace(/\n /g,"\n").replace(/\n\n/g,"\n")}))},deprecated:ka};function Na({selectedWidth:e,setAttributes:t}){return(0,R.createElement)(j.PanelBody,{title:(0,H.__)("幅設定",G)},(0,R.createElement)(j.ButtonGroup,{"aria-label":(0,H.__)("幅",G)},["25","50","75","100"].map((o=>(0,R.createElement)(j.Button,{key:o,isSmall:!0,isPrimary:o===e,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})}},o,"%")))))}var wa=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fallbackFontSize:u,fontSize:m,setFontSize:b}=e,{content:d,size:p,url:g,target:f,isCircle:v,isShine:_,customBackgroundColor:y,customTextColor:h,customBorderColor:k,width:C}=t,x=L()(n,{[J]:!0}),E={"--cocoon-custom-border-color":k||void 0,"--cocoon-custom-background-color":y||void 0,"--cocoon-custom-text-color":h||void 0},N=(0,D.useBlockProps)({className:x,style:E});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("ボタン設定",G)},(0,R.createElement)(j.TextControl,{label:(0,H.__)("URL",G),value:g,onChange:e=>o({url:e})}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("リンクの開き方",G),value:f,onChange:e=>o({target:e}),options:[{value:"_self",label:(0,H.__)("現在のタブで開く",G)},{value:"_blank",label:(0,H.__)("新しいタブで開く",G)}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("サイズ",G),value:p,onChange:e=>o({size:e}),options:[{value:"btn-s",label:(0,H.__)("小",G)},{value:"btn-m",label:(0,H.__)("中",G)},{value:"btn-l",label:(0,H.__)("大",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:v,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("光らせる",G),checked:_,onChange:e=>o({isShine:e})})),(0,R.createElement)(Na,{selectedWidth:C,setAttributes:o}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("文字サイズ",G),className:"blocks-font-size"},(0,R.createElement)(D.FontSizePicker,{fallbackFontSize:u,value:m.size,onChange:b,__nextHasNoMarginBottom:!0})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...N},(0,R.createElement)("span",{className:L()(n,{btn:!0,[p]:p,"btn-circle":!!v,"btn-shine":!!_,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[m.class]:m.class,"has-custom-width":C,[`cocoon-block-button__width-${C}`]:C}),href:g,target:f},(0,R.createElement)(D.RichText,{value:d,onChange:e=>o({content:e})}))))}));const{createBlock:Sa}=wp.blocks;var Ba=[{save({attributes:e}){const{content:t,size:o,url:n,target:a,isCircle:l,isShine:r,backgroundColor:c,textColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",c),d=(0,D.getColorClassName)("color",s),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({[J]:!0}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("a",{href:n,className:L()({btn:!0,[o]:o,"btn-circle":!!l,"btn-shine":!!r,"has-text-color":s,"has-background":c,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),target:a,rel:"noopener"},(0,R.createElement)(D.RichText.Content,{value:t})))}},{attributes:{content:{type:"string",default:(0,H.__)("ボタン",G)},url:{type:"string",default:""},target:{type:"string",default:"_self"},color:{type:"string",default:Q},size:{type:"string",default:""},isCircle:{type:"boolean",default:!1},isShine:{type:"boolean",default:!1},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,color:o,size:n,url:a,target:l,isCircle:r,isShine:c,align:s}=e;return{content:t,size:n,url:a,target:l,isCircle:r,isShine:c,align:s,backgroundColor:ne(o),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,color:o,size:n,url:a,target:l,isCircle:r,isShine:c}=e,s=L()({btn:!0,[`btn-${ne(o)}`]:!!ne(o),[n]:n,"btn-circle":!!r,"btn-shine":!!c});return(0,R.createElement)("div",{className:J},(0,R.createElement)("a",{href:a,className:s,target:l},(0,R.createElement)(D.RichText.Content,{value:t})))}}],Ta=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/button-1","category":"cocoon-block","keywords":["button","btn"],"attributes":{"content":{"type":"string","default":"ボタン"},"url":{"type":"string","default":""},"target":{"type":"string","default":"_self"},"size":{"type":"string","default":""},"isCircle":{"type":"boolean","default":false},"isShine":{"type":"boolean","default":false},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"width":{"type":"string"}},"example":{"attributes":{"content":"Button"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:za}=Ta,Aa={title:(0,H.__)("ボタン",G),icon:"embed-generic",description:(0,H.__)("一般的なリンクボタンを作成します。",G),edit:wa,save:function({attributes:e}){const{content:t,size:o,url:n,target:a,isCircle:l,isShine:r,backgroundColor:c,textColor:s,borderColor:i,customBackgroundColor:u,customTextColor:m,customBorderColor:b,fontSize:d,width:p}=e,g=(0,D.getColorClassName)("background-color",c),f=(0,D.getColorClassName)("color",s),v=(0,D.getColorClassName)("border-color",i),_=(0,D.getFontSizeClass)(d),y=L()({[J]:!0}),h={"--cocoon-custom-background-color":u||void 0,"--cocoon-custom-text-color":m||void 0,"--cocoon-custom-border-color":b||void 0},k=D.useBlockProps.save({className:y,style:h});return(0,R.createElement)("div",{...k},(0,R.createElement)("a",{href:n,className:L()({btn:!0,[o]:o,"btn-circle":!!l,"btn-shine":!!r,"has-text-color":s||m,"has-background":c||u,"has-border-color":i||b,[f]:f,[g]:g,[v]:v,[_]:_,"has-custom-width":p,[`cocoon-block-button__width-${p}`]:p}),target:a,rel:"noopener"},(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:Ba};var Pa={prefix:"fas",iconName:"crown",icon:[640,512,[],"f521","M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"]},Fa={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},Ia={prefix:"fas",iconName:"text-height",icon:[576,512,[],"f034","M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]},Va=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fallbackFontSize:u,fontSize:m,setFontSize:b}=e,{tag:d,size:p,isCircle:g,isShine:f,customBackgroundColor:v,customTextColor:_,customBorderColor:y,width:h}=t,k=L()(n,{"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[p]:p,"btn-wrap-circle":!!g,"btn-wrap-shine":!!f,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[m.class]:m.class,"has-custom-width":h,[`cocoon-block-button__width-${h}`]:h}),C={"--cocoon-custom-border-color":y||void 0,"--cocoon-custom-background-color":v||void 0,"--cocoon-custom-text-color":_||void 0},x=(0,D.useBlockProps)({className:k,style:C,dangerouslySetInnerHTML:{__html:d}});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("囲みボタン設定",G)},(0,R.createElement)(j.TextareaControl,{label:(0,H.__)("リンクタグ・ショートコード",G),value:d,onChange:e=>o({tag:e})}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("サイズ",G),value:p,onChange:e=>o({size:e}),options:[{value:"btn-wrap-s",label:(0,H.__)("小",G)},{value:"btn-wrap-m",label:(0,H.__)("中",G)},{value:"btn-wrap-l",label:(0,H.__)("大",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:g,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("光らせる",G),checked:f,onChange:e=>o({isShine:e})})),(0,R.createElement)(Na,{selectedWidth:h,setAttributes:o}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("文字サイズ",G),className:"blocks-font-size"},(0,R.createElement)(D.FontSizePicker,{fallbackFontSize:u,value:m.size,onChange:b,__nextHasNoMarginBottom:!0})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x}))}));const{createBlock:Oa}=wp.blocks;var Ra=[{save({attributes:e}){const{tag:t,size:o,isCircle:n,isShine:a,backgroundColor:l,textColor:r,borderColor:c,customBorderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("background-color",l),m=(0,D.getColorClassName)("color",r),b=(0,D.getColorClassName)("border-color",c),d=(0,D.getFontSizeClass)(i),p=L()({"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[o]:o,"btn-wrap-circle":!!n,"btn-wrap-shine":!!a,"has-text-color":r,"has-background":l,"has-border-color":c||s,[m]:m,[u]:u,[b]:b,[d]:d}),g=D.useBlockProps.save({className:p});return(0,R.createElement)("div",{...g},(0,R.createElement)(D.RichText.Content,{value:t}))}},{attributes:{content:{type:"string",default:(0,H.__)("こちらをクリックしてリンクタグを設定エリア入力してください。この入力は公開ページで反映されません。",G)},tag:{type:"string",default:""},color:{type:"string",default:Q},size:{type:"string",default:""},isCircle:{type:"boolean",default:!1},isShine:{type:"boolean",default:!1},align:{type:"string"},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,tag:o,color:n,size:a,isCircle:l,isShine:r,align:c}=e;return{content:t,tag:o,size:a,isCircle:l,isShine:r,align:c,backgroundColor:ne(n),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,tag:o,color:n,size:a,isCircle:l,isShine:r,align:c}=e,s=L()({"btn-wrap":!0,[`btn-wrap-${ne(n)}`]:!!ne(n),[a]:a,[J]:!0,"btn-wrap-circle":!!l,"btn-wrap-shine":!!r});return(0,R.createElement)("div",{className:s},(0,R.createElement)(D.RichText.Content,{value:o}))}}],Ma=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/button-wrap-1","category":"cocoon-block","keywords":["button","btn","wrap"],"attributes":{"tag":{"type":"string","default":""},"size":{"type":"string","default":""},"isCircle":{"type":"boolean","default":false},"isShine":{"type":"boolean","default":false},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"customFontSize":{"type":"string"},"width":{"type":"string"}},"example":{"attributes":{"tag":"Button"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:qa}=Ma,La={title:(0,H.__)("囲みボタン",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"ticket-alt",icon:[576,512,[],"f3ff","M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"]}}),description:(0,H.__)("アスリートタグ等のタグを変更できないリンクをボタン化します。",G),edit:Va,save:function({attributes:e}){const{tag:t,size:o,isCircle:n,isShine:a,backgroundColor:l,textColor:r,borderColor:c,customBackgroundColor:s,customTextColor:i,customBorderColor:u,fontSize:m,width:b}=e,d=(0,D.getColorClassName)("background-color",l),p=(0,D.getColorClassName)("color",r),g=(0,D.getColorClassName)("border-color",c),f=(0,D.getFontSizeClass)(m),v=L()({"btn-wrap":!0,"btn-wrap-block":!0,[J]:!0,[o]:o,"btn-wrap-circle":!!n,"btn-wrap-shine":!!a,"has-text-color":r||i,"has-background":l||s,"has-border-color":c||u,[p]:p,[d]:d,[g]:g,[f]:f,"has-custom-width":b,[`cocoon-block-button__width-${b}`]:b}),_={"--cocoon-custom-background-color":s||void 0,"--cocoon-custom-text-color":i||void 0,"--cocoon-custom-border-color":u||void 0},y=D.useBlockProps.save({className:v,style:_});let h;return t.includes(' rel="noopener')||(h=t.replace(' target="_blank"',' target="_blank" rel="noopener"')),(0,R.createElement)("div",{...y},(0,R.createElement)(D.RichText.Content,{value:h}))},deprecated:Ra};var Ha=(0,fe.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,fe.cloneElement)(e,{width:t,height:t,...o,ref:n})})),ja=window.wp.primitives,Da=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,R.createElement)(ja.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}));const{createBlock:Ya}=wp.blocks,{InnerBlocks:$a,InspectorControls:Ga}=wp.editor,{PanelBody:Ua,SelectControl:Ja}=wp.components;function Wa(e){return L()({[e]:!!e,"common-icon-box":!0,"block-box":!0})}var Xa=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:"information-box"}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>Ya("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Ya("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>Ya("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Ya("cocoon-blocks/info-box",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Ga,null,(0,R.createElement)(Ua,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Ja,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"information-box",label:(0,H.__)("補足情報(i)",G)},{value:"question-box",label:(0,H.__)("補足情報(?)",G)},{value:"alert-box",label:(0,H.__)("補足情報(!)",G)},{value:"memo-box",label:(0,H.__)("メモ",G)},{value:"comment-box",label:(0,H.__)("コメント",G)},{value:"ok-box",label:(0,H.__)("OK",G)},{value:"ng-box",label:(0,H.__)("NG",G)},{value:"good-box",label:(0,H.__)("GOOD",G)},{value:"bad-box",label:(0,H.__)("BAD",G)},{value:"profile-box",label:(0,H.__)("プロフィール",G)}]}))),(0,R.createElement)("div",{className:L()(Wa(a),o)},(0,R.createElement)($a,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:Wa(o)},(0,R.createElement)($a.Content,null))}}],Qa={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/info-box",{},t)}]},Ka=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/icon-box","category":"cocoon-block","keywords":["icon","box"],"attributes":{"style":{"type":"string","default":"information-box"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Za}=Ka,el={title:(0,H.__)("アイコンボックス",G),icon:(0,R.createElement)(Ha,{icon:Da,size:32}),description:(0,H.__)("アイコンを用いて直感的にメッセージ内容を伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("common-icon-box","block-box",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"information-box",label:(0,H.__)("補足情報(i)",G)},{value:"question-box",label:(0,H.__)("補足情報(?)",G)},{value:"alert-box",label:(0,H.__)("補足情報(!)",G)},{value:"memo-box",label:(0,H.__)("メモ",G)},{value:"comment-box",label:(0,H.__)("コメント",G)},{value:"ok-box",label:(0,H.__)("OK",G)},{value:"ng-box",label:(0,H.__)("NG",G)},{value:"good-box",label:(0,H.__)("GOOD",G)},{value:"bad-box",label:(0,H.__)("BAD",G)},{value:"profile-box",label:(0,H.__)("プロフィール",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("common-icon-box","block-box",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Xa,transforms:Qa};var tl=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"})),ol=window.lodash;const nl=["core/list"];var al=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",iconColor:"icon-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,mergeBlocks:n,onReplace:a,className:l,backgroundColor:r,setBackgroundColor:c,textColor:s,setTextColor:i,borderColor:u,setBorderColor:m,iconColor:b,setIconColor:d,fallbackBackgroundColor:p,fallbackTextColor:g,fallbackBorderColor:f,fallbackIconColor:v,fallbackFontSize:_,fontSize:y,setFontSize:h}=e,{title:k,icon:C,customBackgroundColor:x,customTextColor:E,customBorderColor:N,customIconColor:w}=t,S=L()(l,{"iconlist-box":!0,"blank-box":!0,[C]:!!C,"block-box":!0,"has-text-color":s.color,"has-background":r.color,"has-border-color":u.color,"has-icon-color":b.color,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,[b.class]:b.class,[y.class]:y.class}),B={"--cocoon-custom-border-color":N||void 0,"--cocoon-custom-background-color":x||void 0,"--cocoon-custom-text-color":E||void 0,"--cocoon-custom-icon-color":w||void 0},T=(0,D.useBlockProps)({className:S,style:B});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(le.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:C===le[e].value,className:le[e].label,onClick:()=>{o({icon:le[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("アイコン色",G),onChange:d,value:b.color},{label:(0,H.__)("ボーダー色",G),onChange:m,value:u.color},{label:(0,H.__)("背景色",G),onChange:c,value:r.color},{label:(0,H.__)("文字色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...T},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText,{value:k,placeholder:(0,H.__)("タイトルがある場合は入力",G),onChange:e=>o({title:e})})),(0,R.createElement)(D.InnerBlocks,{template:[["core/list"]],templateLock:"all",allowedBlocks:nl})))}));const ll={attributes:{title:{type:"string",default:""},iconColor:{type:"string",default:""},borderColor:{type:"string",default:""},icon:{type:"string",default:"list-caret-right"}},migrate(e){const{title:t,icon:o,iconColor:n,borderColor:a}=e;return{title:t,icon:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(a),customBorderColor:void 0,iconColor:ne(n),customIconColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{title:t,icon:o,iconColor:n,borderColor:a}=e,l=L()({"iconlist-box":!0,[o]:!!o,[`iic-${ne(n)}`]:!!ne(n),[`blank-box bb-${ne(a)}`]:!!ne(a),"block-box":!0});return(0,R.createElement)("div",{className:l},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}},rl={save(e){const{title:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,iconColor:c,customIconColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getColorClassName)("icon-color",c),p=(0,D.getFontSizeClass)(i),g=L()({"iconlist-box":!0,"blank-box":!0,[o]:!!o,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,"has-icon-color":c||s,[m]:m,[u]:u,[b]:b,[d]:d,[p]:p}),f=D.useBlockProps.save({className:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}};var cl=[rl,ll],sl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/iconlist-box","category":"cocoon-block","keywords":["icon","list","box"],"attributes":{"title":{"type":"string","default":""},"icon":{"type":"string","default":"list-caret-right"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"iconColor":{"type":"string"},"customIconColor":{"type":"string"},"fontSize":{"type":"string"}},"supports":{"anchor":true},"example":{"attributes":{"title":"Title"},"innerBlocks":[{"name":"core/list","innerBlocks":[{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}},{"name":"core/list-item","attributes":{"content":"Lorem ipsum dolor sit amet."}}]}]}}');const{name:il}=sl,ul={title:(0,H.__)("アイコンリスト",G),icon:(0,R.createElement)(Ha,{icon:tl,size:32}),description:(0,H.__)("リストポイントにアイコンを適用した非順序リストです。",G),edit:al,save:function(e){const{title:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,iconColor:i,customIconColor:u,fontSize:m}=e.attributes,b=(0,D.getColorClassName)("background-color",n),d=(0,D.getColorClassName)("color",a),p=(0,D.getColorClassName)("border-color",l),g=(0,D.getColorClassName)("icon-color",i),f=(0,D.getFontSizeClass)(m),v=L()({"iconlist-box":!0,"blank-box":!0,[o]:!!o,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,"has-icon-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g,[f]:f}),_={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0,"--cooon-custom-icon-color":u||void 0},y=D.useBlockProps.save({className:v,style:_});return(0,R.createElement)("div",{...y},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:cl};var ml=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));const{createBlock:bl}=wp.blocks,{InnerBlocks:dl,InspectorControls:pl}=wp.editor,{PanelBody:gl,SelectControl:fl}=wp.components;function vl(e){return L()({[e]:!!e,"block-box":!0})}var _l=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:"primary-box"}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>bl("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>bl("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>bl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>bl("cocoon-blocks/tab-box-1",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(pl,null,(0,R.createElement)(gl,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(fl,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"primary-box",label:(0,H.__)("プライマリー(濃い水色)",G)},{value:"secondary-box",label:(0,H.__)("セカンダリー(濃い灰色)",G)},{value:"info-box",label:(0,H.__)("インフォ(薄い青)",G)},{value:"success-box",label:(0,H.__)("サクセス(薄い緑)",G)},{value:"warning-box",label:(0,H.__)("ワーニング(薄い黄色)",G)},{value:"danger-box",label:(0,H.__)("デンジャー(薄い赤色)",G)},{value:"light-box",label:(0,H.__)("ライト(白色)",G)},{value:"dark-box",label:(0,H.__)("ダーク(暗い灰色)",G)}]}))),(0,R.createElement)("div",{className:L()(vl(a),o)},(0,R.createElement)(dl,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:vl(o)},(0,R.createElement)(dl.Content,null))}}],yl={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)}]},hl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/info-box","category":"cocoon-block","keywords":["info","box"],"attributes":{"style":{"type":"string","default":"primary-box"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:kl}=hl,Cl={title:(0,H.__)("案内ボックス",G),icon:(0,R.createElement)(Ha,{icon:ml,size:32}),description:(0,H.__)("ボックスの背景色により、直感的にメッセージ内容を伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("block-box",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"primary-box",label:(0,H.__)("プライマリー(濃い水色)",G)},{value:"secondary-box",label:(0,H.__)("セカンダリー(濃い灰色)",G)},{value:"info-box",label:(0,H.__)("インフォ(薄い青)",G)},{value:"success-box",label:(0,H.__)("サクセス(薄い緑)",G)},{value:"warning-box",label:(0,H.__)("ワーニング(薄い黄色)",G)},{value:"danger-box",label:(0,H.__)("デンジャー(薄い赤色)",G)},{value:"light-box",label:(0,H.__)("ライト(白色)",G)},{value:"dark-box",label:(0,H.__)("ダーク(暗い灰色)",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("block-box",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:_l,transforms:yl};var xl=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const El=(0,H.__)("キーワード",G),{RichText:Nl}=wp.editor,wl=(0,H.__)("キーワード",G);function Sl(){return L()({"search-form":!0,"block-box":!0})}var Bl=[{attributes:{content:{type:"string",default:wl}},edit({attributes:e,setAttributes:t,className:o}){const{content:n}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{className:L()(Sl(),o)},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(Nl,{value:n,onChange:e=>t({content:e}),placeholder:wl})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G))))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:Sl()},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(Nl.Content,{value:t})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G)))}}],Tl=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/search-box","category":"cocoon-block","keywords":["search","box"],"attributes":{"content":{"type":"string","default":"キーワード"}},"example":{"attributes":{"content":"Keywords"}},"supports":{"anchor":true}}');const{name:zl}=Tl,Al={title:(0,H.__)("検索案内",G),icon:(0,R.createElement)(Ha,{icon:xl,size:32}),description:(0,H.__)("訪問者に検索を促すためのボックスです。検索をクリックすることで検索結果へ跳びます(※AMPページ以外)。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{content:n}=e,a=L()("search-form","block-box",o),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...l},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(D.RichText,{value:n,onChange:e=>t({content:e}),placeholder:El})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G))))},save:function({attributes:e}){const{content:t}=e,o=L()("search-form","block-box"),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)("div",{className:"sform"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"sbtn"},(0,H.__)("検索",G)))},deprecated:Bl},{createBlock:Pl}=wp.blocks,{InnerBlocks:Fl,InspectorControls:Il}=wp.editor,{PanelBody:Vl,SelectControl:Ol}=wp.components;function Rl(e){return L()({"blank-box":!0,sticky:!0,[e]:!!e,"block-box":!0})}var Ml=[{attributes:{content:{type:"string",default:X},style:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Pl("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>Pl("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>Pl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Pl("cocoon-blocks/info-box",{},t)}]},edit({attributes:e,setAttributes:t,className:o}){const{content:n,style:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Il,null,(0,R.createElement)(Vl,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Ol,{label:(0,H.__)("タイプ",G),value:a,onChange:e=>t({style:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:"st-yellow",label:(0,H.__)("黄色",G)},{value:"st-red",label:(0,H.__)("赤色",G)},{value:"st-blue",label:(0,H.__)("青色",G)},{value:"st-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:L()(Rl(a),o)},(0,R.createElement)(Fl,null)))},save({attributes:e}){const{content:t,style:o}=e;return(0,R.createElement)("div",{className:Rl(o)},(0,R.createElement)(Fl.Content,null))}}],ql={to:[{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/blank-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/tab-box-1"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/tab-box-1",{},t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>(0,z.createBlock)("cocoon-blocks/info-box",{},t)}]},Ll=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/sticky-box","category":"cocoon-block","keywords":["sticky","box"],"attributes":{"style":{"type":"string","default":""}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Hl}=Ll,jl={title:(0,H.__)("付箋風ボックス",G),icon:"button",description:(0,H.__)("目立つ濃いめの色で付箋風にメッセージを伝えるためのボックスです。",G),edit:function({attributes:e,setAttributes:t,className:o}){const{style:n}=e,a=L()("blank-box","block-box","sticky",{[n]:!!n,[o]:!!o}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:"st-yellow",label:(0,H.__)("黄色",G)},{value:"st-red",label:(0,H.__)("赤色",G)},{value:"st-blue",label:(0,H.__)("青色",G)},{value:"st-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,null)))},save:function({attributes:e}){const{style:t}=e,o=L()("blank-box","block-box","sticky",{[t]:!!t}),n=D.useBlockProps.save({className:o});return(0,R.createElement)("div",{...n},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Ml,transforms:ql};var Dl=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"})),Yl=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u}=e,{label:m,customBackgroundColor:b,customTextColor:d,customBorderColor:p}=t,g=L()(n,{"blank-box":!0,"bb-tab":!0,[m]:!!m,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class}),f={"--cocoon-custom-border-color":p||void 0,"--cocoon-custom-background-color":b||void 0,"--cocoon-custom-text-color":d||void 0},v=(0,D.useBlockProps)({className:g,style:f});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ラベル",G),value:m,onChange:e=>o({label:e}),options:[{value:"bb-check",label:(0,H.__)("チェック",G)},{value:"bb-comment",label:(0,H.__)("コメント",G)},{value:"bb-point",label:(0,H.__)("ポイント",G)},{value:"bb-tips",label:(0,H.__)("ティップス",G)},{value:"bb-hint",label:(0,H.__)("ヒント",G)},{value:"bb-pickup",label:(0,H.__)("ピックアップ",G)},{value:"bb-bookmark",label:(0,H.__)("ブックマーク",G)},{value:"bb-memo",label:(0,H.__)("メモ",G)},{value:"bb-download",label:(0,H.__)("ダウンロード",G)},{value:"bb-break",label:(0,H.__)("ブレイク",G)},{value:"bb-amazon",label:(0,H.__)("Amazon",G)},{value:"bb-ok",label:(0,H.__)("OK",G)},{value:"bb-ng",label:(0,H.__)("NG",G)},{value:"bb-good",label:(0,H.__)("GOOD",G)},{value:"bb-bad",label:(0,H.__)("BAD",G)},{value:"bb-profile",label:(0,H.__)("プロフィール",G)}]})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...v},(0,R.createElement)(D.InnerBlocks,null)))}));const{createBlock:$l}=wp.blocks;var Gl=[{save(e){const{label:t,backgroundColor:o,textColor:n,borderColor:a,customBorderColor:l,fontSize:r}=e.attributes,c=(0,D.getColorClassName)("background-color",o),s=(0,D.getColorClassName)("color",n),i=(0,D.getColorClassName)("border-color",a),u=(0,D.getFontSizeClass)(r),m=L()({"blank-box":!0,"bb-tab":!0,[t]:!!t,"block-box":!0,"has-text-color":n,"has-background":o,"has-border-color":a||l,[s]:s,[c]:c,[i]:i,[u]:u}),b=D.useBlockProps.save({className:m});return(0,R.createElement)("div",{...b},(0,R.createElement)(D.InnerBlocks.Content,null))}},{attributes:{content:{type:"string",default:X},style:{type:"string",default:"bb-check"},color:{type:"string",default:""}},migrate(e){const{content:t,style:o,color:n}=e;return{content:t,label:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(n),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,color:n}=e,a=L()({"blank-box":!0,"bb-tab":!0,[o]:!!o,[`bb-${ne(n)}`]:!!ne(n),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)(D.InnerBlocks.Content,null))}}];const{createBlock:Ul}=wp.blocks;var Jl={to:[{type:"block",blocks:["cocoon-blocks/micro-text"],transform:e=>Ul("cocoon-blocks/micro-text",e)}]};const{createBlock:Wl}=wp.blocks;var Xl={to:[{type:"block",blocks:["cocoon-blocks/sticky-box"],transform:(e,t)=>Wl("cocoon-blocks/sticky-box",{},t)},{type:"block",blocks:["cocoon-blocks/blank-box-1"],transform:(e,t)=>Wl("cocoon-blocks/blank-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/icon-box"],transform:(e,t)=>Wl("cocoon-blocks/icon-box",{},t)},{type:"block",blocks:["cocoon-blocks/info-box"],transform:(e,t)=>Wl("cocoon-blocks/info-box",{},t)}]},Ql=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/tab-box-1","category":"cocoon-block","keywords":["tab","box"],"attributes":{"label":{"type":"string","default":"bb-check"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Kl}=Ql,Zl={title:(0,H.__)("タブボックス",G),icon:(0,R.createElement)(Ha,{icon:Dl,size:32}),description:(0,H.__)("タブにメッセージ内容を伝えるための文字が書かれているボックスです。",G),edit:Yl,save:function(e){const{label:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,fontSize:s}=e.attributes,i=(0,D.getColorClassName)("background-color",o),u=(0,D.getColorClassName)("color",n),m=(0,D.getColorClassName)("border-color",a),b=(0,D.getFontSizeClass)(s),d=L()({"blank-box":!0,"bb-tab":!0,[t]:!!t,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,[u]:u,[i]:i,[m]:m,[b]:b}),p={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0},g=D.useBlockProps.save({className:d,style:p});return(0,R.createElement)("div",{...g},(0,R.createElement)(D.InnerBlocks.Content,null))},deprecated:Gl,transforms:Xl},er=["cocoon-blocks/timeline-item"],tr=function(e,t){var o,n,a=0;function l(){var l,r,c=o,s=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(r=0;r(0,ol.times)(e,(()=>["cocoon-blocks/timeline-item"]))));var or=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",pointColor:"point-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,pointColor:u,setPointColor:m,fontSize:b,clientId:d}=e,{title:p,items:g,customBackgroundColor:f,customTextColor:v,customBorderColor:_,customPointColor:y,notNestedStyle:h,backgroundColorValue:k,textColorValue:C,borderColorValue:x,pointColorValue:E}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(d);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&h&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color}),o({pointColorValue:u.color})}),[a,r,s,u]);const N=L()(n,{"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,"has-point-color":u.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,[b.class]:b.class,"not-nested-style":h,"cocoon-block-timeline":!0}),w={"--cocoon-custom-border-color":_||void 0,"--cocoon-custom-background-color":f||void 0,"--cocoon-custom-text-color":v||void 0,"--cocoon-custom-point-color":y||void 0};h&&(w["--cocoon-custom-border-color"]=x,w["--cocoon-custom-background-color"]=k,w["--cocoon-custom-text-color"]=C,w["--cocoon-custom-point-color"]=E);const S=(0,D.useBlockProps)({className:N,style:w});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("アイテム数"),value:g,onChange:e=>o({items:e}),min:1,max:50})),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ポイント色",G),onChange:m,value:u.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...S},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText,{value:p,onChange:e=>o({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks,{template:tr(g),templateLock:"all",allowedBlocks:er}))))}));const nr={attributes:{title:{type:"string",default:""},iconColor:{type:"string",default:""},borderColor:{type:"string",default:""},icon:{type:"string",default:"list-caret-right"}},migrate(e){const{title:t,icon:o,iconColor:n,borderColor:a}=e;return{title:t,icon:o,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(a),customBorderColor:void 0,iconColor:ne(n),customIconColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{title:t,icon:o,iconColor:n,borderColor:a}=e,l=L()({"iconlist-box":!0,[o]:!!o,[`iic-${ne(n)}`]:!!ne(n),[`blank-box bb-${ne(a)}`]:!!ne(a),"block-box":!0});return(0,R.createElement)("div",{className:l},(0,R.createElement)("div",{className:"iconlist-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)(D.InnerBlocks.Content,null))}},ar={attributes:{title:{type:"string",default:"タイムラインのタイトル"},items:{type:"number",default:1},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},pointColor:{type:"string"},customPointColor:{type:"string"},fontSize:{type:"string"},notNestedStyle:{type:"boolean",default:!0},backgroundColorValue:{type:"string"},textColorValue:{type:"string"},borderColorValue:{type:"string"},pointColorValue:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,pointColor:s,customPointColor:i,fontSize:u}=e,m=(0,D.getColorClassName)("background-color",o),b=(0,D.getColorClassName)("color",n),d=(0,D.getColorClassName)("border-color",a),p=(0,D.getColorClassName)("point-color",s),g=(0,D.getFontSizeClass)(u),f=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,"has-point-color":s||i,[b]:b,[m]:m,[d]:d,[p]:p,[g]:g}),v={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0,"--cocoon-custom-point-color":i||void 0},_=D.useBlockProps.save({className:f,style:v});return(0,R.createElement)("div",{..._},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var lr=[ar,{save({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBorderColor:l,pointColor:r,customPointColor:c,fontSize:s}=e,i=(0,D.getColorClassName)("background-color",o),u=(0,D.getColorClassName)("color",n),m=(0,D.getColorClassName)("border-color",a),b=(0,D.getColorClassName)("point-color",r),d=(0,D.getFontSizeClass)(s),p=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n,"has-background":o,"has-border-color":a||l,"has-point-color":r||c,[u]:u,[i]:i,[m]:m,[b]:b,[d]:d}),g=D.useBlockProps.save({className:p});return(0,R.createElement)("div",{...g},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},nr],rr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/timeline","category":"cocoon-block","keywords":["timeline","box"],"attributes":{"title":{"type":"string","default":"タイムラインのタイトル"},"items":{"type":"number","default":1},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"pointColor":{"type":"string"},"customPointColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"},"pointColorValue":{"type":"string"}},"example":{"attributes":{"title":"Title"},"innerBlocks":[{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 1","title":"Volutpat consequat mauris nunc congue"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Adipiscing enim eu turpis egestas pretium aenean pharetra magna ac."}}]},{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 2","title":"Elementum curabitur vitae nunc sed"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Suspendisse in est ante in nibh mauris cursus mattis molestie."}}]},{"name":"cocoon-blocks/timeline-item","attributes":{"label":"STEP 3","title":"Adipiscing bibendum est ultricies integer"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Donec ac odio tempor orci dapibus ultrices in iaculis nunc."}}]}]},"supports":{"anchor":true}}');const{name:cr}=rr,sr={title:(0,H.__)("タイムライン",G),icon:(0,R.createElement)("svg",{id:"Capa_1","enable-background":"new 0 0 443.294 443.294",height:"512",viewBox:"0 0 443.294 443.294",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m221.647 0c-122.214 0-221.647 99.433-221.647 221.647s99.433 221.647 221.647 221.647 221.647-99.433 221.647-221.647-99.433-221.647-221.647-221.647zm0 415.588c-106.941 0-193.941-87-193.941-193.941s87-193.941 193.941-193.941 193.941 87 193.941 193.941-87 193.941-193.941 193.941z"}),(0,R.createElement)("path",{d:"m235.5 83.118h-27.706v144.265l87.176 87.176 19.589-19.589-79.059-79.059z"})),description:(0,H.__)("時系列を表現するためのブロックです。",G),edit:or,save:function({attributes:e}){const{title:t,backgroundColor:o,textColor:n,borderColor:a,customBackgroundColor:l,customTextColor:r,customBorderColor:c,pointColor:s,customPointColor:i,fontSize:u,notNestedStyle:m,backgroundColorValue:b,textColorValue:d,borderColorValue:p,pointColorValue:g}=e,f=(0,D.getColorClassName)("background-color",o),v=(0,D.getColorClassName)("color",n),_=(0,D.getColorClassName)("border-color",a),y=(0,D.getColorClassName)("point-color",s),h=(0,D.getFontSizeClass)(u),k=L()({"timeline-box":!0,cf:!0,"block-box":!0,"has-text-color":n||r,"has-background":o||l,"has-border-color":a||c,"has-point-color":s||i,[v]:v,[f]:f,[_]:_,[y]:y,[h]:h,"not-nested-style":m,"cocoon-block-timeline":!0}),C={"--cocoon-custom-background-color":l||void 0,"--cocoon-custom-text-color":r||void 0,"--cocoon-custom-border-color":c||void 0,"--cocoon-custom-point-color":i||void 0};m&&(C["--cocoon-custom-border-color"]=p,C["--cocoon-custom-background-color"]=b,C["--cocoon-custom-text-color"]=d,C["--cocoon-custom-point-color"]=g);const x=D.useBlockProps.save({className:k,style:C});return(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:"timeline-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("ul",{className:"timeline"},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:lr},{InnerBlocks:ir,RichText:ur}=wp.editor,{Fragment:mr}=wp.element;var br=[{attributes:{label:{type:"string",default:(0,H.__)("ラベル",G)},title:{type:"string",default:(0,H.__)("タイトル",G)}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{title:o,label:n}=e;return(0,R.createElement)(mr,null,(0,R.createElement)("li",{className:"timeline-item cf"},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(ur,{value:n,onChange:e=>t({label:e}),placeholder:(0,H.__)("ラベル",G)})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(ur,{value:o,onChange:e=>t({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(ir,{templateLock:!1})))))},save({attributes:e}){const{title:t,label:o}=e;return(0,R.createElement)("li",{className:"timeline-item cf"},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(ur.Content,{value:o})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(ur.Content,{value:t})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(ir.Content,null))))}}],dr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/timeline-item","category":"cocoon-block","parent":["cocoon-blocks/timeline"],"attributes":{"label":{"type":"string","default":"ラベル"},"title":{"type":"string","default":"タイトル"}},"supports":{"anchor":true},"example":{}}');const{name:pr}=dr,gr={title:(0,H.__)("タイムラインアイテム",G),icon:(0,R.createElement)(ra,{icon:ia}),description:(0,H.__)("カラム左側に表示される内容内容を入力。",G),edit:function({attributes:e,setAttributes:t}){const{title:o,label:n}=e,a=(0,D.useBlockProps)({className:"timeline-item cf"});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("li",{...a},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(D.RichText,{value:n,onChange:e=>t({label:e}),placeholder:(0,H.__)("ラベル",G)})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(D.RichText,{value:o,onChange:e=>t({title:e}),placeholder:(0,H.__)("タイトル",G)})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))))},save:function({attributes:e}){const{title:t,label:o}=e,n=D.useBlockProps.save({className:"timeline-item cf"});return(0,R.createElement)("li",{...n},(0,R.createElement)("div",{className:"timeline-item-label"},(0,R.createElement)(D.RichText.Content,{value:o})),(0,R.createElement)("div",{className:"timeline-item-content cf"},(0,R.createElement)("div",{className:"timeline-item-title"},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"timeline-item-snippet"},(0,R.createElement)(D.InnerBlocks.Content,null))))},deprecated:br};var fr=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),vr=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function e(t){const{attributes:o,setAttributes:n,className:a,backgroundColor:l,setBackgroundColor:r,textColor:c,setTextColor:s,borderColor:i,setBorderColor:u,fontSize:m,clientId:b}=t,{content:d,dateID:p,customBackgroundColor:g,customTextColor:f,customBorderColor:v,notNestedStyle:_,backgroundColorValue:y,textColorValue:h,borderColorValue:k}=o;(0,_e.useSelect)((e=>{const o=e("core/block-editor").getBlockParents(b);for(const n of o){const o=e("core/block-editor").getBlock(n);if(o.name===t.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&_&&n({notNestedStyle:!1}),(0,fe.useEffect)((()=>{n({backgroundColorValue:l.color}),n({textColorValue:c.color}),n({borderColorValue:i.color})}),[i,l,c]);const C=L()(a,{"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":c.color,"has-background":l.color,"has-border-color":i.color,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class,[m.class]:m.class,"not-nested-style":_,"cocoon-block-toggle":!0}),x={"--cocoon-custom-border-color":v||void 0,"--cocoon-custom-background-color":g||void 0,"--cocoon-custom-text-color":f||void 0};_&&(x["--cocoon-custom-border-color"]=k,x["--cocoon-custom-background-color"]=y,x["--cocoon-custom-text-color"]=h);const E=(0,D.useBlockProps)({className:C,style:x}),N=(0,ve.useInstanceId)(e);return(0,fe.useEffect)((()=>{n({dateID:K()+N})}),[N]),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:u,value:i.color},{label:(0,H.__)("背景色",G),onChange:r,value:l.color},{label:(0,H.__)("文字色",G),onChange:s,value:c.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...E},(0,R.createElement)("input",{id:"toggle-checkbox-"+p,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+p},(0,R.createElement)(D.RichText,{value:d,onChange:e=>n({content:e})})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks,null))))}));const _r={attributes:{content:{type:"string",selector:"div",default:"アコーディオン見出し"},dateID:{type:"string",default:""},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var yr=[_r,{migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},{attributes:{content:{type:"string",selector:"div",default:(0,H.__)("トグルボックス見出し",G)},color:{type:"string",default:""},dateID:{type:"string",default:""}},migrate(e){const{content:t,color:o,dateID:n}=e;return{content:t,dateID:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,dateID:n}=e,a=L()({"toggle-wrap":!0,[`tb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("input",{id:"toggle-checkbox-"+n,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+n},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}}],hr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/toggle-box-1","category":"cocoon-block","keywords":["toggle","box"],"attributes":{"content":{"type":"string","selector":"div","default":"アコーディオン見出し"},"dateID":{"type":"string","default":""},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Accordion heading"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"reusable":false,"anchor":true}}');const{name:kr}=hr,Cr={title:(0,H.__)("アコーディオン(トグル)",G),icon:(0,R.createElement)(Ha,{icon:fr,size:32}),description:(0,H.__)("旧トグルボックス。クリックすることでコンテンツ内容の表示を切り替えることができるボックスです。",G),edit:vr,save:function({attributes:e}){const{content:t,dateID:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"toggle-wrap":!0,"toggle-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-toggle":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("input",{id:"toggle-checkbox-"+o,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",htmlFor:"toggle-checkbox-"+o},(0,R.createElement)(D.RichText.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:yr};var xr=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color",questionColor:"question-color",answerColor:"answer-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{className:t,setAttributes:o,questionColor:n,setQuestionColor:a,answerColor:l,setAnswerColor:r,backgroundColor:c,setBackgroundColor:s,textColor:i,setTextColor:u,borderColor:m,setBorderColor:b,fontSize:d,clientId:p}=e,{question:g,questionLabel:f,answerLabel:v,customBackgroundColor:_,customTextColor:y,customBorderColor:h,customQuestionColor:k,customAnswerColor:C,notNestedStyle:x,questionColorValue:E,answerColorValue:N,backgroundColorValue:w,textColorValue:S,borderColorValue:B}=e.attributes;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(p);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&x&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({questionColorValue:n.color}),o({answerColorValue:l.color}),o({backgroundColorValue:c.color}),o({textColorValue:i.color}),o({borderColorValue:m.color})}),[n,l,m,c,i]);const T=L()(t,{"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":n.color,"has-answer-color":l.color,"has-text-color":i.color,"has-background":c.color,"has-border-color":m.color,[n.class]:n.class,[l.class]:l.class,[c.class]:c.class,[i.class]:i.class,[m.class]:m.class,[d.class]:d.class,"not-nested-style":x,"cocoon-block-faq":!0}),z={"--cocoon-custom-question-color":k||void 0,"--cocoon-custom-answer-color":C||void 0,"--cocoon-custom-border-color":h||void 0,"--cocoon-custom-background-color":_||void 0,"--cocoon-custom-text-color":y||void 0};x&&(z["--cocoon-custom-question-color"]=E,z["--cocoon-custom-answer-color"]=N,z["--cocoon-custom-border-color"]=B,z["--cocoon-custom-background-color"]=w,z["--cocoon-custom-text-color"]=S);const A=(0,D.useBlockProps)({className:T,style:z});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("設定",G)},(0,R.createElement)(j.BaseControl,{id:"questionLabel",label:(0,H.__)("質問ラベル",G)},(0,R.createElement)(j.TextControl,{value:f,placeholder:(0,H.__)("Q",G),onChange:e=>o({questionLabel:e}),help:(0,H.__)("※2文字以下推奨",G)})),(0,R.createElement)(j.BaseControl,{id:"answerLabel",label:(0,H.__)("回答ラベル",G)},(0,R.createElement)(j.TextControl,{value:v,placeholder:(0,H.__)("A",G),onChange:e=>o({answerLabel:e}),help:(0,H.__)("※2文字以下推奨",G)}))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("質問ラベル色",G),onChange:a,value:n.color},{label:(0,H.__)("回答ラベル色",G),onChange:r,value:l.color},{label:(0,H.__)("ボーダー色",G),onChange:b,value:m.color},{label:(0,H.__)("背景色",G),onChange:s,value:c.color},{label:(0,H.__)("文字色",G),onChange:u,value:i.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...A},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},f),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText,{tagName:"div",className:"faq-question-content",placeholder:(0,H.__)("質問を入力してください…",G),value:g,onChange:e=>o({question:e})}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},v),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks,null))))))}));const Er={attributes:{question:{type:"string",default:""},questionLabel:{type:"string",default:"Q"},answerLabel:{type:"string",default:"A"},questionColor:{type:"string"},answerColor:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customQuestionColor:{type:"string"},customAnswerColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,customQuestionColor:i,customAnswerColor:u,customBackgroundColor:m,customTextColor:b,customBorderColor:d,fontSize:p}=e,g=(0,D.getColorClassName)("question-color",a),f=(0,D.getColorClassName)("answer-color",l),v=(0,D.getColorClassName)("background-color",r),_=(0,D.getColorClassName)("color",c),y=(0,D.getColorClassName)("border-color",s),h=(0,D.getFontSizeClass)(p),k=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a||i,"has-answer-color":l||u,"has-text-color":c||b,"has-background":r||m,"has-border-color":s||d,[g]:g,[f]:f,[_]:_,[v]:v,[y]:y,[h]:h}),C={"--cocoon-custom-question-color":i||void 0,"--cocoon-custom-answer-color":u||void 0,"--cocoon-custom-background-color":m||void 0,"--cocoon-custom-text-color":b||void 0,"--cocoon-custom-border-color":d||void 0},x=D.useBlockProps.save({className:k,style:C});return(0,R.createElement)("div",{...x},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))}};var Nr=[Er,{migrate(e){return{...e,notNestedStyle:!1}},save({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,fontSize:i}=e,u=(0,D.getColorClassName)("question-color",a),m=(0,D.getColorClassName)("answer-color",l),b=(0,D.getColorClassName)("background-color",r),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",s),g=(0,D.getFontSizeClass)(i),f=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a,"has-answer-color":l,"has-text-color":c,"has-background":r,"has-border-color":s,[u]:u,[m]:m,[d]:d,[b]:b,[p]:p,[g]:g}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))}}],wr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/faq","category":"cocoon-block","keywords":["faq","box"],"attributes":{"question":{"type":"string","default":""},"questionLabel":{"type":"string","default":"Q"},"answerLabel":{"type":"string","default":"A"},"questionColor":{"type":"string"},"answerColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customQuestionColor":{"type":"string"},"customAnswerColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"questionColorValue":{"type":"string"},"answerColorValue":{"type":"string"},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"question":"Lorem ipsum dolor sit amet ?"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Sr}=wr,Br={title:(0,H.__)("FAQ",G),icon:(0,R.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512"},(0,R.createElement)("g",null,(0,R.createElement)("path",{d:"M496,128H296V64a8,8,0,0,0-8-8H16a8,8,0,0,0-8,8V304a8,8,0,0,0,8,8H40v56a8,8,0,0,0,13.66,5.66L115.31,312H216v64a8,8,0,0,0,8,8H396.69l61.65,61.66A8,8,0,0,0,472,440V384h24a8,8,0,0,0,8-8V136A8,8,0,0,0,496,128ZM112,296a8.008,8.008,0,0,0-5.66,2.34L56,348.69V304a8,8,0,0,0-8-8H24V72H280V296Zm376,72H464a8,8,0,0,0-8,8v44.69l-50.34-50.35A8.008,8.008,0,0,0,400,368H232V312h56a8,8,0,0,0,8-8V144H488Z"}),(0,R.createElement)("path",{d:"M341.31,311.534a8,8,0,0,0,10.224-4.843L363.924,272h40.152l12.39,34.691a8,8,0,0,0,15.068-5.382l-40-112a8,8,0,0,0-15.068,0l-40,112A8,8,0,0,0,341.31,311.534ZM384,215.786,398.362,256H369.638Z"}),(0,R.createElement)("path",{d:"M194.19,214.876A47.708,47.708,0,0,0,200,192V160a48,48,0,0,0-96,0v32a47.976,47.976,0,0,0,80.228,35.542l10.115,10.115a8,8,0,0,0,11.314-11.314ZM152,224a32.036,32.036,0,0,1-32-32V160a32,32,0,0,1,64,0v32a31.848,31.848,0,0,1-1.882,10.8l-8.461-8.461a8,8,0,0,0-11.314,11.314l10.55,10.55A31.852,31.852,0,0,1,152,224Z"}))),description:(0,H.__)("よくある質問と回答。",G),edit:xr,save:function({attributes:e}){const{question:t,questionLabel:o,answerLabel:n,questionColor:a,answerColor:l,backgroundColor:r,textColor:c,borderColor:s,customQuestionColor:i,customAnswerColor:u,customBackgroundColor:m,customTextColor:b,customBorderColor:d,fontSize:p,notNestedStyle:g,questionColorValue:f,answerColorValue:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=e,k=(0,D.getColorClassName)("question-color",a),C=(0,D.getColorClassName)("answer-color",l),x=(0,D.getColorClassName)("background-color",r),E=(0,D.getColorClassName)("color",c),N=(0,D.getColorClassName)("border-color",s),w=(0,D.getFontSizeClass)(p),S=L()({"faq-wrap":!0,"blank-box":!0,"block-box":!0,"has-question-color":a||i,"has-answer-color":l||u,"has-text-color":c||b,"has-background":r||m,"has-border-color":s||d,[k]:k,[C]:C,[E]:E,[x]:x,[N]:N,[w]:w,"not-nested-style":g,"cocoon-block-faq":!0}),B={"--cocoon-custom-question-color":i||void 0,"--cocoon-custom-answer-color":u||void 0,"--cocoon-custom-background-color":m||void 0,"--cocoon-custom-text-color":b||void 0,"--cocoon-custom-border-color":d||void 0};g&&(B["--cocoon-custom-question-color"]=f,B["--cocoon-custom-answer-color"]=v,B["--cocoon-custom-background-color"]=_,B["--cocoon-custom-text-color"]=y,B["--cocoon-custom-border-color"]=h);const T=D.useBlockProps.save({className:S,style:B});return(0,R.createElement)("div",{...T},(0,R.createElement)("dl",{className:"faq"},(0,R.createElement)("dt",{className:"faq-question faq-item"},(0,R.createElement)("div",{className:"faq-question-label faq-item-label"},o),(0,R.createElement)("div",{className:"faq-question-content faq-item-content"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("dd",{className:"faq-answer faq-item"},(0,R.createElement)("div",{className:"faq-answer-label faq-item-label"},n),(0,R.createElement)("div",{className:"faq-answer-content faq-item-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))))},deprecated:Nr,transforms:{}};var Tr=window.wp.editor,zr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/ranking","category":"cocoon-block","keywords":["ranking"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Ar}=zr,Pr={title:(0,H.__)("ランキング",G),icon:(0,R.createElement)(ra,{icon:Pa}),description:(0,H.__)("登録されているランキングを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("ranking-box","block-box",{["ranking-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;var s=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbItemRankings&&gbItemRankings.forEach((t=>{!1===r&&t.id==a&&(r=!0),"1"==t.visible?(e.push({value:t.id,label:t.title,disabled:!1}),c+=1):e.push({value:t.id,label:t.title+(0,H.__)("(リスト非表示)",G),disabled:!0})})),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ランキング",G),labelPosition:"side",className:"cocoon-render-dropdown editor-ranking-dropdown",value:a,onChange:e=>o({id:e,classNames:l}),options:s}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「Cocoon設定」→「ランキング」からランキングを作成してください。",G);if("undefined"==typeof gbItemRankings||0===gbItemRankings.length)e=(0,H.__)("ランキングが登録されていません。",G)+t;else if("undefined"!=typeof gbItemRankings&&0===c)e=(0,H.__)("有効なランキングが登録されていません。",G)+t+(0,H.__)("もしくは登録されているランキングを表示設定にしてください。。",G);else{if("undefined"==typeof gbItemRankings)return"";e=(0,H.__)("ランキングを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-ranking-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Fr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/template","category":"cocoon-block","keywords":["template"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Ir}=Fr,Vr={title:(0,H.__)("テンプレート",G),icon:(0,R.createElement)(ra,{icon:sa}),description:(0,H.__)("登録されているテンプレートを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("template-box","block-box",{["template-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;var s=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbTemplates&&gbTemplates.forEach((t=>{!1===r&&t.id==a&&(r=!0),"1"==t.visible?(e.push({value:t.id,label:t.title,disabled:!1}),c+=1):e.push({value:t.id,label:t.title+(0,H.__)("(リスト非表示)",G),disabled:!0})})),console.log(c),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("テンプレート",G),labelPosition:"side",className:"cocoon-render-dropdown editor-template-dropdown",value:a,onChange:e=>o({id:e,classNames:l}),options:s}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「Cocoon設定」→「テンプレート」からテンプレートを作成してください。",G);if("undefined"==typeof gbTemplates||0===gbTemplates.length)e=(0,H.__)("テンプレートが登録されていません。",G)+t;else if("undefined"!=typeof gbTemplates&&0===c)e=(0,H.__)("有効なテンプレートが登録されていません。",G)+t+(0,H.__)("もしくは登録されているテンプレートを表示設定にしてください。。",G);else{if("undefined"==typeof gbTemplates)return"";e=(0,H.__)("テンプレートを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-template-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Or=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/box-menu","category":"cocoon-block","keywords":["box-menu"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"boxName":{"type":"string","default":""},"target":{"type":"string","default":"_self"}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Rr}=Or,Mr={title:(0,H.__)("ボックスメニュー",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"th-large",icon:[512,512,[],"f009","M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"]}}),description:(0,H.__)("登録されているボックスメニューを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a}=t,l=L()("box-menu-box","block-box",{["box-menu-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:l});let r=!1,c=0;function s(e){var t="";if("undefined"!=typeof gbNavMenus)for(let o of gbNavMenus)if(o.term_id==e){t=o.name;break}return t}var i=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbNavMenus&&gbNavMenus.forEach((t=>{!1===r&&t.term_id==a&&(r=!0),e.push({value:t.term_id,label:t.name,disabled:!1}),c+=1})),e}();return r||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ボックスメニュー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-box-menu-dropdown",value:a,onChange:e=>o({id:e,classNames:l,boxName:s(e)}),options:i}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「外観」→「メニュー」からボックスメニューを作成してください。",G);if("undefined"==typeof gbNavMenus||0===gbNavMenus.length)e=(0,H.__)("ボックスメニューが登録されていません。",G)+t;else if("undefined"!=typeof gbNavMenus&&0===c)e=(0,H.__)("有効なボックスメニューが登録されていません。",G)+t+(0,H.__)("もしくは登録されているボックスメニューを表示設定にしてください。",G);else{if("undefined"==typeof gbNavMenus)return"";e=(0,H.__)("ボックスメニューを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-box-menu-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var qr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/ad","category":"cocoon-block","keywords":["ad"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"adVisible":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Lr}=qr,Hr={title:(0,H.__)("広告",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"ad",icon:[512,512,[],"f641","M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"]}}),description:(0,H.__)("広告を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,a=L()("ad-box","block-box",{[n]:!!n,[t.className]:!!t.className});return o({classNames:a}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...(0,D.useBlockProps)()},(()=>{let e="",t=!1;0==gbSettings.isAdsVisible?e=(0,H.__)("広告が非表示です。",G):0==gbSettings.isAdShortcodeEnable?e=(0,H.__)("[ad]ショートコードが無効です。",G):(e=(0,H.__)("広告",G),t=!0),o({adVisible:t});const n=L()("cocoon-render-message","editor-ad-message",{"is-ads-visible":1===gbSettings.isAdsVisible,"is-ad-shortcode-enable":1===gbSettings.isAdShortcodeEnable});return(0,R.createElement)("div",{className:n},e)})()))},save:function(e){const{attributes:t}=e,o=D.useBlockProps.save({className:t.classNames});return(0,R.createElement)("div",{...o},"[ad]")},deprecated:[],transforms:{}};var jr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/profile","category":"cocoon-block","keywords":["profile","author","box"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"label":{"type":"string","default":""},"isImageCircle":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Dr}=jr,Yr={title:(0,H.__)("プロフィールボックス",G),icon:(0,R.createElement)(ra,{icon:{prefix:"far",iconName:"id-card",icon:[576,512,[],"f2c2","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"]}}),description:(0,H.__)("プロフィールを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a,label:l,isImageCircle:r}=t,c=L()("profile-block-box","block-box",{["profile-block-box-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:c});let s=!1,i=0;var u=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbUsers&&gbUsers.forEach((t=>{!1===s&&t.id==a&&(s=!0),e.push({value:t.id,label:t.user_nicename,disabled:!1}),i+=1})),e}();return s||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("ラベル",G),value:l,onChange:e=>o({label:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("画像を円形にする",G),checked:r,onChange:e=>o({isImageCircle:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("ユーザー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-profile-block-box-dropdown",value:a,onChange:e=>o({id:e,classNames:c}),options:u}),"-1"==a?(()=>{let e="";if("undefined"!=typeof gbUsers&&0===i)e=(0,H.__)("選択できるユーザーがありません。",G);else{if("undefined"==typeof gbUsers)return"";e=(0,H.__)("ユーザーを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-profile-block-box-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var $r=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/new-list","category":"cocoon-block","keywords":["new","list"],"attributes":{"classNames":{"type":"string","default":""},"count":{"type":"number","default":5},"type":{"type":"string","default":"default"},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"children":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false},"showAllTags":{"type":"boolean","default":true},"tags":{"type":"string","default":""},"modified":{"type":"boolean","default":false},"order":{"type":"string","default":"desc"},"offset":{"type":"number","default":0},"sticky":{"type":"boolean","default":true},"snippet":{"type":"boolean","default":false},"post_type":{"type":"string","default":"post"},"taxonomy":{"type":"string","default":"category"},"author":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Gr}=$r,Ur={title:(0,H.__)("新着記事",G),icon:(0,R.createElement)(ra,{icon:{prefix:"far",iconName:"newspaper",icon:[576,512,[],"f1ea","M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"]}}),description:(0,H.__)("新着記事の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{count:a,type:l,bold:r,arrow:c,showAllCats:s,cats:i,children:u,horizontal:m,showAllTags:b,tags:d,modified:p,order:g,offset:f,sticky:v,snippet:_,post_type:y,taxonomy:h,author:k}=t,C=L()("new-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:C});const[x,E]=(0,fe.useState)(""),N=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let w=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:i,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("表示カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:x,onChange:E}),ge(N,x,i,(e=>{o({cats:e})}))),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("子カテゴリーの内容を含めて表示",G),checked:u,onChange:e=>o({children:e})}));s&&(w=(0,R.createElement)(j.Disabled,null,w));let S=(0,R.createElement)(j.TextControl,{label:(0,H.__)("タグ",G),value:d,onChange:e=>o({tags:e})});return b&&(S=(0,R.createElement)(j.Disabled,null,S," ")),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示する記事の数",G),isShiftStepEnabled:!1,value:a,onChange:e=>o({count:e}),min:1,max:100}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:l,onChange:e=>o({type:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示順",G),value:p?"1":"0",options:[{label:(0,H.__)("更新日順",G),value:"1"},{label:(0,H.__)("投稿日順",G),value:"0"}],onChange:e=>{o("0"===e?{modified:!1}:{modified:!0})}}),(0,R.createElement)(j.SelectControl,{label:(0,H.__)("並び替え",G),value:g,options:[{label:(0,H.__)("昇順",G),value:"asc"},{label:(0,H.__)("降順",G),value:"desc"}],onChange:e=>{o({order:e})}}),(0,R.createElement)(j.RangeControl,{label:(0,H.__)("読み飛ばし",G),isShiftStepEnabled:!1,value:f,onChange:e=>o({offset:e}),min:0}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:r,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:c,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:m,onChange:e=>o({horizontal:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("説明文の表示",G),checked:_,onChange:e=>o({snippet:e})})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:s,onChange:e=>{o({showAllCats:e}),E("")}}),w,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全タグ表示",G),checked:b,onChange:e=>{o({showAllTags:e})}}),S,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("固定記事の表示",G),checked:v,onChange:e=>o({sticky:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿タイプ",G),value:y,onChange:e=>o({post_type:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("検索グループ",G),value:h,onChange:e=>o({taxonomy:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿ユーザ",G),value:k,onChange:e=>o({author:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Jr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/popular-list","category":"cocoon-block","keywords":["popular","list"],"attributes":{"classNames":{"type":"string","default":""},"showAllDays":{"type":"boolean","default":true},"days":{"type":"number","default":0},"rank":{"type":"boolean","default":false},"pv":{"type":"boolean","default":false},"post_type":{"type":"string","default":"post"},"count":{"type":"number","default":5},"type":{"type":"string","default":"default"},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"children":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false},"ex_posts":{"type":"string","default":""},"ex_cats":{"type":"string","default":""}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Wr}=Jr,Xr={title:(0,H.__)("人気記事",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"fire",icon:[384,512,[],"f06d","M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]}}),description:(0,H.__)("人気記事の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{showAllDays:a,days:l,rank:r,pv:c,post_type:s,count:i,type:u,bold:m,arrow:b,showAllCats:d,cats:p,children:g,horizontal:f,ex_posts:v,ex_cats:_}=t,y=L()("popular-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:y});const[h,k]=(0,fe.useState)(""),[C,x]=(0,fe.useState)(""),E=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let N=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:p,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("表示カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:h,onChange:k}),ge(E,h,p,(e=>{o({cats:e})}))),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("子カテゴリーの内容を含めて表示",G),checked:g,onChange:e=>o({children:e})}));d&&(N=(0,R.createElement)(j.Disabled,null,N));let w=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("除外するカテゴリーをカンマ区切りで指定",G),value:_,onChange:e=>o({ex_cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("除外カテゴリー選択",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:C,onChange:x}),ge(E,C,_,(e=>{o({ex_cats:e})}))));0==d&&(w=(0,R.createElement)(j.Disabled,null,w));let S=(0,R.createElement)(j.SelectControl,{label:(0,H.__)("データの集計期間",G),value:l,onChange:e=>o({days:parseInt(e)}),options:[{label:(0,H.__)("全期間",G),value:0},{label:(0,H.__)("1日",G),value:1},{label:(0,H.__)("3日",G),value:3},{label:(0,H.__)("1週間",G),value:7},{label:(0,H.__)("2週間",G),value:14},{label:(0,H.__)("1ヶ月",G),value:30},{label:(0,H.__)("2ヶ月",G),value:60},{label:(0,H.__)("3ヶ月",G),value:90},{label:(0,H.__)("半年",G),value:182},{label:(0,H.__)("1年",G),value:365}]});return a&&(S=(0,R.createElement)(j.Disabled,null,S)),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示する記事の数",G),isShiftStepEnabled:!1,value:i,onChange:e=>o({count:e}),min:1}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全期間集計",G),checked:a,onChange:e=>{o({showAllDays:e})}}),S,(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:u,onChange:e=>o({type:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:m,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:b,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:f,onChange:e=>o({horizontal:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("ランキング番号表示",G),checked:r,onChange:e=>{o({rank:e})}}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("PV数表示",G),checked:c,onChange:e=>{o({pv:e})}})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:d,onChange:e=>{o({showAllCats:e}),k("")}}),N,w,(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.TextControl,{label:(0,H.__)("投稿タイプ",G),value:s,onChange:e=>o({post_type:e})}),(0,R.createElement)(j.TextControl,{label:(0,H.__)("除外投稿(ID)",G),value:v,onChange:e=>o({ex_posts:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var Qr=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/info-list","category":"cocoon-block","keywords":["info","list"],"attributes":{"classNames":{"type":"string","default":""},"count":{"type":"number","default":5},"showAllCats":{"type":"boolean","default":true},"cats":{"type":"string","default":""},"caption":{"type":"string","default":""},"showFrame":{"type":"boolean","default":true},"showDivider":{"type":"boolean","default":true},"modified":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:Kr}=Qr,Zr={title:(0,H.__)("新着情報",G),icon:(0,R.createElement)(ra,{icon:sa}),description:(0,H.__)("新着情報の一覧を表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{count:a,showAllCats:l,cats:r,caption:c,showFrame:s,showDivider:i,modified:u}=t,m=L()("info-list-box","block-box",{[n]:!!n,[t.className]:!!t.className});o({classNames:m});const[b,d]=(0,fe.useState)(""),p=(0,_e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category")));let g=(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(j.TextControl,{label:(0,H.__)("表示するカテゴリーをカンマ区切りで指定",G),value:r,onChange:e=>o({cats:e})}),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("カテゴリー検索",G),initialOpen:!0},(0,R.createElement)(j.SearchControl,{value:b,onChange:d}),ge(p,b,r,(e=>{o({cats:e})}))));return l&&(g=(0,R.createElement)(j.Disabled,null,g)),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.TextControl,{label:(0,H.__)("キャプション(枠線内表示)",G),value:c,onChange:e=>o({caption:e})}),(0,R.createElement)(j.RangeControl,{label:(0,H.__)("表示数",G),isShiftStepEnabled:!1,value:a,onChange:e=>o({count:e}),min:1,max:100}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("枠線表示",G),checked:s,onChange:e=>o({showFrame:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("仕切り線表示",G),checked:i,onChange:e=>o({showDivider:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("更新日順に並び替え",G),checked:u,onChange:e=>o({modified:e})})),(0,R.createElement)(j.PanelBody,{title:(0,H.__)("フィルタ",G),initialOpen:!1},(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("全カテゴリー表示",G),checked:l,onChange:e=>{o({showAllCats:e}),d("")}}),g)),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var ec=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/navicard","category":"cocoon-block","keywords":["navi","card"],"attributes":{"id":{"type":"string","default":"-1"},"classNames":{"type":"string","default":""},"menuName":{"type":"string","default":""},"menuType":{"type":"string","default":""},"bold":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false},"horizontal":{"type":"boolean","default":false}},"example":{},"supports":{"customClassName":true,"anchor":true}}');const{name:tc}=ec,oc={title:(0,H.__)("ナビカード",G),icon:(0,R.createElement)(ra,{icon:{prefix:"fas",iconName:"bars",icon:[448,512,[],"f0c9","M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]}}),description:(0,H.__)("登録されているメニューからナビカードを表示します。",G),edit:function(e){const{attributes:t,setAttributes:o,className:n}=e,{id:a,menuType:l,bold:r,arrow:c,horizontal:s}=t,i=L()("navicard","block-box",{["menu-"+a]:!("-1"===a),[n]:!!n,[t.className]:!!t.className});o({classNames:i});let u=!1,m=0;function b(e){var t="";if("undefined"!=typeof gbNavMenus)for(let o of gbNavMenus)if(o.term_id==e){t=o.name;break}return t}var d=function(){var e=[];return e.push({value:"-1",label:(0,H.__)("未選択",G)}),"undefined"!=typeof gbNavMenus&&gbNavMenus.forEach((t=>{!1===u&&t.term_id==a&&(u=!0),e.push({value:t.term_id,label:t.name,disabled:!1}),m+=1})),e}();return u||o({id:"-1"}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("基本設定",G),initialOpen:!0},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("表示タイプ",G),value:l,onChange:e=>o({menuType:e}),options:[{label:(0,H.__)("通常のリスト",G),value:"default"},{label:(0,H.__)("カードの上下に区切り線を入れる",G)+(0,H.__)("(縦型表示のみ)",G),value:"border_partition"},{label:(0,H.__)("カードに枠線を表示する",G),value:"border_square"},{label:(0,H.__)("大きなサムネイル表示",G),value:"large_thumb"},{label:(0,H.__)("大きなサムネイルにタイトルを重ねる",G),value:"large_thumb_on"}]}),(0,R.createElement)(j.__experimentalDivider,null),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("記事タイトルを太字にする",G),checked:r,onChange:e=>o({bold:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("カードに矢印を表示する",G),checked:c,onChange:e=>o({arrow:e})}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("横並び表示",G),checked:s,onChange:e=>o({horizontal:e})}))),(0,R.createElement)("div",{...(0,D.useBlockProps)()},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("メニュー",G),labelPosition:"side",className:"cocoon-render-dropdown editor-navicard-dropdown",value:a,onChange:e=>o({id:e,classNames:i,menuName:b(e)}),options:d}),"-1"==a?(()=>{let e="";const t=(0,H.__)("ダッシュボードメニューの「外観」→「メニュー」からメニューを作成してください。",G);if("undefined"==typeof gbNavMenus||0===gbNavMenus.length)e=(0,H.__)("メニューが登録されていません。",G)+t;else{if("undefined"==typeof gbNavMenus)return"";e=(0,H.__)("メニューを選択してください。",G)}return(0,R.createElement)("div",{class:"cocoon-render-message editor-navicard-message"},e)})():(0,R.createElement)(Tr.ServerSideRender,{block:e.name,attributes:t})))},save:function(){return null},deprecated:[],transforms:{}};var nc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const ac=(0,H.__)("見出し",G);var lc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"caption-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-caption-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:ac}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const rc="caption-box",cc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[rc]:!0,[`cb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},sc={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[rc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},ic={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[rc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var uc=[ic,sc,cc];const{createBlock:mc}=wp.blocks;var bc={to:[{type:"block",blocks:["cocoon-blocks/label-box-1"],transform:(e,t)=>mc("cocoon-blocks/label-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/tab-caption-box-1"],transform:(e,t)=>mc("cocoon-blocks/tab-caption-box-1",e,t)}]},dc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/caption-box-1","category":"cocoon-universal-block","keywords":["caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:pc}=dc,gc={title:(0,H.__)("見出しボックス",G),icon:(0,R.createElement)(Ha,{icon:nc,size:32}),description:(0,H.__)("ボックス「見出し」を入力できる汎用ボックスです。",G),edit:lc,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"caption-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-caption-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:uc,transforms:bc};var fc=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));const vc=(0,H.__)("見出し",G);var _c=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"label-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-label-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{id:"labelBoxIcon",label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:vc}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const yc="label-box",hc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[yc]:!0,[`lb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},kc={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[yc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Cc={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[yc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var xc=[Cc,kc,hc];const{createBlock:Ec}=wp.blocks;var Nc={to:[{type:"block",blocks:["cocoon-blocks/caption-box-1"],transform:(e,t)=>Ec("cocoon-blocks/caption-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/tab-caption-box-1"],transform:(e,t)=>Ec("cocoon-blocks/tab-caption-box-1",e,t)}]},wc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/label-box-1","category":"cocoon-universal-block","keywords":["label","caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Sc}=wc,Bc={title:(0,H.__)("ラベルボックス",G),icon:(0,R.createElement)(Ha,{icon:fc,size:32}),description:(0,H.__)("ボックスに「ラベル見出し」入力できる汎用ボックスです。",G),edit:_c,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"label-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-label-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("label-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("label-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("label-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:xc,transforms:Nc};var Tc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));const zc=(0,H.__)("見出し",G);var Ac=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u,clientId:m}=e,{content:b,icon:d,customBackgroundColor:p,customTextColor:g,customBorderColor:f,notNestedStyle:v,backgroundColorValue:_,textColorValue:y,borderColorValue:h}=t;(0,_e.useSelect)((t=>{const o=t("core/block-editor").getBlockParents(m);for(const n of o){const o=t("core/block-editor").getBlock(n);if(o.name===e.name&&!1===o.attributes.notNestedStyle)return!0}return!1}))&&v&&o({notNestedStyle:!1}),(0,fe.useEffect)((()=>{o({backgroundColorValue:a.color}),o({textColorValue:r.color}),o({borderColorValue:s.color})}),[a,r,s]);const k=L()(n,{"tab-caption-box":!0,"block-box":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class,"not-nested-style":v,"cocoon-block-tab-caption-box":!0}),C={"--cocoon-custom-border-color":f||void 0,"--cocoon-custom-background-color":p||void 0,"--cocoon-custom-text-color":g||void 0};v&&(C["--cocoon-custom-border-color"]=h,C["--cocoon-custom-background-color"]=_,C["--cocoon-custom-text-color"]=y);const x=(0,D.useBlockProps)({className:k,style:C});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.BaseControl,{id:"tabCaptionBoxIcon",label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:d===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color},{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...x},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",d)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText,{value:b,onChange:e=>o({content:e}),placeholder:zc}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks,null))))}));const Pc="tab-caption-box",Fc={attributes:{content:{type:"string",default:(0,H.__)("見出し",G)},color:{type:"string",default:""},icon:{type:"string",default:""}},migrate(e){const{content:t,color:o,icon:n}=e;return{content:t,icon:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:ne(o),customBorderColor:void 0,fontSize:void 0,customFontSize:void 0,notNestedStyle:!1}},save({attributes:e}){const{content:t,color:o,icon:n}=e,a=L()({[Pc]:!0,[`tcb-${ne(o)}`]:!!ne(o),"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Ic={migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBorderColor:r,fontSize:c}=e.attributes,s=(0,D.getColorClassName)("background-color",n),i=(0,D.getColorClassName)("color",a),u=(0,D.getColorClassName)("border-color",l),m=(0,D.getFontSizeClass)(c),b=L()({[Pc]:!0,"block-box":!0,"has-text-color":a,"has-background":n,"has-border-color":l||r,[i]:i,[s]:s,[u]:u,[m]:m}),d=D.useBlockProps.save({className:b});return(0,R.createElement)("div",{...d},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}},Vc={attributes:{content:{type:"string",default:"見出し"},icon:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customBorderColor:{type:"string"},fontSize:{type:"string"}},migrate(e){return{...e,notNestedStyle:!1}},save(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i}=e.attributes,u=(0,D.getColorClassName)("background-color",n),m=(0,D.getColorClassName)("color",a),b=(0,D.getColorClassName)("border-color",l),d=(0,D.getFontSizeClass)(i),p=L()({[Pc]:!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[m]:m,[u]:u,[b]:b,[d]:d}),g={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0},f=D.useBlockProps.save({className:p,style:g});return(0,R.createElement)("div",{...f},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))}};var Oc=[Vc,Ic,Fc];const{createBlock:Rc}=wp.blocks;var Mc={to:[{type:"block",blocks:["cocoon-blocks/caption-box-1"],transform:(e,t)=>Rc("cocoon-blocks/caption-box-1",e,t)},{type:"block",blocks:["cocoon-blocks/label-box-1"],transform:(e,t)=>Rc("cocoon-blocks/label-box-1",e,t)}]},qc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/tab-caption-box-1","category":"cocoon-universal-block","keywords":["tab","caption","box"],"attributes":{"content":{"type":"string","default":"見出し"},"icon":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"},"notNestedStyle":{"type":"boolean","default":true},"backgroundColorValue":{"type":"string"},"textColorValue":{"type":"string"},"borderColorValue":{"type":"string"}},"example":{"attributes":{"content":"Lorem ipsum dolor"},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius facilis in molestiae quod! Aut doloribus est illum iure porro sunt. Eius illo iusto maxime nihil possimus quae tempora voluptas voluptates."}}]},"supports":{"anchor":true}}');const{name:Lc}=qc,Hc={title:(0,H.__)("タブ見出しボックス",G),icon:(0,R.createElement)(Ha,{icon:Tc,size:32}),description:(0,H.__)("ボックスに「タブ見出し」を入力できる汎用ボックスです。",G),edit:Ac,save:function(e){const{content:t,icon:o,backgroundColor:n,textColor:a,borderColor:l,customBackgroundColor:r,customTextColor:c,customBorderColor:s,fontSize:i,notNestedStyle:u,backgroundColorValue:m,textColorValue:b,borderColorValue:d}=e.attributes,p=(0,D.getColorClassName)("background-color",n),g=(0,D.getColorClassName)("color",a),f=(0,D.getColorClassName)("border-color",l),v=(0,D.getFontSizeClass)(i),_=L()({"tab-caption-box":!0,"block-box":!0,"has-text-color":a||c,"has-background":n||r,"has-border-color":l||s,[g]:g,[p]:p,[f]:f,[v]:v,"not-nested-style":u,"cocoon-block-tab-caption-box":!0}),y={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":c||void 0,"--cocoon-custom-border-color":s||void 0};u&&(y["--cocoon-custom-border-color"]=d,y["--cocoon-custom-background-color"]=m,y["--cocoon-custom-text-color"]=b);const h=D.useBlockProps.save({className:_,style:y});return(0,R.createElement)("div",{...h},(0,R.createElement)("div",{className:L()("tab-caption-box-label","block-box-label","box-label",o)},(0,R.createElement)("span",{className:L()("tab-caption-box-label-text","block-box-label-text","box-label-text")},(0,R.createElement)(D.RichText.Content,{value:t}))),(0,R.createElement)("div",{className:L()("tab-caption-box-content","block-box-content","box-content")},(0,R.createElement)(D.InnerBlocks.Content,null)))},deprecated:Oc,transforms:Mc};var jc=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})),Dc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color",borderColor:"border-color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,backgroundColor:a,setBackgroundColor:l,textColor:r,setTextColor:c,borderColor:s,setBorderColor:i,fontSize:u}=e,{content:m,type:b,isCircle:d,icon:p,customBackgroundColor:g,customTextColor:f,customBorderColor:v}=t,_=L()(n,{"micro-balloon":!0,[b]:!!b,"mc-circle":!!d,"micro-copy":!0,"has-text-color":r.color,"has-background":a.color,"has-border-color":s.color,[a.class]:a.class,[r.class]:r.class,[s.class]:s.class,[u.class]:u.class}),y={"--cocoon-custom-border-color":v||void 0,"--cocoon-custom-background-color":g||void 0,"--cocoon-custom-text-color":f||void 0},h=(0,D.useBlockProps)({className:_,style:y});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:b,onChange:e=>o({type:e}),options:[{value:"micro-top",label:(0,H.__)("下寄り",G)},{value:"micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(j.ToggleControl,{label:(0,H.__)("円形にする",G),checked:d,onChange:e=>o({isCircle:e})}),(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:p===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("背景色",G),onChange:l,value:a.color},{label:(0,H.__)("文字色",G),onChange:c,value:r.color},{label:(0,H.__)("ボーダー色",G),onChange:i,value:s.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{className:"admin-micro-balloon-wrap wp-block micro-copy"},(0,R.createElement)("div",{...h},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},p&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",p)}),(0,R.createElement)(D.RichText,{value:m,onChange:e=>o({content:e})})))))}));const Yc=(0,H.__)("マイクロコピーバルーン",G),$c="micro-copy",Gc={save({attributes:e}){const{content:t,type:o,isCircle:n,icon:a,backgroundColor:l,customBackgroundColor:r,textColor:c,customTextColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",l),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({"micro-balloon":!0,[o]:!!o,"mc-circle":!!n,[$c]:!0,"has-text-color":c||s,"has-background":l||r,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),v=D.useBlockProps.save({className:f});return(0,R.createElement)("div",{...v},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},a&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",a)}),(0,R.createElement)(D.RichText.Content,{value:t})))}};var Uc=[Gc,{attributes:{content:{type:"string",default:Yc},style:{type:"string",default:"micro-top"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,style:o,color:n,isCircle:a,align:l}=e;return{content:t,type:o,isCircle:a,align:l,backgroundColor:ne(n),customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,color:n,isCircle:a,align:l}=e,r=L()({"micro-balloon":!0,[o]:!!o,[`mc-${ne(n)}`]:!!ne(n),"mc-circle":!!a,[$c]:!0,"block-box":!0});return(0,R.createElement)("div",{className:r},(0,R.createElement)(D.RichText.Content,{value:t}))}}],Jc=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/micro-balloon-2","category":"cocoon-micro","keywords":["micro","copy","balloon"],"attributes":{"content":{"type":"string","default":"マイクロコピーバルーン"},"type":{"type":"string","default":"micro-top"},"isCircle":{"type":"boolean","default":false},"icon":{"type":"string"},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"customTextColor":{"type":"string"},"customBorderColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"attributes":{"content":"microcopy balloon"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:Wc}=Jc,Xc={title:(0,H.__)("マイクロバルーン",G),icon:(0,R.createElement)(Ha,{icon:jc,size:32}),description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),edit:Dc,save:function({attributes:e}){const{content:t,type:o,isCircle:n,icon:a,backgroundColor:l,customBackgroundColor:r,textColor:c,customTextColor:s,borderColor:i,customBorderColor:u,fontSize:m}=e,b=(0,D.getColorClassName)("background-color",l),d=(0,D.getColorClassName)("color",c),p=(0,D.getColorClassName)("border-color",i),g=(0,D.getFontSizeClass)(m),f=L()({"micro-balloon":!0,[o]:!!o,"mc-circle":!!n,"micro-copy":!0,"has-text-color":c||s,"has-background":l||r,"has-border-color":i||u,[d]:d,[b]:b,[p]:p,[g]:g}),v={"--cocoon-custom-background-color":r||void 0,"--cocoon-custom-text-color":s||void 0,"--cocoon-custom-border-color":u||void 0},_=D.useBlockProps.save({className:f,style:v});return(0,R.createElement)("div",{..._},(0,R.createElement)("span",{className:"micro-balloon-content micro-content"},a&&(0,R.createElement)("span",{className:L()("micro-balloon-icon","micro-icon",a)}),(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:Uc,transforms:Jl};var Qc=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),Kc=(0,ve.compose)([(0,D.withColors)("backgroundColor",{textColor:"color"}),(0,D.withFontSizes)("fontSize")])((function(e){const{attributes:t,setAttributes:o,className:n,textColor:a,setTextColor:l}=e,{content:r,type:c,icon:s,customTextColor:i}=t,u=L()(n,{"micro-text":!0,"micro-copy":!0,[c]:!!c,"has-text-color":a.color,[a.class]:a.class}),m={"--cocoon-custom-text-color":i||void 0},b=(0,D.useBlockProps)({className:u,style:m});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("タイプ",G),value:c,onChange:e=>o({type:e}),options:[{value:"micro-top",label:(0,H.__)("下寄り",G)},{value:"micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(j.BaseControl,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},(0,ol.times)(ae.length,(e=>(0,R.createElement)(j.Button,{variant:"secondary",isPrimary:s===ae[e].value,className:ae[e].label,onClick:()=>{o({icon:ae[e].value})},key:e})))))),(0,R.createElement)(D.PanelColorSettings,{title:(0,H.__)("色設定",G),colorSettings:[{label:(0,H.__)("文字色",G),onChange:l,value:a.color}],__experimentalIsRenderedInSidebar:!0})),(0,R.createElement)("div",{...b},(0,R.createElement)("span",{className:"micro-text-content micro-content"},s&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",s)}),(0,R.createElement)(D.RichText,{value:r,onChange:e=>o({content:e})}))))}));const Zc=(0,H.__)("マイクロコピーテキスト",G),es="micro-copy",ts={save({attributes:e}){const{content:t,type:o,icon:n,textColor:a}=e,l=(0,D.getColorClassName)("color",a),r=L()({"micro-text":!0,[es]:!0,[o]:!!o,"has-text-color":a,[l]:l}),c=D.useBlockProps.save({className:r});return(0,R.createElement)("div",{...c},(0,R.createElement)("span",{className:"micro-text-content micro-content"},n&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",n)}),(0,R.createElement)(D.RichText.Content,{value:t})))}};var os=[ts,{attributes:{content:{type:"string",default:Zc},style:{type:"string",default:"micro-top"},align:{type:"string"}},supports:{align:["left","center","right"],customClassName:!0},migrate(e){const{content:t,style:o,align:n}=e;return{content:t,type:o,align:n,backgroundColor:void 0,customBackgroundColor:void 0,textColor:void 0,customTextColor:void 0,borderColor:void 0,customBorderColor:void 0,fontSize:void 0,customFontSize:void 0}},save({attributes:e}){const{content:t,style:o,align:n}=e,a=L()({[es]:!0,[o]:!!o,"block-box":!0});return(0,R.createElement)("div",{className:a},(0,R.createElement)(D.RichText.Content,{value:t}))}}];const{createBlock:ns}=wp.blocks;var as={to:[{type:"block",blocks:["cocoon-blocks/micro-balloon-2"],transform:e=>ns("cocoon-blocks/micro-balloon-2",e)}]},ls=JSON.parse('{"apiVersion":2,"name":"cocoon-blocks/micro-text","category":"cocoon-micro","keywords":["micro","copy","text"],"attributes":{"content":{"type":"string","default":"マイクロコピーテキスト"},"type":{"type":"string","default":"micro-top"},"icon":{"type":"string"},"align":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"customTextColor":{"type":"string"},"fontSize":{"type":"string"}},"example":{"attributes":{"content":"microcopy text"}},"supports":{"align":["left","center","right"],"customClassName":true,"anchor":true}}');const{name:rs}=ls,cs={title:(0,H.__)("マイクロテキスト",G),icon:(0,R.createElement)(Ha,{icon:Qc,size:32}),description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下に小さくテキスト表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),edit:Kc,save:function({attributes:e}){const{content:t,type:o,icon:n,textColor:a,customTextColor:l}=e,r=(0,D.getColorClassName)("color",a),c=L()({"micro-text":!0,"micro-copy":!0,[o]:!!o,"has-text-color":a||l,[r]:r}),s={"--cocoon-custom-text-color":l||void 0},i=D.useBlockProps.save({className:c,style:s});return(0,R.createElement)("div",{...i},(0,R.createElement)("span",{className:"micro-text-content micro-content"},n&&(0,R.createElement)("span",{className:L()("micro-text-icon","micro-icon",n)}),(0,R.createElement)(D.RichText.Content,{value:t})))},deprecated:os,transforms:as},{addFilter:ss}=wp.hooks,{PanelBody:is,SelectControl:us}=wp.components,{InspectorControls:ms}=wp.editor,{createHigherOrderComponent:bs}=wp.compose,ds=(0,H.__)("言語",G),ps=[{label:(0,H.__)("言語選択",G),value:""}],gs={"core/code":pe};ss("editor.BlockEdit","cocoon-blocks/code-props",bs((e=>{let t="";return o=>{const{className:n}=o.attributes;if(a=o.name,Object.keys(gs).includes(a)&&o.isSelected){let a=ps.concat(gs[o.name]).map((({value:e})=>e));const l=()=>{if(!n)return"";let e=a.slice();return e.sort(((e,t)=>t.trim().split(/\s+/).length-e.trim().split(/\s+/).length)),e.find((e=>{const t=n.trim().split(/\s+/);return e.trim().split(/\s+/).every((e=>t.includes(e)))}))||""};t=l(),a=a.join(" ").split(/\s+/);const r=ps.concat(gs[o.name]);return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...o}),(0,R.createElement)(ms,null,(0,R.createElement)(is,{title:ds,initialOpen:!0,className:"my-classname-controle"},(0,R.createElement)(us,{value:t,options:r,onChange:e=>{let l=e;if(n){let t=n;t=t.split(/\s+/);let o=t.filter((e=>!a.includes(e)));o.push(e),l=o.join(" ")}t=e,o.setAttributes({className:l})}}))))}var a;return(0,R.createElement)(e,{...o})}}),"addMyCustomBlockControls"));var fs=window.wp.hooks;const vs=["core/paragraph","core/list"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return vs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraBorder:{type:"string",default:""}})),e}));const _s=(0,ve.createHigherOrderComponent)((e=>t=>{if(vs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraBorder:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"border-solid",buttonText:(0,H.__)("実線",G)},{style:"border-double",buttonText:(0,H.__)("二重線",G)},{style:"border-dashed",buttonText:(0,H.__)("破線",G)},{style:"border-dotted",buttonText:(0,H.__)("点線",G)},{style:"border-thin-and-thick",buttonText:(0,H.__)("薄太",G)},{style:"border-convex",buttonText:(0,H.__)("微凸",G)},{style:"border-radius-s-solid",buttonText:(0,H.__)("実線(角丸小)",G)},{style:"border-radius-s-double",buttonText:(0,H.__)("二重線(角丸小)",G)},{style:"border-radius-s-dashed",buttonText:(0,H.__)("破線(角丸小)",G)},{style:"border-radius-s-dotted",buttonText:(0,H.__)("点線(角丸小)",G)},{style:"border-radius-s-thin-and-thick",buttonText:(0,H.__)("薄太(角丸小)",G)},{style:"border-radius-s-convex",buttonText:(0,H.__)("微凸(角丸小)",G)},{style:"border-radius-l-solid",buttonText:(0,H.__)("実線(角丸大)",G)},{style:"border-radius-l-double",buttonText:(0,H.__)("二重線(角丸大)",G)},{style:"border-radius-l-dashed",buttonText:(0,H.__)("破線(角丸大)",G)},{style:"border-radius-l-dotted",buttonText:(0,H.__)("点線(角丸大)",G)},{style:"border-radius-l-thin-and-thick",buttonText:(0,H.__)("薄太(角丸大)",G)},{style:"border-radius-l-convex",buttonText:(0,H.__)("微凸(角丸大)",G)},{style:"blank-box-gray",buttonText:(0,H.__)("白抜き灰",G)},{style:"blank-box-red",buttonText:(0,H.__)("白抜き赤",G)},{style:"blank-box-pink",buttonText:(0,H.__)("白抜きピンク",G)},{style:"blank-box-navy",buttonText:(0,H.__)("白抜き紺",G)},{style:"blank-box-blue",buttonText:(0,H.__)("白抜き青",G)},{style:"blank-box-purple",buttonText:(0,H.__)("白抜き紫",G)},{style:"blank-box-orange",buttonText:(0,H.__)("白抜きオレンジ",G)},{style:"blank-box-yellow",buttonText:(0,H.__)("白抜き黄",G)},{style:"blank-box-green",buttonText:(0,H.__)("白抜き緑",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] ボーダー設定",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraBorder:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("ボーダーをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-border01-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraBorder:""}):o({extraBorder:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-border01-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("span",{className:L()("__prev",{["is-style-"+e.style]:!!e.style,"has-border":e.style})})),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraBorder:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("ボーダーをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",_s);const ys=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&vs.includes(a)){const{extraBorder:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-border":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",ys),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(vs.includes(t.name)){const{className:t}=e,{extraBorder:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-border":n})),Object.assign(e)}return e}));const hs=["core/paragraph"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return hs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraStyle:{type:"string",default:""}})),e}));const ks=(0,ve.createHigherOrderComponent)((e=>t=>{if(hs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraStyle:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"light-background-box",buttonText:(0,H.__)("薄背景",G)},{style:"stripe-box",buttonText:(0,H.__)("ストライプ",G)},{style:"section-paper-box",buttonText:(0,H.__)("方眼紙",G)},{style:"checkered-box",buttonText:(0,H.__)("チェック",G)},{style:"stitch-box",buttonText:(0,H.__)("ステッチ",G)},{style:"square-brackets-box",buttonText:(0,H.__)("かぎ括弧",G)},{style:"parenthetic-box",buttonText:(0,H.__)("角括弧",G)},{style:"cross-line",buttonText:(0,H.__)("交差線",G)},{style:"p-style-08",buttonText:(0,H.__)("ずれた二重線",G)},{style:"triangle-box",buttonText:(0,H.__)("角三角",G)},{style:"clip-box",buttonText:(0,H.__)("クリップ",G)},{style:"stapler-box",buttonText:(0,H.__)("ホチキス",G)},{style:"stapler-top-left-box",buttonText:(0,H.__)("ホチキス左上",G)},{style:"hole-punch-box",buttonText:(0,H.__)("穴あけパンチ",G)},{style:"handwritten-box",buttonText:(0,H.__)("手書き風",G)},{style:"border-top-box",buttonText:(0,H.__)("上線",G)},{style:"border-left-box",buttonText:(0,H.__)("付箋",G)},{style:"balloon-left-box",buttonText:(0,H.__)("左吹き出し",G)},{style:"balloon-right-box",buttonText:(0,H.__)("右吹き出し",G)},{style:"balloon-top-box",buttonText:(0,H.__)("上吹き出し",G)},{style:"balloon-bottom-box",buttonText:(0,H.__)("下吹き出し",G)},{style:"information-box",buttonText:(0,H.__)("情報",G)},{style:"question-box",buttonText:(0,H.__)("質問",G)},{style:"alert-box",buttonText:(0,H.__)("アラート",G)},{style:"memo-box",buttonText:(0,H.__)("メモ",G)},{style:"comment-box",buttonText:(0,H.__)("コメント",G)},{style:"ok-box",buttonText:(0,H.__)("OK",G)},{style:"ng-box",buttonText:(0,H.__)("NG",G)},{style:"good-box",buttonText:(0,H.__)("グッド",G)},{style:"bad-box",buttonText:(0,H.__)("バッド",G)},{style:"profile-box",buttonText:(0,H.__)("プロフィール",G)},{style:"primary-box",buttonText:(0,H.__)("プライマリー",G)},{style:"success-box",buttonText:(0,H.__)("サクセス",G)},{style:"info-box",buttonText:(0,H.__)("インフォ",G)},{style:"warning-box",buttonText:(0,H.__)("ワーニング",G)},{style:"danger-box",buttonText:(0,H.__)("デンジャー",G)},{style:"secondary-box",buttonText:(0,H.__)("セカンダリー",G)},{style:"light-box",buttonText:(0,H.__)("ライト",G)},{style:"dark-box",buttonText:(0,H.__)("ダーク",G)},{style:"sticky-gray",buttonText:(0,H.__)("付箋灰",G)},{style:"sticky-red",buttonText:(0,H.__)("付箋赤",G)},{style:"sticky-blue",buttonText:(0,H.__)("付箋青",G)},{style:"sticky-yellow",buttonText:(0,H.__)("付箋黄",G)},{style:"sticky-green",buttonText:(0,H.__)("付箋緑",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] スタイル",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-style01-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraStyle:""}):o({extraStyle:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-style01-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("span",{className:L()("__prev",{["is-style-"+e.style]:!!e.style,"has-box-style":e.style})})),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",ks);const Cs=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&hs.includes(a)){const{extraStyle:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-box-style":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",Cs),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(hs.includes(t.name)){const{className:t}=e,{extraStyle:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-box-style":n})),Object.assign(e)}return e}));const xs=["core/list"];(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/style-custom-attributes",(function(e){return xs.includes(e.name)&&(e.attributes=Object.assign(e.attributes,{extraStyle:{type:"string",default:""}})),e}));const Es=(0,ve.createHigherOrderComponent)((e=>t=>{if(xs.includes(t.name)&&t.isSelected){const{setAttributes:o,isSelected:n,attributes:a}=t,{className:l,extraStyle:r}=a,c=[{style:"",buttonText:(0,H.__)("デフォルト",G)},{style:"numeric-list-enclosed",buttonText:(0,H.__)("丸数字",G)},{style:"numeric-list-rank",buttonText:(0,H.__)("順位",G)},{style:"numeric-list-step",buttonText:(0,H.__)("ステップ",G)},{style:"icon-list-check",buttonText:(0,H.__)("チェック",G)},{style:"icon-list-check-valid",buttonText:(0,H.__)("チェック有効",G)},{style:"icon-list-check-disabled",buttonText:(0,H.__)("チェック無効",G)},{style:"icon-list-circle",buttonText:(0,H.__)("丸",G)},{style:"icon-list-triangle",buttonText:(0,H.__)("三角",G)},{style:"icon-list-cross",buttonText:(0,H.__)("バツ",G)},{style:"icon-list-info",buttonText:(0,H.__)("情報",G)},{style:"icon-list-question",buttonText:(0,H.__)("疑問",G)},{style:"icon-list-warning",buttonText:(0,H.__)("警告",G)},{style:"icon-list-paw",buttonText:(0,H.__)("肉球",G)},{style:"icon-list-thumb-up",buttonText:(0,H.__)("サムアップ",G)},{style:"icon-list-thumb-down",buttonText:(0,H.__)("サムダウン",G)},{style:"icon-list-comment",buttonText:(0,H.__)("コメント",G)},{style:"icon-list-user-man",buttonText:(0,H.__)("男性",G)},{style:"icon-list-user-woman",buttonText:(0,H.__)("女性",G)},{style:"icon-list-heart",buttonText:(0,H.__)("ハート",G)},{style:"icon-list-heart-broken",buttonText:(0,H.__)("ハートブレイク",G)},{style:"icon-list-ban",buttonText:(0,H.__)("禁止",G)}];return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),n&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("[C] スタイル",G),initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))),(0,R.createElement)("div",{className:"block-editor-block-styles"},(0,R.createElement)("div",{className:"block-editor-block-styles__variants style-buttons"},c.map(((e,t)=>(0,R.createElement)("div",{className:L()("__btnBox",{"__btnBoxDefault display-none":!e.style})},(0,R.createElement)(j.Button,{id:"cocoon-dorder-style02-button-"+t,className:L()("display-none","block-editor-block-styles__item",{"is-active":e.style===r}),variant:"secondary",label:e.buttonText,onClick:()=>{e.style===r?o({extraStyle:""}):o({extraStyle:e.style})}}),(0,R.createElement)("label",{for:"cocoon-dorder-style02-button-"+t,class:"__labelBtn","data-selected":e.style===r},(0,R.createElement)("span",{class:"__prevWrap editor-styles-wrapper"},(0,R.createElement)("ul",{className:L()("__prev","wp-block-list",{["is-style-"+e.style]:!!e.style,"has-list-style":e.style})},(0,R.createElement)("li",null,"aaa"),(0,R.createElement)("li",null,"bbb"),(0,R.createElement)("li",null,"ccc"))),(0,R.createElement)("span",{class:"__prevTitle"},e.buttonText))))))),(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>o({extraStyle:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("スタイルをクリア",G))))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/style-custom-edit",Es);const Ns=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,name:a,isValid:l}=t;if(l&&xs.includes(a)){const{extraStyle:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-"+a]:!!a,"has-list-style":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/style-apply-attributes",Ns),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/style-custom-save",((e,t,o)=>{if(xs.includes(t.name)){const{className:t}=e,{extraStyle:n}=o;return(t||n)&&(e.className=L()({[t]:!!t,["is-style-"+n]:!!n,"has-list-style":n})),Object.assign(e)}return e})),(0,fs.addFilter)("blocks.registerBlockType","cocoon-blocks/layout-custom-attributes",(function(e){return e.attributes=Object.assign(e.attributes,{extraBottomMargin:{type:"string",default:""}}),e}));const ws=[{value:0,label:"0em"},{value:10,label:"10em"},{value:20,label:"20em"}],Ss=(0,ve.createHigherOrderComponent)((e=>t=>{if(t.isSelected){const{setAttributes:n,isSelected:a,attributes:l}=t,{className:r,extraBottomMargin:c}=l;var o;function s(){return""+(""===c?(0,H.__)("未設定",G):(0,H.__)("文字高の",G)+c+(0,H.__)("倍の余白設定",G))}function i(){return""===c?0:Number(c)}return o=t.name.includes("cocoon-blocks")?(0,H.__)("ブロック下余白",G):(0,H.__)("[C] ブロック下余白",G),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(e,{...t}),a&&(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:o,initialOpen:!1},(0,R.createElement)("div",{class:"__clearBtn"},(0,R.createElement)("button",{type:"button",class:"components-button is-small",onClick:()=>n({extraBottomMargin:""})},(0,R.createElement)("span",{class:"dashicons dashicons-editor-removeformatting"}),(0,H.__)("余白をクリア",G))),(0,R.createElement)(j.RangeControl,{label:s(),value:i(),onChange:e=>{n({extraBottomMargin:String(e)})},min:0,max:20,step:1,resetFallbackValue:0,initialPosition:0,marks:ws}))))}return(0,R.createElement)(e,{...t})}),"addCustomEdit");(0,fs.addFilter)("editor.BlockEdit","cocoon-blocks/layout-custom-edit",Ss);const Bs=(0,ve.createHigherOrderComponent)((e=>t=>{const{attributes:o,className:n,isValid:a}=t;if(a){const{extraBottomMargin:a}=o;return(0,R.createElement)(e,{...t,className:L()({[n]:!!n,["is-style-bottom-margin-"+a+"em"]:!!a,"has-bottom-margin":a})})}return(0,R.createElement)(e,{...t})}),"applyAttributesToBlock");(0,fs.addFilter)("editor.BlockListBlock","cocoon-blocks/layout-apply-attributes",Bs),(0,fs.addFilter)("blocks.getSaveContent.extraProps","cocoon-blocks/layout-custom-save",((e,t,o)=>{const{className:n}=e,{extraBottomMargin:a}=o;return(n||a)&&(e.className=L()({[n]:!!n,["is-style-bottom-margin-"+a+"em"]:!!a,"has-bottom-margin":a})),Object.assign(e)})),(0,z.registerBlockType)("cocoon-blocks/column-left",{apiVersion:2,title:(0,H.__)("左カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム左側に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-left":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-left":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}}),(0,z.registerBlockType)("cocoon-blocks/column-center",{apiVersion:2,title:(0,H.__)("中央カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム中央に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-center":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-center":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}}),(0,z.registerBlockType)("cocoon-blocks/column-right",{apiVersion:2,title:(0,H.__)("右カラム",G),parent:["cocoon-blocks/column-2","cocoon-blocks/column-3"],icon:(0,R.createElement)(ra,{icon:ia}),category:G+"-layout",description:(0,H.__)("カラム右側に表示される内容内容を入力。",G),supports:{inserter:!1},example:{},edit({className:e}){const t=L()(e,{"column-right":!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{templateLock:!1})))},save({className:e}){const t=L()(e,{"column-right":!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}});const Ts=["cocoon-blocks/column-left","cocoon-blocks/column-right"];(0,H.__)("左側に入力する内容",G),(0,H.__)("右側に入力する内容",G),(0,z.registerBlockType)("cocoon-blocks/column-2",{apiVersion:2,title:(0,H.__)("2カラム",G),icon:(0,R.createElement)("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m22.5 24h-8c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h8c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-8-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h8c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m9.5 24h-8c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h8c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-8-23c-.276 0-.5.224-.5.5v21c0 .276.224.5.5.5h8c.276 0 .5-.224.5-.5v-21c0-.276-.224-.5-.5-.5z"})),category:G+"-layout",description:(0,H.__)("本文を左右カラムに分けます。オプションでカラム比率を変更できます。",G),keywords:["column","2"],attributes:{ratio:{type:"string",default:"column-2-2-1-1"}},edit({attributes:e,setAttributes:t,className:o}){const{ratio:n}=e,a=L()(o,{"column-wrap":!0,"column-2":!0,[n]:!!n,[W]:!0}),l=(0,D.useBlockProps)({className:a});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.InspectorControls,null,(0,R.createElement)(j.PanelBody,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(j.SelectControl,{label:(0,H.__)("カラム比率",G),value:n,onChange:e=>t({ratio:e}),options:[{value:"column-2-2-1-1",label:(0,H.__)("1:1(|□|□|)",G)},{value:"column-2-3-1-2",label:(0,H.__)("1:2(|□|□□|)",G)},{value:"column-2-3-2-1",label:(0,H.__)("2:1(|□□|□|)",G)},{value:"column-2-4-1-3",label:(0,H.__)("1:3(|□|□□□|))",G)},{value:"column-2-4-3-1",label:(0,H.__)("3:1,(|□□□|□|)",G)}]}))),(0,R.createElement)("div",{...l},(0,R.createElement)(D.InnerBlocks,{template:[["cocoon-blocks/column-left",{placeholder:(0,H.__)("左側に入力する内容",G)}],["cocoon-blocks/column-right",{placeholder:(0,H.__)("右側に入力する内容",G)}]],templateLock:"all",allowedBlocks:Ts})))},save({attributes:e,className:t}){const{ratio:o}=e,n=L()(t,{"column-wrap":!0,"column-2":!0,[o]:!!o,[W]:!0}),a=D.useBlockProps.save({className:n});return(0,R.createElement)("div",{...a},(0,R.createElement)(D.InnerBlocks.Content,null))}});const zs=["cocoon-blocks/column-left","cocoon-blocks/column-center","cocoon-blocks/column-right"];(0,z.registerBlockType)("cocoon-blocks/column-3",{apiVersion:2,title:(0,H.__)("3カラム",G),icon:(0,R.createElement)("svg",{"enable-background":"new 0 0 24 24",height:"512",viewBox:"0 0 24 24",width:"512",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)("path",{d:"m22.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m13.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"}),(0,R.createElement)("path",{d:"m4.5 24h-3c-.827 0-1.5-.673-1.5-1.5v-21c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v21c0 .827-.673 1.5-1.5 1.5zm-3-23c-.275 0-.5.224-.5.5v21c0 .276.225.5.5.5h3c.275 0 .5-.224.5-.5v-21c0-.276-.225-.5-.5-.5z"})),category:G+"-layout",description:(0,H.__)("本文を左・中央・右カラムに分けます。",G),keywords:["column","3"],edit({className:e}){const t=L()(e,{"column-wrap":!0,"column-3":!0,[W]:!0}),o=(0,D.useBlockProps)({className:t});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks,{template:[["cocoon-blocks/column-left",{placeholder:(0,H.__)("左側に入力する内容",G)}],["cocoon-blocks/column-center",{placeholder:(0,H.__)("中央に入力する内容",G)}],["cocoon-blocks/column-right",{placeholder:(0,H.__)("右側に入力する内容",G)}]],templateLock:"all",allowedBlocks:zs})))},save({className:e}){const t=L()(e,{"column-wrap":!0,"column-3":!0,[W]:!0}),o=D.useBlockProps.save({className:t});return(0,R.createElement)("div",{...o},(0,R.createElement)(D.InnerBlocks.Content,null))}});var As=window.wp.richText,Ps=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"}));const Fs="cocoon-blocks/bold",Is=(0,H.__)("太字(boldクラス指定)",G);(0,As.registerFormatType)(Fs,{title:Is,tagName:"span",className:"bold",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold"},Is),onClick:()=>o((0,As.toggleFormat)(t,{type:Fs})),isActive:e}))}});var Vs=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));const Os="cocoon-blocks/red",Rs=(0,H.__)("赤色",G);(0,As.registerFormatType)(Os,{title:Rs,tagName:"span",className:"red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"red"},Rs),onClick:()=>o((0,As.toggleFormat)(t,{type:Os})),isActive:e}))}});const Ms="cocoon-blocks/bold-red",qs=(0,H.__)("赤太字",G);(0,As.registerFormatType)(Ms,{title:qs,tagName:"span",className:"bold-red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-red"},qs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ms})),isActive:e}))}});const Ls="cocoon-blocks/blue",Hs=(0,H.__)("青色",G);(0,As.registerFormatType)(Ls,{title:Hs,tagName:"span",className:"blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"blue"},Hs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ls})),isActive:e}))}});const js="cocoon-blocks/bold-blue",Ds=(0,H.__)("青太字",G);(0,As.registerFormatType)(js,{title:Ds,tagName:"span",className:"bold-blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-blue"},Ds),onClick:()=>o((0,As.toggleFormat)(t,{type:js})),isActive:e}))}});const Ys="cocoon-blocks/green",$s=(0,H.__)("緑色",G);(0,As.registerFormatType)(Ys,{title:$s,tagName:"span",className:"green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Vs,size:32}),title:(0,R.createElement)("span",{className:"green"},$s),onClick:()=>o((0,As.toggleFormat)(t,{type:Ys})),isActive:e}))}});const Gs="cocoon-blocks/bold-green",Us=(0,H.__)("緑太字",G);(0,As.registerFormatType)(Gs,{title:Us,tagName:"span",className:"bold-green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Ps,size:32}),title:(0,R.createElement)("span",{className:"bold-green"},Us),onClick:()=>o((0,As.toggleFormat)(t,{type:Gs})),isActive:e}))}});var Js=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));const Ws="cocoon-blocks/keyboard-key",Xs=(0,H.__)("キーボードキー",G);(0,As.registerFormatType)(Ws,{title:Xs,tagName:"span",className:"keyboard-key",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(re,{icon:(0,R.createElement)(Ha,{icon:Js,size:32}),title:(0,R.createElement)("span",{className:"keyboard-key"},Xs),onClick:()=>o((0,As.toggleFormat)(t,{type:Ws})),isActive:e}))}}),Number(gbSettings.isRubyVisible?gbSettings.isRubyVisible:0)&&((0,As.registerFormatType)("cocoon-blocks/rt",{title:(0,H.__)("ふりがな(ルビ)キャラクター",G),tagName:"rt",className:null,edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null)}}),(0,As.registerFormatType)("cocoon-blocks/ruby",{title:(0,H.__)("ふりがな(ルビ)",G),tagName:"ruby",className:null,edit({isActive:e,value:t,onChange:o}){const n=()=>{let n="";if(e)t=(0,As.toggleFormat)(t,{type:"cocoon-blocks/ruby"});else{n=window.prompt((0,H.__)("ふりがな(ルビ)を入力してください。",G))||t.text.substr(t.start,t.end-t.start);const e=t.end,o=t.start;(t=(0,As.insert)(t,n,e)).start=o,t.end=e+n.length,t=(0,As.applyFormat)(t,{type:"cocoon-blocks/ruby"},o,e+n.length),t=(0,As.applyFormat)(t,{type:"cocoon-blocks/rt"},e,e+n.length)}return o(t)},a="primaryAlt",l=(0,R.createElement)(ra,{icon:Fa});return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"r",onUse:n}),(0,R.createElement)(D.RichTextToolbarButton,{icon:l,title:(0,H.__)("ふりがな(ルビ)",G),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"r"}))}}));const Qs=(0,H.__)("書式のクリア",G);Number(gbSettings.isClearFormatVisible?gbSettings.isClearFormatVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/clear-format",{title:Qs,tagName:"span",className:"clear-format",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.RichTextToolbarButton,{icon:"editor-removeformatting",title:Qs,onClick:()=>{const e=(0,_e.select)("core/rich-text").getFormatTypes();if(0{n=(0,As.removeFormat)(n,e.name)})),o({...n})}},isActive:e})}});var Ks=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));gbSettings.isPrivilegeActivationCodeAvailable&&gbSettings.isPrivilegeActivationCodeAvailable,(0,As.registerFormatType)("cocoon-blocks/html",{title:(0,H.__)("HTML挿入",G),tagName:"span",className:"insert-html",edit({isActive:e,value:t,onChange:o}){const n=()=>{let e="";return t.end-t.start>0?t=(0,As.insert)(t,"[html]"+t.text.substr(t.start,t.end-t.start)+"[/html]",t.start,t.end):(e=window.prompt((0,H.__)("HTMLを入力してください。",G))||t.text.substr(t.start,t.end-t.start),e&&(t=(0,As.insert)(t,"[html]"+e+"[/html]",t.start,t.end))),o(t)},a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"h",onUse:n}),(0,R.createElement)(D.RichTextToolbarButton,{icon:(0,R.createElement)(Ha,{icon:Ks,size:32}),title:(0,H.__)("HTML挿入",G),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"h"}))}});var Zs=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const ei="cocoon-blocks/marker",ti=(0,H.__)("黄色マーカー",G);(0,As.registerFormatType)(ei,{title:ti,tagName:"span",className:"marker",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ei})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"y",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker"},ti),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"y"}))}});var oi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 11.5h10V13H7z"}));const ni="cocoon-blocks/marker-under",ai=(0,H.__)("黄色アンダーラインマーカー",G);(0,As.registerFormatType)(ni,{title:ai,tagName:"span",className:"marker-under",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ni})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"z",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under"},ai),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"z"}))}});const li="cocoon-blocks/marker-red",ri=(0,H.__)("赤色マーカー",G);(0,As.registerFormatType)(li,{title:ri,tagName:"span",className:"marker-red",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:li})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"r",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker-red"},ri),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"r"}))}});const ci="cocoon-blocks/marker-under-red",si=(0,H.__)("赤色アンダーラインマーカー",G);(0,As.registerFormatType)(ci,{title:si,tagName:"span",className:"marker-under-red",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ci})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"s",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under-red"},si),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"s"}))}});const ii="cocoon-blocks/marker-blue",ui=(0,H.__)("青色マーカー",G);(0,As.registerFormatType)(ii,{title:ui,tagName:"span",className:"marker-blue",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:ii})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"b",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),title:(0,R.createElement)("span",{className:"marker-blue"},ui),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"b"}))}});const mi="cocoon-blocks/marker-under-blue",bi=(0,H.__)("青色アンダーラインマーカー",G);(0,As.registerFormatType)(mi,{title:bi,tagName:"span",className:"marker-under-blue",edit({isActive:e,value:t,onChange:o}){const n=()=>o((0,As.toggleFormat)(t,{type:mi})),a="primaryShift";return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(D.RichTextShortcut,{type:a,character:"c",onUse:n}),(0,R.createElement)(ce,{icon:(0,R.createElement)(Ha,{icon:oi,size:32}),title:(0,R.createElement)("span",{className:"marker-under-blue"},bi),onClick:n,isActive:e,shorcutType:a,shorcutCharacter:"c"}))}});const di="cocoon-blocks/badge",pi=(0,H.__)("オレンジ",G);(0,As.registerFormatType)(di,{title:pi,tagName:"span",className:"badge",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge"},pi),onClick:()=>o((0,As.toggleFormat)(t,{type:di})),isActive:e}))}});const gi="cocoon-blocks/badge-red",fi=(0,H.__)("赤色",G);(0,As.registerFormatType)(gi,{title:fi,tagName:"span",className:"badge-red",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-red"},fi),onClick:()=>o((0,As.toggleFormat)(t,{type:gi})),isActive:e}))}});const vi="cocoon-blocks/badge-pink",_i=(0,H.__)("ピンク",G);(0,As.registerFormatType)(vi,{title:_i,tagName:"span",className:"badge-pink",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-pink"},_i),onClick:()=>o((0,As.toggleFormat)(t,{type:vi})),isActive:e}))}});const yi="cocoon-blocks/badge-purple",hi=(0,H.__)("紫色",G);(0,As.registerFormatType)(yi,{title:hi,tagName:"span",className:"badge-purple",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-purple"},hi),onClick:()=>o((0,As.toggleFormat)(t,{type:yi})),isActive:e}))}});const ki="cocoon-blocks/badge-blue",Ci=(0,H.__)("青色",G);(0,As.registerFormatType)(ki,{title:Ci,tagName:"span",className:"badge-blue",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-blue"},Ci),onClick:()=>o((0,As.toggleFormat)(t,{type:ki})),isActive:e}))}});const xi="cocoon-blocks/badge-green",Ei=(0,H.__)("緑色",G);(0,As.registerFormatType)(xi,{title:Ei,tagName:"span",className:"badge-green",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-green"},Ei),onClick:()=>o((0,As.toggleFormat)(t,{type:xi})),isActive:e}))}});const Ni="cocoon-blocks/badge-yellow",wi=(0,H.__)("黄色",G);(0,As.registerFormatType)(Ni,{title:wi,tagName:"span",className:"badge-yellow",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-yellow"},wi),onClick:()=>o((0,As.toggleFormat)(t,{type:Ni})),isActive:e}))}});const Si="cocoon-blocks/badge-brown",Bi=(0,H.__)("茶色",G);(0,As.registerFormatType)(Si,{title:Bi,tagName:"span",className:"badge-brown",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-brown"},Bi),onClick:()=>o((0,As.toggleFormat)(t,{type:Si})),isActive:e}))}});const Ti="cocoon-blocks/badge-grey",zi=(0,H.__)("灰色",G);(0,As.registerFormatType)(Ti,{title:zi,tagName:"span",className:"badge-grey",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(se,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),title:(0,R.createElement)("span",{className:"badge-grey"},zi),onClick:()=>o((0,As.toggleFormat)(t,{type:Ti})),isActive:e}))}}),Number(gbSettings.isLetterVisible?gbSettings.isLetterVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/letters",{title:(0,H.__)("文字",G),tagName:"span",className:"letters",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Letter.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Qc,size:32}),label:(0,H.__)("文字",G),className:"letters",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}),Number(gbSettings.isMarkerVisible?gbSettings.isMarkerVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/markers",{title:(0,H.__)("マーカー",G),tagName:"span",className:"markers",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Marker.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Zs,size:32}),label:(0,H.__)("文字",G),className:"letters",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}),Number(gbSettings.isBadgeVisible?gbSettings.isBadgeVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/badges",{title:(0,H.__)("バッジ",G),tagName:"span",className:"badges",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Badge.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:fc,size:32}),label:(0,H.__)("バッジ",G),className:"badges",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Ai=Vs;[12,14,16,18,20,22,24,28,32,36,40,44,48].map(((e,t)=>{const o=e+"px",n="fz-"+o,a="cocoon-blocks/"+n;(0,As.registerFormatType)(a,{title:n,tagName:"span",className:n,edit({isActive:e,value:t,onChange:l}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(ie,{icon:(0,R.createElement)(Ha,{icon:Ai,size:32}),title:(0,R.createElement)("span",{className:n},o),onClick:()=>l((0,As.toggleFormat)(t,{type:a})),isActive:e}))}})})),Number(gbSettings.isFontSizeVisible?gbSettings.isFontSizeVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/font-sizes",{title:(0,H.__)("フォントサイズ",G),tagName:"span",className:"font-sizes",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"FontSize.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(ra,{icon:Ia}),label:(0,H.__)("フォントサイズ",G),className:"font-sizes",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Pi=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));function Fi(e,t,o,n){var a="cocoon-blocks/"+e;(0,As.registerFormatType)(a,{title:t,tagName:e,className:null,edit({value:n,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(be,{icon:(0,R.createElement)(Ha,{icon:Pi,size:32}),title:(0,R.createElement)("span",{className:e},t),onClick:()=>a((0,As.insert)(n,o,n.start,n.end))}))}})}Fi("shortcode-ad",(0,H.__)("広告",G),"[ad]"),Fi("shortcode-new-list",(0,H.__)("新着記事一覧",G),'[new_list count="5" type="default" cats="all" children="0" post_type="post"]'),Fi("shortcode-popular-list",(0,H.__)("人気記事一覧",G),'[popular_list days="all" rank="0" pv="0" count="5" type="default" cats="all"]'),Fi("shortcode-navi-list",(0,H.__)("ナビカード一覧",G),'[navi_list name="'+(0,H.__)("メニュー名",G)+'" type="default" bold="0" arrow="0"]'),Fi("shortcode-profile",(0,H.__)("プロフィールボックス",G),'[author_box label="'+(0,H.__)("この記事を書いた人",G)+"]"),Fi("shortcode-amazon",(0,H.__)("Amazonリンク",G),'[amazon asin="ASIN" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-amazon-title",(0,H.__)("Amazonリンク(商品名変更)",G),'[amazon asin="ASIN" title="'+(0,H.__)("商品名",G)+'" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-amazon-no-buttons",(0,H.__)("Amazonリンク(ボタン非表示)",G),'[amazon asin="ASIN" kw="'+(0,H.__)("キーワード",G)+'" amazon=0 rakuten=0 yahoo=0]'),Fi("shortcode-rakuten",(0,H.__)("楽天リンク",G),'[rakuten id="ID" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-rakuten-title",(0,H.__)("楽天リンク(商品名変更)",G),'[rakuten id="ID" title="'+(0,H.__)("商品名",G)+'" kw="'+(0,H.__)("キーワード",G)+'"]'),Fi("shortcode-rakuten-no-buttons",(0,H.__)("楽天リンク(ボタン非表示)",G),'[rakuten id="ID" kw="'+(0,H.__)("キーワード",G)+'" amazon=0 rakuten=0 yahoo=0]'),Fi("shortcode-ago",(0,H.__)("過去日時",G),'[ago from="YYYY/MM/DD"]'),Fi("shortcode-yago",(0,H.__)("過去日時(年)",G),'[yago from="YYYY/MM/DD"]'),Fi("shortcode-age",(0,H.__)("年齢",G),'[age birth="YYYY/MM/DD"]'),Fi("shortcode-date",(0,H.__)("ページ読み込み時の日付",G),'[date format="Y/m/d"]'),Fi("shortcode-updated",(0,H.__)("ページの更新日",G),'[updated format="Y/m/d"]'),Fi("shortcode-countdown",(0,H.__)("カウントダウン",G),'[countdown to="YYYY/MM/DD"]'),Fi("shortcode-star",(0,H.__)("評価スター",G),'[star rate="3.7" max="5" number="1"]'),Fi("shortcode-login",(0,H.__)("ログインコンテンツ",G),'[login_user_only msg="'+(0,H.__)("こちらのコンテンツはログインユーザーのみに表示されます。",G)+'"]'+(0,H.__)("内容",G)+"[/login_user_only]"),Number(gbSettings.isGeneralVisible?gbSettings.isGeneralVisible:0)&&(0,As.registerFormatType)("cocoon-blocks/shortcodes",{title:(0,H.__)("汎用ショートコード",G),tagName:"span",className:"shortcodes",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Shortcode.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Pi,size:32}),label:(0,H.__)("ショートコード",G),className:"shortcodes",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}});var Ii=(0,R.createElement)(ja.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(ja.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),Vi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));Number(gbSettings.isTemplateVisible?gbSettings.isTemplateVisible:0)&&(gbTemplates.map(((e,t)=>{var o="template-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(me,{icon:(0,R.createElement)(Ha,{icon:Ii,size:32}),title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[temp id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/templates",{title:(0,H.__)("テンプレート",G),tagName:"span",className:"templates",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Template.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Vi,size:32}),label:(0,H.__)("テンプレート",G),className:"templates",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}));var Oi=(0,R.createElement)(ja.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(ja.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"}));Number(gbSettings.isAffiliateVisible?gbSettings.isAffiliateVisible:0)&&(gbAffiliateTags.map(((e,t)=>{var o="affiliate-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(ue,{icon:(0,R.createElement)(Ha,{icon:Ii,size:32}),title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[affi id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/affiliates",{title:(0,H.__)("アフィリエイト",G),tagName:"span",className:"affiliates",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Affiliate.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(Ha,{icon:Oi,size:32}),label:(0,H.__)("アフィリエイトタグ",G),className:"affiliates",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}})),Number(gbSettings.isRankingVisible?gbSettings.isRankingVisible:0)&&(gbItemRankings.map(((e,t)=>{const o="ranking-"+e.id,n=e.title,a="cocoon-blocks/"+o;"1"==e.visible&&(0,As.registerFormatType)(a,{title:n,tagName:o,className:null,edit({value:t,onChange:a}){return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(de,{icon:"editor-code",title:(0,R.createElement)("span",{className:o},n),onClick:()=>a((0,As.insert)(t,"[rank id="+e.id+"]",t.start,t.end))}))}})})),(0,As.registerFormatType)("cocoon-blocks/rankings",{title:(0,H.__)("ランキング",G),tagName:"span",className:"rankings",edit({isActive:e,value:t,onChange:o}){return(0,R.createElement)(D.BlockFormatControls,null,(0,R.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},(0,R.createElement)(j.ToolbarGroup,null,(0,R.createElement)(j.Slot,{name:"Ranking.ToolbarControls"},(e=>0!==e.length&&(0,R.createElement)(j.ToolbarDropdownMenu,{icon:(0,R.createElement)(ra,{icon:Pa}),label:(0,H.__)("ランキング",G),className:"rankings",controls:(0,ol.orderBy)(e.map((([{props:e}])=>e)),"title")}))))))}}));const{InnerBlocks:Ri,RichText:Mi,InspectorControls:qi}=wp.editor,{PanelBody:Li,SelectControl:Hi,BaseControl:ji,ToggleControl:Di}=wp.components,Yi=(0,H.__)("マイクロコピーバルーン",G),$i=" micro-copy";function Gi(e){return e?" mc-circle":""}(0,z.registerBlockType)("cocoon-blocks/micro-balloon",{title:(0,H.__)("マイクロバルーン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),attributes:{content:{type:"string",selector:"div",default:Yi},style:{type:"string",default:"micro-balloon"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,isCircle:a,color:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(qi,null,(0,R.createElement)(Li,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Hi,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"micro-balloon",label:(0,H.__)("下寄り",G)},{value:"micro-balloon micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(Hi,{label:(0,H.__)("色設定",G),value:l,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" mc-yellow",label:(0,H.__)("黄色",G)},{value:" mc-red",label:(0,H.__)("赤色",G)},{value:" mc-blue",label:(0,H.__)("青色",G)},{value:" mc-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Di,{label:(0,H.__)("円形にする",G),checked:a,onChange:e=>t({isCircle:e})}))),(0,R.createElement)("div",{className:n+l+Gi(a)+$i+U},(0,R.createElement)(Mi,{value:o,onChange:e=>t({content:e})})))},save({attributes:e}){const{content:t,style:o,isCircle:n,color:a}=e;return(0,R.createElement)("div",{className:o+a+Gi(n)+$i+U},(0,R.createElement)(Mi.Content,{value:t}))}});const{InnerBlocks:Ui,RichText:Ji,InspectorControls:Wi}=wp.editor,{PanelBody:Xi,SelectControl:Qi,BaseControl:Ki,ToggleControl:Zi}=wp.components,eu=(0,H.__)("マイクロコピーバルーン",G),tu=" micro-copy";function ou(e){return e?" mc-circle":""}(0,z.registerBlockType)("cocoon-blocks/micro-balloon-1",{title:(0,H.__)("マイクロバルーン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンバージョンリンク(ボタン)の直上もしくは直下にテキストバルーン表示して、コンバージョン率アップを図るためのマイクロコピーです。",G),attributes:{content:{type:"string",selector:"div",default:eu},style:{type:"string",default:" micro-top"},color:{type:"string",default:""},isCircle:{type:"boolean",default:!1}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,isCircle:a,color:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Wi,null,(0,R.createElement)(Xi,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Qi,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:" micro-top",label:(0,H.__)("下寄り",G)},{value:" micro-bottom",label:(0,H.__)("上寄り",G)}]}),(0,R.createElement)(Qi,{label:(0,H.__)("色設定",G),value:l,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" mc-yellow",label:(0,H.__)("黄色",G)},{value:" mc-red",label:(0,H.__)("赤色",G)},{value:" mc-blue",label:(0,H.__)("青色",G)},{value:" mc-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Zi,{label:(0,H.__)("円形にする",G),checked:a,onChange:e=>t({isCircle:e})}))),(0,R.createElement)("div",{className:"micro-balloon"+n+l+ou(a)+tu+U},(0,R.createElement)(Ji,{value:o,onChange:e=>t({content:e})})))},save({attributes:e}){const{content:t,style:o,isCircle:n,color:a}=e;return(0,R.createElement)("div",{className:"micro-balloon"+o+a+ou(n)+tu+U},(0,R.createElement)(Ji.Content,{value:t}))}});const{registerBlockType:nu,createBlock:au}=wp.blocks,{InnerBlocks:lu,RichText:ru,InspectorControls:cu}=wp.editor,{PanelBody:su,SelectControl:iu,BaseControl:uu}=wp.components,mu=(0,H.__)("未入力",G),bu=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let du=gbSpeechBalloons;oe(du)||(du=[{name:"",id:"0",icon:bu,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),nu("cocoon-blocks/balloon-box",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),attributes:{content:{type:"string",selector:"div",default:""},index:{type:"string",default:"0"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{content:o,index:n}=e;du[n]||(n=0);var a=[];return du.map(((e,t)=>{"1"==du[t].visible&&a.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(cu,null,(0,R.createElement)(su,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(iu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e}),options:a}))),(0,R.createElement)("div",{className:"speech-wrap sb-id-"+du[n].id+" sbs-"+du[n].style+" sbp-"+du[n].position+" sbis-"+du[n].iconindex+" cf"+U},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:du[n].icon,alt:du[n].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(ru,{value:o||du[n].name,placeholder:mu,onChange:e=>t({content:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(lu,null))))},save({attributes:e}){var{content:t,index:o}=e;return du[o]||(o=0),(0,R.createElement)("div",{className:"speech-wrap sb-id-"+du[o].id+" sbs-"+du[o].style+" sbp-"+du[o].position+" sbis-"+du[o].iconindex+" cf"+U},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:du[o].icon,alt:du[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(ru.Content,{value:t||du[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(lu.Content,null)))}});const{InnerBlocks:pu,RichText:gu,InspectorControls:fu}=wp.editor,{PanelBody:vu,SelectControl:_u,BaseControl:yu}=wp.components,hu=(0,H.__)("未入力",G),ku=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Cu=gbSpeechBalloons;function xu(e){return L()({"speech-wrap":!0,[`sb-id-${Cu[e].id}`]:!!Cu[e].id,[`sbs-${Cu[e].style}`]:!!Cu[e].style,[`sbp-${Cu[e].position}`]:!!Cu[e].position,[`sbis-${Cu[e].iconstyle}`]:!!Cu[e].iconstyle,cf:!0,"block-box":!0})}oe(Cu)||(Cu=[{name:"",id:"0",icon:ku,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-box-1",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n}=e;Cu[n]||(n=0);var a=[];return Cu.map(((e,t)=>{"1"==Cu[t].visible&&a.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(fu,null,(0,R.createElement)(vu,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(_u,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e}),options:a}))),(0,R.createElement)("div",{className:xu(n)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:Cu[n].icon,alt:Cu[n].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(gu,{value:o||Cu[n].name,placeholder:hu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(pu,null))))},save({attributes:e}){var{name:t,index:o}=e;return Cu[o]||(o=0),(0,R.createElement)("div",{className:xu(o)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:Cu[o].icon,alt:Cu[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(gu.Content,{value:t||Cu[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(pu.Content,null)))}});const{InnerBlocks:Eu,RichText:Nu,InspectorControls:wu}=wp.editor,{PanelBody:Su,SelectControl:Bu,BaseControl:Tu}=wp.components,zu=(0,H.__)("未入力",G),Au=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Pu=gbSpeechBalloons;oe(Pu)||(Pu=[{name:"",id:"0",icon:Au,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-box-2",{title:(0,H.__)("吹き出し",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しを挿入できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},id:{type:"string",default:""},icon:{type:"string",default:""},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n,id:a,icon:l,style:r,position:c,iconstyle:s}=e;Pu[n]||(n=0),!l&&"0"==n&&Pu[0]&&(a=Pu[0].id,l=Pu[0].icon,r=Pu[0].style,c=Pu[0].position,s=Pu[0].iconstyle,o||(o=Pu[0].name),t({name:o,index:n,id:a,icon:l,style:r,position:c,iconstyle:s})),Pu[n]&&te(n,a,l,r,c,s)&&(a=Pu[n].id,l=Pu[n].icon,r=Pu[n].style,c=Pu[n].position,s=Pu[n].iconstyle,o||(o=Pu[n].name),t({index:n,id:a,icon:l,style:r,position:c,iconstyle:s}));var i=[];return Pu.map(((e,t)=>{"1"==Pu[t].visible&&i.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(wu,null,(0,R.createElement)(Su,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Bu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e,name:Pu[e].name,id:Pu[e].id,icon:Pu[e].icon,style:Pu[e].style,position:Pu[e].position,iconstyle:Pu[e].iconstyle}),options:i}))),(0,R.createElement)("div",{className:ee(a,r,c,s)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:l,alt:o,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Nu,{value:o,placeholder:zu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Eu,null))))},save({attributes:e}){const{name:t,index:o,id:n,icon:a,style:l,position:r,iconstyle:c}=e;return(0,R.createElement)("div",{className:ee(n,l,r,c)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:a,alt:t,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Nu.Content,{value:t}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Eu.Content,null)))}});const{InnerBlocks:Fu,RichText:Iu,MediaUpload:Vu,InspectorControls:Ou}=wp.editor,{Button:Ru,PanelBody:Mu,SelectControl:qu,BaseControl:Lu}=wp.components,Hu=(0,H.__)("未入力",G),ju=gbSettings.speechBalloonDefaultIconUrl?gbSettings.speechBalloonDefaultIconUrl:"";let Du=gbSpeechBalloons;function Yu(e,t,o,n){return L()({"speech-wrap":!0,[`sb-id-${Du[e].id}`]:!!Du[e].id,[`sbs-${t}`]:!!t,[`sbp-${o}`]:!!o,[`sbis-${n}`]:!!n,cf:!0,"block-box":!0})}oe(Du)||(Du=[{name:"",id:"0",icon:ju,style:"cb",position:"l",iconstyle:"stn",visible:"1"}]),(0,z.registerBlockType)("cocoon-blocks/balloon-ex-box",{title:(0,H.__)("吹き出しEX",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("登録されている吹き出しのオプションを変更できます。",G),keywords:["balloon","box"],attributes:{name:{type:"string",default:""},index:{type:"string",default:"0"},style:{type:"string",default:"stn"},position:{type:"string",default:"l"},iconstyle:{type:"string",default:"cb"},icon:{type:"string",default:""},iconid:{type:"number",default:0}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){var{name:o,index:n,style:a,position:l,iconstyle:r,icon:c,iconid:s}=e;Du[n]||(n=0);var i=[];return Du.map(((e,t)=>{"1"==Du[t].visible&&i.push({value:t,label:e.title})})),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Ou,null,(0,R.createElement)(Mu,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(qu,{label:(0,H.__)("人物",G),value:n,onChange:e=>t({index:e,icon:""}),options:i}),(0,R.createElement)(qu,{label:(0,H.__)("吹き出しスタイル",G),value:a,onChange:e=>t({style:e}),options:[{value:"stn",label:(0,H.__)("デフォルト",G)},{value:"flat",label:(0,H.__)("フラット",G)},{value:"line",label:(0,H.__)("LINE風",G)},{value:"think",label:(0,H.__)("考え事",G)}]}),(0,R.createElement)(qu,{label:(0,H.__)("人物位置",G),value:l,onChange:e=>t({position:e}),options:[{value:"l",label:(0,H.__)("左",G)},{value:"r",label:(0,H.__)("右",G)}]}),(0,R.createElement)(qu,{label:(0,H.__)("アイコンスタイル",G),value:r,onChange:e=>t({iconstyle:e}),options:[{value:"sn",label:(0,H.__)("四角(枠線なし)",G)},{value:"sb",label:(0,H.__)("四角(枠線あり)",G)},{value:"cn",label:(0,H.__)("丸(枠線なし)",G)},{value:"cb",label:(0,H.__)("丸(枠線あり)",G)}]}))),(0,R.createElement)("div",{className:Yu(n,a,l,r)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)(Vu,{onSelect:e=>{let o=e.sizes.thumbnail?e.sizes.thumbnail.url:e.url;t({icon:o,iconid:e.id})},type:"image",value:s,render:e=>(0,R.createElement)(Ru,{className:"image-button",onClick:e.open,style:{padding:0}},(0,R.createElement)("img",{src:c||Du[n].icon,alt:c?"":Du[n].name,className:`speech-icon-image wp-image-${s}`}))})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Iu,{value:o||Du[n].name,placeholder:Hu,onChange:e=>t({name:e})}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Fu,null))))},save({attributes:e}){var{name:t,index:o,style:n,position:a,iconstyle:l,icon:r}=e;return Du[o]||(o=0),(0,R.createElement)("div",{className:Yu(o,n,a,l)},(0,R.createElement)("div",{className:"speech-person"},(0,R.createElement)("figure",{className:"speech-icon"},(0,R.createElement)("img",{src:r||Du[o].icon,alt:r?"":Du[o].name,className:"speech-icon-image"})),(0,R.createElement)("div",{className:"speech-name"},(0,R.createElement)(Iu.Content,{value:t||Du[o].name}))),(0,R.createElement)("div",{className:"speech-balloon"},(0,R.createElement)(Fu.Content,null)))}});const{InnerBlocks:$u,RichText:Gu,InspectorControls:Uu}=wp.editor,{PanelBody:Ju,SelectControl:Wu,BaseControl:Xu}=wp.components,Qu=(0,H.__)("こちらをクリックして設定変更。この入力は公開ページで反映されません。",G);(0,z.registerBlockType)("cocoon-blocks/blank-box",{title:(0,H.__)("白抜きボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("コンテンツを囲むだけのブランクボックスを表示します。",G),attributes:{content:{type:"string",selector:"div",default:Qu},style:{type:"string",default:"blank-box"}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,alignment:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Uu,null,(0,R.createElement)(Ju,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Wu,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"blank-box",label:(0,H.__)("デフォルト",G)},{value:"blank-box bb-yellow",label:(0,H.__)("黄色",G)},{value:"blank-box bb-red",label:(0,H.__)("赤色",G)},{value:"blank-box bb-blue",label:(0,H.__)("青色",G)},{value:"blank-box bb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:e.style+U},(0,R.createElement)("span",{className:"box-block-msg"},(0,R.createElement)(Gu,{value:o,placeholder:Qu})),(0,R.createElement)($u,null)))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:e.style+U},(0,R.createElement)($u.Content,null))}});const{InnerBlocks:Ku,RichText:Zu,InspectorControls:em}=wp.editor,{PanelBody:tm,SelectControl:om,BaseControl:nm}=wp.components,am=(0,H.__)("こちらをクリックして設定変更。この入力は公開ページで反映されません。",G);(0,z.registerBlockType)("cocoon-blocks/tab-box",{title:(0,H.__)("タブボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("タブにメッセージ内容を伝えるための文字が書かれているボックスです。",G),attributes:{content:{type:"string",source:"html",selector:"div",default:am},style:{type:"string",default:"blank-box bb-tab bb-check"},color:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,style:n,color:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(em,null,(0,R.createElement)(tm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(om,{label:(0,H.__)("タイプ",G),value:n,onChange:e=>t({style:e}),options:[{value:"blank-box bb-tab bb-check",label:(0,H.__)("チェック",G)},{value:"blank-box bb-tab bb-comment",label:(0,H.__)("コメント",G)},{value:"blank-box bb-tab bb-point",label:(0,H.__)("ポイント",G)},{value:"blank-box bb-tab bb-tips",label:(0,H.__)("ティップス",G)},{value:"blank-box bb-tab bb-hint",label:(0,H.__)("ヒント",G)},{value:"blank-box bb-tab bb-pickup",label:(0,H.__)("ピックアップ",G)},{value:"blank-box bb-tab bb-bookmark",label:(0,H.__)("ブックマーク",G)},{value:"blank-box bb-tab bb-memo",label:(0,H.__)("メモ",G)},{value:"blank-box bb-tab bb-download",label:(0,H.__)("ダウンロード",G)},{value:"blank-box bb-tab bb-break",label:(0,H.__)("ブレイク",G)},{value:"blank-box bb-tab bb-amazon",label:(0,H.__)("Amazon",G)},{value:"blank-box bb-tab bb-ok",label:(0,H.__)("OK",G)},{value:"blank-box bb-tab bb-ng",label:(0,H.__)("NG",G)},{value:"blank-box bb-tab bb-good",label:(0,H.__)("GOOD",G)},{value:"blank-box bb-tab bb-bad",label:(0,H.__)("BAD",G)},{value:"blank-box bb-tab bb-profile",label:(0,H.__)("プロフィール",G)}]}),(0,R.createElement)(om,{label:(0,H.__)("色設定",G),value:a,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("灰色",G)},{value:" bb-yellow",label:(0,H.__)("黄色",G)},{value:" bb-red",label:(0,H.__)("赤色",G)},{value:" bb-blue",label:(0,H.__)("青色",G)},{value:" bb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:e.style+e.color+U},(0,R.createElement)("span",{className:"box-block-msg"},(0,R.createElement)(Zu,{value:o,placeholder:am})),(0,R.createElement)(Ku,null)))},save({attributes:e}){const{content:t}=e;return(0,R.createElement)("div",{className:e.style+e.color+U},(0,R.createElement)(Ku.Content,null))}});const{InnerBlocks:lm,RichText:rm,InspectorControls:cm}=wp.editor,{PanelBody:sm,SelectControl:im,BaseControl:um}=wp.components,mm=(0,H.__)("トグルボックス見出し",G);(0,z.registerBlockType)("cocoon-blocks/toggle-box",{title:(0,H.__)("トグルボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("クリックすることでコンテンツ内容の表示を切り替えることができるボックスです。",G),attributes:{content:{type:"string",selector:"div",default:mm},color:{type:"string",default:"toggle-wrap"},dateID:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,dateID:a}=e;return""==a&&t({dateID:K()}),(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(cm,null,(0,R.createElement)(sm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(im,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"toggle-wrap",label:(0,H.__)("デフォルト",G)},{value:"toggle-wrap tb-yellow",label:(0,H.__)("黄色",G)},{value:"toggle-wrap tb-red",label:(0,H.__)("赤色",G)},{value:"toggle-wrap tb-blue",label:(0,H.__)("青色",G)},{value:"toggle-wrap tb-green",label:(0,H.__)("緑色",G)}]}))),(0,R.createElement)("div",{className:n+U},(0,R.createElement)("input",{id:"toggle-checkbox-"+a,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",for:"toggle-checkbox-"+a},(0,R.createElement)(rm,{value:o,onChange:function(e){t({content:e})},placeholder:mm})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(lm,null))))},save({attributes:e}){const{content:t,color:o,dateID:n}=e;return(0,R.createElement)("div",{className:o+U},(0,R.createElement)("input",{id:"toggle-checkbox-"+n,className:"toggle-checkbox",type:"checkbox"}),(0,R.createElement)("label",{className:"toggle-button",for:"toggle-checkbox-"+n},(0,R.createElement)(rm.Content,{value:t})),(0,R.createElement)("div",{className:"toggle-content"},(0,R.createElement)(lm.Content,null)))}});const{times:bm}=lodash,{InnerBlocks:dm,RichText:pm,InspectorControls:gm}=wp.editor,{PanelBody:fm,SelectControl:vm,BaseControl:_m,Button:ym}=wp.components,hm="caption-box",km=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/caption-box",{title:(0,H.__)("見出しボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックス「見出し」を入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:km},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(gm,null,(0,R.createElement)(fm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(vm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" cb-yellow",label:(0,H.__)("黄色",G)},{value:" cb-red",label:(0,H.__)("赤色",G)},{value:" cb-blue",label:(0,H.__)("青色",G)},{value:" cb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(_m,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},bm(ae.length,(e=>(0,R.createElement)(ym,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:hm+n+U},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(pm,{value:o,onChange:e=>t({content:e}),placeholder:km}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(dm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:hm+o+U},(0,R.createElement)("div",{className:"caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"caption-box-label-text block-box-label-text"},(0,R.createElement)(pm.Content,{value:t}))),(0,R.createElement)("div",{className:"caption-box-content"},(0,R.createElement)(dm.Content,null)))}});const{times:Cm}=lodash,{InnerBlocks:xm,RichText:Em,InspectorControls:Nm}=wp.editor,{PanelBody:wm,SelectControl:Sm,BaseControl:Bm,Button:Tm}=wp.components,zm="tab-caption-box",Am=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/tab-caption-box",{title:(0,H.__)("タブ見出しボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックスに「タブ見出し」を入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:Am},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Nm,null,(0,R.createElement)(wm,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Sm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" tcb-yellow",label:(0,H.__)("黄色",G)},{value:" tcb-red",label:(0,H.__)("赤色",G)},{value:" tcb-blue",label:(0,H.__)("青色",G)},{value:" tcb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Bm,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},Cm(ae.length,(e=>(0,R.createElement)(Tm,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:zm+n+U},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(Em,{value:o,onChange:e=>t({content:e}),placeholder:Am}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(xm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:zm+o+U},(0,R.createElement)("div",{className:"tab-caption-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"tab-caption-box-label-text block-box-label-text"},(0,R.createElement)(Em.Content,{value:t}))),(0,R.createElement)("div",{className:"tab-caption-box-content"},(0,R.createElement)(xm.Content,null)))}});const{times:Pm}=lodash,{InnerBlocks:Fm,RichText:Im,InspectorControls:Vm}=wp.editor,{PanelBody:Om,SelectControl:Rm,BaseControl:Mm,Button:qm}=wp.components,Lm="label-box",Hm=(0,H.__)("見出し",G);(0,z.registerBlockType)("cocoon-blocks/label-box",{title:(0,H.__)("ラベルボックス",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("ボックスに「ラベル見出し」入力できる汎用ボックスです。",G),attributes:{content:{type:"string",selector:"div",default:Hm},color:{type:"string",default:""},icon:{type:"string",default:""}},supports:{inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,icon:a}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Vm,null,(0,R.createElement)(Om,{title:(0,H.__)("スタイル設定",G)},(0,R.createElement)(Rm,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"",label:(0,H.__)("デフォルト",G)},{value:" lb-yellow",label:(0,H.__)("黄色",G)},{value:" lb-red",label:(0,H.__)("赤色",G)},{value:" lb-blue",label:(0,H.__)("青色",G)},{value:" lb-green",label:(0,H.__)("緑色",G)}]}),(0,R.createElement)(Mm,{label:(0,H.__)("アイコン",G)},(0,R.createElement)("div",{className:"icon-setting-buttons"},Pm(ae.length,(e=>(0,R.createElement)(qm,{variant:"secondary",isPrimary:a===ae[e].value,className:ae[e].label,onClick:()=>{t({icon:ae[e].value})}}))))))),(0,R.createElement)("div",{className:Lm+n+U},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(a)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(Im,{value:o,onChange:e=>t({content:e}),placeholder:Hm}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(Fm,null))))},save({attributes:e}){const{content:t,color:o,icon:n}=e;return(0,R.createElement)("div",{className:Lm+o+U},(0,R.createElement)("div",{className:"label-box-label block-box-label"+Z(n)},(0,R.createElement)("span",{className:"label-box-label-text block-box-label-text"},(0,R.createElement)(Im.Content,{value:t}))),(0,R.createElement)("div",{className:"label-box-content"},(0,R.createElement)(Fm.Content,null)))}});const{RichText:jm,InspectorControls:Dm}=wp.editor,{PanelBody:Ym,SelectControl:$m,BaseControl:Gm,TextControl:Um}=wp.components,Jm=" button-block";(0,z.registerBlockType)("cocoon-blocks/button",{title:(0,H.__)("ボタン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("一般的なリンクボタンを作成します。",G),attributes:{content:{type:"string",default:(0,H.__)("ボタン",G)},url:{type:"string",default:""},target:{type:"string",default:"_self"},color:{type:"string",default:"btn btn-red"},size:{type:"string",default:""}},supports:{align:["left","center","right"],customClassName:!0,inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,size:a,url:l,target:r}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Dm,null,(0,R.createElement)(Ym,{title:(0,H.__)("ボタン設定",G)},(0,R.createElement)(Um,{label:(0,H.__)("URL",G),value:l,onChange:e=>t({url:e})}),(0,R.createElement)($m,{label:(0,H.__)("リンクの開き方",G),value:r,onChange:e=>t({target:e}),options:[{value:"_self",label:(0,H.__)("現在のタブで開く",G)},{value:"_blank",label:(0,H.__)("新しいタブで開く",G)}]}),(0,R.createElement)($m,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"btn btn-red",label:(0,H.__)("レッド",G)},{value:"btn btn-pink",label:(0,H.__)("ピンク",G)},{value:"btn btn-purple",label:(0,H.__)("パープル",G)},{value:"btn btn-deep",label:(0,H.__)("ディープパープル",G)},{value:"btn btn-indigo",label:(0,H.__)("インディゴ[紺色]",G)},{value:"btn btn-blue",label:(0,H.__)("ブルー",G)},{value:"btn btn-blue",label:(0,H.__)("ライトブルー",G)},{value:"btn btn-cyan",label:(0,H.__)("シアン",G)},{value:"btn btn-teal",label:(0,H.__)("ティール[緑色がかった青]",G)},{value:"btn btn-green",label:(0,H.__)("グリーン",G)},{value:"btn btn-light-green",label:(0,H.__)("ライトグリーン",G)},{value:"btn btn-lime",label:(0,H.__)("ライム",G)},{value:"btn btn-yellow",label:(0,H.__)("イエロー",G)},{value:"btn btn-amber",label:(0,H.__)("アンバー[琥珀色]",G)},{value:"btn btn-orange",label:(0,H.__)("オレンジ",G)},{value:"btn btn-deep-orange",label:(0,H.__)("ディープオレンジ",G)},{value:"btn btn-brown",label:(0,H.__)("ブラウン",G)},{value:"btn btn-grey",label:(0,H.__)("グレー",G)}]}),(0,R.createElement)($m,{label:(0,H.__)("サイズ",G),value:a,onChange:e=>t({size:e}),options:[{value:"",label:(0,H.__)("小",G)},{value:" btn-m",label:(0,H.__)("中",G)},{value:" btn-l",label:(0,H.__)("大",G)}]}))),(0,R.createElement)("div",{className:Jm},(0,R.createElement)("span",{className:n+a,href:l,target:r},(0,R.createElement)(jm,{value:o,onChange:e=>t({content:e})}))))},save({attributes:e}){const{content:t,color:o,size:n,url:a,target:l}=e;return(0,R.createElement)("div",{className:Jm},(0,R.createElement)("a",{href:a,className:o+n,target:l},(0,R.createElement)(jm.Content,{value:t})))}});const{RichText:Wm,InspectorControls:Xm}=wp.editor,{PanelBody:Qm,SelectControl:Km,BaseControl:Zm,TextareaControl:eb}=wp.components,tb=" button-block";(0,z.registerBlockType)("cocoon-blocks/button-wrap",{title:(0,H.__)("囲みボタン",G),icon:"dismiss",category:G+"-old",description:(0,H.__)("アスリートタグ等のタグを変更できないリンクをボタン化します。",G),attributes:{content:{type:"string",default:(0,H.__)("こちらをクリックしてリンクタグを設定エリア入力してください。この入力は公開ページで反映されません。",G)},tag:{type:"string",default:""},color:{type:"string",default:"btn-wrap btn-wrap-red"},size:{type:"string",default:""}},supports:{align:["left","center","right"],inserter:!1},edit({attributes:e,setAttributes:t}){const{content:o,color:n,size:a,tag:l}=e;return(0,R.createElement)(fe.Fragment,null,(0,R.createElement)(Xm,null,(0,R.createElement)(Qm,{title:(0,H.__)("囲みボタン設定",G)},(0,R.createElement)(eb,{label:(0,H.__)("リンクタグ・ショートコード",G),value:l,onChange:e=>t({tag:e})}),(0,R.createElement)(Km,{label:(0,H.__)("色設定",G),value:n,onChange:e=>t({color:e}),options:[{value:"btn-wrap btn-wrap-red",label:(0,H.__)("レッド",G)},{value:"btn-wrap btn-wrap-pink",label:(0,H.__)("ピンク",G)},{value:"btn-wrap btn-wrap-purple",label:(0,H.__)("パープル",G)},{value:"btn-wrap btn-wrap-deep",label:(0,H.__)("ディープパープル",G)},{value:"btn-wrap btn-wrap-indigo",label:(0,H.__)("インディゴ[紺色]",G)},{value:"btn-wrap btn-wrap-blue",label:(0,H.__)("ブルー",G)},{value:"btn-wrap btn-wrap-blue",label:(0,H.__)("ライトブルー",G)},{value:"btn-wrap btn-wrap-cyan",label:(0,H.__)("シアン",G)},{value:"btn-wrap btn-wrap-teal",label:(0,H.__)("ティール[緑色がかった青]",G)},{value:"btn-wrap btn-wrap-green",label:(0,H.__)("グリーン",G)},{value:"btn-wrap btn-wrap-light-green",label:(0,H.__)("ライトグリーン",G)},{value:"btn-wrap btn-wrap-lime",label:(0,H.__)("ライム",G)},{value:"btn-wrap btn-wrap-yellow",label:(0,H.__)("イエロー",G)},{value:"btn-wrap btn-wrap-amber",label:(0,H.__)("アンバー[琥珀色]",G)},{value:"btn-wrap btn-wrap-orange",label:(0,H.__)("オレンジ",G)},{value:"btn-wrap btn-wrap-deep-orange",label:(0,H.__)("ディープオレンジ",G)},{value:"btn-wrap btn-wrap-brown",label:(0,H.__)("ブラウン",G)},{value:"btn-wrap btn-wrap-grey",label:(0,H.__)("グレー",G)}]}),(0,R.createElement)(Km,{label:(0,H.__)("サイズ",G),value:a,onChange:e=>t({size:e}),options:[{value:"",label:(0,H.__)("小",G)},{value:" btn-wrap-m",label:(0,H.__)("中",G)},{value:" btn-wrap-l",label:(0,H.__)("大",G)}]}))),(0,R.createElement)("span",{className:"button-wrap-msg"},(0,R.createElement)(Wm,{value:o})),(0,R.createElement)("div",{className:n+a+tb,dangerouslySetInnerHTML:{__html:l}}))},save({attributes:e}){const{content:t,color:o,size:n,tag:a}=e;return(0,R.createElement)("div",{className:o+n+tb},(0,R.createElement)(Wm.Content,{value:a}))}});const ob=[],nb=[r,s,t,u,m,e,n,a,l,p,i,b,d,c,g,f,v,_,y,h,k,C,x,E,N,S,w,B,T],ab=e=>{if(!e)return;let{metadata:t,settings:o,name:n}=e,a=0;gbSettings.wpVersion&&(a=gbSettings.wpVersion),a=a.replace(/-.+$/,""),((e,t)=>{const o=P(e),n=P("5.5"),a=o.pop(),l=n.pop(),r=O(o,n);return 0!==r?r:a&&l?O(a.split("."),l.split(".")):a||l?a?-1:1:0})(a)<0?(delete t.name,o={...o,...t}):t&&(0,z.unstable__bootstrapServerSideBlockDefinitions)({[n]:t}),(0,z.registerBlockType)(n,o)};((e=(()=>nb.concat(ob))())=>{e.forEach(ab)})()}()}(); \ No newline at end of file diff --git a/blocks/src/block-universal/caption-box/edit.js b/blocks/src/block-universal/caption-box/edit.js index 3d99fca85..5074d704e 100644 --- a/blocks/src/block-universal/caption-box/edit.js +++ b/blocks/src/block-universal/caption-box/edit.js @@ -134,7 +134,7 @@ export function CaptionBoxEdit( props ) { title={ __( '色設定', THEME_NAME ) } colorSettings={ [ { - label: __( '枠の色', THEME_NAME ), + label: __( 'ボーダー色', THEME_NAME ), onChange: setBorderColor, value: borderColor.color, }, diff --git a/blocks/src/block-universal/label-box/edit.js b/blocks/src/block-universal/label-box/edit.js index b151b56af..0ec2b10aa 100644 --- a/blocks/src/block-universal/label-box/edit.js +++ b/blocks/src/block-universal/label-box/edit.js @@ -134,7 +134,7 @@ export function LabelBoxEdit( props ) { title={ __( '色設定', THEME_NAME ) } colorSettings={ [ { - label: __( '枠の色', THEME_NAME ), + label: __( 'ボーダー色', THEME_NAME ), onChange: setBorderColor, value: borderColor.color, }, diff --git a/blocks/src/block-universal/tab-caption-box/edit.js b/blocks/src/block-universal/tab-caption-box/edit.js index d404d5dcc..67890cf6b 100644 --- a/blocks/src/block-universal/tab-caption-box/edit.js +++ b/blocks/src/block-universal/tab-caption-box/edit.js @@ -137,7 +137,7 @@ export function TabCaptionBoxEdit( props ) { title={ __( '色設定', THEME_NAME ) } colorSettings={ [ { - label: __( '枠の色', THEME_NAME ), + label: __( 'ボーダー色', THEME_NAME ), onChange: setBorderColor, value: borderColor.color, }, diff --git a/blocks/src/block/tab-box/edit.js b/blocks/src/block/tab-box/edit.js index 30d6e1660..4ddefa72a 100644 --- a/blocks/src/block/tab-box/edit.js +++ b/blocks/src/block/tab-box/edit.js @@ -138,7 +138,7 @@ export function TabBoxEdit( props ) { title={ __( '色設定', THEME_NAME ) } colorSettings={ [ { - label: __( '枠の色', THEME_NAME ), + label: __( 'ボーダー色', THEME_NAME ), onChange: setBorderColor, value: borderColor.color, },