"use strict";(globalThis.webpackChunkgutenkit_blocks_addon=globalThis.webpackChunkgutenkit_blocks_addon||[]).push([[120],{120(e,n,t){t.r(n),t.d(n,{default:()=>l});var i=t(7723),o=t(6087),a=t(6427),d=t(7143),u=t(3832),s=t(790);const l=(0,o.memo)(({attributes:e,setAttributes:n,clientId:t,advancedControl:o,device:l,isProActive:r})=>{const{hasInnerBlocks:c,isNested:k}=(0,d.useSelect)(e=>{const{getBlockOrder:n,getBlockParents:i,getBlockName:o}=e("core/block-editor");return{hasInnerBlocks:n(t).length>0,isNested:"gutenkit/nav-menu-submenu"===o(i(t).at(-1))}},[t]),{GkitPanelBody:g,GkitSwitcher:b,GkitChoose:m,GkitTabs:_,ChildToParent:x,GkitIconPicker:h,GkitRangeUnit:S,GkitResponsive:p,GkitAdvancedUrl:I,GkitBoxControl:v,GkitBorderControl:M}=window.GkitComponents,{gkitResponsiveValue:j,responsiveHelper:C}=window.GkitHelpers;return(0,s.jsxs)("div",{className:"gkit-tabs-container",children:[(0,s.jsx)(x,{clientId:t}),(0,s.jsx)(_,{type:"top-level",tabs:[{name:"content",title:(0,i.__)("Content","gutenkit-blocks-addon")},{name:"advanced",title:(0,i.__)("Advanced","gutenkit-blocks-addon")}],children:t=>{switch(t?.name){case"content":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g,{title:(0,i.__)("Content","gutenkit-blocks-addon"),initialOpen:!0,children:[e?.gkitMenuItemCustomLink?.url&&(0,s.jsx)(I,{label:(0,i.__)("Menu Link","gutenkit-blocks-addon"),value:e?.gkitMenuItemCustomLink,onChange:e=>{n({gkitMenuItemCustomLink:{...e,url:e.url?(0,u.safeDecodeURI)(e.url):""}})}}),(0,s.jsx)(a.__experimentalDivider,{}),(0,s.jsx)(b,{label:(0,i.__)("Add SubMenu?","gutenkit-blocks-addon"),value:e?.gkitAddSubMenu,onChange:e=>{n({gkitAddSubMenu:e})}}),e?.gkitAddSubMenu&&!c&&!k&&(0,s.jsx)(m,{label:(0,i.__)("Submenu Type","gutenkit-blocks-addon"),value:e?.gkitSubMenuType,options:[{label:(0,i.__)("Dropdown","gutenkit-blocks-addon"),value:"dropdown"},{label:(0,i.__)("Mega Menu","gutenkit-blocks-addon"),value:"megamenu",isPro:!r}],onChange:e=>n({gkitSubMenuType:e}),isToggle:!1})]}),e?.gkitAddSubMenu&&(0,s.jsxs)(g,{title:(0,i.__)("Submenu Indicator","gutenkit-blocks-addon"),children:[(0,s.jsx)(h,{label:(0,i.__)("Submenu Indicator Icon","gutenkit-blocks-addon"),value:e?.gkitSubMenuIndicator,onChange:e=>n({gkitSubMenuIndicator:e})}),(0,s.jsx)(p,{children:(0,s.jsx)(S,{label:(0,i.__)("Indicator Icon Size","gutenkit-blocks-addon"),value:j(e,"gkitSubMenuIndicatorIconSize",l),onChange:e=>C("gkitSubMenuIndicatorIconSize",e,l,n),units:{px:{min:0,max:100,step:1},em:{min:0,max:100,step:1},rem:{min:0,max:100,step:1}}})}),(0,s.jsx)(p,{children:(0,s.jsx)(S,{label:(0,i.__)("Indicator Left Space","gutenkit-blocks-addon"),value:j(e,"gkitSubMenuIndicatorLeftSpacing",l),onChange:e=>C("gkitSubMenuIndicatorLeftSpacing",e,l,n),units:{px:{min:0,max:100},em:{min:0,max:100,step:1},rem:{min:0,max:100,step:1}}})}),(0,s.jsx)(p,{children:(0,s.jsx)(M,{label:(0,i.__)("Border","gutenkit-blocks-addon"),onChange:e=>C("gkitSubMenuIndicatorBorder",e,l,n),value:j(e,"gkitSubMenuIndicatorBorder",l),className:"gutenkit-border-box-control"})}),(0,s.jsx)(p,{children:(0,s.jsx)(v,{label:(0,i.__)("Padding","gutenkit-blocks-addon"),values:j(e,"gkitSubMenuIndicatorPadding",l),onChange:e=>C("gkitSubMenuIndicatorPadding",e,l,n)})}),(0,s.jsx)(p,{children:(0,s.jsx)(v,{label:(0,i.__)("Border Radius","gutenkit-blocks-addon"),values:j(e,"gkitSubMenuIndicatorBorderRadius",l),onChange:e=>C("gkitSubMenuIndicatorBorderRadius",e,l,n)})})]})]});case"advanced":return(0,s.jsx)(s.Fragment,{children:o})}}})]})})}}]);