!function(){var e,t,n,l={87:function(e){"use strict";e.exports=window.wp.element},143:function(e){"use strict";e.exports=window.wp.data},279:function(e){"use strict";e.exports=window.wp.plugins},427:function(e){"use strict";e.exports=window.wp.components},490:function(e){"use strict";e.exports=window.wp.domReady},503:function(e,t,n){"use strict";var l=window.wp.hooks;"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","awp/cover-custom-attribute")&&(0,l.addFilter)("blocks.registerBlockType","awp/cover-custom-attribute",(function(e,t){return void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{hideOnMobile:{type:"boolean"},hideOnTablet:{type:"boolean"},hideOnDesktop:{type:"boolean"}})),e}));var o=window.wp.compose,r=n(715),a=n(427),i=n(790);const s=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 15.2056V1.41396C2 1.09638 2.34857 0.894983 2.62355 1.05765L7.87531 4.14054C8.14254 4.29933 8.30521 4.58206 8.30521 4.8919V17.1963C8.30521 17.2506 8.29746 17.3009 8.2781 17.3513C7.53836 19.3187 5.88847 20.3644 5.04803 20.7866C4.75756 20.9338 4.40512 20.8292 4.23471 20.5542C2.43765 17.6805 2.05035 15.5465 2.00387 15.2676C2 15.2482 2 15.2289 2 15.2056ZM9.83503 4.00507C9.74983 4.03606 9.69173 4.10577 9.67237 4.19097C9.54069 4.80291 9.15339 7.2971 11.2525 8.83855C13.3517 10.38 20.0442 13.978 21.5624 14.7913C21.7212 14.8765 21.9148 14.7758 21.9381 14.5977C22.0814 13.5675 22.2131 10.4652 19.4207 7.00663C16.0783 2.86642 11.6824 3.35054 9.83116 4.00507H9.83503ZM21.4462 16.6503C21.4616 16.5612 21.4345 16.476 21.3687 16.4179C20.9078 15.9958 18.952 14.3962 16.5623 15.4303C14.1378 16.476 7.6816 20.411 6.21374 21.3134C6.05882 21.4063 6.0472 21.6232 6.1905 21.7355C7.00383 22.3784 9.61809 24.0632 14.01 23.4048C19.2734 22.6186 21.0821 18.579 21.45 16.6542L21.4462 16.6503Z",fill:"#1C7E6E"})}),c=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l,isSelected:o}=t,{hideOnMobile:c,hideOnTablet:d,hideOnDesktop:p}=n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,{...t}),o&&(0,i.jsx)(r.InspectorControls,{children:(0,i.jsxs)(a.PanelBody,{title:(0,i.jsxs)("div",{style:{display:"flex",fontSize:"13px",fontWeight:"500",alignItems:"center",gap:"8px"},children:[(0,i.jsx)(s,{}),(0,i.jsx)("span",{children:"Responsive Settings"})]}),initialOpen:!1,className:"blynex-responsive-panel",children:[(0,i.jsx)(a.ToggleControl,{label:wp.i18n.__("Hide on mobile","awp"),checked:!!c,onChange:()=>l({hideOnMobile:!c})}),(0,i.jsx)(a.ToggleControl,{label:wp.i18n.__("Hide on tablet","awp"),checked:!!d,onChange:()=>l({hideOnTablet:!d})}),(0,i.jsx)(a.ToggleControl,{label:wp.i18n.__("Hide on desktop","awp"),checked:!!p,onChange:()=>l({hideOnDesktop:!p})})]})})]})}),"withResponsiveControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","awp/cover-custom-controls")&&(0,l.addFilter)("editor.BlockEdit","awp/cover-custom-controls",c),"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.getSaveContent.extraProps","awp/cover-apply-class-frontend")&&(0,l.addFilter)("blocks.getSaveContent.extraProps","awp/cover-apply-class-frontend",(function(e,t,n){const{hideOnMobile:l,hideOnTablet:o,hideOnDesktop:r}=n;return e||(e={}),void 0!==l&&l&&(e.className=(e.className||"")+" hide-on-mobile"),void 0!==o&&o&&(e.className=(e.className||"")+" hide-on-tablet"),void 0!==r&&r&&(e.className=(e.className||"")+" hide-on-desktop"),e}));"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","blynex/hover-effect-attributes")&&(0,l.addFilter)("blocks.registerBlockType","blynex/hover-effect-attributes",((e,t)=>("core/cover"!==t&&"core/image"!==t||(e.attributes={...e.attributes,blynexHoverEffect:{type:"string",default:"none"},blynexHoverIntensity:{type:"number",default:.5},blynexHoverScale:{type:"number",default:1.05},blynexHoverDuration:{type:"number",default:.3}}),e)),20);var d=n(723);const p=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 15.2056V1.41396C2 1.09638 2.34857 0.894983 2.62355 1.05765L7.87531 4.14054C8.14254 4.29933 8.30521 4.58206 8.30521 4.8919V17.1963C8.30521 17.2506 8.29746 17.3009 8.2781 17.3513C7.53836 19.3187 5.88847 20.3644 5.04803 20.7866C4.75756 20.9338 4.40512 20.8292 4.23471 20.5542C2.43765 17.6805 2.05035 15.5465 2.00387 15.2676C2 15.2482 2 15.2289 2 15.2056ZM9.83503 4.00507C9.74983 4.03606 9.69173 4.10577 9.67237 4.19097C9.54069 4.80291 9.15339 7.2971 11.2525 8.83855C13.3517 10.38 20.0442 13.978 21.5624 14.7913C21.7212 14.8765 21.9148 14.7758 21.9381 14.5977C22.0814 13.5675 22.2131 10.4652 19.4207 7.00663C16.0783 2.86642 11.6824 3.35054 9.83116 4.00507H9.83503ZM21.4462 16.6503C21.4616 16.5612 21.4345 16.476 21.3687 16.4179C20.9078 15.9958 18.952 14.3962 16.5623 15.4303C14.1378 16.476 7.6816 20.411 6.21374 21.3134C6.05882 21.4063 6.0472 21.6232 6.1905 21.7355C7.00383 22.3784 9.61809 24.0632 14.01 23.4048C19.2734 22.6186 21.0821 18.579 21.45 16.6542L21.4462 16.6503Z",fill:"#1C7E6E"})}),u=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l,isSelected:o}=t,{blynexHoverEffect:s="none",blynexHoverIntensity:c=.5,blynexHoverScale:d=1.05,blynexHoverDuration:u=.3}=n||{};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,{...t}),o&&("core/cover"===t.name||"core/image"===t.name)&&(0,i.jsx)(r.InspectorControls,{children:(0,i.jsxs)(a.PanelBody,{title:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",fontWeight:"500"},children:[(0,i.jsx)(p,{}),(0,i.jsx)("span",{children:"Hover Effects"})]}),initialOpen:!0,className:"blynex-hover-panel",children:[(0,i.jsx)(a.SelectControl,{label:"Effect Type",value:s,options:[{label:"None",value:"none"},{label:"Zoom",value:"zoom"},{label:"Fade",value:"fade"},{label:"Grayscale",value:"grayscale"},{label:"Blur",value:"blur"},{label:"Glow",value:"glow"},{label:"Hue Rotate",value:"hue-rotate"},{label:"Invert",value:"invert"},{label:"Saturate",value:"saturate"},{label:"Sepia",value:"sepia"}],onChange:e=>l({blynexHoverEffect:e})}),"none"!==s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{marginBottom:"16px"},children:(0,i.jsx)(a.RangeControl,{label:"Effect Strength",value:c,onChange:e=>l({blynexHoverIntensity:e}),min:.1,max:1,step:.1,allowReset:!0,initialPosition:.5})}),(0,i.jsx)("div",{style:{marginBottom:"16px"},children:(0,i.jsx)(a.RangeControl,{label:"Duration (seconds)",value:u,onChange:e=>l({blynexHoverDuration:e}),min:.1,max:1,step:.1,allowReset:!0,initialPosition:.3})}),"core/cover"===t.name&&(0,i.jsx)("div",{style:{marginBottom:"16px"},children:(0,i.jsx)(a.RangeControl,{label:"Zoom Scale",value:d,onChange:e=>l({blynexHoverScale:e}),min:1,max:1.5,step:.05,allowReset:!0,initialPosition:1.05})})]})]})})]})}),"withHoverControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","blynex/hover-effect-controls")&&(0,l.addFilter)("editor.BlockEdit","blynex/hover-effect-controls",u);var x=n(942),g=n.n(x);const b=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{blynexHoverEffect:l,blynexHoverIntensity:o=.5,blynexHoverScale:r=1.05,blynexHoverDuration:a=.3}=n,s={...t.wrapperProps,className:g()(t?.wrapperProps?.className,{[`blynex-hover-${l}`]:l&&"none"!==l,"blynex-hover-enabled":!0}),style:{...t.wrapperProps?.style||{},"--blynex-intensity":o,"--blynex-duration":`${a}s`,"--blynex-scale":r}};return(0,i.jsx)(e,{...t,wrapperProps:s})}),"applyHoverClasses");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockListBlock","blynex/hover-effect-classes")&&(0,l.addFilter)("editor.BlockListBlock","blynex/hover-effect-classes",b);"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","blynex/image-filter-attributes")&&(0,l.addFilter)("blocks.registerBlockType","blynex/image-filter-attributes",((e,t)=>["core/image","core/cover","core/gallery","core/media-text","core/group","core/columns","core/column"].includes(t)?{...e,attributes:{...e.attributes,blynexFilterBlur:{type:"number",default:0},blynexFilterBrightness:{type:"number",default:1},blynexFilterContrast:{type:"number",default:1},blynexFilterHueRotate:{type:"number",default:0},blynexFilterSaturate:{type:"number",default:1},blynexFilterSepia:{type:"number",default:0},blynexFilterInvert:{type:"number",default:0},blynexFilterOpacity:{type:"number",default:1},blynexFilterGrayscale:{type:"number",default:0}}}:e));const h=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 15.2056V1.41396C2 1.09638 2.34857 0.894983 2.62355 1.05765L7.87531 4.14054C8.14254 4.29933 8.30521 4.58206 8.30521 4.8919V17.1963C8.30521 17.2506 8.29746 17.3009 8.2781 17.3513C7.53836 19.3187 5.88847 20.3644 5.04803 20.7866C4.75756 20.9338 4.40512 20.8292 4.23471 20.5542C2.43765 17.6805 2.05035 15.5465 2.00387 15.2676C2 15.2482 2 15.2289 2 15.2056ZM9.83503 4.00507C9.74983 4.03606 9.69173 4.10577 9.67237 4.19097C9.54069 4.80291 9.15339 7.2971 11.2525 8.83855C13.3517 10.38 20.0442 13.978 21.5624 14.7913C21.7212 14.8765 21.9148 14.7758 21.9381 14.5977C22.0814 13.5675 22.2131 10.4652 19.4207 7.00663C16.0783 2.86642 11.6824 3.35054 9.83116 4.00507H9.83503ZM21.4462 16.6503C21.4616 16.5612 21.4345 16.476 21.3687 16.4179C20.9078 15.9958 18.952 14.3962 16.5623 15.4303C14.1378 16.476 7.6816 20.411 6.21374 21.3134C6.05882 21.4063 6.0472 21.6232 6.1905 21.7355C7.00383 22.3784 9.61809 24.0632 14.01 23.4048C19.2734 22.6186 21.0821 18.579 21.45 16.6542L21.4462 16.6503Z",fill:"#1C7E6E"})}),y=(0,i.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 512.00 512.00",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:[(0,i.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,i.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"3.072"}),(0,i.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,i.jsx)("g",{id:"Layer_1"}),(0,i.jsx)("g",{id:"Layer_2",children:(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{d:"M274.91,47.78c-97.6,0-179.71,67.5-202.15,158.26L58.79,181.4c-4.36-7.69-14.12-10.39-21.81-6.03 c-7.69,4.36-10.39,14.12-6.03,21.81l37.66,66.44c0,0,0,0.01,0.01,0.01l0.15,0.26c0.19,0.34,0.39,0.66,0.6,0.98 c0.01,0.01,0.02,0.03,0.03,0.04c0.04,0.07,0.09,0.13,0.14,0.19c0.23,0.33,0.46,0.64,0.71,0.95c0.04,0.05,0.07,0.1,0.11,0.15 c0,0,0,0.01,0.01,0.01c0.02,0.02,0.04,0.04,0.06,0.07c0.36,0.44,0.75,0.85,1.15,1.24c0.04,0.04,0.07,0.07,0.11,0.1 c0.25,0.23,0.5,0.46,0.76,0.67c0.05,0.04,0.1,0.08,0.15,0.12c0.35,0.28,0.71,0.55,1.08,0.81c0.03,0.02,0.06,0.04,0.09,0.06 c0.17,0.11,0.35,0.22,0.52,0.33c0.09,0.06,0.18,0.11,0.28,0.17c0.12,0.07,0.25,0.14,0.38,0.21c0.11,0.06,0.22,0.12,0.33,0.17 c0.2,0.1,0.39,0.2,0.59,0.3c0.11,0.05,0.22,0.1,0.33,0.15c0,0,0.01,0,0.01,0.01c0.12,0.05,0.24,0.11,0.36,0.16 c0.33,0.14,0.66,0.26,1,0.37c0.04,0.02,0.09,0.03,0.13,0.04c0.02,0.01,0.03,0.01,0.05,0.02c0.15,0.05,0.31,0.09,0.47,0.14 c0.29,0.09,0.59,0.16,0.89,0.23c0.08,0.02,0.15,0.04,0.23,0.06c0.07,0.02,0.14,0.03,0.22,0.05c0.44,0.09,0.89,0.15,1.33,0.2 c0.04,0,0.07,0.01,0.11,0.02c0.08,0.01,0.15,0.01,0.23,0.02c0.49,0.05,0.98,0.08,1.48,0.08c0.42,0,0.84-0.02,1.26-0.06 c0.07-0.01,0.14-0.01,0.21-0.02c0.01,0,0.03,0,0.04,0c0.06-0.01,0.12-0.01,0.19-0.02c0.28-0.03,0.55-0.07,0.83-0.11 c0.08-0.01,0.16-0.02,0.24-0.04c0.13-0.02,0.25-0.04,0.38-0.07c0.06-0.01,0.12-0.03,0.19-0.04c0.4-0.09,0.81-0.19,1.21-0.31 c0.1-0.03,0.2-0.06,0.3-0.09c0.11-0.03,0.21-0.07,0.32-0.11c0.14-0.05,0.28-0.1,0.42-0.15c0.17-0.06,0.33-0.12,0.5-0.19 c0.1-0.04,0.2-0.09,0.3-0.13c0.13-0.06,0.26-0.12,0.39-0.18c0.19-0.09,0.37-0.19,0.56-0.28c0.13-0.07,0.25-0.13,0.38-0.2 c0.28-0.15,0.55-0.33,0.82-0.5c0.15-0.09,0.3-0.18,0.45-0.28c0.06-0.04,0.11-0.08,0.17-0.12c0.17-0.12,0.34-0.25,0.5-0.38 c0.06-0.04,0.12-0.09,0.18-0.13c0.11-0.09,0.23-0.17,0.34-0.26c0,0,0.01-0.01,0.01-0.01l59.04-48.93 c6.8-5.64,7.75-15.72,2.11-22.53c-5.64-6.8-15.73-7.75-22.53-2.11l-28.84,23.9c17.18-79.28,87.87-138.87,172.22-138.87 c97.17,0,176.22,79.05,176.22,176.22s-79.05,176.22-176.22,176.22c-8.84,0-16,7.16-16,16s7.16,16,16,16 c114.81,0,208.22-93.41,208.22-208.22S389.72,47.78,274.91,47.78z"}),(0,i.jsx)("path",{d:"M274.91,147.61c-8.84,0-16,7.16-16,16V256c0,8.84,7.16,16,16,16h75.87c8.84,0,16-7.16,16-16s-7.16-16-16-16 h-59.87v-76.39C290.91,154.77,283.74,147.61,274.91,147.61z"})]})})]})]}),m=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l,isSelected:o}=t,{blynexFilterBlur:s=0,blynexFilterBrightness:c=1,blynexFilterContrast:p=1,blynexFilterHueRotate:u=0,blynexFilterSaturate:x=1,blynexFilterSepia:g=0,blynexFilterInvert:b=0,blynexFilterOpacity:m=1,blynexFilterGrayscale:v=0}=n,f=(e,t)=>{l({[e]:t})},C=(e,t)=>{l({[e]:t})},_=(e,t)=>e.toString(),j=(e,t,n)=>{let l;switch(n){case"blur":case"hue-rotate":default:l=parseFloat(t)||0;break;case"percentage":l=parseFloat(t)/100||0}f(e,l)},w=0!==s||1!==c||1!==p||0!==u||1!==x||0!==g||0!==b||1!==m||0!==v;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,{...t}),o&&("core/image"===t.name||"core/cover"===t.name)&&(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.PanelBody,{title:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",fontWeight:"500"},children:[(0,i.jsx)(h,{}),(0,i.jsx)("span",{children:(0,d.__)("Image Filters","blynex")}),w&&(0,i.jsx)("span",{style:{backgroundColor:"#007cba",color:"white",borderRadius:"10px",padding:"2px 6px",fontSize:"10px",fontWeight:"600"},children:"Active"}),w&&(0,i.jsx)(a.Button,{variant:"secondary",size:"small",onClick:()=>{l({blynexFilterBlur:0,blynexFilterBrightness:1,blynexFilterContrast:1,blynexFilterHueRotate:0,blynexFilterSaturate:1,blynexFilterSepia:0,blynexFilterInvert:0,blynexFilterOpacity:1,blynexFilterGrayscale:0})},style:{marginLeft:"8px",padding:"2px",height:"auto",minHeight:"auto",width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},title:(0,d.__)("Reset all filters","blynex"),children:y})]}),initialOpen:w,className:"blynex-filter-panel",children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"8px 0"},children:[(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"blur"}),0!==s&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterBlur",0),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset blur filter","blynex"),title:(0,d.__)("Reset blur filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(s)})]}),value:s,onChange:e=>f("blynexFilterBlur",e),min:0,max:20,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(s),onChange:e=>j("blynexFilterBlur",e.target.value,"blur")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"brightness"}),1!==c&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterBrightness",1),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset brightness filter","blynex"),title:(0,d.__)("Reset brightness filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(c)})]}),value:c,onChange:e=>f("blynexFilterBrightness",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(c),onChange:e=>j("blynexFilterBrightness",e.target.value,"default")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"contrast"}),1!==p&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterContrast",1),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset contrast filter","blynex"),title:(0,d.__)("Reset contrast filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(p)})]}),value:p,onChange:e=>f("blynexFilterContrast",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(p),onChange:e=>j("blynexFilterContrast",e.target.value,"default")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"grayscale"}),0!==v&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterGrayscale",0),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset grayscale filter","blynex"),title:(0,d.__)("Reset grayscale filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(v)})]}),value:v,onChange:e=>f("blynexFilterGrayscale",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(v),onChange:e=>j("blynexFilterGrayscale",e.target.value,"percentage")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"hue-rotate"}),0!==u&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterHueRotate",0),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset hue-rotate filter","blynex"),title:(0,d.__)("Reset hue-rotate filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(u)})]}),value:u,onChange:e=>f("blynexFilterHueRotate",e),min:0,max:360,step:1,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(u),onChange:e=>j("blynexFilterHueRotate",e.target.value,"hue-rotate")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"invert"}),0!==b&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterInvert",0),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset invert filter","blynex"),title:(0,d.__)("Reset invert filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(b)})]}),value:b,onChange:e=>f("blynexFilterInvert",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(b),onChange:e=>j("blynexFilterInvert",e.target.value,"percentage")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"opacity"}),1!==m&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterOpacity",1),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset opacity filter","blynex"),title:(0,d.__)("Reset opacity filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(m)})]}),value:m,onChange:e=>f("blynexFilterOpacity",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(m),onChange:e=>j("blynexFilterOpacity",e.target.value,"default")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"saturate"}),1!==x&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterSaturate",1),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset saturate filter","blynex"),title:(0,d.__)("Reset saturate filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(x)})]}),value:x,onChange:e=>f("blynexFilterSaturate",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(x),onChange:e=>j("blynexFilterSaturate",e.target.value,"default")}})}),(0,i.jsx)("div",{className:"blynex-filter-control",children:(0,i.jsx)(a.RangeControl,{label:(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"sepia"}),0!==g&&(0,i.jsx)("button",{type:"button",style:{background:"none",border:"none",color:"#666",cursor:"pointer",padding:"2px",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s, background-color 0.2s",minWidth:"16px",minHeight:"16px"},onClick:()=>C("blynexFilterSepia",0),onMouseEnter:e=>{e.target.style.color="#007cba",e.target.style.backgroundColor="#f0f0f1"},onMouseLeave:e=>{e.target.style.color="#666",e.target.style.backgroundColor="transparent"},"aria-label":(0,d.__)("Reset sepia filter","blynex"),title:(0,d.__)("Reset sepia filter","blynex"),children:y})]}),(0,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:_(g)})]}),value:g,onChange:e=>f("blynexFilterSepia",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:_(g),onChange:e=>j("blynexFilterSepia",e.target.value,"percentage")}})})]})})})]})}),"withImageFilterControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","blynex/image-filter-controls")&&(0,l.addFilter)("editor.BlockEdit","blynex/image-filter-controls",m);const v=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:l,clientId:o}=t;if("core/image"!==l)return(0,i.jsx)(e,{...t});const{blynexFilterBlur:r=0,blynexFilterBrightness:a=1,blynexFilterContrast:s=1,blynexFilterHueRotate:c=0,blynexFilterSaturate:d=1,blynexFilterSepia:p=0,blynexFilterInvert:u=0,blynexFilterOpacity:x=1,blynexFilterGrayscale:g=0}=n,b=[];r&&r>0&&b.push(`blur(${r}px)`),a&&1!==a&&b.push(`brightness(${a})`),s&&1!==s&&b.push(`contrast(${s})`),g&&g>0&&b.push(`grayscale(${g})`),c&&c>0&&b.push(`hue-rotate(${c}deg)`),u&&u>0&&b.push(`invert(${u})`),d&&1!==d&&b.push(`saturate(${d})`),p&&p>0&&b.push(`sepia(${p})`);const h=b.join(" "),y={...t.wrapperProps,style:{...t.wrapperProps?.style||{},filter:h||void 0,opacity:x||void 0}};return(0,i.jsx)(e,{...t,wrapperProps:y})}),"withEditorImageFilters");"undefined"!=typeof wp&&wp.hooks&&(wp.hooks.hasFilter("editor.BlockListBlock","blynex/editor-image-filters")||(0,l.addFilter)("editor.BlockListBlock","blynex/editor-image-filters",v),wp.hooks.hasFilter("blocks.getSaveContent.extraProps","blynex/frontend-image-filter")||(0,l.addFilter)("blocks.getSaveContent.extraProps","blynex/frontend-image-filter",((e,t,n)=>{const{blynexFilterBlur:l=0,blynexFilterBrightness:o=1,blynexFilterContrast:r=1,blynexFilterHueRotate:a=0,blynexFilterSaturate:i=1,blynexFilterSepia:s=0,blynexFilterInvert:c=0,blynexFilterOpacity:d=1,blynexFilterGrayscale:p=0}=n;if(!(l&&l>0||o&&1!==o||r&&1!==r||a&&a>0||i&&1!==i||s&&s>0||c&&c>0||d&&d<1||p&&p>0))return e;const u=["blynex-has-filter"];l&&l>0&&u.push("blynex-filter-blur"),o&&1!==o&&u.push("blynex-filter-brightness"),r&&1!==r&&u.push("blynex-filter-contrast"),a&&a>0&&u.push("blynex-filter-hue-rotate"),i&&1!==i&&u.push("blynex-filter-saturate"),s&&s>0&&u.push("blynex-filter-sepia"),c&&c>0&&u.push("blynex-filter-invert"),d&&d<1&&u.push("blynex-filter-opacity"),p&&p>0&&u.push("blynex-filter-grayscale");const x=[e.className,u.join(" ")].filter(Boolean).join(" ");return{...e,className:x,"data-blynex-filter":JSON.stringify({blur:l||0,brightness:o||1,contrast:r||1,hueRotate:a||0,saturate:i||1,sepia:s||0,invert:c||0,opacity:d||1,grayscale:p||0})}})));var f=n(279),C=window.wp.editor,_=n(143);const j=()=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 15.2056V1.41396C2 1.09638 2.34857 0.894983 2.62355 1.05765L7.87531 4.14054C8.14254 4.29933 8.30521 4.58206 8.30521 4.8919V17.1963C8.30521 17.2506 8.29746 17.3009 8.2781 17.3513C7.53836 19.3187 5.88847 20.3644 5.04803 20.7866C4.75756 20.9338 4.40512 20.8292 4.23471 20.5542C2.43765 17.6805 2.05035 15.5465 2.00387 15.2676C2 15.2482 2 15.2289 2 15.2056ZM9.83503 4.00507C9.74983 4.03606 9.69173 4.10577 9.67237 4.19097C9.54069 4.80291 9.15339 7.2971 11.2525 8.83855C13.3517 10.38 20.0442 13.978 21.5624 14.7913C21.7212 14.8765 21.9148 14.7758 21.9381 14.5977C22.0814 13.5675 22.2131 10.4652 19.4207 7.00663C16.0783 2.86642 11.6824 3.35054 9.83116 4.00507H9.83503ZM21.4462 16.6503C21.4616 16.5612 21.4345 16.476 21.3687 16.4179C20.9078 15.9958 18.952 14.3962 16.5623 15.4303C14.1378 16.476 7.6816 20.411 6.21374 21.3134C6.05882 21.4063 6.0472 21.6232 6.1905 21.7355C7.00383 22.3784 9.61809 24.0632 14.01 23.4048C19.2734 22.6186 21.0821 18.579 21.45 16.6542L21.4462 16.6503Z",fill:"#1C7E6E"})});window.wp?.plugins?.getPlugin("blynex-theme-settings")||(0,f.registerPlugin)("blynex-theme-settings",{icon:(0,i.jsx)(j,{}),render:()=>{const e=(0,_.useSelect)((e=>e("core").getEntityRecord("root","site")?.blynex_scroll_top||!1)),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,_.useDispatch)("core");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.PluginSidebarMoreMenuItem,{target:"blynex-theme-settings",icon:(0,i.jsx)(j,{}),children:(0,d.__)("Blynex Settings","blynex")}),(0,i.jsx)(C.PluginSidebar,{name:"blynex-theme-settings",title:(0,d.__)("Blynex Settings","blynex"),icon:(0,i.jsx)(j,{}),children:(0,i.jsx)(a.PanelBody,{title:(0,d.__)("Feature Options","blynex"),initialOpen:!0,children:(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Scroll to Top Button","blynex"),help:e?(0,d.__)("Enabled","blynex"):(0,d.__)("Disabled","blynex"),checked:e,onChange:async e=>{await t("root","site",void 0,{blynex_scroll_top:e}),await n("root","site",void 0)}})})})]})}});var w=n(87),k=n(573),S=(0,i.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(k.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),B=(0,i.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(k.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});const{registerBlockType:I}=wp.blocks,F={"arrow-right":'',"arrow-left":'',"chevron-right":'',"chevron-left":'',download:'',"external-link":'',play:'',plus:'',mail:'',phone:'',"shopping-cart":'',heart:'',star:''},T={small:{fontSize:"14px",padding:{top:"8px",right:"16px",bottom:"8px",left:"16px"}},medium:{fontSize:"16px",padding:{top:"12px",right:"24px",bottom:"12px",left:"24px"}},large:{fontSize:"18px",padding:{top:"16px",right:"32px",bottom:"16px",left:"32px"}},"extra-large":{fontSize:"20px",padding:{top:"20px",right:"40px",bottom:"20px",left:"40px"}}};I("blynex/button-widget",{title:(0,d.__)("Customizable Button","blynex"),description:(0,d.__)("A fully customizable button block with icon selection, color schemes, sizing, and styling options.","blynex"),category:"widgets",icon:"button",keywords:["button","customizable","icon","cta","link"],supports:{html:!1,align:["left","center","right","wide","full"],spacing:{margin:!0,padding:!0},color:{text:!0,background:!0,gradients:!0},typography:{fontSize:!0,fontWeight:!0,textTransform:!0,letterSpacing:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},attributes:{buttonText:{type:"string",default:"Click Me"},buttonUrl:{type:"string",default:""},linkTarget:{type:"string",default:"_self"},rel:{type:"string",default:""},showIcon:{type:"boolean",default:!1},iconType:{type:"string",default:"predefined"},predefinedIcon:{type:"string",default:"arrow-right"},customIconSvg:{type:"string",default:""},uploadedIconId:{type:"number",default:0},uploadedIconUrl:{type:"string",default:""},uploadedIconAlt:{type:"string",default:""},iconPosition:{type:"string",default:"right"},iconSize:{type:"number",default:16},iconGap:{type:"number",default:8},buttonSize:{type:"string",default:"medium"},buttonWidth:{type:"string",default:"auto"},customWidth:{type:"string",default:"200px"},backgroundColor:{type:"string",default:""},textColor:{type:"string",default:""},borderColor:{type:"string",default:""},hoverBackgroundColor:{type:"string",default:""},hoverTextColor:{type:"string",default:""},hoverBorderColor:{type:"string",default:""},iconColor:{type:"string",default:""},hoverIconColor:{type:"string",default:""},fontSize:{type:"string",default:"16px"},fontWeight:{type:"string",default:"500"},textTransform:{type:"string",default:"none"},letterSpacing:{type:"string",default:"normal"},borderRadius:{type:"string",default:"8px"},borderWidth:{type:"string",default:"1px"},borderStyle:{type:"string",default:"solid"},padding:{type:"object",default:{top:"12px",right:"24px",bottom:"12px",left:"24px"}},margin:{type:"object",default:{top:"16px",right:"0px",bottom:"16px",left:"0px"}},alignment:{type:"string",default:"left"},boxShadow:{type:"string",default:"none"},hoverBoxShadow:{type:"string",default:"none"},transition:{type:"string",default:"all 0.3s ease"},gradient:{type:"object",default:{enabled:!1,type:"linear",angle:"45deg",colors:[]}},hoverGradient:{type:"object",default:{enabled:!1,type:"linear",angle:"45deg",colors:[]}},animation:{type:"object",default:{enabled:!1,type:"none",duration:"0.3s",easing:"ease"}}},edit:({attributes:e,setAttributes:t})=>{const{buttonText:n,buttonUrl:l,linkTarget:o,rel:s,showIcon:c,iconType:p,predefinedIcon:u,customIconSvg:x,uploadedIconId:g,uploadedIconUrl:b,uploadedIconAlt:h,iconPosition:y,iconSize:m,iconGap:v,buttonSize:f,buttonWidth:C,customWidth:_,backgroundColor:j,textColor:k,borderColor:I,hoverBackgroundColor:N,hoverTextColor:H,hoverBorderColor:W,iconColor:M,hoverIconColor:z,fontSize:L,fontWeight:R,textTransform:P,letterSpacing:$,borderRadius:A,borderWidth:O,borderStyle:E,padding:D,margin:U,alignment:G,boxShadow:V,hoverBoxShadow:q,transition:Z,gradient:J,hoverGradient:Q,animation:K}=e,[X,Y]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(f&&T[f]){const e=T[f];t({fontSize:e.fontSize,padding:e.padding})}}),[f]);const ee=()=>({width:`${m}px`,height:`${m}px`,color:M||"currentColor",fill:"currentColor"}),te=()=>{if(!c)return null;if("upload"===p&&b)return(0,i.jsx)("img",{src:b,alt:h,className:"blynex-button-icon",style:ee()});let e="";return"predefined"===p&&F[u]?e=F[u]:"custom"===p&&x&&(e=x),e?(0,i.jsx)("span",{className:"blynex-button-icon",style:ee(),dangerouslySetInnerHTML:{__html:e}}):null},ne=(0,r.useBlockProps)({className:"blynex-button-widget",style:{textAlign:G}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.BlockControls,{children:(0,i.jsx)(r.AlignmentToolbar,{value:G,onChange:e=>t({alignment:e})})}),(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.TabPanel,{className:"blynex-button-tabs",activeClass:"active-tab",tabs:[{name:"content",title:(0,d.__)("Content","blynex"),className:"tab-content"},{name:"style",title:(0,d.__)("Style","blynex"),className:"tab-style"},{name:"advanced",title:(0,d.__)("Advanced","blynex"),className:"tab-advanced"}],children:e=>"content"===e.name?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.PanelBody,{title:(0,d.__)("Link Settings","blynex"),initialOpen:!0,children:(0,i.jsxs)("div",{className:"blynex-link-control",children:[(0,i.jsx)(a.Button,{icon:l?S:B,onClick:()=>Y(!X),variant:l?"primary":"secondary",children:l?(0,d.__)("Edit Link","blynex"):(0,d.__)("Add Link","blynex")}),X&&(0,i.jsxs)("div",{className:"blynex-link-picker",children:[(0,i.jsx)(r.URLInput,{value:l,onChange:e=>t({buttonUrl:e}),placeholder:(0,d.__)("Enter URL","blynex")}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Link Target","blynex"),value:o,options:[{label:(0,d.__)("Same Window","blynex"),value:"_self"},{label:(0,d.__)("New Window","blynex"),value:"_blank"}],onChange:e=>t({linkTarget:e})}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Link Rel","blynex"),value:s,onChange:e=>t({rel:e}),help:(0,d.__)('Add rel attributes like "nofollow" or "noopener"',"blynex")})]})]})}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Icon","blynex"),checked:c,onChange:e=>t({showIcon:e})}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Icon Type","blynex"),value:p,options:[{label:(0,d.__)("Predefined","blynex"),value:"predefined"},{label:(0,d.__)("Custom SVG","blynex"),value:"custom"},{label:(0,d.__)("Upload Image/SVG","blynex"),value:"upload"}],onChange:e=>t({iconType:e})}),"predefined"===p&&(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Select Icon","blynex"),value:u,options:Object.keys(F).map((e=>({label:e.replace("-"," ").replace(/\b\w/g,(e=>e.toUpperCase())),value:e}))),onChange:e=>t({predefinedIcon:e})}),"custom"===p&&(0,i.jsx)(a.TextareaControl,{label:(0,d.__)("Custom SVG Code","blynex"),value:x,onChange:e=>t({customIconSvg:e}),help:(0,d.__)("Paste your SVG code here","blynex"),rows:4}),"upload"===p&&(0,i.jsxs)("div",{className:"button-widget-upload-section",children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Upload Image or SVG","blynex")})}),(0,i.jsx)("p",{className:"description",children:(0,d.__)("Supported formats: JPG, PNG, GIF, WebP, SVG","blynex")}),(0,i.jsx)(r.MediaUploadCheck,{children:(0,i.jsx)(r.MediaUpload,{onSelect:e=>{["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/svg+xml"].includes(e.mime)?t({uploadedIconId:e.id,uploadedIconUrl:e.url,uploadedIconAlt:e.alt||e.title||""}):alert((0,d.__)("Please select a valid image file (JPG, PNG, GIF, WebP, SVG)","blynex"))},allowedTypes:["image"],value:g,render:({open:e})=>(0,i.jsx)("div",{children:b?(0,i.jsxs)("div",{className:"uploaded-icon-preview",children:[(0,i.jsx)("img",{src:b,alt:h,style:{maxWidth:"100px",maxHeight:"100px",display:"block",marginBottom:"10px"}}),(0,i.jsxs)("div",{className:"upload-actions",children:[(0,i.jsx)(a.Button,{variant:"secondary",onClick:e,style:{marginRight:"10px"},children:(0,d.__)("Replace","blynex")}),(0,i.jsx)(a.Button,{variant:"link",isDestructive:!0,onClick:()=>t({uploadedIconId:0,uploadedIconUrl:"",uploadedIconAlt:""}),children:(0,d.__)("Remove","blynex")})]})]}):(0,i.jsx)(a.Button,{variant:"secondary",onClick:e,className:"button-add-media",children:(0,d.__)("Upload Image/SVG","blynex")})})})})]}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Icon Position","blynex"),value:y,options:[{label:(0,d.__)("Left","blynex"),value:"left"},{label:(0,d.__)("Right","blynex"),value:"right"}],onChange:e=>t({iconPosition:e})}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Icon Size","blynex"),value:m,onChange:e=>t({iconSize:e}),min:8,max:48,step:1}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Icon Gap","blynex"),value:v,onChange:e=>t({iconGap:e}),min:0,max:32,step:1})]})]})]}):"style"===e.name?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Size & Dimensions","blynex"),initialOpen:!0,children:[(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Button Size","blynex"),value:f,options:[{label:(0,d.__)("Small","blynex"),value:"small"},{label:(0,d.__)("Medium","blynex"),value:"medium"},{label:(0,d.__)("Large","blynex"),value:"large"},{label:(0,d.__)("Extra Large","blynex"),value:"extra-large"},{label:(0,d.__)("Custom","blynex"),value:"custom"}],onChange:e=>t({buttonSize:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Button Width","blynex"),value:C,options:[{label:(0,d.__)("Auto","blynex"),value:"auto"},{label:(0,d.__)("Full Width","blynex"),value:"full"},{label:(0,d.__)("Custom","blynex"),value:"custom"}],onChange:e=>t({buttonWidth:e})}),"custom"===C&&(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Custom Width","blynex"),value:_,onChange:e=>t({customWidth:e})})]}),(0,i.jsx)(a.PanelBody,{title:(0,d.__)("Colors","blynex"),initialOpen:!1,children:(0,i.jsxs)("div",{className:"blynex-color-controls",children:[(0,i.jsx)("h4",{children:(0,d.__)("Normal State","blynex")}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Background Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:j,onChange:e=>t({backgroundColor:e}),clearable:!0})]}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Text Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:k,onChange:e=>t({textColor:e}),clearable:!0})]}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Border Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:I,onChange:e=>t({borderColor:e}),clearable:!0})]}),c&&(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Icon Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:M,onChange:e=>t({iconColor:e}),clearable:!0})]}),(0,i.jsx)("h4",{children:(0,d.__)("Hover State","blynex")}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Hover Background Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:N,onChange:e=>t({hoverBackgroundColor:e}),clearable:!0})]}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Hover Text Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:H,onChange:e=>t({hoverTextColor:e}),clearable:!0})]}),(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Hover Border Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:W,onChange:e=>t({hoverBorderColor:e}),clearable:!0})]}),c&&(0,i.jsxs)("div",{className:"color-control-group",children:[(0,i.jsx)("label",{children:(0,d.__)("Hover Icon Color","blynex")}),(0,i.jsx)(r.ColorPalette,{value:z,onChange:e=>t({hoverIconColor:e}),clearable:!0})]})]})}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Typography","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Font Size","blynex"),value:L,onChange:e=>t({fontSize:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:R,options:[{label:(0,d.__)("Normal","blynex"),value:"400"},{label:(0,d.__)("Medium","blynex"),value:"500"},{label:(0,d.__)("Semi Bold","blynex"),value:"600"},{label:(0,d.__)("Bold","blynex"),value:"700"}],onChange:e=>t({fontWeight:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Text Transform","blynex"),value:P,options:[{label:(0,d.__)("None","blynex"),value:"none"},{label:(0,d.__)("Uppercase","blynex"),value:"uppercase"},{label:(0,d.__)("Lowercase","blynex"),value:"lowercase"},{label:(0,d.__)("Capitalize","blynex"),value:"capitalize"}],onChange:e=>t({textTransform:e})}),(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Letter Spacing","blynex"),value:$,onChange:e=>t({letterSpacing:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Border & Spacing","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Border Radius","blynex"),value:A,onChange:e=>t({borderRadius:e})}),(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Border Width","blynex"),value:O,onChange:e=>t({borderWidth:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Border Style","blynex"),value:E,options:[{label:(0,d.__)("Solid","blynex"),value:"solid"},{label:(0,d.__)("Dashed","blynex"),value:"dashed"},{label:(0,d.__)("Dotted","blynex"),value:"dotted"},{label:(0,d.__)("None","blynex"),value:"none"}],onChange:e=>t({borderStyle:e})}),(0,i.jsx)(a.__experimentalBoxControl,{label:(0,d.__)("Padding","blynex"),values:D,onChange:e=>t({padding:e})}),(0,i.jsx)(a.__experimentalBoxControl,{label:(0,d.__)("Margin","blynex"),values:U,onChange:e=>t({margin:e})})]})]}):"advanced"===e.name?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Effects","blynex"),initialOpen:!0,children:[(0,i.jsx)(a.TextControl,{label:(0,d.__)("Box Shadow","blynex"),value:V,onChange:e=>t({boxShadow:e}),help:(0,d.__)("e.g., 0 4px 8px rgba(0,0,0,0.1)","blynex")}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Hover Box Shadow","blynex"),value:q,onChange:e=>t({hoverBoxShadow:e}),help:(0,d.__)("e.g., 0 8px 16px rgba(0,0,0,0.2)","blynex")}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Transition","blynex"),value:Z,onChange:e=>t({transition:e}),help:(0,d.__)("e.g., all 0.3s ease","blynex")})]})}):void 0})}),(0,i.jsx)("div",{...ne,className:`${ne.className||""} widget-auto-size size-${f}`.trim(),children:(0,i.jsxs)("button",{className:`blynex-custom-button icon-${y}`,style:(()=>{const e={display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",cursor:"pointer",border:"none",outline:"none",transition:Z,fontSize:L,fontWeight:R,textTransform:P,letterSpacing:$,borderRadius:A,borderWidth:O,borderStyle:E,borderColor:I||"transparent",padding:`${D.top} ${D.right} ${D.bottom} ${D.left}`,margin:`${U.top} ${U.right} ${U.bottom} ${U.left}`,boxShadow:V,gap:c?`${v}px`:"0"};if(e.width="full"===C?"100%":"custom"===C?_:"auto",J.enabled&&J.colors.length>0){const t=J.colors.map((e=>e.color)).join(", ");e.background=`${J.type}-gradient(${J.angle}, ${t})`}else e.backgroundColor=j||"var(--wp--preset--color--accent-2)";return e.color=k||"var(--wp--preset--color--contrast)",N&&(e["--hover-bg-color"]=N),H&&(e["--hover-text-color"]=H),W&&(e["--hover-border-color"]=W),z&&(e["--hover-icon-color"]=z),e})(),type:"button",children:["left"===y&&te(),(0,i.jsx)(r.RichText,{tagName:"span",value:n,onChange:e=>t({buttonText:e}),placeholder:(0,d.__)("Button text...","blynex"),allowedFormats:[],className:"blynex-button-text"}),"right"===y&&te()]})})]})},save:({attributes:e})=>{const{buttonText:t,buttonUrl:n,linkTarget:l,rel:o,showIcon:a,iconType:s,predefinedIcon:c,customIconSvg:d,iconPosition:p,iconSize:u,iconGap:x,uploadedIconId:g,uploadedIconUrl:b,uploadedIconAlt:h,backgroundColor:y,textColor:m,borderColor:v,iconColor:f,hoverBackgroundColor:C,hoverTextColor:_,hoverBorderColor:j,hoverIconColor:w,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:I,borderRadius:T,borderWidth:N,borderStyle:H,padding:W,margin:M,alignment:z,boxShadow:L,transition:R,buttonWidth:P,customWidth:$,gradient:A,buttonSize:O}=e,E=()=>({width:`${u}px`,height:`${u}px`,color:f||"currentColor",fill:"currentColor"}),D=()=>{if(!a)return null;if("upload"===s&&b)return(0,i.jsx)("img",{src:b,alt:h,className:"blynex-button-icon",style:E()});let e="";return"predefined"===s&&F[c]?e=F[c]:"custom"===s&&d&&(e=d),e?(0,i.jsx)("span",{className:"blynex-button-icon",style:E(),dangerouslySetInnerHTML:{__html:e}}):null},U=r.useBlockProps.save({className:`blynex-button-widget widget-auto-size size-${O}`,style:{textAlign:z}}),G=n?"a":"button",V={className:`blynex-custom-button icon-${p}`,style:(()=>{const e={display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",cursor:"pointer",border:"none",outline:"none",transition:R,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:I,borderRadius:T,borderWidth:N,borderStyle:H,borderColor:v||"transparent",padding:`${W.top} ${W.right} ${W.bottom} ${W.left}`,margin:`${M.top} ${M.right} ${M.bottom} ${M.left}`,boxShadow:L,gap:a?`${x}px`:"0"};if(e.width="full"===P?"100%":"custom"===P?$:"auto",A.enabled&&A.colors.length>0){const t=A.colors.map((e=>e.color)).join(", ");e.background=`${A.type}-gradient(${A.angle}, ${t})`}else e.backgroundColor=y||"var(--wp--preset--color--accent-2)";return e.color=m||"var(--wp--preset--color--contrast)",C&&(e["--hover-bg-color"]=C),_&&(e["--hover-text-color"]=_),j&&(e["--hover-border-color"]=j),w&&(e["--hover-icon-color"]=w),e})()};return n?(V.href=n,V.target=l,o&&(V.rel=o)):V.type="button",(0,i.jsx)("div",{...U,children:(0,i.jsxs)(G,{...V,children:["left"===p&&D(),(0,i.jsx)("span",{className:"blynex-button-text",children:t}),"right"===p&&D()]})})}}),n(627);var N=(0,i.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(k.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),H=(0,i.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});const{registerBlockType:W}=wp.blocks,{useState:M,useEffect:z}=wp.element,L=[{attributes:{iconSvg:{type:"string",default:""},iconUrl:{type:"string",default:""},size:{type:"number",default:48},align:{type:"string",default:"center"},style:{type:"object",default:{}}},save:({attributes:e})=>{const{iconSvg:t,iconUrl:n,size:l=48,align:o="center",style:r={}}=e,a={className:`has-text-align-${o} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:o,width:"fit-content",margin:"0 auto","--icon-color":r?.color?.text||"currentColor","--icon-bg-color":r?.color?.background||"transparent"}},s={display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${l}px`,height:`${l}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||n?n?(0,i.jsx)("div",{...a,children:(0,i.jsx)("div",{className:"svg-icon-container",style:s,children:(0,i.jsx)("div",{className:"svg-icon-mask","data-icon-url":n,style:{width:"100%",height:"100%",backgroundColor:"currentColor",WebkitMask:`url("${n}") center / contain no-repeat`,mask:`url("${n}") center / contain no-repeat`}})})}):(0,i.jsx)("div",{...a,children:(0,i.jsx)("div",{className:"svg-icon-container",style:s,dangerouslySetInnerHTML:{__html:t.replace(/]*)>/,'{const{attributes:t,setAttributes:n}=e,{iconSvg:l,iconUrl:o,size:s=48,align:c="center"}=t,p=(0,r.useSetting)("spacing.iconSizes.medium")||48,[u,x]=M(""),{style:g={}}=t,b=g?.color?.text||"currentColor",h=g?.color?.background||"transparent",y=(0,r.useBlockProps)({className:`has-text-align-${c} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:c,"--icon-color":b,"--icon-bg-color":h}});return z((()=>{if(l){const e=e=>{const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("svg");return n?(n.setAttribute("fill","currentColor"),n.style.color="currentColor",n.querySelectorAll("*").forEach((e=>{e.removeAttribute("fill"),e.removeAttribute("stroke"),e.style.fill="currentColor",e.style.stroke="currentColor",e.style.color="currentColor"})),t.innerHTML.replace(/<\/?div[^>]*>/g,"").replace(/style=""/g,"")):""};l.startsWith("e.text())).then((t=>x(e(t)))).catch((e=>console.error("Error loading SVG:",e)))}else x("")}),[l]),(0,i.jsxs)("div",{...y,children:[(0,i.jsxs)(r.BlockControls,{group:"block",children:[(0,i.jsx)(r.AlignmentToolbar,{value:c,onChange:e=>n({align:e})}),(0,i.jsx)(a.Button,{variant:"secondary",onClick:()=>{const e=wp.media({title:(0,d.__)("Replace SVG Icon","blynex"),button:{text:(0,d.__)("Select","blynex")},multiple:!1,library:{type:"image/svg+xml"}});e.on("select",(()=>{const t=e.state().get("selection").first().toJSON();t&&t.url&&n({iconUrl:t.url,iconSvg:""})})),e.open()},children:(0,d.__)("Replace","blynex")}),(0,i.jsx)(a.ToolbarGroup,{children:(0,i.jsx)(a.DropdownMenu,{icon:"ellipsis",label:(0,d.__)("More options","blynex"),toggleProps:{isSmall:!0,variant:"tertiary"},children:()=>(0,i.jsxs)("div",{style:{minWidth:"240px"},children:[(o||l)&&(0,i.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e0e0e0",marginBottom:"4px"},children:[(0,i.jsx)("div",{style:{fontSize:"11px",color:"#757575",marginBottom:"4px",textTransform:"uppercase",fontWeight:500},children:(0,d.__)("URL","blynex")}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px"},children:[(0,i.jsx)("span",{className:"dashicons dashicons-admin-site",style:{color:"#757575",flexShrink:0}}),(0,i.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o?o.split("/").pop():l.includes("http")?l.split("/").pop():"inline-svg.svg"}),(0,i.jsx)(a.Button,{icon:N,label:(0,d.__)("Edit","blynex"),onClick:e=>{e.stopPropagation(),wp.media({title:(0,d.__)("Edit Media","blynex"),button:{text:(0,d.__)("Update","blynex")},multiple:!1,library:{type:"image/svg+xml"}}).open()},isSmall:!0,variant:"tertiary"}),(0,i.jsx)(a.Button,{icon:H,label:(0,d.__)("Copy URL","blynex"),onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(o||l)},isSmall:!0,variant:"tertiary"})]})]}),(0,i.jsxs)(a.MenuGroup,{children:[(0,i.jsx)(a.MenuItem,{icon:"admin-media",onClick:()=>{const e=wp.media({title:(0,d.__)("Open Media Library","blynex"),button:{text:(0,d.__)("Select","blynex")},multiple:!1,library:{type:"image/svg+xml"}});e.on("select",(()=>{const t=e.state().get("selection").first().toJSON();t&&t.url&&n({iconUrl:t.url,iconSvg:""})})),e.open()},children:(0,d.__)("Open Media Library","blynex")}),(0,i.jsx)(a.MenuItem,{icon:"image-rotate",onClick:()=>{n({iconUrl:"",iconSvg:""})},children:(0,d.__)("Reset","blynex")})]})]})})})]}),(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),children:(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Size","blynex"),value:s||p,onChange:e=>n({size:e}),min:16,max:200,step:1})})}),o?(0,i.jsx)("div",{className:"svg-icon-container",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s}px`,height:`${s}px`,lineHeight:0,color:b},children:l?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:l.replace(/]*)>/,'n({iconSvg:e}),className:"svg-icon-url-input"}),(0,i.jsx)(a.Button,{isSecondary:!0,isLarge:!0,onClick:()=>{const e=wp.media({title:(0,d.__)("Select SVG","blynex"),button:{text:(0,d.__)("Select","blynex")},multiple:!1,library:{type:"image/svg+xml"}});e.on("select",(()=>(e=>(e&&e.url&&n({iconUrl:e.url,iconSvg:""}),!1))(e.state().get("selection").first().toJSON()))),e.open()},className:"svg-icon-upload-button",children:(0,d.__)("Upload SVG","blynex")})]})})]})},deprecated:L,save:({attributes:e})=>{const{iconSvg:t,iconUrl:n,size:l=48,align:o="center",style:a={}}=e,s=a?.color?.text||"currentColor",c=a?.color?.background||"transparent",d=r.useBlockProps.save({className:`has-text-align-${o} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:o,width:"fit-content",margin:"0 auto","--icon-color":s,"--icon-bg-color":c}}),p={display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${l}px`,height:`${l}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||n?n?(0,i.jsx)("div",{...d,children:(0,i.jsx)("div",{className:"svg-icon-container",style:p,children:(0,i.jsx)("div",{className:"svg-icon-mask","data-icon-url":n,style:{width:"100%",height:"100%",backgroundColor:"currentColor",WebkitMask:`url("${n}") center / contain no-repeat`,mask:`url("${n}") center / contain no-repeat`}})})}):t?(0,i.jsx)("div",{...d,children:(0,i.jsx)("div",{className:"svg-icon-container",style:p,dangerouslySetInnerHTML:{__html:t.replace(/]*)>/,'{const{items:n,headerTitle:l,headerSubtitle:o,headerDescription:s,showHeader:c,allowMultipleOpen:p,iconStyle:u,iconSize:x}=e,g=(e,l,o)=>{const r=n.map((t=>t.id===e?{...t,[l]:o}:t));t({items:r})};return(0,i.jsxs)(r.InspectorControls,{children:[(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Header Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Header","blynex"),checked:c,onChange:e=>t({showHeader:e})}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.TextControl,{label:(0,d.__)("Header Title","blynex"),value:l,onChange:e=>t({headerTitle:e})}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Header Subtitle","blynex"),value:o,onChange:e=>t({headerSubtitle:e})}),(0,i.jsx)(a.TextareaControl,{label:(0,d.__)("Header Description","blynex"),value:s,onChange:e=>t({headerDescription:e}),rows:3})]})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Accordion Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Allow Multiple Open","blynex"),checked:p,onChange:e=>t({allowMultipleOpen:e}),help:(0,d.__)("Allow multiple accordion items to be open at the same time","blynex")}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Icon Style","blynex"),value:u,onChange:e=>t({iconStyle:e}),options:[{label:(0,d.__)("Plus/Minus","blynex"),value:"plus-minus"},{label:(0,d.__)("Arrow Down","blynex"),value:"arrow-down"},{label:(0,d.__)("Chevron Down","blynex"),value:"chevron-down"},{label:(0,d.__)("Triangle","blynex"),value:"triangle"}],help:(0,d.__)("Choose the icon style for accordion toggles","blynex")}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Icon Size","blynex"),value:x,onChange:e=>t({iconSize:e}),min:16,max:32,step:2,help:(0,d.__)("Adjust the size of accordion icons","blynex")})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Accordion Items","blynex"),initialOpen:!1,children:[n.map(((e,l)=>(0,i.jsxs)("div",{style:{marginBottom:"20px",padding:"15px",border:"1px solid #ddd",borderRadius:"4px"},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px"},children:[(0,i.jsxs)("strong",{children:[(0,d.__)("Item","blynex")," ",l+1]}),(0,i.jsx)(a.Button,{isDestructive:!0,isSmall:!0,onClick:()=>{return l=e.id,void t({items:n.filter((e=>e.id!==l))});var l},children:(0,d.__)("Remove","blynex")})]}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Question","blynex"),value:e.question,onChange:t=>g(e.id,"question",t)}),(0,i.jsx)(a.TextareaControl,{label:(0,d.__)("Answer","blynex"),value:e.answer,onChange:t=>g(e.id,"answer",t),rows:3}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Open by Default","blynex"),checked:e.isOpen,onChange:t=>g(e.id,"isOpen",t)})]},e.id))),(0,i.jsx)(a.Button,{isPrimary:!0,onClick:()=>{const e={id:Date.now(),question:"New Question",answer:"New Answer",isOpen:!1};t({items:[...n,e]})},style:{marginTop:"10px"},children:(0,d.__)("Add Item","blynex")})]})]})};(0,R.registerBlockType)(P.name,{...P,attributes:{items:{type:"array",default:[{id:1,question:"What services do you offer?",answer:"We provide grooming, hair styling, vet checkups, paw and nail care, training, and more for all types of pets.",isOpen:!0},{id:2,question:"Are your veterinarians certified?",answer:"Our services cover everything from professional grooming and pet styling to routine vet visits, nail trimming, and behavioral training for pets of all sizes.",isOpen:!1},{id:3,question:"Can you handle anxious or aggressive pets?",answer:"From paw care to hair styling, grooming to training, we provide a full range of services designed to keep pets healthy, happy, and well cared for.",isOpen:!1}]},headerTitle:{type:"string",default:"FAQ"},headerSubtitle:{type:"string",default:"Frequently Asked Questions"},headerDescription:{type:"string",default:"At PetCove, we're here to answer all your pet care questions covering grooming, health checkups, training, emergencies, and booking guidance for your furry friends."},showHeader:{type:"boolean",default:!0},allowMultipleOpen:{type:"boolean",default:!1},iconStyle:{type:"string",default:"plus-minus"},iconSize:{type:"number",default:24}},edit:function({attributes:e,setAttributes:t}){const{items:n,headerTitle:l,headerSubtitle:o,headerDescription:a,showHeader:s,allowMultipleOpen:c,iconStyle:d,iconSize:p}=e,u=(0,r.useBlockProps)({className:"wp-block-blynex-accordion-block"}),[x,b]=(0,w.useState)(n.reduce(((e,t)=>(t.isOpen&&(e[t.id]=!0),e)),{})),h=e=>{b(c?t=>({...t,[e]:!t[e]}):{[e]:!x[e]})},y=e=>{const t=p||24,n={width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};switch(d){case"plus-minus":default:return e?(0,i.jsx)("svg",{...n,children:(0,i.jsx)("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,i.jsx)("svg",{...n,children:(0,i.jsx)("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"arrow-down":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"chevron-down":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M8 10L12 14L16 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"triangle":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}};return(0,i.jsxs)("div",{...u,children:[(0,i.jsx)($,{attributes:e,setAttributes:t}),(0,i.jsxs)("div",{className:"accordion-layout",children:[s&&(0,i.jsxs)("div",{className:"accordion-header",children:[(0,i.jsx)("h2",{className:"header-title",children:l}),(0,i.jsx)("h2",{className:"header-subtitle",children:o}),(0,i.jsx)("p",{className:"header-description",children:a})]}),(0,i.jsx)("div",{className:"accordion-items",children:n.map(((e,t)=>{const n=x[e.id],l=g()("accordion-item",{"is-open":n});return(0,i.jsxs)("div",{className:l,"data-icon-size":p,children:[(0,i.jsxs)("div",{className:"accordion-question",onClick:()=>h(e.id),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),h(e.id))},"aria-expanded":n,"aria-controls":`accordion-answer-${e.id}`,children:[(0,i.jsxs)("h2",{className:"question-text",children:[t+1,". ",e.question]}),(0,i.jsx)("div",{className:"accordion-icon",children:y(n)})]}),(0,i.jsx)("div",{id:`accordion-answer-${e.id}`,className:"accordion-answer","aria-hidden":!n,children:(0,i.jsx)("p",{children:e.answer})})]},e.id)}))})]})]})},save:function({attributes:e}){const{items:t,headerTitle:n,headerSubtitle:l,headerDescription:o,showHeader:a,allowMultipleOpen:s,iconStyle:c,iconSize:d}=e,p=r.useBlockProps.save({className:"wp-block-blynex-accordion-block"}),u=e=>{const t=d||24,n={width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};switch(c){case"plus-minus":default:return e?(0,i.jsx)("svg",{...n,children:(0,i.jsx)("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,i.jsx)("svg",{...n,children:(0,i.jsx)("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"arrow-down":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"chevron-down":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M8 10L12 14L16 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"triangle":return(0,i.jsx)("svg",{...n,style:{transform:e?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.3s ease"},children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}};return(0,i.jsxs)("div",{...p,children:[(0,i.jsxs)("div",{className:"accordion-layout",children:[a&&(0,i.jsxs)("div",{className:"accordion-header",children:[(0,i.jsx)("h2",{className:"header-title",children:n}),(0,i.jsx)("h2",{className:"header-subtitle",children:l}),(0,i.jsx)("p",{className:"header-description",children:o})]}),(0,i.jsx)("div",{className:"accordion-items",children:t.map(((e,t)=>{const n=g()("accordion-item",{"is-open":e.isOpen});return(0,i.jsxs)("div",{className:n,"data-icon-size":d,children:[(0,i.jsxs)("div",{className:"accordion-question",role:"button",tabIndex:0,"aria-expanded":e.isOpen,"aria-controls":`accordion-answer-${e.id}`,"data-accordion-toggle":!0,"data-item-id":e.id,children:[(0,i.jsxs)("h2",{className:"question-text",children:[t+1,". ",e.question]}),(0,i.jsx)("div",{className:"accordion-icon",children:u(!1)})]}),(0,i.jsx)("div",{id:`accordion-answer-${e.id}`,className:"accordion-answer","aria-hidden":!e.isOpen,children:(0,i.jsx)("p",{children:e.answer})})]},e.id)}))})]}),(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t(function() {\n\t\t\t\t\t\tconst accordionItems = document.querySelectorAll('[data-accordion-toggle]');\n\t\t\t\t\t\t\n\t\t\t\t\t\taccordionItems.forEach(function(item) {\n\t\t\t\t\t\t\titem.addEventListener('click', function() {\n\t\t\t\t\t\t\t\tconst accordionItem = this.closest('.accordion-item');\n\t\t\t\t\t\t\t\tconst isOpen = accordionItem.classList.contains('is-open');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// Close all items if allowMultipleOpen is false\n\t\t\t\t\t\t\t\tconst container = accordionItem.closest('.wp-block-blynex-accordion-block');\n\t\t\t\t\t\t\t\tconst allItems = container.querySelectorAll('.accordion-item');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tallItems.forEach(function(otherItem) {\n\t\t\t\t\t\t\t\t\tif (otherItem !== accordionItem) {\n\t\t\t\t\t\t\t\t\t\totherItem.classList.remove('is-open');\n\t\t\t\t\t\t\t\t\t\tconst otherToggle = otherItem.querySelector('[data-accordion-toggle]');\n\t\t\t\t\t\t\t\t\t\tconst otherAnswer = otherItem.querySelector('.accordion-answer');\n\t\t\t\t\t\t\t\t\t\tif (otherToggle) otherToggle.setAttribute('aria-expanded', 'false');\n\t\t\t\t\t\t\t\t\t\tif (otherAnswer) otherAnswer.setAttribute('aria-hidden', 'true');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// Toggle current item\n\t\t\t\t\t\t\t\tif (isOpen) {\n\t\t\t\t\t\t\t\t\taccordionItem.classList.remove('is-open');\n\t\t\t\t\t\t\t\t\tthis.setAttribute('aria-expanded', 'false');\n\t\t\t\t\t\t\t\t\tconst answer = accordionItem.querySelector('.accordion-answer');\n\t\t\t\t\t\t\t\t\tif (answer) answer.setAttribute('aria-hidden', 'true');\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\taccordionItem.classList.add('is-open');\n\t\t\t\t\t\t\t\t\tthis.setAttribute('aria-expanded', 'true');\n\t\t\t\t\t\t\t\t\tconst answer = accordionItem.querySelector('.accordion-answer');\n\t\t\t\t\t\t\t\t\tif (answer) answer.setAttribute('aria-hidden', 'false');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keyboard support\n\t\t\t\t\t\t\titem.addEventListener('keydown', function(e) {\n\t\t\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\tthis.click();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t})();\n\t\t\t\t"}})]})}}),n(652);const{registerBlockType:A}=wp.blocks,O=[["core/cover",{dimRatio:0,isUserOverlayColor:!0,minHeightUnit:"px",isDark:!1,align:"full",style:{spacing:{padding:{top:"var:preset|spacing|80",bottom:"var:preset|spacing|40",left:"var:preset|spacing|80",right:"var:preset|spacing|80"},blockGap:"0"}}},[["core/heading",{textAlign:"center",className:"is-style-text-section-header",content:(0,d.__)("Pick the best solution to match
your budgeting needs","blynex")}],["core/paragraph",{align:"center",style:{spacing:{padding:{top:"var:preset|spacing|30",bottom:"var:preset|spacing|20",left:"var:preset|spacing|80",right:"var:preset|spacing|80"}}},content:(0,d.__)("Whether you're saving, investing, or budgeting, we offer flexible plans
designed to meet your unique financial goals.","blynex")}],["core/columns",{style:{spacing:{padding:{top:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|30"},blockGap:"var:preset|spacing|50"}},layout:{type:"flex",flexWrap:"nowrap",justifyContent:"space-around"}},[["core/column",{style:{flexBasis:"0",flexGrow:"1",spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"}},border:{radius:"30px"}},backgroundColor:"accent-6"},[["core/heading",{level:2,className:"is-style-default",fontSize:"x-large",content:(0,d.__)("Standard","blynex")}],["core/paragraph",{style:{spacing:{margin:{bottom:"0",top:"0px"}}},fontSize:"medium",content:(0,d.__)("For personal use","blynex")}],["core/separator",{className:"is-style-default",style:{spacing:{margin:{top:"var:preset|spacing|40",bottom:"var:preset|spacing|40"}}},backgroundColor:"accent-7"}],["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["core/heading",{level:2,fontSize:"x-large",content:(0,d.__)("$ 29 USD","blynex")}],["core/paragraph",{fontSize:"medium",content:(0,d.__)("Monthly","blynex")}]]],["core/list",{className:"is-style-checkmark-list",style:{spacing:{padding:{top:"var:preset|spacing|20"}}},fontSize:"medium",values:`
  • ${(0,d.__)("Budgeting and Expense Tracking","blynex")}
  • ${(0,d.__)("Unlimited Activity Notifications","blynex")}
  • ${(0,d.__)("Credit Score Monitoring","blynex")}
  • ${(0,d.__)("Expense Tracking","blynex")}
  • ${(0,d.__)("Bank Transaction Imports","blynex")}
  • `}],["core/buttons",{style:{spacing:{padding:{top:"var:preset|spacing|30"}}},layout:{type:"flex",justifyContent:"left"}},[["core/button",{textAlign:"center",className:"is-style-secondary",text:(0,d.__)("Get Started","blynex")}]]]]],["core/column",{style:{flexBasis:"0",flexGrow:"1",spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"}},border:{radius:"30px"}},backgroundColor:"accent-1"},[["core/heading",{level:2,textAlign:"left",className:"is-style-default",style:{elements:{link:{color:{text:"var:preset|color|base"}}}},textColor:"base",fontSize:"x-large",content:(0,d.__)("Business","blynex")}],["core/paragraph",{align:"left",style:{spacing:{margin:{bottom:"0",top:"0px"}},elements:{link:{color:{text:"var:preset|color|accent-5"}}}},textColor:"accent-5",fontSize:"medium",content:(0,d.__)("For personal use","blynex")}],["core/separator",{className:"is-style-default",style:{spacing:{margin:{top:"var:preset|spacing|40",bottom:"var:preset|spacing|40"}}},backgroundColor:"accent-6"}],["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["core/heading",{level:2,style:{elements:{link:{color:{text:"var:preset|color|base"}}}},textColor:"base",fontSize:"x-large",content:(0,d.__)("$ 69 USD","blynex")}],["core/paragraph",{style:{elements:{link:{color:{text:"var:preset|color|accent-5"}}}},textColor:"accent-5",fontSize:"medium",content:(0,d.__)("Yearly","blynex")}]]],["core/list",{className:"is-style-checkmark-list",style:{spacing:{padding:{top:"var:preset|spacing|20"}},elements:{link:{color:{text:"var:preset|color|base"}}}},textColor:"base",fontSize:"medium",values:`
  • ${(0,d.__)("Budgeting and Expense Tracking","blynex")}
  • ${(0,d.__)("Unlimited Activity Notifications","blynex")}
  • ${(0,d.__)("Credit Score Monitoring","blynex")}
  • ${(0,d.__)("Expense Tracking","blynex")}
  • ${(0,d.__)("Bank Transaction Imports","blynex")}
  • `}],["core/buttons",{style:{spacing:{padding:{top:"var:preset|spacing|30"}}}},[["core/button",{textAlign:"left",className:"is-style-secondary",text:(0,d.__)("Get Started","blynex")}]]]]],["core/column",{style:{flexBasis:"0",flexGrow:"1",spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"}},border:{radius:"30px"}},backgroundColor:"accent-6"},[["core/heading",{level:2,className:"is-style-default",fontSize:"x-large",content:(0,d.__)("Unlimited","blynex")}],["core/paragraph",{style:{spacing:{margin:{bottom:"0",top:"0px"}}},fontSize:"medium",content:(0,d.__)("For personal use","blynex")}],["core/separator",{className:"is-style-default",style:{spacing:{margin:{top:"var:preset|spacing|40",bottom:"var:preset|spacing|40"}}},backgroundColor:"accent-7"}],["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["core/heading",{level:2,fontSize:"x-large",content:(0,d.__)("$ 129 USD","blynex")}],["core/paragraph",{fontSize:"medium",content:(0,d.__)("Lifetime","blynex")}]]],["core/list",{className:"is-style-checkmark-list",style:{spacing:{padding:{top:"var:preset|spacing|20"}}},fontSize:"medium",values:`
  • ${(0,d.__)("Budgeting and Expense Tracking","blynex")}
  • ${(0,d.__)("Unlimited Activity Notifications","blynex")}
  • ${(0,d.__)("Credit Score Monitoring","blynex")}
  • ${(0,d.__)("Expense Tracking","blynex")}
  • ${(0,d.__)("Bank Transaction Imports","blynex")}
  • `}],["core/buttons",{style:{spacing:{padding:{top:"var:preset|spacing|30"}}}},[["core/button",{className:"is-style-secondary",text:(0,d.__)("Get Started","blynex")}]]]]]]]]]];A("blynex/pricing-block",{title:(0,d.__)("Pricing Block","blynex"),icon:"money-alt",category:"design",edit:()=>{const e=(0,r.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(r.InnerBlocks,{template:O})})},save:()=>{const e=r.useBlockProps.save();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(r.InnerBlocks.Content,{})})}});const{registerBlockType:E}=wp.blocks,D=[["core/cover",{dimRatio:0,isUserOverlayColor:!0,minHeight:726,minHeightUnit:"px",isDark:!1,align:"full",style:{spacing:{margin:{top:"0",bottom:"0"},padding:{top:"var:preset|spacing|60",bottom:"var:preset|spacing|80"}}},layout:{type:"constrained",contentSize:"1400px"}},[["core/heading",{textAlign:"center",className:"is-style-text-section-header",content:(0,d.__)("See what our customers
    are saying","blynex")}],["core/paragraph",{align:"center",content:(0,d.__)("Get a glimpse into the real experiences of our users. From glowing reviews to inspiring stories,
    see how our service is making a difference in people's lives.","blynex")}],["core/columns",{style:{spacing:{padding:{top:"var:preset|spacing|50"}}}},[["core/column",{style:{spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"}},border:{radius:"30px"}},backgroundColor:"accent-6"},[["core/group",{layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"space-between"}},[["core/image",{width:"50px",height:"auto",sizeSlug:"full",linkDestination:"none",url:"/wp-content/themes/blynex/assets/images/blynex-main-logo-1.webp",alt:(0,d.__)("Company Logo","blynex")}],["core/paragraph",{style:{elements:{link:{color:{text:"var:preset|color|contrast"}}}},textColor:"contrast",content:(0,d.__)("★★★★★","blynex")}]]],["core/heading",{level:2,className:"is-style-default",style:{spacing:{padding:{top:"var:preset|spacing|20"}}},fontSize:"large",content:(0,d.__)('"Out of all the finance tools I\'ve used, Blynex is the most impressive and user-friendly."',"blynex")}],["core/paragraph",{style:{spacing:{padding:{bottom:"var:preset|spacing|40"}}},fontSize:"medium",content:(0,d.__)("Our users consistently praise Blynex for its exceptional simplicity and effectiveness. Whether managing budgets or tracking expenses, Blynex delivers a smooth experience that outshines the competition.","blynex")}],["core/heading",{level:2,fontSize:"large",content:(0,d.__)("Olivia Thompson","blynex")}],["core/paragraph",{style:{spacing:{margin:{top:"var:preset|spacing|20",bottom:"var:preset|spacing|20"}}},fontSize:"small",content:(0,d.__)("Creative Director","blynex")}]]],["core/column",{style:{spacing:{padding:{top:"var:preset|spacing|50",bottom:"var:preset|spacing|50",left:"var:preset|spacing|50",right:"var:preset|spacing|50"}},border:{radius:"30px"}},backgroundColor:"accent-6"},[["core/group",{layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"space-between"}},[["core/image",{width:"50px",height:"auto",sizeSlug:"full",linkDestination:"none",url:"/wp-content/themes/blynex/assets/images/blynex-main-logo-1.webp",alt:(0,d.__)("Company Logo","blynex")}],["core/paragraph",{style:{elements:{link:{color:{text:"var:preset|color|contrast"}}}},textColor:"contrast",content:(0,d.__)("★★★★★","blynex")}]]],["core/heading",{level:2,className:"is-style-default",style:{spacing:{padding:{top:"var:preset|spacing|20"}}},fontSize:"large",content:(0,d.__)('"Blynex has helped me master my finances, and the guidance it offers is truly valuable."',"blynex")}],["core/paragraph",{style:{spacing:{padding:{bottom:"var:preset|spacing|40"}}},fontSize:"medium",content:(0,d.__)("Blynex empowers users to take full charge of their finances with clear, actionable insights. From tracking expenses to identifying smarter ways to save, Blynex turns complex financial data into simple, meaningful guidance.","blynex")}],["core/heading",{level:2,fontSize:"large",content:(0,d.__)("Isabella Kim","blynex")}],["core/paragraph",{style:{spacing:{margin:{top:"var:preset|spacing|20",bottom:"var:preset|spacing|20"}}},fontSize:"small",content:(0,d.__)("Content Creator","blynex")}]]]]]]]];E("blynex/reviews-block",{title:(0,d.__)("Reviews Block","blynex"),icon:"star-filled",category:"blynex-blocks",edit:()=>{const e=(0,r.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(r.InnerBlocks,{template:D,templateLock:"all"})})},save:()=>{const e=r.useBlockProps.save();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(r.InnerBlocks.Content,{})})}}),n.e(789).then(n.bind(n,789))},573:function(e){"use strict";e.exports=window.wp.primitives},609:function(e){"use strict";e.exports=window.React},627:function(e,t,n){"use strict";var l=n(723),o=n(715),r=n(427),a=(n(87),n(790));const{registerBlockType:i}=wp.blocks;i("blynex/announcement-widget",{title:(0,l.__)("Announcement Widget","blynex"),description:(0,l.__)("A customizable announcement widget with badge, text, and icon.","blynex"),category:"widgets",icon:"megaphone",keywords:["announcement","widget","badge","cta","notification"],supports:{html:!0,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{text:!0,background:!0},style:{color:{background:!0,text:!0,border:!0}}},attributes:{badgeText:{type:"string",default:"NEW"},mainText:{type:"string",default:"The Financial Brighter Application"},badgeColor:{type:"string",default:""},badgeTextColor:{type:"string",default:""},textColor:{type:"string",default:""},backgroundColor:{type:"string",default:""},borderColor:{type:"string",default:""},borderRadius:{type:"number",default:10},borderWidth:{type:"number",default:1},padding:{type:"object",default:{top:"6px",right:"6px",bottom:"6px",left:"6px"}},margin:{type:"object",default:{top:"0px",right:"0px",bottom:"0px",left:"0px"}},width:{type:"number",default:325},height:{type:"number",default:41},gap:{type:"number",default:12},showIcon:{type:"boolean",default:!0},iconColor:{type:"string",default:""},iconBackgroundColor:{type:"string",default:""},align:{type:"string",default:"left"},fontSize:{type:"number",default:12},badgeFontSize:{type:"number",default:10},fontWeight:{type:"string",default:"500"},badgeFontWeight:{type:"string",default:"600"}},edit:({attributes:e,setAttributes:t,isSelected:n})=>{try{const{badgeText:n,mainText:i,badgeColor:s,badgeTextColor:c,textColor:d,backgroundColor:p,borderColor:u,borderRadius:x,borderWidth:g,padding:b,margin:h,gap:y,showIcon:m,iconColor:v,iconBackgroundColor:f,align:C,fontSize:_,badgeFontSize:j,fontWeight:w,badgeFontWeight:k}=e,S=(0,o.useSetting)("color.palette")||[],B={};S.forEach((e=>{B[e.slug]=e.color}));const I={base:"var(--wp--preset--color--base, #FFFFFF)",contrast:"var(--wp--preset--color--contrast, #193E39)",accent1:"var(--wp--preset--color--accent-1, #1E322D)",accent2:"var(--wp--preset--color--accent-2, #DBFE7A)",accent5:"var(--wp--preset--color--accent-5, #0A0915)",accent6:"var(--wp--preset--color--accent-6, #FAF8F4)"},F=(0,o.useBlockProps)({className:`blynex-announcement-widget align-${C}`,style:{backgroundColor:p||I.accent6,border:`${g}px solid ${u||I.accent1}`,borderRadius:`${x}px`,padding:`${b.top} ${b.right} ${b.bottom} ${b.left}`,margin:`${h.top} ${h.right} ${h.bottom} ${h.left}`,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:`${y}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),T={backgroundColor:s||I.accent2,color:c||I.base,fontSize:`${j}px`,fontWeight:k,padding:"4px 12px",borderRadius:"6px",textTransform:"uppercase",letterSpacing:"0.5px",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"40px",height:"24px"},N={color:d||I.base,fontSize:`${_}px`,fontWeight:w,flex:1,margin:0,lineHeight:"1.4"},H={backgroundColor:f||I.accent1,color:v||I.base,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.BlockControls,{children:(0,a.jsx)(o.AlignmentToolbar,{value:C,onChange:e=>t({align:e})})}),(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,a.jsx)(r.TextControl,{label:(0,l.__)("Badge Text","blynex"),value:n,onChange:e=>t({badgeText:e})}),(0,a.jsx)(r.TextControl,{label:(0,l.__)("Main Text","blynex"),value:i,onChange:e=>t({mainText:e})}),(0,a.jsx)(r.ToggleControl,{label:(0,l.__)("Show Icon","blynex"),checked:m,onChange:e=>t({showIcon:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Badge Styling","blynex"),initialOpen:!1,children:[(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Badge Background Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:s,onChange:e=>t({badgeColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Badge Text Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:c,onChange:e=>t({badgeTextColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsx)(r.RangeControl,{label:(0,l.__)("Badge Font Size","blynex"),value:j,onChange:e=>t({badgeFontSize:e}),min:8,max:24,step:1}),(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Badge Font Weight","blynex"),value:k,options:[{label:(0,l.__)("Normal","blynex"),value:"400"},{label:(0,l.__)("Medium","blynex"),value:"500"},{label:(0,l.__)("Semi Bold","blynex"),value:"600"},{label:(0,l.__)("Bold","blynex"),value:"700"}],onChange:e=>t({badgeFontWeight:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Text Styling","blynex"),initialOpen:!1,children:[(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Text Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:d,onChange:e=>t({textColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsx)(r.RangeControl,{label:(0,l.__)("Font Size","blynex"),value:_,onChange:e=>t({fontSize:e}),min:12,max:32,step:1}),(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Font Weight","blynex"),value:w,options:[{label:(0,l.__)("Normal","blynex"),value:"400"},{label:(0,l.__)("Medium","blynex"),value:"500"},{label:(0,l.__)("Semi Bold","blynex"),value:"600"},{label:(0,l.__)("Bold","blynex"),value:"700"}],onChange:e=>t({fontWeight:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Background & Border","blynex"),initialOpen:!1,children:[(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Background Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:p,onChange:e=>t({backgroundColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Border Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:u,onChange:e=>t({borderColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsx)(r.RangeControl,{label:(0,l.__)("Border Radius","blynex"),value:x,onChange:e=>t({borderRadius:e}),min:0,max:50,step:1}),(0,a.jsx)(r.RangeControl,{label:(0,l.__)("Border Width","blynex"),value:g,onChange:e=>t({borderWidth:e}),min:0,max:10,step:1})]}),(0,a.jsx)(r.PanelBody,{title:(0,l.__)("Dimensions & Spacing","blynex"),initialOpen:!1,children:(0,a.jsx)(r.RangeControl,{label:(0,l.__)("Gap (px)","blynex"),value:y,onChange:e=>t({gap:e}),min:4,max:32,step:1})}),(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Icon Styling","blynex"),initialOpen:!1,children:[(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Icon Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:v,onChange:e=>t({iconColor:e}),colors:S,disableCustomColors:!1})]}),(0,a.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,l.__)("Icon Background Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:f,onChange:e=>t({iconBackgroundColor:e}),colors:S,disableCustomColors:!1})]})]})]}),(0,a.jsxs)("div",{...F,children:[(0,a.jsx)("div",{style:T,children:(0,a.jsx)(o.RichText,{tagName:"span",value:n,onChange:e=>t({badgeText:e}),placeholder:(0,l.__)("Badge text...","blynex"),className:"blynex-announcement-badge-text"})}),(0,a.jsx)(o.RichText,{tagName:"p",value:i,onChange:e=>t({mainText:e}),placeholder:(0,l.__)("Main announcement text...","blynex"),className:"blynex-announcement-text",style:N}),m?(0,a.jsx)("div",{style:H,children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):(0,a.jsx)("div",{style:{...H,opacity:.3},children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}catch(e){return console.error("Announcement Widget Edit Error:",e),(0,a.jsxs)("div",{style:{padding:"20px",border:"2px dashed #ff0000",backgroundColor:"#fff5f5",color:"#ff0000",textAlign:"center"},children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Announcement Widget Error"})}),(0,a.jsx)("p",{children:"There was an error rendering this widget."}),(0,a.jsxs)("p",{children:["Error: ",e.message]})]})}},save:({attributes:e})=>{const{badgeText:t,mainText:n,badgeColor:l,badgeTextColor:r,textColor:i,backgroundColor:s,borderColor:c,borderRadius:d,borderWidth:p,padding:u,margin:x,gap:g,showIcon:b,iconColor:h,iconBackgroundColor:y,align:m,fontSize:v,badgeFontSize:f,fontWeight:C,badgeFontWeight:_}=e,j="var(--wp--preset--color--base, #FFFFFF)",w="var(--wp--preset--color--accent-1, #1E322D)",k=o.useBlockProps.save({className:`blynex-announcement-widget align-${m}`,style:{backgroundColor:s||"var(--wp--preset--color--accent-6, #FAF8F4)",border:`${p}px solid ${c||w}`,borderRadius:`${d}px`,padding:`${u.top} ${u.right} ${u.bottom} ${u.left}`,margin:`${x.top} ${x.right} ${x.bottom} ${x.left}`,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:`${g}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),S={backgroundColor:l||"var(--wp--preset--color--accent-2, #DBFE7A)",color:r||j,fontSize:`${f}px`,fontWeight:_,padding:"4px 12px",borderRadius:"6px",textTransform:"uppercase",letterSpacing:"0.5px",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"40px",height:"24px"},B={color:i||j,fontSize:`${v}px`,fontWeight:C,flex:1,margin:0,lineHeight:"1.4"},I={backgroundColor:y||w,color:h||j,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,a.jsxs)("div",{...k,children:[(0,a.jsx)("div",{style:S,children:(0,a.jsx)(o.RichText.Content,{tagName:"span",value:t,className:"blynex-announcement-badge-text"})}),(0,a.jsx)(o.RichText.Content,{tagName:"p",value:n,className:"blynex-announcement-text",style:B}),b&&(0,a.jsx)("div",{style:I,children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}})},652:function(e,t,n){"use strict";var l=n(997),o=n(723),r=n(715),a=n(427),i=n(573),s=n(790),c=(0,s.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(i.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),d=(0,s.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(i.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,l.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:t})=>{const{menuTitle:n,menuItems:l,titleColor:i,linkColor:p,backgroundColor:u,menuDirection:x,menuDirectionTablet:g,menuDirectionMobile:b,menuWidth:h,menuWidthTablet:y,menuWidthMobile:m,menuHeight:v,menuHeightTablet:f,menuHeightMobile:C,itemSpacing:_,itemSpacingTablet:j,itemSpacingMobile:w,enableAccordion:k,showToggleIcon:S,toggleIconPosition:B,containerBackgroundColor:I,containerBorderColor:F,containerBorderWidth:T,containerBorderRadius:N,titleFontFamily:H,titleFontSize:W,titleFontWeight:M,titleLineHeight:z,titleLetterSpacing:L,menuItemFontFamily:R,menuItemFontSize:P,menuItemFontWeight:$,menuItemLineHeight:A,menuItemLetterSpacing:O}=e;if(!l||0===l.length||4===l.length&&l.some((e=>["products","company","pricing","contact"].includes(e.id)))){const e=Date.now(),n=()=>Math.random().toString(36).substr(2,9),l=[{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()}`}];t({menuItems:l})}const E=(0,r.useBlockProps)({className:"blynex-responsive-nav-menu"}),D=()=>{const e={label:(0,o.__)("New Item","blynex"),url:"#",id:`item-${Date.now()}-${Math.random().toString(36).substr(2,9)}`};t({menuItems:[...l,e]})},U=(e,n,o)=>{const r=[...l];r[e][n]=o,t({menuItems:r})};return(0,s.jsxs)("div",{...E,children:[(0,s.jsx)(r.BlockControls,{children:(0,s.jsx)(a.ToolbarGroup,{children:(0,s.jsx)(a.ToolbarButton,{icon:c,label:(0,o.__)("Add Menu Item","blynex"),onClick:D})})}),(0,s.jsxs)(r.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,o.__)("Menu Settings","blynex"),children:[(0,s.jsx)(a.TextControl,{label:(0,o.__)("Menu Title","blynex"),value:n,onChange:e=>t({menuTitle:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,o.__)("Enable Accordion","blynex"),checked:k,onChange:e=>t({enableAccordion:e}),help:(0,o.__)("Enable accordion behavior on smaller screens","blynex")}),k&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:(0,o.__)("Show Toggle Icon","blynex"),checked:S,onChange:e=>t({showToggleIcon:e})}),S&&(0,s.jsx)(a.SelectControl,{label:(0,o.__)("Toggle Icon Position","blynex"),value:B,options:[{label:(0,o.__)("Right","blynex"),value:"right"},{label:(0,o.__)("Left","blynex"),value:"left"}],onChange:e=>t({toggleIconPosition:e})})]})]}),(0,s.jsx)(a.PanelBody,{title:(0,o.__)("Responsive Layout","blynex"),initialOpen:!1,children:(0,s.jsx)(a.TabPanel,{className:"responsive-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:(0,o.__)("Desktop","blynex"),className:"tab-desktop"},{name:"tablet",title:(0,o.__)("Tablet","blynex"),className:"tab-tablet"},{name:"mobile",title:(0,o.__)("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)(a.SelectControl,{label:(0,o.__)("Menu Direction","blynex"),value:x,options:[{label:(0,o.__)("Vertical","blynex"),value:"vertical"},{label:(0,o.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>t({menuDirection:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Width","blynex"),value:h,onChange:e=>t({menuWidth:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Height","blynex"),value:v,onChange:e=>t({menuHeight:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Item Spacing","blynex"),value:_,onChange:e=>t({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)(a.SelectControl,{label:(0,o.__)("Menu Direction","blynex"),value:g,options:[{label:(0,o.__)("Vertical","blynex"),value:"vertical"},{label:(0,o.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>t({menuDirectionTablet:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Width","blynex"),value:y,onChange:e=>t({menuWidthTablet:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Height","blynex"),value:f,onChange:e=>t({menuHeightTablet:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Item Spacing","blynex"),value:j,onChange:e=>t({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)(a.SelectControl,{label:(0,o.__)("Menu Direction","blynex"),value:b,options:[{label:(0,o.__)("Vertical","blynex"),value:"vertical"},{label:(0,o.__)("Horizontal","blynex"),value:"horizontal"}],onChange:e=>t({menuDirectionMobile:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Width","blynex"),value:m,onChange:e=>t({menuWidthMobile:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Menu Height","blynex"),value:C,onChange:e=>t({menuHeightMobile:e}),units:[{value:"px",label:"px"},{value:"auto",label:"auto"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Item Spacing","blynex"),value:w,onChange:e=>t({itemSpacingMobile:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]})]})})}),(0,s.jsxs)(a.PanelBody,{title:(0,o.__)("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,o.__)("Title Color","blynex")}),(0,s.jsx)(r.ColorPalette,{colors:(0,r.useSetting)("color.palette"),value:i,onChange:e=>t({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,o.__)("Link Color","blynex")}),(0,s.jsx)(r.ColorPalette,{colors:(0,r.useSetting)("color.palette"),value:p,onChange:e=>t({linkColor:e||"var(--wp--preset--color--primary)"}),enableAlpha:!0,clearable:!0})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,o.__)("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,o.__)("Background Color","blynex")}),(0,s.jsx)(r.ColorPalette,{colors:(0,r.useSetting)("color.palette"),value:I,onChange:e=>t({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,o.__)("Border Color","blynex")}),(0,s.jsx)(r.ColorPalette,{colors:(0,r.useSetting)("color.palette"),value:F,onChange:e=>t({containerBorderColor:e||"var(--wp--preset--color--contrast)"}),enableAlpha:!0,clearable:!0})]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Border Width","blynex"),value:T,onChange:e=>t({containerBorderWidth:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Border Radius","blynex"),value:N,onChange:e=>t({containerBorderRadius:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,o.__)("Typography","blynex"),initialOpen:!1,children:[(0,s.jsx)("h4",{children:(0,o.__)("Title Typography","blynex")}),(0,s.jsx)(a.SelectControl,{label:(0,o.__)("Font Family","blynex"),value:e.titleFontFamily,options:[{label:(0,o.__)("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=>t({titleFontFamily:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Font Size","blynex"),value:e.titleFontSize,onChange:e=>t({titleFontSize:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(a.SelectControl,{label:(0,o.__)("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=>t({titleFontWeight:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Line Height","blynex"),value:e.titleLineHeight,onChange:e=>t({titleLineHeight:e}),units:[{value:"",label:"unitless"},{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Letter Spacing","blynex"),value:e.titleLetterSpacing,onChange:e=>t({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,o.__)("Menu Items Typography","blynex")}),(0,s.jsx)(a.SelectControl,{label:(0,o.__)("Font Family","blynex"),value:e.menuItemFontFamily,options:[{label:(0,o.__)("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=>t({menuItemFontFamily:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Font Size","blynex"),value:e.menuItemFontSize,onChange:e=>t({menuItemFontSize:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(a.SelectControl,{label:(0,o.__)("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=>t({menuItemFontWeight:e})}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Line Height","blynex"),value:e.menuItemLineHeight,onChange:e=>t({menuItemLineHeight:e}),units:[{value:"",label:"unitless"},{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"},{value:"%",label:"%"}]}),(0,s.jsx)(a.__experimentalUnitControl,{label:(0,o.__)("Letter Spacing","blynex"),value:e.menuItemLetterSpacing,onChange:e=>t({menuItemLetterSpacing:e}),units:[{value:"px",label:"px"},{value:"rem",label:"rem"},{value:"em",label:"em"}]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,o.__)("Menu Items","blynex"),initialOpen:!1,children:[l.map(((e,n)=>(0,s.jsxs)("div",{style:{marginBottom:"16px",padding:"12px",border:"1px solid #ddd",borderRadius:"4px"},children:[(0,s.jsx)(a.TextControl,{label:(0,o.__)("Label","blynex"),value:e.label,onChange:e=>U(n,"label",e)}),(0,s.jsx)(a.TextControl,{label:(0,o.__)("URL","blynex"),value:e.url,onChange:e=>U(n,"url",e)}),(0,s.jsx)(a.Button,{icon:d,label:(0,o.__)("Remove Item","blynex"),onClick:()=>(e=>{const n=l.filter(((t,n)=>n!==e));t({menuItems:n})})(n),isDestructive:!0,variant:"secondary",size:"small"})]},e.id))),(0,s.jsx)(a.Button,{icon:c,onClick:D,variant:"primary",children:(0,o.__)("Add Menu Item","blynex")})]})]}),(0,s.jsx)("div",{className:"responsive-nav-menu-preview","data-menu-direction":x,"data-enable-accordion":k,"data-toggle-position":B,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",style:{width:h,height:v,backgroundColor:I||void 0,borderColor:F||void 0,borderWidth:T||"0px",borderRadius:N||"0px",borderStyle:F&&"0px"!==T?"solid":"none"},children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:i,fontFamily:H||void 0,fontSize:W,fontWeight:M,lineHeight:z,letterSpacing:L},children:[n,S&&k&&(0,s.jsx)("span",{className:`menu-toggle toggle-${B}`,"aria-hidden":"true",children:"+"})]}),(0,s.jsx)("nav",{className:`menu-items direction-${x}`,style:{gap:_,flexDirection:"horizontal"===x?"row":"column"},children:l.map(((e,t)=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:p,fontFamily:R||void 0,fontSize:P,fontWeight:$,lineHeight:A,letterSpacing:O},onClick:e=>e.preventDefault(),children:e.label},e.id)))})]})})]})},save:({attributes:e})=>{const{menuTitle:t,menuItems:n,titleColor:l,linkColor:o,menuDirection:a,menuDirectionTablet:i,menuDirectionMobile:c,menuWidth:d,menuWidthTablet:p,menuWidthMobile:u,menuHeight:x,menuHeightTablet:g,menuHeightMobile:b,itemSpacing:h,itemSpacingTablet:y,itemSpacingMobile:m,enableAccordion:v,showToggleIcon:f,toggleIconPosition:C,containerBackgroundColor:_,containerBorderColor:j,containerBorderWidth:w,containerBorderRadius:k,titleFontFamily:S,titleFontSize:B,titleFontWeight:I,titleLineHeight:F,titleLetterSpacing:T,menuItemFontFamily:N,menuItemFontSize:H,menuItemFontWeight:W,menuItemLineHeight:M,menuItemLetterSpacing:z}=e,L=r.useBlockProps.save({className:"blynex-responsive-nav-menu","data-desktop-direction":a,"data-tablet-direction":i,"data-mobile-direction":c,"data-enable-accordion":v,"data-toggle-position":C}),R={"--menu-width":d,"--menu-width-tablet":p,"--menu-width-mobile":u,"--menu-height":x,"--menu-height-tablet":g,"--menu-height-mobile":b,"--item-spacing":h,"--item-spacing-tablet":y,"--item-spacing-mobile":m,backgroundColor:_||void 0,borderColor:j||void 0,borderWidth:w||"0px",borderRadius:k||"0px",borderStyle:j&&"0px"!==w?"solid":"none"};return(0,s.jsx)("div",{...L,style:R,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:l,fontFamily:S||void 0,fontSize:B,fontWeight:I,lineHeight:F,letterSpacing:T},role:"button",tabIndex:"0","aria-expanded":"false","aria-controls":`menu-items-${t.toLowerCase().replace(/\s+/g,"-")}`,children:[t,f&&v&&(0,s.jsx)("span",{className:`menu-toggle toggle-${C}`,"aria-hidden":"true",children:"+"})]}),(0,s.jsx)("nav",{className:`menu-items direction-${a}`,id:`menu-items-${t.toLowerCase().replace(/\s+/g,"-")}`,role:"region","aria-labelledby":"menu-title",style:{gap:h,flexDirection:"horizontal"===a?"row":"column"},children:n.map((e=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:o,fontFamily:N||void 0,fontSize:H,fontWeight:W,lineHeight:M,letterSpacing:z},children:e.label},e.id)))})]})})}})},715:function(e){"use strict";e.exports=window.wp.blockEditor},723:function(e){"use strict";e.exports=window.wp.i18n},790:function(e){"use strict";e.exports=window.ReactJSXRuntime},832:function(e){"use strict";e.exports=window.wp.url},876:function(e){"use strict";e.exports=window.wp.richText},942:function(e,t){var n;!function(){"use strict";var l={}.hasOwnProperty;function o(){for(var e="",t=0;t=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[s])}))?n.splice(s--,1):(i=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,l,o]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return e+".js?ver=655c8cea330347eca255"},r.miniCssF=function(e){return e+".css"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},n="blynex:",r.l=function(e,l,o,a){if(t[e])t[e].push(l);else{var i,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d-1&&(!e||!/^http(s?):/.test(e));)e=n[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}(),function(){if("undefined"!=typeof document){var e={57:0,628:0,864:0};r.f.miniCss=function(t,n){e[t]?n.push(e[t]):0!==e[t]&&{789:1}[t]&&n.push(e[t]=function(e){return new Promise((function(t,n){var l=r.miniCssF(e),o=r.p+l;if(function(e,t){for(var n=document.getElementsByTagName("link"),l=0;l