File "index.js"

Full Path: /home/lacostenacom/public_html/wp/wp-content/plugins/kubio/build/third-party-blocks/index.js
File size: 39.21 KB
MIME-type: text/plain
Charset: utf-8

(()=>{"use strict";var e={5251:(e,t,o)=>{var s=o(9196),l=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,r=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,o){var s,a={},p=null,u=null;for(s in void 0!==o&&(p=""+o),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,s)&&!n.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===a[s]&&(a[s]=t[s]);return{$$typeof:l,type:e,key:p,ref:u,props:a,_owner:r.current}}t.Fragment=a,t.jsx=p,t.jsxs=p},5893:(e,t,o)=>{e.exports=o(5251)},9196:e=>{e.exports=window.React}},t={};function o(s){var l=t[s];if(void 0!==l)return l.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,o),a.exports}o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{o.r(s);const e=window.wp.apiFetch,t=window.wp.url,l=window.lodash;(0,e.use)(((e,o)=>{var s,a;const i=null==e||null===(s=e.path)||void 0===s||null===(a=s.match(/(.*)\/block-renderer\/core\/(.*?)\?/))||void 0===a?void 0:a[0];if(i&&"get"===e.method.toLowerCase()){const o=(0,t.getQueryArgs)(e.path);(0,l.unset)(o,"attributes.kubio.style"),e.path=(0,t.addQueryArgs)(i,o)}return o(e)}));const a=window.kubio.core,i=window.kubio.colibri,r=window.kubio.styleManager,n=window.wp.i18n,p="widget-box",u={label:(0,n.__)("Widget box","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},{kubioSupport:d}={name:"core/calendar",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_TABLE_HEAD:"widget-table-head",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_TABLE_BODY:"widget-table-body",WIDGET_TODAY:"widget-today"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:".wp-block-calendar, .wp-block-calendar table",usePrefix:!0},"widget-table-head":{selector:"thead th",usePrefix:!0},"widget-table-body":{selector:"td, th",usePrefix:!0},"widget-today":{selector:"#today a, #today",usePrefix:!0}}}},{elementsEnum:E}=d,_=(0,i.extendBlockMeta)(d,{elementsByName:{[p]:u,[E.WIDGET_LINK]:{internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}},[E.WIDGET_TABLE_HEAD]:{internal:!0},[E.WIDGET_TODAY]:{internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}}}}),c=window.kubio.controls,g=window.wp.components;var h=o(5893);const y=()=>{const e=u;return(0,h.jsx)(c.BackgroundSection,{styledElement:e,showPanelWrapper:!1})},T=()=>{const e={type:a.WithDataPathTypes.STYLE,style:p};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e}),(0,h.jsx)(c.BoxShadowWithPath,{path:"boxShadow",...e})]})},b=({styledElement:e=p})=>{const t={type:a.WithDataPathTypes.STYLE,style:e};return(0,h.jsx)(c.HorizontalTextAlignControlWithPath,{label:(0,n.__)("Horizontal align","kubio"),path:"textAlign",...t})},m=()=>{const e={type:a.WithDataPathTypes.STYLE,style:p},t={type:a.WithDataPathTypes.STYLE,style:E.WIDGET_LINK};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...t,state:"hover"}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:E.WIDGET_ALIGN_HOLDER})]})},w=window.wp.element,I={NORMAL:"normal",HOVER:"hover"},x={values:I,options:[{label:(0,n.__)("Normal","kubio"),value:I.NORMAL},{label:(0,n.__)("Hover","kubio"),value:I.HOVER}]},S=()=>{const e={type:a.WithDataPathTypes.STYLE,style:E.WIDGET_TABLE_HEAD},t={type:a.WithDataPathTypes.STYLE,style:E.WIDGET_TABLE_BODY},o={type:a.WithDataPathTypes.STYLE,style:E.WIDGET_TODAY},[s,l]=(0,w.useState)(x.values.NORMAL);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Calendar","kubio"),children:[(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Table head background","kubio"),path:"background.color",...e}),(0,h.jsx)(c.TypographyControlPopupWithPath,{label:(0,n.__)("Table head typography","kubio"),path:"typography",withColor:!0,...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Table borders","kubio"),path:"borderColor",...t}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.ToggleGroup,{options:x.options,value:s,onChange:l}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Today background color","kubio"),path:"background.color",state:s,...o}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Today color","kubio"),path:"typography.color",state:s,...o})]})},D=window.kubio.inspectors,{name:k}={name:"core/calendar",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_TABLE_HEAD:"widget-table-head",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_TABLE_BODY:"widget-table-body",WIDGET_TODAY:"widget-today"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:".wp-block-calendar, .wp-block-calendar table",usePrefix:!0},"widget-table-head":{selector:"thead th",usePrefix:!0},"widget-table-body":{selector:"td, th",usePrefix:!0},"widget-today":{selector:"#today a, #today",usePrefix:!0}}}};(0,a.addStyleSupport)(k,{support:_,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(m,{}),(0,h.jsx)(S,{})]})});const{kubioSupport:W}={name:"core/tag-cloud",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_POST_COUNT:"widget-post-count"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:".wp-block-tag-cloud",usePrefix:!0},"widget-post-count":{selector:"a span",usePrefix:!0}}}},{elementsEnum:P}=W,G=(0,i.extendBlockMeta)(W,{elementsByName:{[p]:u,[P.WIDGET_LINK]:{internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}}}}),N=()=>{a.WithDataPathTypes.STYLE;const e={type:a.WithDataPathTypes.STYLE,style:P.WIDGET_LINK},t={type:a.WithDataPathTypes.STYLE,style:P.WIDGET_POST_COUNT};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",withSize:!1,...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...e,state:"hover"}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{})]})},{name:O}={name:"core/tag-cloud",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_POST_COUNT:"widget-post-count"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:".wp-block-tag-cloud",usePrefix:!0},"widget-post-count":{selector:"a span",usePrefix:!0}}}};(0,a.addStyleSupport)(O,{support:G,stylePanel:()=>(0,h.jsx)(D.StyleInspectorControls,{children:(0,h.jsx)(N,{})})});const{kubioSupport:L}={name:"core/latest-comments",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_EXCERPT:"widget-excerpt",WIDGET_AVATAR:"widget-avatar"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-excerpt":{selector:"&.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p",usePrefix:!0},"widget-avatar":{selector:"&.wp-block-latest-comments .wp-block-latest-comments__comment-avatar",usePrefix:!0},"widget-align":{selector:"&.wp-block-latest-comments",usePrefix:!0}}}},{elementsEnum:A}=L,B=(0,i.extendBlockMeta)(L,{elementsByName:{[p]:u,[A.WIDGET_AVATAR]:{label:(0,n.__)("Widget avatar","kubio"),supports:{styles:[r.StylesEnum.BORDER,r.StylesEnum.SPACING],states:r.StatesPresetsEnum.NONE,filters:{spacing:{supportsPadding:!1}}}},[A.WIDGET_DATE]:{label:(0,n.__)("Widget date","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[A.WIDGET_EXCERPT]:{label:(0,n.__)("Widget excerpt","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[A.WIDGET_LINK]:{label:(0,n.__)("Widget links","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}}}}),j={LINKS:A.WIDGET_LINK,DATE:A.WIDGET_DATE,EXCERPT:A.WIDGET_EXCERPT},R=[{label:(0,n.__)("Links","kubio"),value:j.LINKS},{label:(0,n.__)("Date","kubio"),value:j.DATE},{label:(0,n.__)("Excerpt","kubio"),value:j.EXCERPT}],C=()=>{a.WithDataPathTypes.STYLE;const e={type:a.WithDataPathTypes.STYLE,style:A.WIDGET_LINK},[t,o]=(0,w.useState)(j.LINKS);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.ToggleGroup,{options:R,value:t,onChange:o}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",style:t,type:a.WithDataPathTypes.STYLE}),t!==j.LINKS&&(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",style:t,type:a.WithDataPathTypes.STYLE}),t===j.LINKS&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...e,state:"hover"})]}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:A.WIDGET_ALIGN_HOLDER})]})},f=()=>{const e={type:a.WithDataPathTypes.STYLE,style:A.WIDGET_AVATAR};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Avatar","kubio"),children:[(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Image size","kubio"),path:["width","height"],min:0,max:100,...e}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e})]})},{name:v}={name:"core/latest-comments",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_EXCERPT:"widget-excerpt",WIDGET_AVATAR:"widget-avatar"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-excerpt":{selector:"&.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p",usePrefix:!0},"widget-avatar":{selector:"&.wp-block-latest-comments .wp-block-latest-comments__comment-avatar",usePrefix:!0},"widget-align":{selector:"&.wp-block-latest-comments",usePrefix:!0}}}};(0,a.addStyleSupport)(v,{support:B,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(C,{}),(0,h.jsx)(f,{})]})});const{kubioSupport:H}={name:"core/latest-posts",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_AUTHOR_NAME:"widget-author",WIDGET_CONTENT:"widget-content",WIDGET_LIST_ITEM:"widget-item",WIDGET_IMAGE:"widget-image"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-author":{selector:".wp-block-latest-posts__post-author",usePrefix:!0},"widget-content":{selector:".wp-block-latest-posts__post-excerpt",usePrefix:!0},"widget-align":{selector:".wp-block-latest-posts",usePrefix:!0},"widget-item":{selector:"li",usePrefix:!0},"widget-image":{selector:".wp-block-latest-posts__featured-image",usePrefix:!0}}}},{elementsEnum:Y}=H,K=(0,i.extendBlockMeta)(H,{elementsByName:{[p]:u,[Y.WIDGET_LIST_ITEM]:{label:(0,n.__)("Widget list item","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Y.WIDGET_IMAGE]:{label:(0,n.__)("Widget featured image","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Y.WIDGET_AUTHOR_NAME]:{label:(0,n.__)("Widget author name","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Y.WIDGET_DATE]:{label:(0,n.__)("Widget date","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Y.WIDGET_CONTENT]:{label:(0,n.__)("Widget post content","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Y.WIDGET_LINK]:{label:(0,n.__)("Widget links","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}}}}),U={LINKS:Y.WIDGET_LINK,DATE:Y.WIDGET_DATE,AUTHOR:Y.WIDGET_AUTHOR_NAME,CONTENT:Y.WIDGET_CONTENT},M=[{label:(0,n.__)("Links","kubio"),value:U.LINKS},{label:(0,n.__)("Date","kubio"),value:U.DATE},{label:(0,n.__)("Author name","kubio"),value:U.AUTHOR},{label:(0,n.__)("Content","kubio"),value:U.CONTENT}],z=()=>{a.WithDataPathTypes.STYLE;const e={type:a.WithDataPathTypes.STYLE,style:Y.WIDGET_LINK},[t,o]=(0,w.useState)(U.LINKS);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.ToggleGroup,{options:M,value:t,onChange:o}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",style:t,type:a.WithDataPathTypes.STYLE}),t!==U.LINKS&&(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",style:t,type:a.WithDataPathTypes.STYLE}),t===U.LINKS&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...e,state:"hover"})]}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{})]})},X=()=>{const e={type:a.WithDataPathTypes.STYLE,style:Y.WIDGET_LIST_ITEM};return(0,h.jsx)(g.PanelBody,{title:(0,n.__)("Widget List","kubio"),children:(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e})})},V=()=>{const e={type:a.WithDataPathTypes.STYLE,style:Y.WIDGET_IMAGE};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Featured Image","kubio"),children:[(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e}),(0,h.jsx)(c.BoxShadowWithPath,{path:"boxShadow",...e})]})},{name:F}={name:"core/latest-posts",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_AUTHOR_NAME:"widget-author",WIDGET_CONTENT:"widget-content",WIDGET_LIST_ITEM:"widget-item",WIDGET_IMAGE:"widget-image"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-author":{selector:".wp-block-latest-posts__post-author",usePrefix:!0},"widget-content":{selector:".wp-block-latest-posts__post-excerpt",usePrefix:!0},"widget-align":{selector:".wp-block-latest-posts",usePrefix:!0},"widget-item":{selector:"li",usePrefix:!0},"widget-image":{selector:".wp-block-latest-posts__featured-image",usePrefix:!0}}}};(0,a.addStyleSupport)(F,{support:K,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(z,{}),(0,h.jsx)(X,{}),(0,h.jsx)(V,{})]})});const{kubioSupport:Q}={name:"core/page-list",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:"&.wp-block-page-list",usePrefix:!0},"widget-item":{selector:"&.wp-block-page-list li",usePrefix:!0},"widget-list":{selector:"&.wp-block-page-list",usePrefix:!0}}}},{elementsEnum:$}=Q,q=(0,i.extendBlockMeta)(Q,{elementsByName:{[p]:u,[$.WIDGET_LIST_ITEM]:{label:(0,n.__)("Widget list item","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}},selector:"li"},[$.WIDGET_LINK]:{internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}}}}),J=()=>{const e={type:a.WithDataPathTypes.STYLE,style:p},t={type:a.WithDataPathTypes.STYLE,style:$.WIDGET_LINK};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...t,state:"hover"}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:$.WIDGET_ALIGN_HOLDER})]})},Z=(0,a.withComputedData)(((e,t)=>({toggleBullets:o=>{e.setStyle("listStyle",o.currentTarget.checked?"disc":"none",{styledComponent:t.styledElement}),e.setStyle("padding.left",o.currentTarget.checked?"revert":{value:0,unit:"px"},{styledComponent:t.listElement})},listStyle:e.getStyle("listStyle","default",{styledComponent:t.styledElement})})))((({computed:e,styledElement:t})=>{const{toggleBullets:o,listStyle:s}=e,l={type:a.WithDataPathTypes.STYLE,style:t};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget List","kubio"),children:[(0,h.jsx)(c.InlineLabeledControl,{label:(0,n.__)("Show bullets","kubio"),children:(0,h.jsx)(g.FormToggle,{label:(0,n.__)("Show bullets","kubio"),checked:"none"!==s,onChange:o})}),(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("List offset","kubio"),path:"margin.bottom",min:0,max:50,withReset:!0,...l}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...l})]})})),{name:ee}={name:"core/page-list",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:"&.wp-block-page-list",usePrefix:!0},"widget-item":{selector:"&.wp-block-page-list li",usePrefix:!0},"widget-list":{selector:"&.wp-block-page-list",usePrefix:!0}}}};(0,a.addStyleSupport)(ee,{support:q,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(J,{}),(0,h.jsx)(Z,{styledElement:$.WIDGET_LIST_ITEM,listElement:$.WIDGET_LIST})]})});const{kubioSupport:te}={name:"core/categories",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list",WIDGET_DROPDOWN:"widget-dropdown"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:"&.wp-block-categories",usePrefix:!0},"widget-item":{selector:"&.wp-block-categories li",usePrefix:!0},"widget-list":{selector:"&.wp-block-categories",usePrefix:!0},"widget-dropdown":{selector:"&.wp-block-categories > select",usePrefix:!0}}}},{elementsEnum:oe}=te,se=(0,i.extendBlockMeta)(te,{elementsByName:{[p]:u,[oe.WIDGET_LIST_ITEM]:{label:(0,n.__)("Widget list item","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[oe.WIDGET_DROPDOWN]:{label:(0,n.__)("Widget dropdown","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1},[r.StylesEnum.SPACING]:{supportsMargin:!1}}}},[oe.WIDGET_ALIGN_HOLDER]:{label:(0,n.__)("Widget align","kubio"),internal:!0},[oe.WIDGET_LINK]:{label:(0,n.__)("Link","kubio"),internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}},[oe.WIDGET_LIST]:{selector:"ul"}}}),le=()=>{const e={type:a.WithDataPathTypes.STYLE,style:p},t={type:a.WithDataPathTypes.STYLE,style:oe.WIDGET_LINK};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...t,state:"hover"}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:oe.WIDGET_ALIGN_HOLDER})]})},ae=(0,a.withComputedData)(((e,t)=>({setWidthAuto:()=>{e.setStyle("width","auto",{styledComponent:t.styledElement})},width:e.getStyle("width","auto",{styledComponent:t.styledElement})})))((({computed:e})=>{const t={type:a.WithDataPathTypes.STYLE,style:oe.WIDGET_DROPDOWN},o="default",s="custom",l=[{label:(0,n.__)("Default","kubio"),value:o},{label:(0,n.__)("Custom","kubio"),value:s}],{setWidthAuto:i,width:r}=e,[p,u]=(0,w.useState)("auto"===r?o:s);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Dropdown","kubio"),children:[(0,h.jsx)(c.ToggleGroup,{label:(0,n.__)("Width","kubio"),options:l,value:p,onChange:e=>{u(e),e===o&&i()}}),p===s&&(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Custom width","kubio"),path:"width",units:["px","%"],min:{px:0,"%":0},max:{px:500,"%":100},...t}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...t})]})})),ie=(0,a.withComputedData)((e=>({isDropdown:e.getAttribute("displayAsDropdown",!1)})))((({computed:e})=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(le,{}),e.isDropdown?(0,h.jsx)(ae,{styledElement:oe.WIDGET_DROPDOWN}):(0,h.jsx)(Z,{styledElement:oe.WIDGET_LIST_ITEM,listElement:oe.WIDGET_LIST})]}))),{name:re}={name:"core/categories",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list",WIDGET_DROPDOWN:"widget-dropdown"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-align":{selector:"&.wp-block-categories",usePrefix:!0},"widget-item":{selector:"&.wp-block-categories li",usePrefix:!0},"widget-list":{selector:"&.wp-block-categories",usePrefix:!0},"widget-dropdown":{selector:"&.wp-block-categories > select",usePrefix:!0}}}};(0,a.addStyleSupport)(re,{support:se,stylePanel:ie});const{kubioSupport:ne}={name:"core/archives",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list",WIDGET_DROPDOWN:"widget-dropdown"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"&.wp-block-archives a",usePrefix:!0},"widget-align":{selector:"&.wp-block-archives",usePrefix:!0},"widget-item":{selector:"&.wp-block-archives li",usePrefix:!0},"widget-list":{selector:"&.wp-block-archives-list",usePrefix:!0},"widget-dropdown":{selector:"&.wp-block-archives-dropdown select",usePrefix:!0}}}},{elementsEnum:pe}=ne,ue=(0,i.extendBlockMeta)(ne,{elementsByName:{[p]:u,[pe.WIDGET_LIST_ITEM]:{label:(0,n.__)("Widget list item","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}},selector:"li"},[pe.WIDGET_DROPDOWN]:{label:(0,n.__)("Widget dropdown","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}},selector:"select"},[pe.WIDGET_LINK]:{label:(0,n.__)("Link","kubio"),internal:!0,supports:{states:r.StatesPresetsEnum.BASIC}},[pe.WIDGET_LIST]:{selector:"ul"}}}),de=()=>{const e={type:a.WithDataPathTypes.STYLE,style:p},t={type:a.WithDataPathTypes.STYLE,style:pe.WIDGET_LINK};return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...t}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...t,state:"hover"}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:pe.WIDGET_ALIGN_HOLDER})]})},Ee=(0,a.withComputedData)(((e,t)=>({setWidthAuto:()=>{e.setStyle("width","auto",{styledComponent:t.styledElement})},width:e.getStyle("width","auto",{styledComponent:t.styledElement})})))((({computed:e})=>{const t={type:a.WithDataPathTypes.STYLE,style:pe.WIDGET_DROPDOWN},o="default",s="custom",l=[{label:(0,n.__)("Default","kubio"),value:o},{label:(0,n.__)("Custom","kubio"),value:s}],{setWidthAuto:i,width:r}=e,[p,u]=(0,w.useState)("auto"===r?o:s);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Dropdown","kubio"),children:[(0,h.jsx)(c.ToggleGroup,{label:(0,n.__)("Width","kubio"),options:l,value:p,onChange:e=>{u(e),e===o&&i()}}),p===s&&(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Custom width","kubio"),path:"width",units:["px","%"],min:{px:0,"%":0},max:{px:500,"%":100},...t}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...t})]})})),_e=(0,a.withComputedData)((e=>({isDropdown:e.getAttribute("displayAsDropdown",!1)})))((({computed:e})=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(de,{}),e.isDropdown?(0,h.jsx)(Ee,{styledElement:pe.WIDGET_DROPDOWN}):(0,h.jsx)(Z,{styledElement:pe.WIDGET_LIST_ITEM,listElement:pe.WIDGET_LIST})]}))),{name:ce}={name:"core/archives",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_LIST_ITEM:"widget-item",WIDGET_LIST:"widget-list",WIDGET_DROPDOWN:"widget-dropdown"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"&.wp-block-archives a",usePrefix:!0},"widget-align":{selector:"&.wp-block-archives",usePrefix:!0},"widget-item":{selector:"&.wp-block-archives li",usePrefix:!0},"widget-list":{selector:"&.wp-block-archives-list",usePrefix:!0},"widget-dropdown":{selector:"&.wp-block-archives-dropdown select",usePrefix:!0}}}};(0,a.addStyleSupport)(ce,{support:ue,stylePanel:_e});const{kubioSupport:ge}={name:"core/search",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_INPUT:"widget-input",WIDGET_BUTTON:"widget-button"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-align":{selector:"&.wp-block-search",usePrefix:!0},"widget-input":{selector:"&.wp-block-search.wp-block-search__button-outside .wp-block-search__input, &.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper",usePrefix:!0},"widget-button":{selector:"&.wp-block-search .wp-block-search__button",usePrefix:!0}}}},{elementsEnum:he}=ge,ye=(0,i.extendBlockMeta)(ge,{elementsByName:{[p]:u,[he.WIDGET_INPUT]:{label:(0,n.__)("Input","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:["normal","hover","focus"]}},[he.WIDGET_BUTTON]:{label:(0,n.__)("Button","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[he.WIDGET_ALIGN_HOLDER]:{label:(0,n.__)("Widget align","kubio"),internal:!0}}}),Te=e=>(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{})]}),be=()=>{const e={type:a.WithDataPathTypes.STYLE,style:he.WIDGET_BUTTON},t="normal",[o,s]=(0,w.useState)(t),l=[{value:t,label:(0,n.__)("Normal","kubio")},{value:"hover",label:(0,n.__)("Hover","kubio")}];return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Button Style","kubio"),children:[(0,h.jsx)(c.ToggleGroup,{options:l,value:o,onChange:e=>s(e)}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",...e,state:o}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Background color","kubio"),path:"background.color",...e,state:o}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Border color","kubio"),path:"borderColor",state:o,...e}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Button width","kubio"),max:200,path:"width",...e}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e,withColor:!1}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",withLineHeight:!1,...e})]})},me=()=>{const e={type:a.WithDataPathTypes.STYLE,style:he.WIDGET_INPUT},t="normal",[o,s]=(0,w.useState)(t),l=[{value:t,label:(0,n.__)("Normal","kubio")},{value:"hover",label:(0,n.__)("Hover","kubio")}];return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Input Style","kubio"),children:[(0,h.jsx)(c.ToggleGroup,{options:l,value:o,onChange:e=>s(e)}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"color",state:o,showReset:!0,...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Background color","kubio"),path:"background.color",state:o,...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:o,...e}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e,withColor:!1}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",type:a.WithDataPathTypes.STYLE,withLineHeight:!1,...e})]})},{name:we}={name:"core/search",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_INPUT:"widget-input",WIDGET_BUTTON:"widget-button"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-align":{selector:"&.wp-block-search",usePrefix:!0},"widget-input":{selector:"&.wp-block-search.wp-block-search__button-outside .wp-block-search__input, &.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper",usePrefix:!0},"widget-button":{selector:"&.wp-block-search .wp-block-search__button",usePrefix:!0}}}};(0,a.addStyleSupport)(we,{support:ye,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(Te,{}),(0,h.jsx)(me,{}),(0,h.jsx)(be,{})]})});const{kubioSupport:Ie}={name:"core/social-links",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_ICON:"widget-icon",WIDGET_ICON_SVG:"widget-icon-svg",WIDGET_LINK:"widget-link"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-align":{selector:"&.wp-block-social-links",usePrefix:!0},"widget-icon":{selector:"&.wp-block-social-links .wp-block-social-link",usePrefix:!0},"widget-link":{selector:"&.wp-block-social-links .wp-block-social-link a",usePrefix:!0},"widget-icon-svg":{selector:"&.wp-block-social-links .wp-block-social-link svg",usePrefix:!0}}}},{elementsEnum:xe}=Ie,Se=(0,i.extendBlockMeta)(Ie,{elementsByName:{[p]:u,[xe.WIDGET_ALIGN_HOLDER]:{label:(0,n.__)("Align","kubio"),internal:!0},[xe.WIDGET_ICON]:{label:(0,n.__)("Icon","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[xe.WIDGET_ICON_SVG]:{label:(0,n.__)("SVG","kubio"),internal:!0},[xe.WIDGET_ICON_LINK]:{label:(0,n.__)("Link","kubio"),internal:!0}}}),De=()=>(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:xe.WIDGET_ALIGN_HOLDER})]}),ke={type:a.WithDataPathTypes.STYLE,style:xe.WIDGET_ICON},We={type:a.WithDataPathTypes.STYLE,style:xe.WIDGET_ICON_SVG},Pe={type:a.WithDataPathTypes.STYLE,style:p},Ge=()=>(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Icons","kubio"),children:[(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Icon size","kubio"),max:100,path:"size",allowReset:!0,...We}),(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Icon spacing","kubio"),max:100,path:"gap",allowReset:!0,...Pe}),(0,h.jsx)(c.RangeWithUnitWithPath,{label:(0,n.__)("Icon padding","kubio"),max:100,path:["padding.top","padding.bottom","padding.left","padding.right"],allowReset:!0,...ke}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...ke})]}),{name:Ne}={name:"core/social-links",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_ICON:"widget-icon",WIDGET_ICON_SVG:"widget-icon-svg",WIDGET_LINK:"widget-link"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-align":{selector:"&.wp-block-social-links",usePrefix:!0},"widget-icon":{selector:"&.wp-block-social-links .wp-block-social-link",usePrefix:!0},"widget-link":{selector:"&.wp-block-social-links .wp-block-social-link a",usePrefix:!0},"widget-icon-svg":{selector:"&.wp-block-social-links .wp-block-social-link svg",usePrefix:!0}}}};(0,a.addStyleSupport)(Ne,{support:Se,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(De,{}),(0,h.jsx)(Ge,{})]})});const{kubioSupport:Oe}={name:"core/rss",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_AUTHOR_NAME:"widget-author",WIDGET_CONTENT:"widget-content",WIDGET_LIST_ITEM:"widget-item"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-author":{selector:"span.wp-block-rss__item-author",usePrefix:!0},"widget-content":{selector:"div.wp-block-rss__item-excerpt",usePrefix:!0},"widget-align":{selector:"&.wp-block-rss",usePrefix:!0},"widget-item":{selector:"li",usePrefix:!0}}}},{elementsEnum:Le}=Oe,Ae=(0,i.extendBlockMeta)(Oe,{elementsByName:{[p]:u,[Le.WIDGET_LIST_ITEM]:{label:(0,n.__)("Widget list item","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Le.WIDGET_AUTHOR_NAME]:{label:(0,n.__)("Widget author name","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Le.WIDGET_DATE]:{label:(0,n.__)("Widget date","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Le.WIDGET_CONTENT]:{label:(0,n.__)("Widget post content","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.BORDER,r.StylesEnum.SPACING,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.NONE,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}},[Le.WIDGET_LINK]:{label:(0,n.__)("Widget links","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY],states:r.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!1}}}}}}),Be={LINKS:Le.WIDGET_LINK,DATE:Le.WIDGET_DATE,AUTHOR:Le.WIDGET_AUTHOR_NAME,CONTENT:Le.WIDGET_CONTENT},je=[{label:(0,n.__)("Links","kubio"),value:Be.LINKS},{label:(0,n.__)("Date","kubio"),value:Be.DATE},{label:(0,n.__)("Author name","kubio"),value:Be.AUTHOR},{label:(0,n.__)("Excerpt","kubio"),value:Be.CONTENT}],Re=()=>{const e={type:a.WithDataPathTypes.STYLE,style:Le.WIDGET_LINK},[t,o]=(0,w.useState)(Be.LINKS);return(0,h.jsxs)(g.PanelBody,{title:(0,n.__)("Widget Box","kubio"),children:[(0,h.jsx)(y,{}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(c.ToggleGroup,{options:je,value:t,onChange:o}),(0,h.jsx)(c.TypographyControlPopupWithPath,{path:"typography",style:t,type:a.WithDataPathTypes.STYLE}),t!==Be.LINKS&&(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Text color","kubio"),path:"typography.color",style:t,type:a.WithDataPathTypes.STYLE}),t===Be.LINKS&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link color","kubio"),path:"typography.color",...e}),(0,h.jsx)(c.ColorWithPath,{label:(0,n.__)("Link hover color","kubio"),path:"typography.color",...e,state:"hover"})]}),(0,h.jsx)(c.SeparatorHorizontalLine,{}),(0,h.jsx)(T,{}),(0,h.jsx)(b,{styledElement:Le.WIDGET_ALIGN_HOLDER})]})},Ce=()=>{const e={type:a.WithDataPathTypes.STYLE,style:Le.WIDGET_LIST_ITEM};return(0,h.jsx)(g.PanelBody,{title:(0,n.__)("Widget List","kubio"),children:(0,h.jsx)(c.BordersAndRadiusWithPath,{path:"border",...e})})},{name:fe}={name:"core/rss",kubioSupport:{elementsEnum:{WIDGET_BOX:"widget-box",WIDGET_LINK:"widget-link",WIDGET_ALIGN_HOLDER:"widget-align",WIDGET_DATE:"widget-date",WIDGET_AUTHOR_NAME:"widget-author",WIDGET_CONTENT:"widget-content",WIDGET_LIST_ITEM:"widget-item"},elementsByName:{"widget-box":{default:!0,wrapper:!0},"widget-link":{selector:"a",usePrefix:!0},"widget-date":{selector:"time",usePrefix:!0},"widget-author":{selector:"span.wp-block-rss__item-author",usePrefix:!0},"widget-content":{selector:"div.wp-block-rss__item-excerpt",usePrefix:!0},"widget-align":{selector:"&.wp-block-rss",usePrefix:!0},"widget-item":{selector:"li",usePrefix:!0}}}};(0,a.addStyleSupport)(fe,{support:Ae,stylePanel:()=>(0,h.jsxs)(D.StyleInspectorControls,{children:[(0,h.jsx)(Re,{}),(0,h.jsx)(Ce,{})]})});const{kubioSupport:ve}={name:"core/post-content",kubioSupport:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{default:!0,wrapper:!0}}}},{elementsEnum:He}=ve,Ye=(0,i.extendBlockMeta)(ve,{elementsByName:{[He.CONTAINER]:{label:(0,n.__)("Container","kubio"),supports:{styles:[r.StylesEnum.BACKGROUND,r.StylesEnum.SPACING,r.StylesEnum.BORDER,r.StylesEnum.TYPOGRAPHY_FOR_HEADING],states:r.StatesPresetsEnum.BASIC,separator:!0}}}}),{name:Ke}={name:"core/post-content",kubioSupport:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{default:!0,wrapper:!0}}}};(0,a.addStyleSupport)(Ke,{support:Ye})})(),(window.kubio=window.kubio||{}).thirdPartyBlocks=s})();