!function(){var e,t,n,o={87:function(e){"use strict";e.exports=window.wp.element},112:function(e,t,n){"use strict";var o=window.wp.hooks;"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","awp/cover-custom-attribute")&&(0,o.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 l=window.wp.compose,r=n(715),i=n(427),a=n(790);const s=()=>(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",{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,l.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:o,isSelected:l}=t,{hideOnMobile:c,hideOnTablet:d,hideOnDesktop:p}=n;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e,{...t}),l&&(0,a.jsx)(r.InspectorControls,{children:(0,a.jsxs)(i.PanelBody,{title:(0,a.jsxs)("div",{style:{display:"flex",fontSize:"13px",fontWeight:"500",alignItems:"center",gap:"8px"},children:[(0,a.jsx)(s,{}),(0,a.jsx)("span",{children:"Responsive Settings"})]}),initialOpen:!1,className:"blynex-responsive-panel",children:[(0,a.jsx)(i.ToggleControl,{label:wp.i18n.__("Hide on mobile","awp"),checked:!!c,onChange:()=>o({hideOnMobile:!c})}),(0,a.jsx)(i.ToggleControl,{label:wp.i18n.__("Hide on tablet","awp"),checked:!!d,onChange:()=>o({hideOnTablet:!d})}),(0,a.jsx)(i.ToggleControl,{label:wp.i18n.__("Hide on desktop","awp"),checked:!!p,onChange:()=>o({hideOnDesktop:!p})})]})})]})}),"withResponsiveControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","awp/cover-custom-controls")&&(0,o.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,o.addFilter)("blocks.getSaveContent.extraProps","awp/cover-apply-class-frontend",(function(e,t,n){const{hideOnMobile:o,hideOnTablet:l,hideOnDesktop:r}=n;return e||(e={}),void 0!==o&&o&&(e.className=(e.className||"")+" hide-on-mobile"),void 0!==l&&l&&(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,o.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,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",{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"})}),x=(0,l.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:o,isSelected:l}=t,{blynexHoverEffect:s="none",blynexHoverIntensity:c=.5,blynexHoverScale:d=1.05,blynexHoverDuration:x=.3}=n||{};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e,{...t}),l&&("core/cover"===t.name||"core/image"===t.name)&&(0,a.jsx)(r.InspectorControls,{children:(0,a.jsxs)(i.PanelBody,{title:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",fontWeight:"500"},children:[(0,a.jsx)(p,{}),(0,a.jsx)("span",{children:"Hover Effects"})]}),initialOpen:!0,className:"blynex-hover-panel",children:[(0,a.jsx)(i.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=>o({blynexHoverEffect:e})}),"none"!==s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{marginBottom:"16px"},children:(0,a.jsx)(i.RangeControl,{label:"Effect Strength",value:c,onChange:e=>o({blynexHoverIntensity:e}),min:.1,max:1,step:.1,allowReset:!0,initialPosition:.5})}),(0,a.jsx)("div",{style:{marginBottom:"16px"},children:(0,a.jsx)(i.RangeControl,{label:"Duration (seconds)",value:x,onChange:e=>o({blynexHoverDuration:e}),min:.1,max:1,step:.1,allowReset:!0,initialPosition:.3})}),"core/cover"===t.name&&(0,a.jsx)("div",{style:{marginBottom:"16px"},children:(0,a.jsx)(i.RangeControl,{label:"Zoom Scale",value:d,onChange:e=>o({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,o.addFilter)("editor.BlockEdit","blynex/hover-effect-controls",x);var u=n(942),g=n.n(u);const b=(0,l.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{blynexHoverEffect:o,blynexHoverIntensity:l=.5,blynexHoverScale:r=1.05,blynexHoverDuration:i=.3}=n,s={...t.wrapperProps,className:g()(t?.wrapperProps?.className,{[`blynex-hover-${o}`]:o&&"none"!==o,"blynex-hover-enabled":!0}),style:{...t.wrapperProps?.style||{},"--blynex-intensity":l,"--blynex-duration":`${i}s`,"--blynex-scale":r}};return(0,a.jsx)(e,{...t,wrapperProps:s})}),"applyHoverClasses");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockListBlock","blynex/hover-effect-classes")&&(0,o.addFilter)("editor.BlockListBlock","blynex/hover-effect-classes",b);"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","blynex/image-filter-attributes")&&(0,o.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 y=()=>(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",{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"})}),h=(0,a.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,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"3.072"}),(0,a.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,a.jsx)("g",{id:"Layer_1"}),(0,a.jsx)("g",{id:"Layer_2",children:(0,a.jsxs)("g",{children:[(0,a.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,a.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"})]})})]})]}),f=(0,l.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:o,isSelected:l}=t,{blynexFilterBlur:s=0,blynexFilterBrightness:c=1,blynexFilterContrast:p=1,blynexFilterHueRotate:x=0,blynexFilterSaturate:u=1,blynexFilterSepia:g=0,blynexFilterInvert:b=0,blynexFilterOpacity:f=1,blynexFilterGrayscale:m=0}=n,v=(e,t)=>{o({[e]:t})},C=(e,t)=>{o({[e]:t})},w=(e,t)=>e.toString(),j=(e,t,n)=>{let o;switch(n){case"blur":case"hue-rotate":default:o=parseFloat(t)||0;break;case"percentage":o=parseFloat(t)/100||0}v(e,o)},_=0!==s||1!==c||1!==p||0!==x||1!==u||0!==g||0!==b||1!==f||0!==m;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e,{...t}),l&&("core/image"===t.name||"core/cover"===t.name)&&(0,a.jsx)(r.InspectorControls,{children:(0,a.jsx)(i.PanelBody,{title:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",fontWeight:"500"},children:[(0,a.jsx)(y,{}),(0,a.jsx)("span",{children:(0,d.__)("Image Filters","blynex")}),_&&(0,a.jsx)("span",{style:{backgroundColor:"#007cba",color:"white",borderRadius:"10px",padding:"2px 6px",fontSize:"10px",fontWeight:"600"},children:"Active"}),_&&(0,a.jsx)(i.Button,{variant:"secondary",size:"small",onClick:()=>{o({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:h})]}),initialOpen:_,className:"blynex-filter-panel",children:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"8px 0"},children:[(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"blur"}),0!==s&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(s)})]}),value:s,onChange:e=>v("blynexFilterBlur",e),min:0,max:20,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(s),onChange:e=>j("blynexFilterBlur",e.target.value,"blur")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"brightness"}),1!==c&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(c)})]}),value:c,onChange:e=>v("blynexFilterBrightness",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(c),onChange:e=>j("blynexFilterBrightness",e.target.value,"default")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"contrast"}),1!==p&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(p)})]}),value:p,onChange:e=>v("blynexFilterContrast",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(p),onChange:e=>j("blynexFilterContrast",e.target.value,"default")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"grayscale"}),0!==m&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(m)})]}),value:m,onChange:e=>v("blynexFilterGrayscale",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(m),onChange:e=>j("blynexFilterGrayscale",e.target.value,"percentage")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"hue-rotate"}),0!==x&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(x)})]}),value:x,onChange:e=>v("blynexFilterHueRotate",e),min:0,max:360,step:1,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(x),onChange:e=>j("blynexFilterHueRotate",e.target.value,"hue-rotate")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"invert"}),0!==b&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(b)})]}),value:b,onChange:e=>v("blynexFilterInvert",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(b),onChange:e=>j("blynexFilterInvert",e.target.value,"percentage")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"opacity"}),1!==f&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(f)})]}),value:f,onChange:e=>v("blynexFilterOpacity",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(f),onChange:e=>j("blynexFilterOpacity",e.target.value,"default")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"saturate"}),1!==u&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(u)})]}),value:u,onChange:e=>v("blynexFilterSaturate",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(u),onChange:e=>j("blynexFilterSaturate",e.target.value,"default")}})}),(0,a.jsx)("div",{className:"blynex-filter-control",children:(0,a.jsx)(i.RangeControl,{label:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",fontWeight:"500",textTransform:"lowercase"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,a.jsx)("span",{children:"sepia"}),0!==g&&(0,a.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:h})]}),(0,a.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:w(g)})]}),value:g,onChange:e=>v("blynexFilterSepia",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:w(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,o.addFilter)("editor.BlockEdit","blynex/image-filter-controls",f);const m=(0,l.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:o,clientId:l}=t;if("core/image"!==o)return(0,a.jsx)(e,{...t});const{blynexFilterBlur:r=0,blynexFilterBrightness:i=1,blynexFilterContrast:s=1,blynexFilterHueRotate:c=0,blynexFilterSaturate:d=1,blynexFilterSepia:p=0,blynexFilterInvert:x=0,blynexFilterOpacity:u=1,blynexFilterGrayscale:g=0}=n,b=[];r&&r>0&&b.push(`blur(${r}px)`),i&&1!==i&&b.push(`brightness(${i})`),s&&1!==s&&b.push(`contrast(${s})`),g&&g>0&&b.push(`grayscale(${g})`),c&&c>0&&b.push(`hue-rotate(${c}deg)`),x&&x>0&&b.push(`invert(${x})`),d&&1!==d&&b.push(`saturate(${d})`),p&&p>0&&b.push(`sepia(${p})`);const y=b.join(" "),h={...t.wrapperProps,style:{...t.wrapperProps?.style||{},filter:y||void 0,opacity:u||void 0}};return(0,a.jsx)(e,{...t,wrapperProps:h})}),"withEditorImageFilters");"undefined"!=typeof wp&&wp.hooks&&(wp.hooks.hasFilter("editor.BlockListBlock","blynex/editor-image-filters")||(0,o.addFilter)("editor.BlockListBlock","blynex/editor-image-filters",m),wp.hooks.hasFilter("blocks.getSaveContent.extraProps","blynex/frontend-image-filter")||(0,o.addFilter)("blocks.getSaveContent.extraProps","blynex/frontend-image-filter",((e,t,n)=>{const{blynexFilterBlur:o=0,blynexFilterBrightness:l=1,blynexFilterContrast:r=1,blynexFilterHueRotate:i=0,blynexFilterSaturate:a=1,blynexFilterSepia:s=0,blynexFilterInvert:c=0,blynexFilterOpacity:d=1,blynexFilterGrayscale:p=0}=n;if(!(o&&o>0||l&&1!==l||r&&1!==r||i&&i>0||a&&1!==a||s&&s>0||c&&c>0||d&&d<1||p&&p>0))return e;const x=["blynex-has-filter"];o&&o>0&&x.push("blynex-filter-blur"),l&&1!==l&&x.push("blynex-filter-brightness"),r&&1!==r&&x.push("blynex-filter-contrast"),i&&i>0&&x.push("blynex-filter-hue-rotate"),a&&1!==a&&x.push("blynex-filter-saturate"),s&&s>0&&x.push("blynex-filter-sepia"),c&&c>0&&x.push("blynex-filter-invert"),d&&d<1&&x.push("blynex-filter-opacity"),p&&p>0&&x.push("blynex-filter-grayscale");const u=[e.className,x.join(" ")].filter(Boolean).join(" ");return{...e,className:u,"data-blynex-filter":JSON.stringify({blur:o||0,brightness:l||1,contrast:r||1,hueRotate:i||0,saturate:a||1,sepia:s||0,invert:c||0,opacity:d||1,grayscale:p||0})}})));var v=n(279),C=window.wp.editor,w=n(143);const j=()=>(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.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,v.registerPlugin)("blynex-theme-settings",{icon:(0,a.jsx)(j,{}),render:()=>{const e=(0,w.useSelect)((e=>e("core").getEntityRecord("root","site")?.blynex_scroll_top||!1)),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,w.useDispatch)("core");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.PluginSidebarMoreMenuItem,{target:"blynex-theme-settings",icon:(0,a.jsx)(j,{}),children:(0,d.__)("Blynex Settings","blynex")}),(0,a.jsx)(C.PluginSidebar,{name:"blynex-theme-settings",title:(0,d.__)("Blynex Settings","blynex"),icon:(0,a.jsx)(j,{}),children:(0,a.jsx)(i.PanelBody,{title:(0,d.__)("Feature Options","blynex"),initialOpen:!0,children:(0,a.jsx)(i.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 _=n(87),k=window.wp.primitives,S=(0,a.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.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,a.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.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:F}=wp.blocks,I={"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"}}};F("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:o,linkTarget:l,rel:s,showIcon:c,iconType:p,predefinedIcon:x,customIconSvg:u,uploadedIconId:g,uploadedIconUrl:b,uploadedIconAlt:y,iconPosition:h,iconSize:f,iconGap:m,buttonSize:v,buttonWidth:C,customWidth:w,backgroundColor:j,textColor:k,borderColor:F,hoverBackgroundColor:R,hoverTextColor:N,hoverBorderColor:P,iconColor:W,hoverIconColor:H,fontSize:$,fontWeight:M,textTransform:z,letterSpacing:L,borderRadius:E,borderWidth:O,borderStyle:A,padding:G,margin:V,alignment:U,boxShadow:D,hoverBoxShadow:Z,transition:J,gradient:q,hoverGradient:K,animation:X}=e,[Q,Y]=(0,_.useState)(!1);(0,_.useEffect)((()=>{if(v&&T[v]){const e=T[v];t({fontSize:e.fontSize,padding:e.padding})}}),[v]);const ee=()=>({width:`${f}px`,height:`${f}px`,color:W||"currentColor",fill:"currentColor"}),te=()=>{if(!c)return null;if("upload"===p&&b)return(0,a.jsx)("img",{src:b,alt:y,className:"blynex-button-icon",style:ee()});let e="";return"predefined"===p&&I[x]?e=I[x]:"custom"===p&&u&&(e=u),e?(0,a.jsx)("span",{className:"blynex-button-icon",style:ee(),dangerouslySetInnerHTML:{__html:e}}):null},ne=(0,r.useBlockProps)({className:"blynex-button-widget",style:{textAlign:U}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.BlockControls,{children:(0,a.jsx)(r.AlignmentToolbar,{value:U,onChange:e=>t({alignment:e})})}),(0,a.jsx)(r.InspectorControls,{children:(0,a.jsx)(i.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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.PanelBody,{title:(0,d.__)("Link Settings","blynex"),initialOpen:!0,children:(0,a.jsxs)("div",{className:"blynex-link-control",children:[(0,a.jsx)(i.Button,{icon:o?S:B,onClick:()=>Y(!Q),variant:o?"primary":"secondary",children:o?(0,d.__)("Edit Link","blynex"):(0,d.__)("Add Link","blynex")}),Q&&(0,a.jsxs)("div",{className:"blynex-link-picker",children:[(0,a.jsx)(r.URLInput,{value:o,onChange:e=>t({buttonUrl:e}),placeholder:(0,d.__)("Enter URL","blynex")}),(0,a.jsx)(i.SelectControl,{label:(0,d.__)("Link Target","blynex"),value:l,options:[{label:(0,d.__)("Same Window","blynex"),value:"_self"},{label:(0,d.__)("New Window","blynex"),value:"_blank"}],onChange:e=>t({linkTarget:e})}),(0,a.jsx)(i.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,a.jsxs)(i.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),initialOpen:!1,children:[(0,a.jsx)(i.ToggleControl,{label:(0,d.__)("Show Icon","blynex"),checked:c,onChange:e=>t({showIcon:e})}),c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.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,a.jsx)(i.SelectControl,{label:(0,d.__)("Select Icon","blynex"),value:x,options:Object.keys(I).map((e=>({label:e.replace("-"," ").replace(/\b\w/g,(e=>e.toUpperCase())),value:e}))),onChange:e=>t({predefinedIcon:e})}),"custom"===p&&(0,a.jsx)(i.TextareaControl,{label:(0,d.__)("Custom SVG Code","blynex"),value:u,onChange:e=>t({customIconSvg:e}),help:(0,d.__)("Paste your SVG code here","blynex"),rows:4}),"upload"===p&&(0,a.jsxs)("div",{className:"button-widget-upload-section",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:(0,d.__)("Upload Image or SVG","blynex")})}),(0,a.jsx)("p",{className:"description",children:(0,d.__)("Supported formats: JPG, PNG, GIF, WebP, SVG","blynex")}),(0,a.jsx)(r.MediaUploadCheck,{children:(0,a.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,a.jsx)("div",{children:b?(0,a.jsxs)("div",{className:"uploaded-icon-preview",children:[(0,a.jsx)("img",{src:b,alt:y,style:{maxWidth:"100px",maxHeight:"100px",display:"block",marginBottom:"10px"}}),(0,a.jsxs)("div",{className:"upload-actions",children:[(0,a.jsx)(i.Button,{variant:"secondary",onClick:e,style:{marginRight:"10px"},children:(0,d.__)("Replace","blynex")}),(0,a.jsx)(i.Button,{variant:"link",isDestructive:!0,onClick:()=>t({uploadedIconId:0,uploadedIconUrl:"",uploadedIconAlt:""}),children:(0,d.__)("Remove","blynex")})]})]}):(0,a.jsx)(i.Button,{variant:"secondary",onClick:e,className:"button-add-media",children:(0,d.__)("Upload Image/SVG","blynex")})})})})]}),(0,a.jsx)(i.SelectControl,{label:(0,d.__)("Icon Position","blynex"),value:h,options:[{label:(0,d.__)("Left","blynex"),value:"left"},{label:(0,d.__)("Right","blynex"),value:"right"}],onChange:e=>t({iconPosition:e})}),(0,a.jsx)(i.RangeControl,{label:(0,d.__)("Icon Size","blynex"),value:f,onChange:e=>t({iconSize:e}),min:8,max:48,step:1}),(0,a.jsx)(i.RangeControl,{label:(0,d.__)("Icon Gap","blynex"),value:m,onChange:e=>t({iconGap:e}),min:0,max:32,step:1})]})]})]}):"style"===e.name?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.PanelBody,{title:(0,d.__)("Size & Dimensions","blynex"),initialOpen:!0,children:[(0,a.jsx)(i.SelectControl,{label:(0,d.__)("Button Size","blynex"),value:v,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,a.jsx)(i.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,a.jsx)(i.__experimentalUnitControl,{label:(0,d.__)("Custom Width","blynex"),value:w,onChange:e=>t({customWidth:e})})]}),(0,a.jsx)(i.PanelBody,{title:(0,d.__)("Colors","blynex"),initialOpen:!1,children:(0,a.jsxs)("div",{className:"blynex-color-controls",children:[(0,a.jsx)("h4",{children:(0,d.__)("Normal State","blynex")}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Background Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:j,onChange:e=>t({backgroundColor:e}),clearable:!0})]}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Text Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:k,onChange:e=>t({textColor:e}),clearable:!0})]}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Border Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:F,onChange:e=>t({borderColor:e}),clearable:!0})]}),c&&(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Icon Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:W,onChange:e=>t({iconColor:e}),clearable:!0})]}),(0,a.jsx)("h4",{children:(0,d.__)("Hover State","blynex")}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Hover Background Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:R,onChange:e=>t({hoverBackgroundColor:e}),clearable:!0})]}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Hover Text Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:N,onChange:e=>t({hoverTextColor:e}),clearable:!0})]}),(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Hover Border Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:P,onChange:e=>t({hoverBorderColor:e}),clearable:!0})]}),c&&(0,a.jsxs)("div",{className:"color-control-group",children:[(0,a.jsx)("label",{children:(0,d.__)("Hover Icon Color","blynex")}),(0,a.jsx)(r.ColorPalette,{value:H,onChange:e=>t({hoverIconColor:e}),clearable:!0})]})]})}),(0,a.jsxs)(i.PanelBody,{title:(0,d.__)("Typography","blynex"),initialOpen:!1,children:[(0,a.jsx)(i.__experimentalUnitControl,{label:(0,d.__)("Font Size","blynex"),value:$,onChange:e=>t({fontSize:e})}),(0,a.jsx)(i.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:M,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,a.jsx)(i.SelectControl,{label:(0,d.__)("Text Transform","blynex"),value:z,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,a.jsx)(i.__experimentalUnitControl,{label:(0,d.__)("Letter Spacing","blynex"),value:L,onChange:e=>t({letterSpacing:e})})]}),(0,a.jsxs)(i.PanelBody,{title:(0,d.__)("Border & Spacing","blynex"),initialOpen:!1,children:[(0,a.jsx)(i.__experimentalUnitControl,{label:(0,d.__)("Border Radius","blynex"),value:E,onChange:e=>t({borderRadius:e})}),(0,a.jsx)(i.__experimentalUnitControl,{label:(0,d.__)("Border Width","blynex"),value:O,onChange:e=>t({borderWidth:e})}),(0,a.jsx)(i.SelectControl,{label:(0,d.__)("Border Style","blynex"),value:A,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,a.jsx)(i.__experimentalBoxControl,{label:(0,d.__)("Padding","blynex"),values:G,onChange:e=>t({padding:e})}),(0,a.jsx)(i.__experimentalBoxControl,{label:(0,d.__)("Margin","blynex"),values:V,onChange:e=>t({margin:e})})]})]}):"advanced"===e.name?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.PanelBody,{title:(0,d.__)("Effects","blynex"),initialOpen:!0,children:[(0,a.jsx)(i.TextControl,{label:(0,d.__)("Box Shadow","blynex"),value:D,onChange:e=>t({boxShadow:e}),help:(0,d.__)("e.g., 0 4px 8px rgba(0,0,0,0.1)","blynex")}),(0,a.jsx)(i.TextControl,{label:(0,d.__)("Hover Box Shadow","blynex"),value:Z,onChange:e=>t({hoverBoxShadow:e}),help:(0,d.__)("e.g., 0 8px 16px rgba(0,0,0,0.2)","blynex")}),(0,a.jsx)(i.TextControl,{label:(0,d.__)("Transition","blynex"),value:J,onChange:e=>t({transition:e}),help:(0,d.__)("e.g., all 0.3s ease","blynex")})]})}):void 0})}),(0,a.jsx)("div",{...ne,className:`${ne.className||""} widget-auto-size size-${v}`.trim(),children:(0,a.jsxs)("button",{className:`blynex-custom-button icon-${h}`,style:(()=>{const e={display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",cursor:"pointer",border:"none",outline:"none",transition:J,fontSize:$,fontWeight:M,textTransform:z,letterSpacing:L,borderRadius:E,borderWidth:O,borderStyle:A,borderColor:F||"transparent",padding:`${G.top} ${G.right} ${G.bottom} ${G.left}`,margin:`${V.top} ${V.right} ${V.bottom} ${V.left}`,boxShadow:D,gap:c?`${m}px`:"0"};if(e.width="full"===C?"100%":"custom"===C?w:"auto",q.enabled&&q.colors.length>0){const t=q.colors.map((e=>e.color)).join(", ");e.background=`${q.type}-gradient(${q.angle}, ${t})`}else e.backgroundColor=j||"var(--wp--preset--color--accent-2)";return e.color=k||"var(--wp--preset--color--contrast)",R&&(e["--hover-bg-color"]=R),N&&(e["--hover-text-color"]=N),P&&(e["--hover-border-color"]=P),H&&(e["--hover-icon-color"]=H),e})(),type:"button",children:["left"===h&&te(),(0,a.jsx)(r.RichText,{tagName:"span",value:n,onChange:e=>t({buttonText:e}),placeholder:(0,d.__)("Button text...","blynex"),allowedFormats:[],className:"blynex-button-text"}),"right"===h&&te()]})})]})},save:({attributes:e})=>{const{buttonText:t,buttonUrl:n,linkTarget:o,rel:l,showIcon:i,iconType:s,predefinedIcon:c,customIconSvg:d,iconPosition:p,iconSize:x,iconGap:u,uploadedIconId:g,uploadedIconUrl:b,uploadedIconAlt:y,backgroundColor:h,textColor:f,borderColor:m,iconColor:v,hoverBackgroundColor:C,hoverTextColor:w,hoverBorderColor:j,hoverIconColor:_,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:F,borderRadius:T,borderWidth:R,borderStyle:N,padding:P,margin:W,alignment:H,boxShadow:$,transition:M,buttonWidth:z,customWidth:L,gradient:E,buttonSize:O}=e,A=()=>({width:`${x}px`,height:`${x}px`,color:v||"currentColor",fill:"currentColor"}),G=()=>{if(!i)return null;if("upload"===s&&b)return(0,a.jsx)("img",{src:b,alt:y,className:"blynex-button-icon",style:A()});let e="";return"predefined"===s&&I[c]?e=I[c]:"custom"===s&&d&&(e=d),e?(0,a.jsx)("span",{className:"blynex-button-icon",style:A(),dangerouslySetInnerHTML:{__html:e}}):null},V=r.useBlockProps.save({className:`blynex-button-widget widget-auto-size size-${O}`,style:{textAlign:H}}),U=n?"a":"button",D={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:M,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:F,borderRadius:T,borderWidth:R,borderStyle:N,borderColor:m||"transparent",padding:`${P.top} ${P.right} ${P.bottom} ${P.left}`,margin:`${W.top} ${W.right} ${W.bottom} ${W.left}`,boxShadow:$,gap:i?`${u}px`:"0"};if(e.width="full"===z?"100%":"custom"===z?L:"auto",E.enabled&&E.colors.length>0){const t=E.colors.map((e=>e.color)).join(", ");e.background=`${E.type}-gradient(${E.angle}, ${t})`}else e.backgroundColor=h||"var(--wp--preset--color--accent-2)";return e.color=f||"var(--wp--preset--color--contrast)",C&&(e["--hover-bg-color"]=C),w&&(e["--hover-text-color"]=w),j&&(e["--hover-border-color"]=j),_&&(e["--hover-icon-color"]=_),e})()};return n?(D.href=n,D.target=o,l&&(D.rel=l)):D.type="button",(0,a.jsx)("div",{...V,children:(0,a.jsxs)(U,{...D,children:["left"===p&&G(),(0,a.jsx)("span",{className:"blynex-button-text",children:t}),"right"===p&&G()]})})}}),n(627);var R=(0,a.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(k.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),N=(0,a.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.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:P}=wp.blocks,{useState:W,useEffect:H}=wp.element,$=[{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:o=48,align:l="center",style:r={}}=e,i={className:`has-text-align-${l} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:l,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:`${o}px`,height:`${o}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||n?n?(0,a.jsx)("div",{...i,children:(0,a.jsx)("div",{className:"svg-icon-container",style:s,children:(0,a.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,a.jsx)("div",{...i,children:(0,a.jsx)("div",{className:"svg-icon-container",style:s,dangerouslySetInnerHTML:{__html:t.replace(/]*)>/,'{const{attributes:t,setAttributes:n}=e,{iconSvg:o,iconUrl:l,size:s=48,align:c="center"}=t,p=(0,r.useSetting)("spacing.iconSizes.medium")||48,[x,u]=W(""),{style:g={}}=t,b=g?.color?.text||"currentColor",y=g?.color?.background||"transparent",h=(0,r.useBlockProps)({className:`has-text-align-${c} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:c,"--icon-color":b,"--icon-bg-color":y}});return H((()=>{if(o){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,"")):""};o.startsWith("e.text())).then((t=>u(e(t)))).catch((e=>console.error("Error loading SVG:",e)))}else u("")}),[o]),(0,a.jsxs)("div",{...h,children:[(0,a.jsxs)(r.BlockControls,{group:"block",children:[(0,a.jsx)(r.AlignmentToolbar,{value:c,onChange:e=>n({align:e})}),(0,a.jsx)(i.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,a.jsx)(i.ToolbarGroup,{children:(0,a.jsx)(i.DropdownMenu,{icon:"ellipsis",label:(0,d.__)("More options","blynex"),toggleProps:{isSmall:!0,variant:"tertiary"},children:()=>(0,a.jsxs)("div",{style:{minWidth:"240px"},children:[(l||o)&&(0,a.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e0e0e0",marginBottom:"4px"},children:[(0,a.jsx)("div",{style:{fontSize:"11px",color:"#757575",marginBottom:"4px",textTransform:"uppercase",fontWeight:500},children:(0,d.__)("URL","blynex")}),(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px"},children:[(0,a.jsx)("span",{className:"dashicons dashicons-admin-site",style:{color:"#757575",flexShrink:0}}),(0,a.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l?l.split("/").pop():o.includes("http")?o.split("/").pop():"inline-svg.svg"}),(0,a.jsx)(i.Button,{icon:R,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,a.jsx)(i.Button,{icon:N,label:(0,d.__)("Copy URL","blynex"),onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(l||o)},isSmall:!0,variant:"tertiary"})]})]}),(0,a.jsxs)(i.MenuGroup,{children:[(0,a.jsx)(i.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,a.jsx)(i.MenuItem,{icon:"image-rotate",onClick:()=>{n({iconUrl:"",iconSvg:""})},children:(0,d.__)("Reset","blynex")})]})]})})})]}),(0,a.jsx)(r.InspectorControls,{children:(0,a.jsx)(i.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),children:(0,a.jsx)(i.RangeControl,{label:(0,d.__)("Size","blynex"),value:s||p,onChange:e=>n({size:e}),min:16,max:200,step:1})})}),l?(0,a.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:o?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:o.replace(/]*)>/,'n({iconSvg:e}),className:"svg-icon-url-input"}),(0,a.jsx)(i.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:$,save:({attributes:e})=>{const{iconSvg:t,iconUrl:n,size:o=48,align:l="center",style:i={}}=e,s=i?.color?.text||"currentColor",c=i?.color?.background||"transparent",d=r.useBlockProps.save({className:`has-text-align-${l} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:l,width:"fit-content",margin:"0 auto","--icon-color":s,"--icon-bg-color":c}}),p={display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${o}px`,height:`${o}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||n?n?(0,a.jsx)("div",{...d,children:(0,a.jsx)("div",{className:"svg-icon-container",style:p,children:(0,a.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,a.jsx)("div",{...d,children:(0,a.jsx)("div",{className:"svg-icon-container",style:p,dangerouslySetInnerHTML:{__html:t.replace(/]*)>/,'{try{const{badgeText:n,mainText:a,badgeColor:s,badgeTextColor:c,textColor:d,backgroundColor:p,borderColor:x,borderRadius:u,borderWidth:g,padding:b,margin:y,gap:h,showIcon:f,iconColor:m,iconBackgroundColor:v,align:C,fontSize:w,badgeFontSize:j,fontWeight:_,badgeFontWeight:k}=e,S=(0,l.useSetting)("color.palette")||[],B={};S.forEach((e=>{B[e.slug]=e.color}));const F={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)"},I=(0,l.useBlockProps)({className:`blynex-announcement-widget align-${C}`,style:{backgroundColor:p||F.accent6,border:`${g}px solid ${x||F.accent1}`,borderRadius:`${u}px`,padding:`${b.top} ${b.right} ${b.bottom} ${b.left}`,margin:`${y.top} ${y.right} ${y.bottom} ${y.left}`,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:`${h}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),T={backgroundColor:s||F.accent2,color:c||F.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"},R={color:d||F.base,fontSize:`${w}px`,fontWeight:_,flex:1,margin:0,lineHeight:"1.4"},N={backgroundColor:v||F.accent1,color:m||F.base,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.BlockControls,{children:(0,i.jsx)(l.AlignmentToolbar,{value:C,onChange:e=>t({align:e})})}),(0,i.jsxs)(l.InspectorControls,{children:[(0,i.jsxs)(r.PanelBody,{title:(0,o.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.TextControl,{label:(0,o.__)("Badge Text","blynex"),value:n,onChange:e=>t({badgeText:e})}),(0,i.jsx)(r.TextControl,{label:(0,o.__)("Main Text","blynex"),value:a,onChange:e=>t({mainText:e})}),(0,i.jsx)(r.ToggleControl,{label:(0,o.__)("Show Icon","blynex"),checked:f,onChange:e=>t({showIcon:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,o.__)("Badge Styling","blynex"),initialOpen:!1,children:[(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Badge Background Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:s,onChange:e=>t({badgeColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Badge Text Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:c,onChange:e=>t({badgeTextColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsx)(r.RangeControl,{label:(0,o.__)("Badge Font Size","blynex"),value:j,onChange:e=>t({badgeFontSize:e}),min:8,max:24,step:1}),(0,i.jsx)(r.SelectControl,{label:(0,o.__)("Badge Font Weight","blynex"),value:k,options:[{label:(0,o.__)("Normal","blynex"),value:"400"},{label:(0,o.__)("Medium","blynex"),value:"500"},{label:(0,o.__)("Semi Bold","blynex"),value:"600"},{label:(0,o.__)("Bold","blynex"),value:"700"}],onChange:e=>t({badgeFontWeight:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,o.__)("Text Styling","blynex"),initialOpen:!1,children:[(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Text Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:d,onChange:e=>t({textColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsx)(r.RangeControl,{label:(0,o.__)("Font Size","blynex"),value:w,onChange:e=>t({fontSize:e}),min:12,max:32,step:1}),(0,i.jsx)(r.SelectControl,{label:(0,o.__)("Font Weight","blynex"),value:_,options:[{label:(0,o.__)("Normal","blynex"),value:"400"},{label:(0,o.__)("Medium","blynex"),value:"500"},{label:(0,o.__)("Semi Bold","blynex"),value:"600"},{label:(0,o.__)("Bold","blynex"),value:"700"}],onChange:e=>t({fontWeight:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,o.__)("Background & Border","blynex"),initialOpen:!1,children:[(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Background Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:p,onChange:e=>t({backgroundColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Border Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:x,onChange:e=>t({borderColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsx)(r.RangeControl,{label:(0,o.__)("Border Radius","blynex"),value:u,onChange:e=>t({borderRadius:e}),min:0,max:50,step:1}),(0,i.jsx)(r.RangeControl,{label:(0,o.__)("Border Width","blynex"),value:g,onChange:e=>t({borderWidth:e}),min:0,max:10,step:1})]}),(0,i.jsx)(r.PanelBody,{title:(0,o.__)("Dimensions & Spacing","blynex"),initialOpen:!1,children:(0,i.jsx)(r.RangeControl,{label:(0,o.__)("Gap (px)","blynex"),value:h,onChange:e=>t({gap:e}),min:4,max:32,step:1})}),(0,i.jsxs)(r.PanelBody,{title:(0,o.__)("Icon Styling","blynex"),initialOpen:!1,children:[(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Icon Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:m,onChange:e=>t({iconColor:e}),colors:S,disableCustomColors:!1})]}),(0,i.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,i.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,o.__)("Icon Background Color","blynex")}),(0,i.jsx)(l.ColorPalette,{value:v,onChange:e=>t({iconBackgroundColor:e}),colors:S,disableCustomColors:!1})]})]})]}),(0,i.jsxs)("div",{...I,children:[(0,i.jsx)("div",{style:T,children:(0,i.jsx)(l.RichText,{tagName:"span",value:n,onChange:e=>t({badgeText:e}),placeholder:(0,o.__)("Badge text...","blynex"),className:"blynex-announcement-badge-text"})}),(0,i.jsx)(l.RichText,{tagName:"p",value:a,onChange:e=>t({mainText:e}),placeholder:(0,o.__)("Main announcement text...","blynex"),className:"blynex-announcement-text",style:R}),f?(0,i.jsx)("div",{style:N,children:(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",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):(0,i.jsx)("div",{style:{...N,opacity:.3},children:(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",{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,i.jsxs)("div",{style:{padding:"20px",border:"2px dashed #ff0000",backgroundColor:"#fff5f5",color:"#ff0000",textAlign:"center"},children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"Announcement Widget Error"})}),(0,i.jsx)("p",{children:"There was an error rendering this widget."}),(0,i.jsxs)("p",{children:["Error: ",e.message]})]})}},save:({attributes:e})=>{const{badgeText:t,mainText:n,badgeColor:o,badgeTextColor:r,textColor:a,backgroundColor:s,borderColor:c,borderRadius:d,borderWidth:p,padding:x,margin:u,gap:g,showIcon:b,iconColor:y,iconBackgroundColor:h,align:f,fontSize:m,badgeFontSize:v,fontWeight:C,badgeFontWeight:w}=e,j="var(--wp--preset--color--base, #FFFFFF)",_="var(--wp--preset--color--accent-1, #1E322D)",k=l.useBlockProps.save({className:`blynex-announcement-widget align-${f}`,style:{backgroundColor:s||"var(--wp--preset--color--accent-6, #FAF8F4)",border:`${p}px solid ${c||_}`,borderRadius:`${d}px`,padding:`${x.top} ${x.right} ${x.bottom} ${x.left}`,margin:`${u.top} ${u.right} ${u.bottom} ${u.left}`,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:`${g}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),S={backgroundColor:o||"var(--wp--preset--color--accent-2, #DBFE7A)",color:r||j,fontSize:`${v}px`,fontWeight:w,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:a||j,fontSize:`${m}px`,fontWeight:C,flex:1,margin:0,lineHeight:"1.4"},F={backgroundColor:h||_,color:y||j,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,i.jsxs)("div",{...k,children:[(0,i.jsx)("div",{style:S,children:(0,i.jsx)(l.RichText.Content,{tagName:"span",value:t,className:"blynex-announcement-badge-text"})}),(0,i.jsx)(l.RichText.Content,{tagName:"p",value:n,className:"blynex-announcement-text",style:B}),b&&(0,i.jsx)("div",{style:F,children:(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",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}})},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 o={}.hasOwnProperty;function l(){for(var e="",t=0;t=l)&&Object.keys(r.O).every((function(e){return r.O[e](n[s])}))?n.splice(s--,1):(a=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[n,o,l]},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=d4ae977097866c89b6c2"},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,o,l,i){if(t[e])t[e].push(o);else{var a,s;if(void 0!==l)for(var c=document.getElementsByTagName("script"),d=0;d-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].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,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 o=r.miniCssF(e),l=r.p+o;if(function(e,t){for(var n=document.getElementsByTagName("link"),o=0;o