!function(){var e,t,l,n={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},531:function(e,t,l){"use strict";var n=window.wp.hooks;"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","awp/cover-custom-attribute")&&(0,n.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=l(715),a=l(427),i=l(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:l,setAttributes:n,isSelected:o}=t,{hideOnMobile:c,hideOnTablet:d,hideOnDesktop:p}=l;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:()=>n({hideOnMobile:!c})}),(0,i.jsx)(a.ToggleControl,{label:wp.i18n.__("Hide on tablet","awp"),checked:!!d,onChange:()=>n({hideOnTablet:!d})}),(0,i.jsx)(a.ToggleControl,{label:wp.i18n.__("Hide on desktop","awp"),checked:!!p,onChange:()=>n({hideOnDesktop:!p})})]})})]})}),"withResponsiveControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","awp/cover-custom-controls")&&(0,n.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,n.addFilter)("blocks.getSaveContent.extraProps","awp/cover-apply-class-frontend",(function(e,t,l){const{hideOnMobile:n,hideOnTablet:o,hideOnDesktop:r}=l;return e||(e={}),void 0!==n&&n&&(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,n.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=l(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:l,setAttributes:n,isSelected:o}=t,{blynexHoverEffect:s="none",blynexHoverIntensity:c=.5,blynexHoverScale:d=1.05,blynexHoverDuration:u=.3}=l||{};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=>n({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=>n({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=>n({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=>n({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,n.addFilter)("editor.BlockEdit","blynex/hover-effect-controls",u);var x=l(942),b=l.n(x);const g=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:l}=t,{blynexHoverEffect:n,blynexHoverIntensity:o=.5,blynexHoverScale:r=1.05,blynexHoverDuration:a=.3}=l,s={...t.wrapperProps,className:b()(t?.wrapperProps?.className,{[`blynex-hover-${n}`]:n&&"none"!==n,"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,n.addFilter)("editor.BlockListBlock","blynex/hover-effect-classes",g);"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("blocks.registerBlockType","blynex/image-filter-attributes")&&(0,n.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 m=()=>(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"})}),h=(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"})]})})]})]}),y=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:l,setAttributes:n,isSelected:o}=t,{blynexFilterBlur:s=0,blynexFilterBrightness:c=1,blynexFilterContrast:p=1,blynexFilterHueRotate:u=0,blynexFilterSaturate:x=1,blynexFilterSepia:b=0,blynexFilterInvert:g=0,blynexFilterOpacity:y=1,blynexFilterGrayscale:f=0}=l,v=(e,t)=>{n({[e]:t})},_=(e,t)=>{n({[e]:t})},C=(e,t)=>e.toString(),j=(e,t,l)=>{let n;switch(l){case"blur":case"hue-rotate":default:n=parseFloat(t)||0;break;case"percentage":n=parseFloat(t)/100||0}v(e,n)},w=0!==s||1!==c||1!==p||0!==u||1!==x||0!==b||0!==g||1!==y||0!==f;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)(m,{}),(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:()=>{n({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: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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(s)})]}),value:s,onChange:e=>v("blynexFilterBlur",e),min:0,max:20,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(c)})]}),value:c,onChange:e=>v("blynexFilterBrightness",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(p)})]}),value:p,onChange:e=>v("blynexFilterContrast",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(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!==f&&(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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(f)})]}),value:f,onChange:e=>v("blynexFilterGrayscale",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(f),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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(u)})]}),value:u,onChange:e=>v("blynexFilterHueRotate",e),min:0,max:360,step:1,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(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!==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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(g)})]}),value:g,onChange:e=>v("blynexFilterInvert",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(g),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!==y&&(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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(y)})]}),value:y,onChange:e=>v("blynexFilterOpacity",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(y),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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(x)})]}),value:x,onChange:e=>v("blynexFilterSaturate",e),min:0,max:3,step:.1,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(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!==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:()=>_("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,i.jsx)("span",{style:{color:"#666",fontFamily:"monospace",fontSize:"11px"},children:C(b)})]}),value:b,onChange:e=>v("blynexFilterSepia",e),min:0,max:1,step:.01,withInputField:!0,className:"blynex-range-control",inputProps:{value:C(b),onChange:e=>j("blynexFilterSepia",e.target.value,"percentage")}})})]})})})]})}),"withImageFilterControls");"undefined"!=typeof wp&&wp.hooks&&!wp.hooks.hasFilter("editor.BlockEdit","blynex/image-filter-controls")&&(0,n.addFilter)("editor.BlockEdit","blynex/image-filter-controls",y);const f=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:l,name:n,clientId:o}=t;if("core/image"!==n)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:b=0}=l,g=[];r&&r>0&&g.push(`blur(${r}px)`),a&&1!==a&&g.push(`brightness(${a})`),s&&1!==s&&g.push(`contrast(${s})`),b&&b>0&&g.push(`grayscale(${b})`),c&&c>0&&g.push(`hue-rotate(${c}deg)`),u&&u>0&&g.push(`invert(${u})`),d&&1!==d&&g.push(`saturate(${d})`),p&&p>0&&g.push(`sepia(${p})`);const m=g.join(" "),h={...t.wrapperProps,style:{...t.wrapperProps?.style||{},filter:m||void 0,opacity:x||void 0}};return(0,i.jsx)(e,{...t,wrapperProps:h})}),"withEditorImageFilters");"undefined"!=typeof wp&&wp.hooks&&(wp.hooks.hasFilter("editor.BlockListBlock","blynex/editor-image-filters")||(0,n.addFilter)("editor.BlockListBlock","blynex/editor-image-filters",f),wp.hooks.hasFilter("blocks.getSaveContent.extraProps","blynex/frontend-image-filter")||(0,n.addFilter)("blocks.getSaveContent.extraProps","blynex/frontend-image-filter",((e,t,l)=>{const{blynexFilterBlur:n=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}=l;if(!(n&&n>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"];n&&n>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:n||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 v=l(279),_=window.wp.editor,C=l(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,v.registerPlugin)("blynex-theme-settings",{icon:(0,i.jsx)(j,{}),render:()=>{const e=(0,C.useSelect)((e=>e("core").getEntityRecord("root","site")?.blynex_scroll_top||!1)),{editEntityRecord:t,saveEditedEntityRecord:l}=(0,C.useDispatch)("core");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.PluginSidebarMoreMenuItem,{target:"blynex-theme-settings",icon:(0,i.jsx)(j,{}),children:(0,d.__)("Blynex Settings","blynex")}),(0,i.jsx)(_.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 l("root","site",void 0)}})})})]})}});var w=l(87),k=l(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:F}=wp.blocks,N={"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:"blynex-blocks",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:l,buttonUrl:n,linkTarget:o,rel:s,showIcon:c,iconType:p,predefinedIcon:u,customIconSvg:x,uploadedIconId:b,uploadedIconUrl:g,uploadedIconAlt:m,iconPosition:h,iconSize:y,iconGap:f,buttonSize:v,buttonWidth:_,customWidth:C,backgroundColor:j,textColor:k,borderColor:F,hoverBackgroundColor:I,hoverTextColor:P,hoverBorderColor:z,iconColor:L,hoverIconColor:R,fontSize:M,fontWeight:H,textTransform:$,letterSpacing:W,borderRadius:A,borderWidth:O,borderStyle:E,padding:D,margin:U,alignment:G,boxShadow:V,hoverBoxShadow:q,transition:Z,gradient:J,hoverGradient:Q,animation:Y}=e,[K,X]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(v&&T[v]){const e=T[v];t({fontSize:e.fontSize,padding:e.padding})}}),[v]);const ee=()=>({width:`${y}px`,height:`${y}px`,color:L||"currentColor",fill:"currentColor"}),te=()=>{if(!c)return null;if("upload"===p&&g)return(0,i.jsx)("img",{src:g,alt:m,className:"blynex-button-icon",style:ee()});let e="";return"predefined"===p&&N[u]?e=N[u]:"custom"===p&&x&&(e=x),e?(0,i.jsx)("span",{className:"blynex-button-icon",style:ee(),dangerouslySetInnerHTML:{__html:e}}):null},le=(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:n?S:B,onClick:()=>X(!K),variant:n?"primary":"secondary",children:n?(0,d.__)("Edit Link","blynex"):(0,d.__)("Add Link","blynex")}),K&&(0,i.jsxs)("div",{className:"blynex-link-picker",children:[(0,i.jsx)(r.URLInput,{value:n,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(N).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:b,render:({open:e})=>(0,i.jsx)("div",{children:g?(0,i.jsxs)("div",{className:"uploaded-icon-preview",children:[(0,i.jsx)("img",{src:g,alt:m,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:h,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:y,onChange:e=>t({iconSize:e}),min:8,max:48,step:1}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Icon Gap","blynex"),value:f,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: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,i.jsx)(a.SelectControl,{label:(0,d.__)("Button Width","blynex"),value:_,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"===_&&(0,i.jsx)(a.__experimentalUnitControl,{label:(0,d.__)("Custom Width","blynex"),value:C,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:F,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:L,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:I,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:P,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:z,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:R,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:M,onChange:e=>t({fontSize:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:H,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:$,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:W,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",{...le,className:`${le.className||""} widget-auto-size size-${v}`.trim(),children:(0,i.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:Z,fontSize:M,fontWeight:H,textTransform:$,letterSpacing:W,borderRadius:A,borderWidth:O,borderStyle:E,borderColor:F||"transparent",padding:`${D.top} ${D.right} ${D.bottom} ${D.left}`,margin:`${U.top} ${U.right} ${U.bottom} ${U.left}`,boxShadow:V,gap:c?`${f}px`:"0"};if(e.width="full"===_?"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)",I&&(e["--hover-bg-color"]=I),P&&(e["--hover-text-color"]=P),z&&(e["--hover-border-color"]=z),R&&(e["--hover-icon-color"]=R),e})(),type:"button",children:["left"===h&&te(),(0,i.jsx)(r.RichText,{tagName:"span",value:l,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:l,linkTarget:n,rel:o,showIcon:a,iconType:s,predefinedIcon:c,customIconSvg:d,iconPosition:p,iconSize:u,iconGap:x,uploadedIconId:b,uploadedIconUrl:g,uploadedIconAlt:m,backgroundColor:h,textColor:y,borderColor:f,iconColor:v,hoverBackgroundColor:_,hoverTextColor:C,hoverBorderColor:j,hoverIconColor:w,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:F,borderRadius:T,borderWidth:I,borderStyle:P,padding:z,margin:L,alignment:R,boxShadow:M,transition:H,buttonWidth:$,customWidth:W,gradient:A,buttonSize:O}=e,E=()=>({width:`${u}px`,height:`${u}px`,color:v||"currentColor",fill:"currentColor"}),D=()=>{if(!a)return null;if("upload"===s&&g)return(0,i.jsx)("img",{src:g,alt:m,className:"blynex-button-icon",style:E()});let e="";return"predefined"===s&&N[c]?e=N[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:R}}),G=l?"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:H,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:F,borderRadius:T,borderWidth:I,borderStyle:P,borderColor:f||"transparent",padding:`${z.top} ${z.right} ${z.bottom} ${z.left}`,margin:`${L.top} ${L.right} ${L.bottom} ${L.left}`,boxShadow:M,gap:a?`${x}px`:"0"};if(e.width="full"===$?"100%":"custom"===$?W:"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=h||"var(--wp--preset--color--accent-2)";return e.color=y||"var(--wp--preset--color--contrast)",_&&(e["--hover-bg-color"]=_),C&&(e["--hover-text-color"]=C),j&&(e["--hover-border-color"]=j),w&&(e["--hover-icon-color"]=w),e})()};return l?(V.href=l,V.target=n,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()]})})}}),l(627);var I=(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"})}),P=(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:z}=wp.blocks,{useState:L,useEffect:R}=wp.element,M=[{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:l,size:n=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:`${n}px`,height:`${n}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||l?l?(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":l,style:{width:"100%",height:"100%",backgroundColor:"currentColor",WebkitMask:`url("${l}") center / contain no-repeat`,mask:`url("${l}") 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:l}=e,{iconSvg:n,iconUrl:o,size:s=48,align:c="center"}=t,p=(0,r.useSetting)("spacing.iconSizes.medium")||48,[u,x]=L(""),{style:b={}}=t,g=b?.color?.text||"currentColor",m=b?.color?.background||"transparent",h=(0,r.useBlockProps)({className:`has-text-align-${c} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:c,"--icon-color":g,"--icon-bg-color":m}});return R((()=>{if(n){const e=e=>{const t=document.createElement("div");t.innerHTML=e;const l=t.querySelector("svg");return l?(l.setAttribute("fill","currentColor"),l.style.color="currentColor",l.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,"")):""};n.startsWith("e.text())).then((t=>x(e(t)))).catch((e=>console.error("Error loading SVG:",e)))}else x("")}),[n]),(0,i.jsxs)("div",{...h,children:[(0,i.jsxs)(r.BlockControls,{group:"block",children:[(0,i.jsx)(r.AlignmentToolbar,{value:c,onChange:e=>l({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&&l({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||n)&&(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():n.includes("http")?n.split("/").pop():"inline-svg.svg"}),(0,i.jsx)(a.Button,{icon:I,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:P,label:(0,d.__)("Copy URL","blynex"),onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(o||n)},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&&l({iconUrl:t.url,iconSvg:""})})),e.open()},children:(0,d.__)("Open Media Library","blynex")}),(0,i.jsx)(a.MenuItem,{icon:"image-rotate",onClick:()=>{l({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=>l({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:g},children:n?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:n.replace(/]*)>/,'l({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&&l({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:M,save:({attributes:e})=>{const{iconSvg:t,iconUrl:l,size:n=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:`${n}px`,height:`${n}px`,lineHeight:0,color:"var(--icon-color)",backgroundColor:"var(--icon-bg-color)"};return t||l?l?(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":l,style:{width:"100%",height:"100%",backgroundColor:"currentColor",WebkitMask:`url("${l}") center / contain no-repeat`,mask:`url("${l}") 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:l,headerTitle:n,headerSubtitle:o,headerDescription:s,showHeader:c,allowMultipleOpen:p,iconStyle:u,iconSize:x}=e,b=(e,n,o)=>{const r=l.map((t=>t.id===e?{...t,[n]: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:n,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:[l.map(((e,n)=>(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")," ",n+1]}),(0,i.jsx)(a.Button,{isDestructive:!0,isSmall:!0,onClick:()=>{return n=e.id,void t({items:l.filter((e=>e.id!==n))});var n},children:(0,d.__)("Remove","blynex")})]}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Question","blynex"),value:e.question,onChange:t=>b(e.id,"question",t)}),(0,i.jsx)(a.TextareaControl,{label:(0,d.__)("Answer","blynex"),value:e.answer,onChange:t=>b(e.id,"answer",t),rows:3}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Open by Default","blynex"),checked:e.isOpen,onChange:t=>b(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:[...l,e]})},style:{marginTop:"10px"},children:(0,d.__)("Add Item","blynex")})]})]})};(0,H.registerBlockType)($.name,{...$,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:l,headerTitle:n,headerSubtitle:o,headerDescription:a,showHeader:s,allowMultipleOpen:c,iconStyle:d,iconSize:p}=e,u=(0,r.useBlockProps)({className:"wp-block-blynex-accordion-block"}),[x,g]=(0,w.useState)(l.reduce(((e,t)=>(t.isOpen&&(e[t.id]=!0),e)),{})),m=e=>{g(c?t=>({...t,[e]:!t[e]}):{[e]:!x[e]})},h=e=>{const t=p||24,l={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",{...l,children:(0,i.jsx)("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,i.jsx)("svg",{...l,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",{...l,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",{...l,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",{...l,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)(W,{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:n}),(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:l.map(((e,t)=>{const l=x[e.id],n=b()("accordion-item",{"is-open":l});return(0,i.jsxs)("div",{className:n,"data-icon-size":p,children:[(0,i.jsxs)("div",{className:"accordion-question",onClick:()=>m(e.id),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),m(e.id))},"aria-expanded":l,"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:h(l)})]}),(0,i.jsx)("div",{id:`accordion-answer-${e.id}`,className:"accordion-answer","aria-hidden":!l,children:(0,i.jsx)("p",{children:e.answer})})]},e.id)}))})]})]})},save:function({attributes:e}){const{items:t,headerTitle:l,headerSubtitle:n,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,l={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",{...l,children:(0,i.jsx)("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,i.jsx)("svg",{...l,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",{...l,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",{...l,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",{...l,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:l}),(0,i.jsx)("h2",{className:"header-subtitle",children:n}),(0,i.jsx)("p",{className:"header-description",children:o})]}),(0,i.jsx)("div",{className:"accordion-items",children:t.map(((e,t)=>{const l=b()("accordion-item",{"is-open":e.isOpen});return(0,i.jsxs)("div",{className:l,"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"}})]})}}),l(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:"blynex-blocks",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-testimonials-05.webp",alt:(0,d.__)("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-testimonials-03.webp",alt:(0,d.__)("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,{})})}});const{registerBlockType:U}=wp.blocks;U("blynex/contact-form-widget",{title:(0,d.__)("Contact Form Widget","blynex"),description:(0,d.__)("A customizable contact form widget with fields for name, email, subject, and message.","blynex"),category:"blynex-blocks",icon:"email",keywords:["contact","form","email","message","widget"],supports:{html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0}},attributes:{formTitle:{type:"string",default:(0,d.__)("Get In Touch","blynex")},formSubtitle:{type:"string",default:(0,d.__)("Feel free to reach out to us","blynex")},showTitle:{type:"boolean",default:!0},showSubtitle:{type:"boolean",default:!0},showNameField:{type:"boolean",default:!0},showEmailField:{type:"boolean",default:!0},showPhoneField:{type:"boolean",default:!1},showSubjectField:{type:"boolean",default:!0},showMessageField:{type:"boolean",default:!0},nameLabel:{type:"string",default:(0,d.__)("Your Name","blynex")},emailLabel:{type:"string",default:(0,d.__)("Your Email","blynex")},phoneLabel:{type:"string",default:(0,d.__)("Your Phone","blynex")},subjectLabel:{type:"string",default:(0,d.__)("Subject","blynex")},messageLabel:{type:"string",default:(0,d.__)("Your Message","blynex")},namePlaceholder:{type:"string",default:(0,d.__)("John Doe","blynex")},emailPlaceholder:{type:"string",default:(0,d.__)("john@example.com","blynex")},phonePlaceholder:{type:"string",default:(0,d.__)("+1 234 567 890","blynex")},subjectPlaceholder:{type:"string",default:(0,d.__)("How can we help?","blynex")},messagePlaceholder:{type:"string",default:(0,d.__)("Write your message here...","blynex")},buttonText:{type:"string",default:(0,d.__)("Send Message","blynex")},buttonAlignment:{type:"string",default:"left"},formStyle:{type:"string",default:"modern"},fieldLayout:{type:"string",default:"stacked"},fieldSpacing:{type:"number",default:20},fieldPadding:{type:"object",default:{top:"12px",right:"16px",bottom:"12px",left:"16px"}},buttonPadding:{type:"object",default:{top:"14px",right:"32px",bottom:"14px",left:"32px"}},fieldBorderRadius:{type:"number",default:8},fieldBorderWidth:{type:"number",default:1},buttonBorderRadius:{type:"number",default:8},titleColor:{type:"string",default:""},subtitleColor:{type:"string",default:""},labelColor:{type:"string",default:""},fieldBackgroundColor:{type:"string",default:""},fieldTextColor:{type:"string",default:""},fieldBorderColor:{type:"string",default:""},fieldFocusBorderColor:{type:"string",default:""},buttonBackgroundColor:{type:"string",default:""},buttonTextColor:{type:"string",default:""},buttonHoverBackgroundColor:{type:"string",default:""},buttonHoverTextColor:{type:"string",default:""},titleFontSize:{type:"number",default:32},subtitleFontSize:{type:"number",default:16},labelFontSize:{type:"number",default:14},fieldFontSize:{type:"number",default:16},buttonFontSize:{type:"number",default:16},recipientEmail:{type:"string",default:""},successMessage:{type:"string",default:(0,d.__)("Thank you! Your message has been sent successfully.","blynex")},errorMessage:{type:"string",default:(0,d.__)("Oops! Something went wrong. Please try again.","blynex")},enableHoneypot:{type:"boolean",default:!0},showRequiredIndicator:{type:"boolean",default:!0}},edit:({attributes:e,setAttributes:t})=>{const{formTitle:l,formSubtitle:n,showTitle:o,showSubtitle:s,showNameField:c,showEmailField:p,showPhoneField:u,showSubjectField:x,showMessageField:b,nameLabel:g,emailLabel:m,phoneLabel:h,subjectLabel:y,messageLabel:f,namePlaceholder:v,emailPlaceholder:_,phonePlaceholder:C,subjectPlaceholder:j,messagePlaceholder:w,buttonText:k,buttonAlignment:S,formStyle:B,fieldLayout:F,fieldSpacing:N,fieldPadding:T,buttonPadding:I,fieldBorderRadius:P,fieldBorderWidth:z,buttonBorderRadius:L,titleColor:R,subtitleColor:M,labelColor:H,fieldBackgroundColor:$,fieldTextColor:W,fieldBorderColor:A,fieldFocusBorderColor:O,buttonBackgroundColor:E,buttonTextColor:D,buttonHoverBackgroundColor:U,buttonHoverTextColor:G,titleFontSize:V,subtitleFontSize:q,labelFontSize:Z,fieldFontSize:J,buttonFontSize:Q,recipientEmail:Y,successMessage:K,errorMessage:X,enableHoneypot:ee,showRequiredIndicator:te}=e,le=(0,r.useBlockProps)({className:`contact-form-widget style-${B} layout-${F}`}),ne=(0,r.useSetting)("color.palette")||[],oe=T||{top:"12px",right:"16px",bottom:"12px",left:"16px"},re=I||{top:"14px",right:"32px",bottom:"14px",left:"32px"},ae={"--form-field-spacing":`${N}px`,"--form-field-border-radius":`${P}px`,"--form-field-border-width":`${z}px`,"--form-button-border-radius":`${L}px`,"--form-title-font-size":`${V}px`,"--form-subtitle-font-size":`${q}px`,"--form-label-font-size":`${Z}px`,"--form-field-font-size":`${J}px`,"--form-button-font-size":`${Q}px`,"--form-title-color":R||"","--form-subtitle-color":M||"","--form-label-color":H||"","--form-field-background-color":$||"","--form-field-text-color":W||"","--form-field-border-color":A||"","--form-field-focus-border-color":O||"","--form-button-background-color":E||"","--form-button-text-color":D||"","--form-button-hover-background-color":U||"","--form-button-hover-text-color":G||"","--form-field-padding-top":oe.top||"12px","--form-field-padding-right":oe.right||"16px","--form-field-padding-bottom":oe.bottom||"12px","--form-field-padding-left":oe.left||"16px","--form-button-padding-top":re.top||"14px","--form-button-padding-right":re.right||"32px","--form-button-padding-bottom":re.bottom||"14px","--form-button-padding-left":re.left||"32px"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.InspectorControls,{children:[(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Title","blynex"),checked:o,onChange:e=>t({showTitle:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Subtitle","blynex"),checked:s,onChange:e=>t({showSubtitle:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Required Indicator (*)","blynex"),checked:te,onChange:e=>t({showRequiredIndicator:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Field Visibility","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Name Field","blynex"),checked:c,onChange:e=>t({showNameField:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Email Field","blynex"),checked:p,onChange:e=>t({showEmailField:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Phone Field","blynex"),checked:u,onChange:e=>t({showPhoneField:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Subject Field","blynex"),checked:x,onChange:e=>t({showSubjectField:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Show Message Field","blynex"),checked:b,onChange:e=>t({showMessageField:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Field Labels","blynex"),initialOpen:!1,children:[c&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Name Label","blynex"),value:g,onChange:e=>t({nameLabel:e})}),p&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Email Label","blynex"),value:m,onChange:e=>t({emailLabel:e})}),u&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Phone Label","blynex"),value:h,onChange:e=>t({phoneLabel:e})}),x&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Subject Label","blynex"),value:y,onChange:e=>t({subjectLabel:e})}),b&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Message Label","blynex"),value:f,onChange:e=>t({messageLabel:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Field Placeholders","blynex"),initialOpen:!1,children:[c&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Name Placeholder","blynex"),value:v,onChange:e=>t({namePlaceholder:e})}),p&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Email Placeholder","blynex"),value:_,onChange:e=>t({emailPlaceholder:e})}),u&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Phone Placeholder","blynex"),value:C,onChange:e=>t({phonePlaceholder:e})}),x&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Subject Placeholder","blynex"),value:j,onChange:e=>t({subjectPlaceholder:e})}),b&&(0,i.jsx)(a.TextControl,{label:(0,d.__)("Message Placeholder","blynex"),value:w,onChange:e=>t({messagePlaceholder:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Style Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Form Style","blynex"),value:B,options:[{label:(0,d.__)("Modern","blynex"),value:"modern"},{label:(0,d.__)("Classic","blynex"),value:"classic"},{label:(0,d.__)("Minimal","blynex"),value:"minimal"}],onChange:e=>t({formStyle:e})}),(0,i.jsx)(a.SelectControl,{label:(0,d.__)("Field Layout","blynex"),value:F,options:[{label:(0,d.__)("Stacked","blynex"),value:"stacked"},{label:(0,d.__)("Inline (Name & Email)","blynex"),value:"inline"}],onChange:e=>t({fieldLayout:e})}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Field Spacing","blynex"),value:N,onChange:e=>t({fieldSpacing:e}),min:0,max:50}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Field Border Radius","blynex"),value:P,onChange:e=>t({fieldBorderRadius:e}),min:0,max:50}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Field Border Width","blynex"),value:z,onChange:e=>t({fieldBorderWidth:e}),min:0,max:10}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Button Border Radius","blynex"),value:L,onChange:e=>t({buttonBorderRadius:e}),min:0,max:50})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Spacing","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.__experimentalBoxControl,{label:(0,d.__)("Field Padding","blynex"),values:T,onChange:e=>t({fieldPadding:e})}),(0,i.jsx)(a.__experimentalBoxControl,{label:(0,d.__)("Button Padding","blynex"),values:I,onChange:e=>t({buttonPadding:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Button Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.TextControl,{label:(0,d.__)("Button Text","blynex"),value:k,onChange:e=>t({buttonText:e})}),(0,i.jsx)("p",{children:(0,d.__)("Button Alignment","blynex")}),(0,i.jsxs)(a.ButtonGroup,{children:[(0,i.jsx)(a.Button,{isPressed:"left"===S,onClick:()=>t({buttonAlignment:"left"}),children:(0,d.__)("Left","blynex")}),(0,i.jsx)(a.Button,{isPressed:"center"===S,onClick:()=>t({buttonAlignment:"center"}),children:(0,d.__)("Center","blynex")}),(0,i.jsx)(a.Button,{isPressed:"right"===S,onClick:()=>t({buttonAlignment:"right"}),children:(0,d.__)("Right","blynex")})]})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Typography","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Title Font Size","blynex"),value:V,onChange:e=>t({titleFontSize:e}),min:16,max:72}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Subtitle Font Size","blynex"),value:q,onChange:e=>t({subtitleFontSize:e}),min:12,max:32}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Label Font Size","blynex"),value:Z,onChange:e=>t({labelFontSize:e}),min:10,max:24}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Field Font Size","blynex"),value:J,onChange:e=>t({fieldFontSize:e}),min:12,max:24}),(0,i.jsx)(a.RangeControl,{label:(0,d.__)("Button Font Size","blynex"),value:Q,onChange:e=>t({buttonFontSize:e}),min:12,max:24})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Colors","blynex"),initialOpen:!1,children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Title Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:R,onChange:e=>t({titleColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Subtitle Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:M,onChange:e=>t({subtitleColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Label Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:H,onChange:e=>t({labelColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Field Background Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:$,onChange:e=>t({fieldBackgroundColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Field Text Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:W,onChange:e=>t({fieldTextColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Field Border Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:A,onChange:e=>t({fieldBorderColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Field Focus Border Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:O,onChange:e=>t({fieldFocusBorderColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Button Background Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:E,onChange:e=>t({buttonBackgroundColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Button Text Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:D,onChange:e=>t({buttonTextColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Button Hover Background Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:U,onChange:e=>t({buttonHoverBackgroundColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Button Hover Text Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{colors:ne,value:G,onChange:e=>t({buttonHoverTextColor:e})})]}),(0,i.jsxs)(a.PanelBody,{title:(0,d.__)("Email Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.TextControl,{label:(0,d.__)("Recipient Email","blynex"),value:Y,onChange:e=>t({recipientEmail:e}),help:(0,d.__)("Email address to receive form submissions. Leave empty to use admin email.","blynex")}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Success Message","blynex"),value:K,onChange:e=>t({successMessage:e})}),(0,i.jsx)(a.TextControl,{label:(0,d.__)("Error Message","blynex"),value:X,onChange:e=>t({errorMessage:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,d.__)("Enable Honeypot Protection","blynex"),checked:ee,onChange:e=>t({enableHoneypot:e}),help:(0,d.__)("Helps prevent spam submissions","blynex")})]})]}),(0,i.jsx)("div",{...le,style:ae,children:(0,i.jsx)("div",{className:"contact-form-container",children:(0,i.jsxs)("form",{className:"blynex-contact-form",children:[o&&(0,i.jsx)(r.RichText,{tagName:"h2",className:"form-title",value:l,onChange:e=>t({formTitle:e}),placeholder:(0,d.__)("Enter form title...","blynex")}),s&&(0,i.jsx)(r.RichText,{tagName:"p",className:"form-subtitle",value:n,onChange:e=>t({formSubtitle:e}),placeholder:(0,d.__)("Enter form subtitle...","blynex")}),(0,i.jsxs)("div",{className:"form-fields",children:["inline"===F&&(c||p)&&(0,i.jsxs)("div",{className:"form-row inline",children:[c&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[g,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:v,disabled:!0})]}),p&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[m,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:_,disabled:!0})]})]}),"stacked"===F&&c&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[g,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:v,disabled:!0})]}),"stacked"===F&&p&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[m,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:_,disabled:!0})]}),u&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:h}),(0,i.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:C,disabled:!0})]}),x&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[y,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:j,disabled:!0})]}),b&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[f,te&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:w,rows:"5",disabled:!0})]}),ee&&(0,i.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,i.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,i.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,i.jsx)("div",{className:`form-submit align-${S}`,children:(0,i.jsx)("button",{type:"submit",className:"submit-button",disabled:!0,children:k})}),(0,i.jsxs)("div",{className:"form-messages",children:[(0,i.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:K}),(0,i.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:X})]})]})})})]})},save:({attributes:e})=>{const{formTitle:t,formSubtitle:l,showTitle:n,showSubtitle:o,showNameField:a,showEmailField:s,showPhoneField:c,showSubjectField:d,showMessageField:p,nameLabel:u,emailLabel:x,phoneLabel:b,subjectLabel:g,messageLabel:m,namePlaceholder:h,emailPlaceholder:y,phonePlaceholder:f,subjectPlaceholder:v,messagePlaceholder:_,buttonText:C,buttonAlignment:j,formStyle:w,fieldLayout:k,fieldSpacing:S,fieldPadding:B,buttonPadding:F,fieldBorderRadius:N,fieldBorderWidth:T,buttonBorderRadius:I,titleColor:P,subtitleColor:z,labelColor:L,fieldBackgroundColor:R,fieldTextColor:M,fieldBorderColor:H,fieldFocusBorderColor:$,buttonBackgroundColor:W,buttonTextColor:A,buttonHoverBackgroundColor:O,buttonHoverTextColor:E,titleFontSize:D,subtitleFontSize:U,labelFontSize:G,fieldFontSize:V,buttonFontSize:q,recipientEmail:Z,successMessage:J,errorMessage:Q,enableHoneypot:Y,showRequiredIndicator:K}=e,X=(r.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`}),B||{top:"12px",right:"16px",bottom:"12px",left:"16px"}),ee=F||{top:"14px",right:"32px",bottom:"14px",left:"32px"},te={"--form-field-spacing":`${S}px`,"--form-field-border-radius":`${N}px`,"--form-field-border-width":`${T}px`,"--form-button-border-radius":`${I}px`,"--form-title-font-size":`${D}px`,"--form-subtitle-font-size":`${U}px`,"--form-label-font-size":`${G}px`,"--form-field-font-size":`${V}px`,"--form-button-font-size":`${q}px`,"--form-title-color":P||"","--form-subtitle-color":z||"","--form-label-color":L||"","--form-field-background-color":R||"","--form-field-text-color":M||"","--form-field-border-color":H||"","--form-field-focus-border-color":$||"","--form-button-background-color":W||"","--form-button-text-color":A||"","--form-button-hover-background-color":O||"","--form-button-hover-text-color":E||"","--form-field-padding-top":X.top||"12px","--form-field-padding-right":X.right||"16px","--form-field-padding-bottom":X.bottom||"12px","--form-field-padding-left":X.left||"16px","--form-button-padding-top":ee.top||"14px","--form-button-padding-right":ee.right||"32px","--form-button-padding-bottom":ee.bottom||"14px","--form-button-padding-left":ee.left||"32px"},le=r.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`,style:te});return(0,i.jsx)("div",{...le,children:(0,i.jsx)("div",{className:"contact-form-container",children:(0,i.jsxs)("form",{className:"blynex-contact-form",method:"post","data-recipient":Z,children:[n&&(0,i.jsx)(r.RichText.Content,{tagName:"h2",className:"form-title",value:t}),o&&(0,i.jsx)(r.RichText.Content,{tagName:"p",className:"form-subtitle",value:l}),(0,i.jsxs)("div",{className:"form-fields",children:["inline"===k&&(a||s)&&(0,i.jsxs)("div",{className:"form-row inline",children:[a&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:h,required:!0})]}),s&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]})]}),"stacked"===k&&a&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:h,required:!0})]}),"stacked"===k&&s&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]}),c&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:b}),(0,i.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:f})]}),d&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[g,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:v,required:!0})]}),p&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[m,K&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:_,rows:"5",required:!0})]}),Y&&(0,i.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,i.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,i.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,i.jsx)("div",{className:`form-submit align-${j}`,children:(0,i.jsx)("button",{type:"submit",className:"submit-button","data-text":C,children:(0,i.jsx)("span",{children:C})})}),(0,i.jsxs)("div",{className:"form-messages",children:[(0,i.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:J}),(0,i.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:Q})]})]})})})},save:({attributes:e})=>{const{formTitle:t,formSubtitle:l,showTitle:n,showSubtitle:o,showNameField:a,showEmailField:s,showPhoneField:c,showSubjectField:d,showMessageField:p,nameLabel:u,emailLabel:x,phoneLabel:b,subjectLabel:g,messageLabel:m,namePlaceholder:h,emailPlaceholder:y,phonePlaceholder:f,subjectPlaceholder:v,messagePlaceholder:_,buttonText:C,buttonAlignment:j,formStyle:w,fieldLayout:k,fieldSpacing:S,fieldPadding:B,buttonPadding:F,fieldBorderRadius:N,fieldBorderWidth:T,buttonBorderRadius:I,titleColor:P,subtitleColor:z,labelColor:L,fieldBackgroundColor:R,fieldTextColor:M,fieldBorderColor:H,fieldFocusBorderColor:$,buttonBackgroundColor:W,buttonTextColor:A,buttonHoverBackgroundColor:O,buttonHoverTextColor:E,titleFontSize:D,subtitleFontSize:U,labelFontSize:G,fieldFontSize:V,buttonFontSize:q,successMessage:Z,errorMessage:J,enableHoneypot:Q,showRequiredIndicator:Y}=e,K=r.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`}),X=B||{top:"12px",right:"16px",bottom:"12px",left:"16px"},ee=F||{top:"14px",right:"32px",bottom:"14px",left:"32px"},te={"--form-field-spacing":`${S}px`,"--form-field-border-radius":`${N}px`,"--form-field-border-width":`${T}px`,"--form-button-border-radius":`${I}px`,"--form-title-font-size":`${D}px`,"--form-subtitle-font-size":`${U}px`,"--form-label-font-size":`${G}px`,"--form-field-font-size":`${V}px`,"--form-button-font-size":`${q}px`,"--form-title-color":P||"","--form-subtitle-color":z||"","--form-label-color":L||"","--form-field-background-color":R||"","--form-field-text-color":M||"","--form-field-border-color":H||"","--form-field-focus-border-color":$||"","--form-button-background-color":W||"","--form-button-text-color":A||"","--form-button-hover-background-color":O||"","--form-button-hover-text-color":E||"","--form-field-padding-top":X.top||"12px","--form-field-padding-right":X.right||"16px","--form-field-padding-bottom":X.bottom||"12px","--form-field-padding-left":X.left||"16px","--form-button-padding-top":ee.top||"14px","--form-button-padding-right":ee.right||"32px","--form-button-padding-bottom":ee.bottom||"14px","--form-button-padding-left":ee.left||"32px"};return(0,i.jsx)("div",{...K,style:te,children:(0,i.jsx)("div",{className:"contact-form-container",children:(0,i.jsxs)("form",{className:"blynex-contact-form",children:[n&&(0,i.jsx)(r.RichText.Content,{tagName:"h2",className:"form-title",value:t}),o&&(0,i.jsx)(r.RichText.Content,{tagName:"p",className:"form-subtitle",value:l}),(0,i.jsxs)("div",{className:"form-fields",children:["inline"===k&&(a||s)&&(0,i.jsxs)("div",{className:"form-row inline",children:[a&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:h,required:!0})]}),s&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]})]}),"stacked"===k&&a&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:h,required:!0})]}),"stacked"===k&&s&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]}),c&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:b}),(0,i.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:f})]}),d&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[g,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:v,required:!0})]}),p&&(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[m,Y&&(0,i.jsx)("span",{className:"required",children:"*"})]}),(0,i.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:_,rows:"5",required:!0})]}),Q&&(0,i.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,i.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,i.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,i.jsx)("div",{className:`form-submit align-${j}`,children:(0,i.jsx)("button",{type:"submit",className:"submit-button","data-text":C,children:(0,i.jsx)("span",{children:C})})}),(0,i.jsxs)("div",{className:"form-messages",children:[(0,i.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:Z}),(0,i.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:J})]})]})})})}}),l.e(789).then(l.bind(l,789))},573:function(e){"use strict";e.exports=window.wp.primitives},609:function(e){"use strict";e.exports=window.React},627:function(e,t,l){"use strict";var n=l(723),o=l(715),r=l(427),a=(l(87),l(790));const{registerBlockType:i}=wp.blocks;i("blynex/announcement-widget",{title:(0,n.__)("Announcement Widget","blynex"),description:(0,n.__)("A customizable announcement widget with badge, text, and icon.","blynex"),category:"blynex-blocks",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:l})=>{try{const{badgeText:l,mainText:i,badgeColor:s,badgeTextColor:c,textColor:d,backgroundColor:p,borderColor:u,borderRadius:x,borderWidth:b,padding:g,margin:m,gap:h,showIcon:y,iconColor:f,iconBackgroundColor:v,align:_,fontSize:C,badgeFontSize:j,fontWeight:w,badgeFontWeight:k}=e,S=(0,o.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)"},N=(0,o.useBlockProps)({className:`blynex-announcement-widget align-${_}`,style:{backgroundColor:p||F.accent6,border:`${b}px solid ${u||F.accent1}`,borderRadius:`${x}px`,padding:`${g.top} ${g.right} ${g.bottom} ${g.left}`,margin:`${m.top} ${m.right} ${m.bottom} ${m.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"},I={color:d||F.base,fontSize:`${C}px`,fontWeight:w,flex:1,margin:0,lineHeight:"1.4"},P={backgroundColor:v||F.accent1,color:f||F.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:_,onChange:e=>t({align:e})})}),(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,a.jsx)(r.TextControl,{label:(0,n.__)("Badge Text","blynex"),value:l,onChange:e=>t({badgeText:e})}),(0,a.jsx)(r.TextControl,{label:(0,n.__)("Main Text","blynex"),value:i,onChange:e=>t({mainText:e})}),(0,a.jsx)(r.ToggleControl,{label:(0,n.__)("Show Icon","blynex"),checked:y,onChange:e=>t({showIcon:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("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,n.__)("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,n.__)("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,n.__)("Badge Font Size","blynex"),value:j,onChange:e=>t({badgeFontSize:e}),min:8,max:24,step:1}),(0,a.jsx)(r.SelectControl,{label:(0,n.__)("Badge Font Weight","blynex"),value:k,options:[{label:(0,n.__)("Normal","blynex"),value:"400"},{label:(0,n.__)("Medium","blynex"),value:"500"},{label:(0,n.__)("Semi Bold","blynex"),value:"600"},{label:(0,n.__)("Bold","blynex"),value:"700"}],onChange:e=>t({badgeFontWeight:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("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,n.__)("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,n.__)("Font Size","blynex"),value:C,onChange:e=>t({fontSize:e}),min:12,max:32,step:1}),(0,a.jsx)(r.SelectControl,{label:(0,n.__)("Font Weight","blynex"),value:w,options:[{label:(0,n.__)("Normal","blynex"),value:"400"},{label:(0,n.__)("Medium","blynex"),value:"500"},{label:(0,n.__)("Semi Bold","blynex"),value:"600"},{label:(0,n.__)("Bold","blynex"),value:"700"}],onChange:e=>t({fontWeight:e})})]}),(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("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,n.__)("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,n.__)("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,n.__)("Border Radius","blynex"),value:x,onChange:e=>t({borderRadius:e}),min:0,max:50,step:1}),(0,a.jsx)(r.RangeControl,{label:(0,n.__)("Border Width","blynex"),value:b,onChange:e=>t({borderWidth:e}),min:0,max:10,step:1})]}),(0,a.jsx)(r.PanelBody,{title:(0,n.__)("Dimensions & Spacing","blynex"),initialOpen:!1,children:(0,a.jsx)(r.RangeControl,{label:(0,n.__)("Gap (px)","blynex"),value:h,onChange:e=>t({gap:e}),min:4,max:32,step:1})}),(0,a.jsxs)(r.PanelBody,{title:(0,n.__)("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,n.__)("Icon Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:f,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,n.__)("Icon Background Color","blynex")}),(0,a.jsx)(o.ColorPalette,{value:v,onChange:e=>t({iconBackgroundColor:e}),colors:S,disableCustomColors:!1})]})]})]}),(0,a.jsxs)("div",{...N,children:[(0,a.jsx)("div",{style:T,children:(0,a.jsx)(o.RichText,{tagName:"span",value:l,onChange:e=>t({badgeText:e}),placeholder:(0,n.__)("Badge text...","blynex"),className:"blynex-announcement-badge-text"})}),(0,a.jsx)(o.RichText,{tagName:"p",value:i,onChange:e=>t({mainText:e}),placeholder:(0,n.__)("Main announcement text...","blynex"),className:"blynex-announcement-text",style:I}),y?(0,a.jsx)("div",{style:P,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:{...P,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:l,badgeColor:n,badgeTextColor:r,textColor:i,backgroundColor:s,borderColor:c,borderRadius:d,borderWidth:p,padding:u,margin:x,gap:b,showIcon:g,iconColor:m,iconBackgroundColor:h,align:y,fontSize:f,badgeFontSize:v,fontWeight:_,badgeFontWeight:C}=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-${y}`,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:`${b}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),S={backgroundColor:n||"var(--wp--preset--color--accent-2, #DBFE7A)",color:r||j,fontSize:`${v}px`,fontWeight:C,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:`${f}px`,fontWeight:_,flex:1,margin:0,lineHeight:"1.4"},F={backgroundColor:h||w,color:m||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:l,className:"blynex-announcement-text",style:B}),g&&(0,a.jsx)("div",{style:F,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,l){"use strict";var n=l(997),o=l(723),r=l(715),a=l(427),i=l(573),s=l(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,n.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:l,menuItems:n,titleColor:i,linkColor:p,backgroundColor:u,menuDirection:x,menuDirectionTablet:b,menuDirectionMobile:g,menuWidth:m,menuWidthTablet:h,menuWidthMobile:y,menuHeight:f,menuHeightTablet:v,menuHeightMobile:_,itemSpacing:C,itemSpacingTablet:j,itemSpacingMobile:w,enableAccordion:k,showToggleIcon:S,toggleIconPosition:B,containerBackgroundColor:F,containerBorderColor:N,containerBorderWidth:T,containerBorderRadius:I,titleFontFamily:P,titleFontSize:z,titleFontWeight:L,titleLineHeight:R,titleLetterSpacing:M,menuItemFontFamily:H,menuItemFontSize:$,menuItemFontWeight:W,menuItemLineHeight:A,menuItemLetterSpacing:O}=e;if(!n||0===n.length||4===n.length&&n.some((e=>["products","company","pricing","contact"].includes(e.id)))){const e=Date.now(),l=()=>Math.random().toString(36).substr(2,9),n=[{label:"Products",url:"#",id:`products-${e}-${l()}`},{label:"Company",url:"#",id:`company-${e}-${l()}`},{label:"Pricing",url:"#",id:`pricing-${e}-${l()}`},{label:"Contact",url:"#",id:`contact-${e}-${l()}`}];t({menuItems:n})}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:[...n,e]})},U=(e,l,o)=>{const r=[...n];r[e][l]=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:l,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:m,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:f,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:C,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:b,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:h,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:v,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:g,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:y,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:_,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:F,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:N,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:I,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:[n.map(((e,l)=>(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(l,"label",e)}),(0,s.jsx)(a.TextControl,{label:(0,o.__)("URL","blynex"),value:e.url,onChange:e=>U(l,"url",e)}),(0,s.jsx)(a.Button,{icon:d,label:(0,o.__)("Remove Item","blynex"),onClick:()=>(e=>{const l=n.filter(((t,l)=>l!==e));t({menuItems:l})})(l),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:m,height:f,backgroundColor:F||void 0,borderColor:N||void 0,borderWidth:T||"0px",borderRadius:I||"0px",borderStyle:N&&"0px"!==T?"solid":"none"},children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:i,fontFamily:P||void 0,fontSize:z,fontWeight:L,lineHeight:R,letterSpacing:M},children:[l,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:C,flexDirection:"horizontal"===x?"row":"column"},children:n.map(((e,t)=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:p,fontFamily:H||void 0,fontSize:$,fontWeight:W,lineHeight:A,letterSpacing:O},onClick:e=>e.preventDefault(),children:e.label},e.id)))})]})})]})},save:({attributes:e})=>{const{menuTitle:t,menuItems:l,titleColor:n,linkColor:o,menuDirection:a,menuDirectionTablet:i,menuDirectionMobile:c,menuWidth:d,menuWidthTablet:p,menuWidthMobile:u,menuHeight:x,menuHeightTablet:b,menuHeightMobile:g,itemSpacing:m,itemSpacingTablet:h,itemSpacingMobile:y,enableAccordion:f,showToggleIcon:v,toggleIconPosition:_,containerBackgroundColor:C,containerBorderColor:j,containerBorderWidth:w,containerBorderRadius:k,titleFontFamily:S,titleFontSize:B,titleFontWeight:F,titleLineHeight:N,titleLetterSpacing:T,menuItemFontFamily:I,menuItemFontSize:P,menuItemFontWeight:z,menuItemLineHeight:L,menuItemLetterSpacing:R}=e,M=r.useBlockProps.save({className:"blynex-responsive-nav-menu","data-desktop-direction":a,"data-tablet-direction":i,"data-mobile-direction":c,"data-enable-accordion":f,"data-toggle-position":_}),H={"--menu-width":d,"--menu-width-tablet":p,"--menu-width-mobile":u,"--menu-height":x,"--menu-height-tablet":b,"--menu-height-mobile":g,"--item-spacing":m,"--item-spacing-tablet":h,"--item-spacing-mobile":y,backgroundColor:C||void 0,borderColor:j||void 0,borderWidth:w||"0px",borderRadius:k||"0px",borderStyle:j&&"0px"!==w?"solid":"none"};return(0,s.jsx)("div",{...M,style:H,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:n,fontFamily:S||void 0,fontSize:B,fontWeight:F,lineHeight:N,letterSpacing:T},role:"button",tabIndex:"0","aria-expanded":"false","aria-controls":`menu-items-${t.toLowerCase().replace(/\s+/g,"-")}`,children:[t,v&&f&&(0,s.jsx)("span",{className:`menu-toggle toggle-${_}`,"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:m,flexDirection:"horizontal"===a?"row":"column"},children:l.map((e=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:o,fontFamily:I||void 0,fontSize:P,fontWeight:z,lineHeight:L,letterSpacing:R},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 l;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t=o)&&Object.keys(r.O).every((function(e){return r.O[e](l[s])}))?l.splice(s--,1):(i=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[l,n,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 l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,l){return r.f[l](e,t),t}),[]))},r.u=function(e){return e+".js?ver=2f7f84beb9e69d28c6ab"},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={},l="blynex:",r.l=function(e,n,o,a){if(t[e])t[e].push(n);else{var i,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d-1&&(!e||!/^http(s?):/.test(e));)e=l[n--].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,l){e[t]?l.push(e[t]):0!==e[t]&&{789:1}[t]&&l.push(e[t]=function(e){return new Promise((function(t,l){var n=r.miniCssF(e),o=r.p+n;if(function(e,t){for(var l=document.getElementsByTagName("link"),n=0;n