"use strict";(globalThis.webpackChunkgutenkit_blocks_addon=globalThis.webpackChunkgutenkit_blocks_addon||[]).push([[9587],{9587(e,n,o){o.r(n),o.d(n,{default:()=>c});var a=o(7723),t=o(6087),l=o(5573),i=o(790);const d=(0,i.jsx)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(l.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),s=(0,i.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(l.Path,{d:"M7 16.5h10V15H7v1.5zm0-9V9h10V7.5H7z"})});var r=o(6427);const c=(0,t.memo)(({attributes:e,setAttributes:n,device:o,advancedControl:t})=>{const{GkitColor:l,GkitIconPicker:c,GkitPanelBody:k,GkitRepeater:g,GkitResponsive:u,GkitTabs:b,GkitTypography:h,GkitBackgrounGroup:_,GkitRangeUnit:x,GkitAdvancedUrl:v,GkitChoose:m,GkitSelect:p,GkitBoxControl:j}=window.GkitComponents,{gkitResponsiveValue:C,useFontFamilyinBlock:w,responsiveHelper:y}=window.GkitHelpers;return w([e?.headerTypography]),(0,i.jsx)(b,{type:"top-level",tabs:[{name:"content",title:(0,a.__)("Content","gutenkit-blocks-addon")},{name:"style",title:(0,a.__)("Style","gutenkit-blocks-addon")},{name:"advanced",title:(0,a.__)("Advanced","gutenkit-blocks-addon")}],children:w=>{switch(w.name){case"content":return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(k,{title:(0,a.__)("Header Info","gutenkit-blocks-addon"),initialOpen:!0,children:(0,i.jsxs)(g,{label:"Content",onChange:e=>n({gkitHeaderInfoItems:e}),repeaterFields:e?.gkitHeaderInfoItems,itemLabelName:"headerTitle",children:[(0,i.jsx)(c,{label:(0,a.__)("Icon","gutenkit-blocks-addon"),name:"headerIcon",default:e?.gkitHeaderInfoItems[0]?.headerIcon}),(0,i.jsx)(p,{label:(0,a.__)("Icon Position","gutenkit-blocks-addon"),options:[{label:(0,a.__)("Before","gutenkit-blocks-addon"),value:"row"},{label:(0,a.__)("After","gutenkit-blocks-addon"),value:"row-reverse"}],value:e?.headerIconAlign,name:"headerIconAlign",default:"row"}),(0,i.jsx)(v,{label:(0,a.__)("Link","gutenkit-blocks-addon"),name:"headerLink",default:"#",suggestionsQuery:{type:"post",subtype:"page"}})]})})});case"style":return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(k,{title:(0,a.__)("Header Info","gutenkit-blocks-addon"),initialOpen:!0,children:[(0,i.jsx)(u,{children:(0,i.jsx)(m,{label:(0,a.__)("Display Style","gutenkit-blocks-addon"),options:[{label:(0,a.__)("Block","gutenkit-blocks-addon"),value:"column",icon:d},{label:(0,a.__)("Inline","gutenkit-blocks-addon"),value:"row",icon:s}],values:C(e,"headerInfoLayOut",o),onChange:e=>y("headerInfoLayOut",e,o,n)})}),(0,i.jsx)(h,{label:(0,a.__)("Typography","gutenkit-blocks-addon"),value:e?.headerTypography,onChange:e=>n({headerTypography:e})}),(0,i.jsx)(u,{children:(0,i.jsx)(x,{label:(0,a.__)("Icon Size","gutenkit-blocks-addon"),value:C(e,"iconSize",o),onChange:e=>y("iconSize",e,o,n),units:{px:{min:0,max:100,step:1},"%":{min:0,max:100,step:1}}})}),(0,i.jsx)(x,{label:(0,a.__)("Icon Spacing","gutenkit-blocks-addon"),value:e?.iconSpacing,onChange:e=>n({iconSpacing:e}),units:{px:{min:0,max:100},"%":{min:0,max:100,step:1}}}),(0,i.jsx)(u,{children:(0,i.jsx)(x,{label:(0,a.__)("Gap Between","gutenkit-blocks-addon"),value:C(e,"gapBetween",o),onChange:e=>y("gapBetween",e,o,n),units:{px:{min:0,max:100},"%":{min:0,max:100,step:1}}})}),(0,i.jsx)(r.__experimentalDivider,{}),(0,i.jsx)(b,{type:"normal",tabs:[{name:"normal-background",title:(0,a.__)("Normal","gutenkit-blocks-addon")},{name:"hover-background",title:(0,a.__)("Hover","gutenkit-blocks-addon")}],children:o=>"normal-background"===o.name?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l,{label:(0,a.__)("Text Color","gutenkit-blocks-addon"),onChange:e=>n({textColor:e}),value:e?.textColor}),(0,i.jsx)(l,{label:(0,a.__)("Icon Color","gutenkit-blocks-addon"),onChange:e=>n({iconColor:e}),value:e?.iconColor}),(0,i.jsx)(_,{label:(0,a.__)("Background","gutenkit-blocks-addon"),value:e?.background,onChange:e=>n({background:e}),exclude:{video:!0,image:!0}})]}):"hover-background"===o.name?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l,{label:(0,a.__)("Text Color","gutenkit-blocks-addon"),onChange:e=>n({textHoverColor:e}),value:e?.textHoverColor}),(0,i.jsx)(l,{label:(0,a.__)("Icon Color","gutenkit-blocks-addon"),onChange:e=>n({iconHoverColor:e}),value:e?.iconHoverColor}),(0,i.jsx)(_,{label:(0,a.__)("Background","gutenkit-blocks-addon"),onChange:e=>n({backgroundHover:e}),value:e?.backgroundHover,exclude:{video:!0,image:!0}})]}):void 0}),(0,i.jsx)(r.__experimentalDivider,{}),(0,i.jsx)(u,{children:(0,i.jsx)(j,{label:(0,a.__)("Padding","gutenkit-blocks-addon"),values:C(e,"headerPadding",o),onChange:e=>y("headerPadding",e,o,n)})})]})});case"advanced":return(0,i.jsx)(i.Fragment,{children:t})}}})})}}]);