!function(){"use strict";var e,l={427:function(e){e.exports=window.wp.components},573:function(e){e.exports=window.wp.primitives},652:function(e,l,n){var t=n(997),a=n(723),i=n(715),o=n(427),r=n(573),s=n(790),u=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),b=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});(0,t.registerBlockType)("blynex/responsive-nav-menu",{deprecated:[{attributes:{menuTitle:{type:"string",default:"MENU"},menuItems:{type:"array",default:[]},titleColor:{type:"string",default:"var(--wp--preset--color--accent-4)"},linkColor:{type:"string",default:"var(--wp--preset--color--accent-4)"}},save:()=>null}],edit:({attributes:e,setAttributes:l})=>{const{menuTitle:n,menuItems:t,titleColor:r,linkColor:m,backgroundColor:c,menuDirection:x,menuDirectionTablet:d,menuDirectionMobile:p,menuWidth:v,menuWidthTablet:h,menuWidthMobile:g,menuHeight:_,menuHeightTablet:y,menuHeightMobile:C,itemSpacing:j,itemSpacingTablet:f,itemSpacingMobile:S,enableAccordion:w,showToggleIcon:I,toggleIconPosition:B,containerBackgroundColor:F,containerBorderColor:T,containerBorderWidth:H,containerBorderRadius:k,titleFontFamily:M,titleFontSize:W,titleFontWeight:L,titleLineHeight:N,titleLetterSpacing:z,menuItemFontFamily:P,menuItemFontSize:D,menuItemFontWeight:R,menuItemLineHeight:U,menuItemLetterSpacing:A}=e;if(!t||0===t.length||4===t.length&&t.some((e=>["products","company","pricing","contact"].includes(e.id)))){const e=Date.now(),n=()=>Math.random().toString(36).substr(2,9),t=[{label:"Products",url:"#",id:`products-${e}-${n()}`},{label:"Company",url:"#",id:`company-${e}-${n()}`},{label:"Pricing",url:"#",id:`pricing-${e}-${n()}`},{label:"Contact",url:"#",id:`contact-${e}-${n()}`}];l({menuItems:t})}const $=(0,i.useBlockProps)({className:"blynex-responsive-nav-menu"}),V=()=>{const e={label:(0,a.__)("New Item","blynex"),url:"#",id:`item-${Date.now()}-${Math.random().toString(36).substr(2,9)}`};l({menuItems:[...t,e]})},O=(e,n,a)=>{const i=[...t];i[e][n]=a,l({menuItems:i})};return(0,s.jsxs)("div",{...$,children:[(0,s.jsx)(i.BlockControls,{children:(0,s.jsx)(o.ToolbarGroup,{children:(0,s.jsx)(o.ToolbarButton,{icon:u,label:(0,a.__)("Add Menu Item","blynex"),onClick:V})})}),(0,s.jsxs)(i.InspectorControls,{children:[(0,s.jsxs)(o.PanelBody,{title:(0,a.__)("Menu Settings","blynex"),children:[(0,s.jsx)(o.TextControl,{label:(0,a.__)("Menu Title","blynex"),value:n,onChange:e=>l({menuTitle:e})}),(0,s.jsx)(o.ToggleControl,{label:(0,a.__)("Enable Accordion","blynex"),checked:w,onChange:e=>l({enableAccordion:e}),help:(0,a.__)("Enable accordion behavior on smaller screens","blynex")}),w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ToggleControl,{label:(0,a.__)("Show Toggle Icon","blynex"),checked:I,onChange:e=>l({showToggleIcon:e})}),I&&(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Toggle Icon Position","blynex"),value:B,options:[{label:(0,a.__)("Right","blynex"),value:"right"},{label:(0,a.__)("Left","blynex"),value:"left"}],onChange:e=>l({toggleIconPosition:e})})]})]}),(0,s.jsx)(o.PanelBody,{title:(0,a.__)("Responsive Layout","blynex"),initialOpen:!1,children:(0,s.jsx)(o.TabPanel,{className:"responsive-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:(0,a.__)("Desktop","blynex"),className:"tab-desktop"},{name:"tablet",title:(0,a.__)("Tablet","blynex"),className:"tab-tablet"},{name:"mobile",title:(0,a.__)("Mobile","blynex"),className:"tab-mobile"}],children:e=>(0,s.jsxs)("div",{className:`responsive-controls responsive-controls-${e.name}`,children:["desktop"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Menu Direction","blynex"),value:x,options:[{label:(0,a.__)("Vertical","blynex"),value:"vertical"},{label:(0,a.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>l({menuDirection:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Width","blynex"),value:v,onChange:e=>l({menuWidth:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Height","blynex"),value:_,onChange:e=>l({menuHeight:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Item Spacing","blynex"),value:j,onChange:e=>l({itemSpacing:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),"tablet"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Menu Direction","blynex"),value:d,options:[{label:(0,a.__)("Vertical","blynex"),value:"vertical"},{label:(0,a.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>l({menuDirectionTablet:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Width","blynex"),value:h,onChange:e=>l({menuWidthTablet:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Height","blynex"),value:y,onChange:e=>l({menuHeightTablet:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Item Spacing","blynex"),value:f,onChange:e=>l({itemSpacingTablet:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),"mobile"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Menu Direction","blynex"),value:p,options:[{label:(0,a.__)("Vertical","blynex"),value:"vertical"},{label:(0,a.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>l({menuDirectionMobile:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Width","blynex"),value:g,onChange:e=>l({menuWidthMobile:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Menu Height","blynex"),value:C,onChange:e=>l({menuHeightMobile:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Item Spacing","blynex"),value:S,onChange:e=>l({itemSpacingMobile:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]})]})})}),(0,s.jsxs)(o.PanelBody,{title:(0,a.__)("Colors","blynex"),initialOpen:!1,children:[(0,s.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,a.__)("Title Color","blynex")}),(0,s.jsx)(i.ColorPalette,{colors:(0,i.useSetting)("color.palette"),value:r,onChange:e=>l({titleColor:e||"var(--wp--preset--color--primary)"}),enableAlpha:!0,clearable:!0})]}),(0,s.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,a.__)("Link Color","blynex")}),(0,s.jsx)(i.ColorPalette,{colors:(0,i.useSetting)("color.palette"),value:m,onChange:e=>l({linkColor:e||"var(--wp--preset--color--primary)"}),enableAlpha:!0,clearable:!0})]})]}),(0,s.jsxs)(o.PanelBody,{title:(0,a.__)("Container Styling","blynex"),initialOpen:!1,children:[(0,s.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,a.__)("Background Color","blynex")}),(0,s.jsx)(i.ColorPalette,{colors:(0,i.useSetting)("color.palette"),value:F,onChange:e=>l({containerBackgroundColor:e||""}),enableAlpha:!0,clearable:!0})]}),(0,s.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,s.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,a.__)("Border Color","blynex")}),(0,s.jsx)(i.ColorPalette,{colors:(0,i.useSetting)("color.palette"),value:T,onChange:e=>l({containerBorderColor:e||"var(--wp--preset--color--contrast)"}),enableAlpha:!0,clearable:!0})]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Border Width","blynex"),value:H,onChange:e=>l({containerBorderWidth:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Border Radius","blynex"),value:k,onChange:e=>l({containerBorderRadius:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}]})]}),(0,s.jsxs)(o.PanelBody,{title:(0,a.__)("Typography","blynex"),initialOpen:!1,children:[(0,s.jsx)("h4",{children:(0,a.__)("Title Typography","blynex")}),(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Font Family","blynex"),value:e.titleFontFamily,options:[{label:(0,a.__)("Default","blynex"),value:""},{label:"Arial",value:"Arial, sans-serif"},{label:"Helvetica",value:"Helvetica, sans-serif"},{label:"Georgia",value:"Georgia, serif"},{label:"Times New Roman",value:"Times New Roman, serif"},{label:"Courier New",value:"Courier New, monospace"},{label:"Verdana",value:"Verdana, sans-serif"},{label:"Trebuchet MS",value:"Trebuchet MS, sans-serif"},{label:"Impact",value:"Impact, sans-serif"}],onChange:e=>l({titleFontFamily:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Font Size","blynex"),value:e.titleFontSize,onChange:e=>l({titleFontSize:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Font Weight","blynex"),value:e.titleFontWeight,options:[{label:"100 - Thin",value:"100"},{label:"200 - Extra Light",value:"200"},{label:"300 - Light",value:"300"},{label:"400 - Normal",value:"400"},{label:"500 - Medium",value:"500"},{label:"600 - Semi Bold",value:"600"},{label:"700 - Bold",value:"700"},{label:"800 - Extra Bold",value:"800"},{label:"900 - Black",value:"900"}],onChange:e=>l({titleFontWeight:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Line Height","blynex"),value:e.titleLineHeight,onChange:e=>l({titleLineHeight:e}),units:[{value:"",label:"unitless"},{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Letter Spacing","blynex"),value:e.titleLetterSpacing,onChange:e=>l({titleLetterSpacing:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]}),(0,s.jsx)("hr",{style:{margin:"20px 0"}}),(0,s.jsx)("h4",{children:(0,a.__)("Menu Items Typography","blynex")}),(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Font Family","blynex"),value:e.menuItemFontFamily,options:[{label:(0,a.__)("Default","blynex"),value:""},{label:"Arial",value:"Arial, sans-serif"},{label:"Helvetica",value:"Helvetica, sans-serif"},{label:"Georgia",value:"Georgia, serif"},{label:"Times New Roman",value:"Times New Roman, serif"},{label:"Courier New",value:"Courier New, monospace"},{label:"Verdana",value:"Verdana, sans-serif"},{label:"Trebuchet MS",value:"Trebuchet MS, sans-serif"},{label:"Impact",value:"Impact, sans-serif"}],onChange:e=>l({menuItemFontFamily:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Font Size","blynex"),value:e.menuItemFontSize,onChange:e=>l({menuItemFontSize:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(o.SelectControl,{label:(0,a.__)("Font Weight","blynex"),value:e.menuItemFontWeight,options:[{label:"100 - Thin",value:"100"},{label:"200 - Extra Light",value:"200"},{label:"300 - Light",value:"300"},{label:"400 - Normal",value:"400"},{label:"500 - Medium",value:"500"},{label:"600 - Semi Bold",value:"600"},{label:"700 - Bold",value:"700"},{label:"800 - Extra Bold",value:"800"},{label:"900 - Black",value:"900"}],onChange:e=>l({menuItemFontWeight:e})}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Line Height","blynex"),value:e.menuItemLineHeight,onChange:e=>l({menuItemLineHeight:e}),units:[{value:"",label:"unitless"},{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(o.__experimentalUnitControl,{label:(0,a.__)("Letter Spacing","blynex"),value:e.menuItemLetterSpacing,onChange:e=>l({menuItemLetterSpacing:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),(0,s.jsxs)(o.PanelBody,{title:(0,a.__)("Menu Items","blynex"),initialOpen:!1,children:[t.map(((e,n)=>(0,s.jsxs)("div",{style:{marginBottom:"16px",padding:"12px",border:"1px solid #ddd",borderRadius:"4px"},children:[(0,s.jsx)(o.TextControl,{label:(0,a.__)("Label","blynex"),value:e.label,onChange:e=>O(n,"label",e)}),(0,s.jsx)(o.TextControl,{label:(0,a.__)("URL","blynex"),value:e.url,onChange:e=>O(n,"url",e)}),(0,s.jsx)(o.Button,{icon:b,label:(0,a.__)("Remove Item","blynex"),onClick:()=>(e=>{const n=t.filter(((l,n)=>n!==e));l({menuItems:n})})(n),isDestructive:!0,variant:"secondary",size:"small"})]},e.id))),(0,s.jsx)(o.Button,{icon:u,onClick:V,variant:"primary",children:(0,a.__)("Add Menu Item","blynex")})]})]}),(0,s.jsx)("div",{className:"responsive-nav-menu-preview","data-menu-direction":x,"data-enable-accordion":w,"data-toggle-position":B,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",style:{width:v,height:_,backgroundColor:F||void 0,borderColor:T||void 0,borderWidth:H||"0px",borderRadius:k||"0px",borderStyle:T&&"0px"!==H?"solid":"none"},children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:r,fontFamily:M||void 0,fontSize:W,fontWeight:L,lineHeight:N,letterSpacing:z},children:[n,I&&w&&(0,s.jsx)("span",{className:`menu-toggle toggle-${B}`,"aria-hidden":"true",children:"+"})]}),(0,s.jsx)("nav",{className:`menu-items direction-${x}`,style:{gap:j,flexDirection:"horizontal"===x?"row":"column"},children:t.map(((e,l)=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:m,fontFamily:P||void 0,fontSize:D,fontWeight:R,lineHeight:U,letterSpacing:A},onClick:e=>e.preventDefault(),children:e.label},e.id)))})]})})]})},save:({attributes:e})=>{const{menuTitle:l,menuItems:n,titleColor:t,linkColor:a,menuDirection:o,menuDirectionTablet:r,menuDirectionMobile:u,menuWidth:b,menuWidthTablet:m,menuWidthMobile:c,menuHeight:x,menuHeightTablet:d,menuHeightMobile:p,itemSpacing:v,itemSpacingTablet:h,itemSpacingMobile:g,enableAccordion:_,showToggleIcon:y,toggleIconPosition:C,containerBackgroundColor:j,containerBorderColor:f,containerBorderWidth:S,containerBorderRadius:w,titleFontFamily:I,titleFontSize:B,titleFontWeight:F,titleLineHeight:T,titleLetterSpacing:H,menuItemFontFamily:k,menuItemFontSize:M,menuItemFontWeight:W,menuItemLineHeight:L,menuItemLetterSpacing:N}=e,z=i.useBlockProps.save({className:"blynex-responsive-nav-menu","data-desktop-direction":o,"data-tablet-direction":r,"data-mobile-direction":u,"data-enable-accordion":_,"data-toggle-position":C}),P={"--menu-width":b,"--menu-width-tablet":m,"--menu-width-mobile":c,"--menu-height":x,"--menu-height-tablet":d,"--menu-height-mobile":p,"--item-spacing":v,"--item-spacing-tablet":h,"--item-spacing-mobile":g,backgroundColor:j||void 0,borderColor:f||void 0,borderWidth:S||"0px",borderRadius:w||"0px",borderStyle:f&&"0px"!==S?"solid":"none"};return(0,s.jsx)("div",{...z,style:P,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:t,fontFamily:I||void 0,fontSize:B,fontWeight:F,lineHeight:T,letterSpacing:H},role:"button",tabIndex:"0","aria-expanded":"false","aria-controls":`menu-items-${l.toLowerCase().replace(/\s+/g,"-")}`,children:[l,y&&_&&(0,s.jsx)("span",{className:`menu-toggle toggle-${C}`,"aria-hidden":"true",children:"+"})]}),(0,s.jsx)("nav",{className:`menu-items direction-${o}`,id:`menu-items-${l.toLowerCase().replace(/\s+/g,"-")}`,role:"region","aria-labelledby":"menu-title",style:{gap:v,flexDirection:"horizontal"===o?"row":"column"},children:n.map((e=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:a,fontFamily:k||void 0,fontSize:M,fontWeight:W,lineHeight:L,letterSpacing:N},children:e.label},e.id)))})]})})}})},715:function(e){e.exports=window.wp.blockEditor},723:function(e){e.exports=window.wp.i18n},790:function(e){e.exports=window.ReactJSXRuntime},997:function(e){e.exports=window.wp.blocks}},n={};function t(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={exports:{}};return l[e](i,i.exports,t),i.exports}t.m=l,e=[],t.O=function(l,n,a,i){if(!n){var o=1/0;for(b=0;b=i)&&Object.keys(t.O).every((function(e){return t.O[e](n[s])}))?n.splice(s--,1):(r=!1,i0&&e[b-1][2]>i;b--)e[b]=e[b-1];e[b]=[n,a,i]},t.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},function(){var e={628:0,350:0};t.O.j=function(l){return 0===e[l]};var l=function(l,n){var a,i,o=n[0],r=n[1],s=n[2],u=0;if(o.some((function(l){return 0!==e[l]}))){for(a in r)t.o(r,a)&&(t.m[a]=r[a]);if(s)var b=s(t)}for(l&&l(n);u