!function(){var e,t,l,n,o,a={87:function(e){"use strict";e.exports=window.wp.element},143:function(e){"use strict";e.exports=window.wp.data},173: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,a=l(715),r=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)(a.InspectorControls,{children:(0,i.jsxs)(r.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)(r.ToggleControl,{label:wp.i18n.__("Hide on mobile","awp"),checked:!!c,onChange:()=>n({hideOnMobile:!c})}),(0,i.jsx)(r.ToggleControl,{label:wp.i18n.__("Hide on tablet","awp"),checked:!!d,onChange:()=>n({hideOnTablet:!d})}),(0,i.jsx)(r.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:a}=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!==a&&a&&(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)(a.InspectorControls,{children:(0,i.jsxs)(r.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)(r.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)(r.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)(r.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)(r.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:a=1.05,blynexHoverDuration:r=.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":`${r}s`,"--blynex-scale":a}};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 h=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 15.2056V1.41396C2 1.09638 2.34857 0.894983 2.62355 1.05765L7.87531 4.14054C8.14254 4.29933 8.30521 4.58206 8.30521 4.8919V17.1963C8.30521 17.2506 8.29746 17.3009 8.2781 17.3513C7.53836 19.3187 5.88847 20.3644 5.04803 20.7866C4.75756 20.9338 4.40512 20.8292 4.23471 20.5542C2.43765 17.6805 2.05035 15.5465 2.00387 15.2676C2 15.2482 2 15.2289 2 15.2056ZM9.83503 4.00507C9.74983 4.03606 9.69173 4.10577 9.67237 4.19097C9.54069 4.80291 9.15339 7.2971 11.2525 8.83855C13.3517 10.38 20.0442 13.978 21.5624 14.7913C21.7212 14.8765 21.9148 14.7758 21.9381 14.5977C22.0814 13.5675 22.2131 10.4652 19.4207 7.00663C16.0783 2.86642 11.6824 3.35054 9.83116 4.00507H9.83503ZM21.4462 16.6503C21.4616 16.5612 21.4345 16.476 21.3687 16.4179C20.9078 15.9958 18.952 14.3962 16.5623 15.4303C14.1378 16.476 7.6816 20.411 6.21374 21.3134C6.05882 21.4063 6.0472 21.6232 6.1905 21.7355C7.00383 22.3784 9.61809 24.0632 14.01 23.4048C19.2734 22.6186 21.0821 18.579 21.45 16.6542L21.4462 16.6503Z",fill:"#1C7E6E"})}),m=(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)(a.InspectorControls,{children:(0,i.jsx)(r.PanelBody,{title:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",fontWeight:"500"},children:[(0,i.jsx)(h,{}),(0,i.jsx)("span",{children:(0,d.__)("Image Filters","blynex")}),w&&(0,i.jsx)("span",{style:{backgroundColor:"#007cba",color:"white",borderRadius:"10px",padding:"2px 6px",fontSize:"10px",fontWeight:"600"},children:"Active"}),w&&(0,i.jsx)(r.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:m})]}),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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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)(r.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:m})]}),(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:a=0,blynexFilterBrightness:r=1,blynexFilterContrast:s=1,blynexFilterHueRotate:c=0,blynexFilterSaturate:d=1,blynexFilterSepia:p=0,blynexFilterInvert:u=0,blynexFilterOpacity:x=1,blynexFilterGrayscale:b=0}=l,g=[];a&&a>0&&g.push(`blur(${a}px)`),r&&1!==r&&g.push(`brightness(${r})`),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 h=g.join(" "),m={...t.wrapperProps,style:{...t.wrapperProps?.style||{},filter:h||void 0,opacity:x||void 0}};return(0,i.jsx)(e,{...t,wrapperProps:m})}),"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:a=1,blynexFilterHueRotate:r=0,blynexFilterSaturate:i=1,blynexFilterSepia:s=0,blynexFilterInvert:c=0,blynexFilterOpacity:d=1,blynexFilterGrayscale:p=0}=l;if(!(n&&n>0||o&&1!==o||a&&1!==a||r&&r>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"),a&&1!==a&&u.push("blynex-filter-contrast"),r&&r>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:a||1,hueRotate:r||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)(r.PanelBody,{title:(0,d.__)("Feature Options","blynex"),initialOpen:!0,children:(0,i.jsx)(r.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:N}=wp.blocks,T={"arrow-right":'',"arrow-left":'',"chevron-right":'',"chevron-left":'',download:'',"external-link":'',play:'',plus:'',mail:'',phone:'',"shopping-cart":'',heart:'',star:''},F={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"}}};N("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:h,iconPosition:m,iconSize:y,iconGap:f,buttonSize:v,buttonWidth:_,customWidth:C,backgroundColor:j,textColor:k,borderColor:N,hoverBackgroundColor:P,hoverTextColor:I,hoverBorderColor:L,iconColor:$,hoverIconColor:z,fontSize:R,fontWeight:W,textTransform:M,letterSpacing:H,borderRadius:O,borderWidth:A,borderStyle:E,padding:D,margin:U,alignment:G,boxShadow:V,hoverBoxShadow:q,transition:Z,gradient:J,hoverGradient:Y,animation:Q}=e,[K,X]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(v&&F[v]){const e=F[v];t({fontSize:e.fontSize,padding:e.padding})}}),[v]);const ee=()=>({width:`${y}px`,height:`${y}px`,color:$||"currentColor",fill:"currentColor"}),te=()=>{if(!c)return null;if("upload"===p&&g)return(0,i.jsx)("img",{src:g,alt:h,className:"blynex-button-icon",style:ee()});let e="";return"predefined"===p&&T[u]?e=T[u]:"custom"===p&&x&&(e=x),e?(0,i.jsx)("span",{className:"blynex-button-icon",style:ee(),dangerouslySetInnerHTML:{__html:e}}):null},le=(0,a.useBlockProps)({className:"blynex-button-widget",style:{textAlign:G}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.BlockControls,{children:(0,i.jsx)(a.AlignmentToolbar,{value:G,onChange:e=>t({alignment:e})})}),(0,i.jsx)(a.InspectorControls,{children:(0,i.jsx)(r.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)(r.PanelBody,{title:(0,d.__)("Link Settings","blynex"),initialOpen:!0,children:(0,i.jsxs)("div",{className:"blynex-link-control",children:[(0,i.jsx)(r.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)(a.URLInput,{value:n,onChange:e=>t({buttonUrl:e}),placeholder:(0,d.__)("Enter URL","blynex")}),(0,i.jsx)(r.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)(r.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)(r.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Show Icon","blynex"),checked:c,onChange:e=>t({showIcon:e})}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.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)(r.SelectControl,{label:(0,d.__)("Select Icon","blynex"),value:u,options:Object.keys(T).map((e=>({label:e.replace("-"," ").replace(/\b\w/g,(e=>e.toUpperCase())),value:e}))),onChange:e=>t({predefinedIcon:e})}),"custom"===p&&(0,i.jsx)(r.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)(a.MediaUploadCheck,{children:(0,i.jsx)(a.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:h,style:{maxWidth:"100px",maxHeight:"100px",display:"block",marginBottom:"10px"}}),(0,i.jsxs)("div",{className:"upload-actions",children:[(0,i.jsx)(r.Button,{variant:"secondary",onClick:e,style:{marginRight:"10px"},children:(0,d.__)("Replace","blynex")}),(0,i.jsx)(r.Button,{variant:"link",isDestructive:!0,onClick:()=>t({uploadedIconId:0,uploadedIconUrl:"",uploadedIconAlt:""}),children:(0,d.__)("Remove","blynex")})]})]}):(0,i.jsx)(r.Button,{variant:"secondary",onClick:e,className:"button-add-media",children:(0,d.__)("Upload Image/SVG","blynex")})})})})]}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Icon Position","blynex"),value:m,options:[{label:(0,d.__)("Left","blynex"),value:"left"},{label:(0,d.__)("Right","blynex"),value:"right"}],onChange:e=>t({iconPosition:e})}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Icon Size","blynex"),value:y,onChange:e=>t({iconSize:e}),min:8,max:48,step:1}),(0,i.jsx)(r.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)(r.PanelBody,{title:(0,d.__)("Size & Dimensions","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.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)(r.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)(r.__experimentalUnitControl,{label:(0,d.__)("Custom Width","blynex"),value:C,onChange:e=>t({customWidth:e})})]}),(0,i.jsx)(r.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)(a.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)(a.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)(a.ColorPalette,{value:N,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)(a.ColorPalette,{value:$,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)(a.ColorPalette,{value:P,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)(a.ColorPalette,{value:I,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)(a.ColorPalette,{value:L,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)(a.ColorPalette,{value:z,onChange:e=>t({hoverIconColor:e}),clearable:!0})]})]})}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Typography","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.__experimentalUnitControl,{label:(0,d.__)("Font Size","blynex"),value:R,onChange:e=>t({fontSize:e})}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:W,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)(r.SelectControl,{label:(0,d.__)("Text Transform","blynex"),value:M,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)(r.__experimentalUnitControl,{label:(0,d.__)("Letter Spacing","blynex"),value:H,onChange:e=>t({letterSpacing:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Border & Spacing","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.__experimentalUnitControl,{label:(0,d.__)("Border Radius","blynex"),value:O,onChange:e=>t({borderRadius:e})}),(0,i.jsx)(r.__experimentalUnitControl,{label:(0,d.__)("Border Width","blynex"),value:A,onChange:e=>t({borderWidth:e})}),(0,i.jsx)(r.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)(r.__experimentalBoxControl,{label:(0,d.__)("Padding","blynex"),values:D,onChange:e=>t({padding:e})}),(0,i.jsx)(r.__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)(r.PanelBody,{title:(0,d.__)("Effects","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.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)(r.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)(r.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-${m}`,style:(()=>{const e={display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",cursor:"pointer",border:"none",outline:"none",transition:Z,fontSize:R,fontWeight:W,textTransform:M,letterSpacing:H,borderRadius:O,borderWidth:A,borderStyle:E,borderColor:N||"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)",P&&(e["--hover-bg-color"]=P),I&&(e["--hover-text-color"]=I),L&&(e["--hover-border-color"]=L),z&&(e["--hover-icon-color"]=z),e})(),type:"button",children:["left"===m&&te(),(0,i.jsx)(a.RichText,{tagName:"span",value:l,onChange:e=>t({buttonText:e}),placeholder:(0,d.__)("Button text...","blynex"),allowedFormats:[],className:"blynex-button-text"}),"right"===m&&te()]})})]})},save:({attributes:e})=>{const{buttonText:t,buttonUrl:l,linkTarget:n,rel:o,showIcon:r,iconType:s,predefinedIcon:c,customIconSvg:d,iconPosition:p,iconSize:u,iconGap:x,uploadedIconId:b,uploadedIconUrl:g,uploadedIconAlt:h,backgroundColor:m,textColor:y,borderColor:f,iconColor:v,hoverBackgroundColor:_,hoverTextColor:C,hoverBorderColor:j,hoverIconColor:w,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:N,borderRadius:F,borderWidth:P,borderStyle:I,padding:L,margin:$,alignment:z,boxShadow:R,transition:W,buttonWidth:M,customWidth:H,gradient:O,buttonSize:A}=e,E=()=>({width:`${u}px`,height:`${u}px`,color:v||"currentColor",fill:"currentColor"}),D=()=>{if(!r)return null;if("upload"===s&&g)return(0,i.jsx)("img",{src:g,alt:h,className:"blynex-button-icon",style:E()});let e="";return"predefined"===s&&T[c]?e=T[c]:"custom"===s&&d&&(e=d),e?(0,i.jsx)("span",{className:"blynex-button-icon",style:E(),dangerouslySetInnerHTML:{__html:e}}):null},U=a.useBlockProps.save({className:`blynex-button-widget widget-auto-size size-${A}`,style:{textAlign:z}}),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:W,fontSize:k,fontWeight:S,textTransform:B,letterSpacing:N,borderRadius:F,borderWidth:P,borderStyle:I,borderColor:f||"transparent",padding:`${L.top} ${L.right} ${L.bottom} ${L.left}`,margin:`${$.top} ${$.right} ${$.bottom} ${$.left}`,boxShadow:R,gap:r?`${x}px`:"0"};if(e.width="full"===M?"100%":"custom"===M?H:"auto",O.enabled&&O.colors.length>0){const t=O.colors.map((e=>e.color)).join(", ");e.background=`${O.type}-gradient(${O.angle}, ${t})`}else e.backgroundColor=m||"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 P=(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"})}),I=(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:L}=wp.blocks,{useState:$,useEffect:z}=wp.element,R=[{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:a={}}=e,r={className:`has-text-align-${o} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:o,width:"fit-content",margin:"0 auto","--icon-color":a?.color?.text||"currentColor","--icon-bg-color":a?.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",{...r,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",{...r,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,a.useSetting)("spacing.iconSizes.medium")||48,[u,x]=$(""),{style:b={}}=t,g=b?.color?.text||"currentColor",h=b?.color?.background||"transparent",m=(0,a.useBlockProps)({className:`has-text-align-${c} blynex-svg-icon-block`,style:{display:"inline-block",textAlign:c,"--icon-color":g,"--icon-bg-color":h}});return z((()=>{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",{...m,children:[(0,i.jsxs)(a.BlockControls,{group:"block",children:[(0,i.jsx)(a.AlignmentToolbar,{value:c,onChange:e=>l({align:e})}),(0,i.jsx)(r.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)(r.ToolbarGroup,{children:(0,i.jsx)(r.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)(r.Button,{icon:P,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)(r.Button,{icon:I,label:(0,d.__)("Copy URL","blynex"),onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(o||n)},isSmall:!0,variant:"tertiary"})]})]}),(0,i.jsxs)(r.MenuGroup,{children:[(0,i.jsx)(r.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)(r.MenuItem,{icon:"image-rotate",onClick:()=>{l({iconUrl:"",iconSvg:""})},children:(0,d.__)("Reset","blynex")})]})]})})})]}),(0,i.jsx)(a.InspectorControls,{children:(0,i.jsx)(r.PanelBody,{title:(0,d.__)("Icon Settings","blynex"),children:(0,i.jsx)(r.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)(r.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:R,save:({attributes:e})=>{const{iconSvg:t,iconUrl:l,size:n=48,align:o="center",style:r={}}=e,s=r?.color?.text||"currentColor",c=r?.color?.background||"transparent",d=a.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 a=l.map((t=>t.id===e?{...t,[n]:o}:t));t({items:a})};return(0,i.jsxs)(a.InspectorControls,{children:[(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Header Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Show Header","blynex"),checked:c,onChange:e=>t({showHeader:e})}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.TextControl,{label:(0,d.__)("Header Title","blynex"),value:n,onChange:e=>t({headerTitle:e})}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Header Subtitle","blynex"),value:o,onChange:e=>t({headerSubtitle:e})}),(0,i.jsx)(r.TextareaControl,{label:(0,d.__)("Header Description","blynex"),value:s,onChange:e=>t({headerDescription:e}),rows:3})]})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Accordion Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.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)(r.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)(r.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)(r.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)(r.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)(r.TextControl,{label:(0,d.__)("Question","blynex"),value:e.question,onChange:t=>b(e.id,"question",t)}),(0,i.jsx)(r.TextareaControl,{label:(0,d.__)("Answer","blynex"),value:e.answer,onChange:t=>b(e.id,"answer",t),rows:3}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Open by Default","blynex"),checked:e.isOpen,onChange:t=>b(e.id,"isOpen",t)})]},e.id))),(0,i.jsx)(r.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,W.registerBlockType)(M.name,{...M,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:r,showHeader:s,allowMultipleOpen:c,iconStyle:d,iconSize:p}=e,u=(0,a.useBlockProps)({className:"wp-block-blynex-accordion-block"}),[x,g]=(0,w.useState)(l.reduce(((e,t)=>(t.isOpen&&(e[t.id]=!0),e)),{})),h=e=>{g(c?t=>({...t,[e]:!t[e]}):{[e]:!x[e]})},m=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)(H,{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:r})]}),(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:()=>h(e.id),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),h(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:m(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:r,allowMultipleOpen:s,iconStyle:c,iconSize:d}=e,p=a.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:[r&&(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:O}=wp.blocks,A=[["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")}]]]]]]]]]];O("blynex/pricing-block",{title:(0,d.__)("Pricing Block","blynex"),icon:"money-alt",category:"blynex-blocks",edit:()=>{const e=(0,a.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(a.InnerBlocks,{template:A})})},save:()=>{const e=a.useBlockProps.save();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(a.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,a.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(a.InnerBlocks,{template:D,templateLock:"all"})})},save:()=>{const e=a.useBlockProps.save();return(0,i.jsx)("div",{...e,children:(0,i.jsx)(a.InnerBlocks.Content,{})})}}),l(873),l(370),l(422),l(967);var U=JSON.parse('{"UU":"blynex/animated-counter-block"}');(0,W.registerBlockType)(U.UU,{edit:function({attributes:e,setAttributes:t,clientId:l}){const{counters:n,layout:o,columns:s,columnGap:c,rowGap:p,alignment:u,animationDuration:x,animationTrigger:g,enableSeparator:h,numberTypography:m,titleTypography:y,descriptionTypography:f,numberColor:v,titleColor:_,descriptionColor:C,iconColor:j,itemBackgroundColor:k,itemBackgroundGradient:S,itemBackgroundImage:B,backgroundType:N,itemPadding:T,itemMargin:F,borderWidth:P,borderColor:I,borderRadius:L,borderStyle:$,glassEffect:z,glassBlur:R,glassOpacity:W,neumorphism:M,neumorphismIntensity:H,entranceAnimation:O,animationDelay:A,animationStagger:E,hoverEffect:D,hoverScale:U,customCSS:G,hideOnMobile:V,hideOnTablet:q,hideOnDesktop:Z,iconSize:J}=e,[Y,Q]=(0,w.useState)(0),K=(0,a.useBlockProps)({className:b()("animated-counter-block",{[`layout-${o}`]:o,[`align-${u}`]:u,"hide-mobile":V,"hide-tablet":q,"hide-desktop":Z})}),X=(e,l,o)=>{const a=[...n];a[e]={...a[e],[l]:o},t({counters:a})},ee=(e,t,l)=>{const n=(parseFloat(e)||0).toFixed(t);return l?n.replace(/\B(?=(\d{3})+(?!\d))/g,","):n},te=()=>{let e={padding:`${T.top} ${T.right} ${T.bottom} ${T.left}`,margin:`${F.top} ${F.right} ${F.bottom} ${F.left}`,borderWidth:`${P}px`,borderColor:I,borderStyle:$,borderRadius:`${L}px`};if("solid"===N&&k?e.backgroundColor=k:"gradient"===N&&S?e.background=S:"image"===N&&B&&(e.backgroundImage=`url(${B})`,e.backgroundSize="cover",e.backgroundPosition="center"),z&&(e.backdropFilter=`blur(${R}px)`,e.WebkitBackdropFilter=`blur(${R}px)`,e.backgroundColor=`rgba(255, 255, 255, ${W})`,e.border="1px solid rgba(255, 255, 255, 0.3)"),M){const t="light"===H?"5px":"medium"===H?"10px":"15px";e.boxShadow=`${t} ${t} ${2*parseInt(t)}px rgba(0, 0, 0, 0.1), -${t} -${t} ${2*parseInt(t)}px rgba(255, 255, 255, 0.7)`,e.backgroundColor=k||"#e0e5ec"}return e};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.InspectorControls,{children:[(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Layout Settings","blynex"),initialOpen:!0,children:[(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Layout Type","blynex"),value:o,options:[{label:"Grid",value:"grid"},{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],onChange:e=>t({layout:e})}),"grid"===o&&(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Columns","blynex"),value:s,onChange:e=>t({columns:e}),min:1,max:6}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Column Gap (px)","blynex"),value:c,onChange:e=>t({columnGap:e}),min:0,max:100}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Row Gap (px)","blynex"),value:p,onChange:e=>t({rowGap:e}),min:0,max:100}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Alignment","blynex"),value:u,options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],onChange:e=>t({alignment:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Animation Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Animation Trigger","blynex"),value:g,options:[{label:"On Scroll Into View",value:"scroll"},{label:"On Page Load",value:"load"}],onChange:e=>t({animationTrigger:e})}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Animation Duration (ms)","blynex"),value:x,onChange:e=>t({animationDuration:e}),min:500,max:5e3,step:100}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Entrance Animation","blynex"),value:O,options:[{label:"None",value:"none"},{label:"Fade In",value:"fade-in"},{label:"Slide Up",value:"slide-up"},{label:"Slide Down",value:"slide-down"},{label:"Slide Left",value:"slide-left"},{label:"Slide Right",value:"slide-right"},{label:"Zoom In",value:"zoom-in"}],onChange:e=>t({entranceAnimation:e})}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Animation Delay (ms)","blynex"),value:A,onChange:e=>t({animationDelay:e}),min:0,max:2e3,step:100}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Stagger Delay (ms)","blynex"),value:E,onChange:e=>t({animationStagger:e}),min:0,max:500,step:50})]}),(0,i.jsx)(r.PanelBody,{title:(0,d.__)("Number Formatting","blynex"),initialOpen:!1,children:(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Enable Thousand Separators","blynex"),checked:h,onChange:e=>t({enableSeparator:e})})}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Counter Items","blynex"),initialOpen:!0,children:[(0,i.jsxs)("div",{className:"counter-tabs",children:[(0,i.jsx)(r.ButtonGroup,{children:n.map(((e,t)=>(0,i.jsx)(r.Button,{isPressed:Y===t,onClick:()=>Q(t),children:t+1},e.id)))}),(0,i.jsx)(r.Button,{isSecondary:!0,onClick:()=>{const e={id:Date.now(),title:"New Milestone",description:"Description here",startNumber:0,endNumber:100,prefix:"",suffix:"+",decimals:0,icon:"",showIcon:!0,showTitle:!0,showDescription:!0};t({counters:[...n,e]}),Q(n.length)},style:{marginTop:"10px",width:"100%"},children:(0,d.__)("+ Add Counter","blynex")})]}),n.length>0&&n[Y]&&(0,i.jsxs)("div",{className:"counter-settings",style:{marginTop:"20px"},children:[(0,i.jsx)(r.TextControl,{label:(0,d.__)("Title","blynex"),value:n[Y].title,onChange:e=>X(Y,"title",e)}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Description","blynex"),value:n[Y].description,onChange:e=>X(Y,"description",e)}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Start Number","blynex"),value:n[Y].startNumber,onChange:e=>X(Y,"startNumber",e),min:0,max:1e4}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("End Number","blynex"),value:n[Y].endNumber,onChange:e=>X(Y,"endNumber",e),min:0,max:1e4}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Prefix","blynex"),value:n[Y].prefix,onChange:e=>X(Y,"prefix",e),placeholder:"$, #, etc."}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Suffix","blynex"),value:n[Y].suffix,onChange:e=>X(Y,"suffix",e),placeholder:"+, %, k, M, etc."}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Decimal Places","blynex"),value:n[Y].decimals,onChange:e=>X(Y,"decimals",e),min:0,max:3}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Icon SVG Code","blynex"),value:n[Y].icon,onChange:e=>X(Y,"icon",e),help:(0,d.__)("Paste SVG code or leave empty","blynex")}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Show Icon","blynex"),checked:n[Y].showIcon,onChange:e=>X(Y,"showIcon",e)}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Show Title","blynex"),checked:n[Y].showTitle,onChange:e=>X(Y,"showTitle",e)}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Show Description","blynex"),checked:n[Y].showDescription,onChange:e=>X(Y,"showDescription",e)}),(0,i.jsxs)("div",{style:{display:"flex",gap:"10px",marginTop:"15px"},children:[(0,i.jsx)(r.Button,{isDestructive:!0,onClick:()=>(e=>{const l=n.filter(((t,l)=>l!==e));t({counters:l}),Y>=l.length&&Q(Math.max(0,l.length-1))})(Y),children:(0,d.__)("Remove","blynex")}),(0,i.jsx)(r.Button,{isSecondary:!0,onClick:()=>(e=>{const l={...n[e],id:Date.now()},o=[...n];o.splice(e+1,0,l),t({counters:o})})(Y),children:(0,d.__)("Duplicate","blynex")})]})]})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Typography","blynex"),initialOpen:!1,children:[(0,i.jsx)("h3",{children:(0,d.__)("Number Typography","blynex")}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Font Size","blynex"),value:m.fontSize,onChange:e=>t({numberTypography:{...m,fontSize:e}})}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:m.fontWeight,options:[{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"}],onChange:e=>t({numberTypography:{...m,fontWeight:e}})}),(0,i.jsx)("hr",{}),(0,i.jsx)("h3",{children:(0,d.__)("Title Typography","blynex")}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Font Size","blynex"),value:y.fontSize,onChange:e=>t({titleTypography:{...y,fontSize:e}})}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:y.fontWeight,options:[{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"}],onChange:e=>t({titleTypography:{...y,fontWeight:e}})}),(0,i.jsx)("hr",{}),(0,i.jsx)("h3",{children:(0,d.__)("Description Typography","blynex")}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("Font Size","blynex"),value:f.fontSize,onChange:e=>t({descriptionTypography:{...f,fontSize:e}})}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Font Weight","blynex"),value:f.fontWeight,options:[{label:"300 - Light",value:"300"},{label:"400 - Normal",value:"400"},{label:"500 - Medium",value:"500"}],onChange:e=>t({descriptionTypography:{...f,fontWeight:e}})}),(0,i.jsx)("hr",{}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Icon Size (px)","blynex"),value:J,onChange:e=>t({iconSize:e}),min:20,max:100})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Colors","blynex"),initialOpen:!1,children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Number Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:v,onChange:e=>t({numberColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Title Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:_,onChange:e=>t({titleColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Description Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:C,onChange:e=>t({descriptionColor:e})}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Icon Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:j,onChange:e=>t({iconColor:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Item Background","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Background Type","blynex"),value:N,options:[{label:"None",value:"none"},{label:"Solid Color",value:"solid"},{label:"Gradient",value:"gradient"},{label:"Image",value:"image"}],onChange:e=>t({backgroundType:e})}),"solid"===N&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Background Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:k,onChange:e=>t({itemBackgroundColor:e})})]}),"gradient"===N&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Gradient","blynex")})}),(0,i.jsx)(r.TextControl,{label:(0,d.__)("CSS Gradient","blynex"),value:S||"",onChange:e=>t({itemBackgroundGradient:e}),placeholder:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",help:(0,d.__)("Enter a CSS gradient value","blynex")}),(0,i.jsxs)("div",{style:{marginTop:"10px"},children:[(0,i.jsx)("p",{style:{marginBottom:"5px",fontSize:"12px",fontWeight:"500"},children:(0,d.__)("Preset Gradients:","blynex")}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"8px"},children:[(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",height:"40px",border:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"})}),(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",height:"40px",border:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"})}),(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",height:"40px",border:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)"})}),(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",height:"40px",border:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #fa709a 0%, #fee140 100%)"})}),(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)",height:"40px",border:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #30cfd0 0%, #330867 100%)"})}),(0,i.jsx)(r.Button,{style:{background:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)",height:"40px",border:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"===S?"2px solid #000":"none"},onClick:()=>t({itemBackgroundGradient:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"})})]})]})]}),"image"===N&&(0,i.jsx)(a.MediaUpload,{onSelect:e=>t({itemBackgroundImage:e.url}),type:"image",value:B,render:({open:e})=>(0,i.jsx)(r.Button,{onClick:e,isSecondary:!0,children:B?(0,d.__)("Change Image","blynex"):(0,d.__)("Select Image","blynex")})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Spacing","blynex"),initialOpen:!1,children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Padding","blynex")})}),(0,i.jsx)(r.__experimentalBoxControl,{values:T,onChange:e=>t({itemPadding:e})}),(0,i.jsx)("p",{style:{marginTop:"20px"},children:(0,i.jsx)("strong",{children:(0,d.__)("Margin","blynex")})}),(0,i.jsx)(r.__experimentalBoxControl,{values:F,onChange:e=>t({itemMargin:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Border & Radius","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Border Width (px)","blynex"),value:P,onChange:e=>t({borderWidth:e}),min:0,max:10}),P>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,d.__)("Border Color","blynex")})}),(0,i.jsx)(r.ColorPalette,{value:I,onChange:e=>t({borderColor:e})}),(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Border Style","blynex"),value:$,options:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Double",value:"double"}],onChange:e=>t({borderStyle:e})})]}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Border Radius (px)","blynex"),value:L,onChange:e=>t({borderRadius:e}),min:0,max:50})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Visual Effects","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Enable Glass Effect","blynex"),checked:z,onChange:e=>t({glassEffect:e}),help:(0,d.__)("Glass effect works best when there's a background image or color on the page section.","blynex")}),z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Blur Intensity (px)","blynex"),value:R,onChange:e=>t({glassBlur:e}),min:0,max:30}),(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Opacity","blynex"),value:W,onChange:e=>t({glassOpacity:e}),min:0,max:1,step:.1})]}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Enable Neumorphism","blynex"),checked:M,onChange:e=>t({neumorphism:e})}),M&&(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Shadow Intensity","blynex"),value:H,options:[{label:"Light",value:"light"},{label:"Medium",value:"medium"},{label:"Strong",value:"strong"}],onChange:e=>t({neumorphismIntensity:e})})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Hover Effects","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.SelectControl,{label:(0,d.__)("Hover Effect","blynex"),value:D,options:[{label:"None",value:"none"},{label:"Scale",value:"scale"},{label:"Lift (Shadow)",value:"lift"},{label:"Tint",value:"tint"},{label:"Glow",value:"glow"}],onChange:e=>t({hoverEffect:e})}),"scale"===D&&(0,i.jsx)(r.RangeControl,{label:(0,d.__)("Scale Amount","blynex"),value:U,onChange:e=>t({hoverScale:e}),min:1,max:1.2,step:.05})]}),(0,i.jsxs)(r.PanelBody,{title:(0,d.__)("Responsive Visibility","blynex"),initialOpen:!1,children:[(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Hide on Mobile","blynex"),checked:V,onChange:e=>t({hideOnMobile:e})}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Hide on Tablet","blynex"),checked:q,onChange:e=>t({hideOnTablet:e})}),(0,i.jsx)(r.ToggleControl,{label:(0,d.__)("Hide on Desktop","blynex"),checked:Z,onChange:e=>t({hideOnDesktop:e})})]}),(0,i.jsx)(r.PanelBody,{title:(0,d.__)("Advanced","blynex"),initialOpen:!1,children:(0,i.jsx)(r.TextControl,{label:(0,d.__)("Custom CSS","blynex"),value:G,onChange:e=>t({customCSS:e}),help:(0,d.__)("Add custom CSS for this block","blynex")})})]}),(0,i.jsxs)("div",{...K,children:[G&&(0,i.jsx)("style",{children:G}),(0,i.jsx)("div",{className:"animated-counter-container",style:(()=>{let e={};return"grid"===o?(e.display="grid",e.gridTemplateColumns=`repeat(${s}, 1fr)`,e.gap=`${p}px ${c}px`):"horizontal"===o?(e.display="flex",e.flexDirection="row",e.gap=`${c}px`,e.flexWrap="wrap"):"vertical"===o&&(e.display="flex",e.flexDirection="column",e.gap=`${p}px`),e.textAlign=u,e})(),children:n.map(((e,t)=>(0,i.jsxs)("div",{className:b()("counter-item",{[`hover-${D}`]:"none"!==D,"glass-effect":z,neumorphism:M}),style:te(),children:[e.showIcon&&e.icon&&(0,i.jsx)("div",{className:"counter-icon",style:{color:j,fontSize:`${J}px`,width:`${J}px`,height:`${J}px`},dangerouslySetInnerHTML:{__html:e.icon}}),(0,i.jsxs)("div",{className:"counter-number",style:{fontSize:m.fontSize,fontWeight:m.fontWeight,lineHeight:m.lineHeight,color:v},children:[e.prefix,ee(e.endNumber,e.decimals,h),e.suffix]}),e.showTitle&&(0,i.jsx)("div",{className:"counter-title",style:{fontSize:y.fontSize,fontWeight:y.fontWeight,lineHeight:y.lineHeight,color:_},children:e.title}),e.showDescription&&e.description&&(0,i.jsx)("div",{className:"counter-description",style:{fontSize:f.fontSize,fontWeight:f.fontWeight,lineHeight:f.lineHeight,color:C},children:e.description})]},e.id)))})]})]})},save:function({attributes:e}){const{counters:t,layout:l,columns:n,columnGap:o,rowGap:a,alignment:r,animationDuration:s,animationTrigger:c,enableSeparator:d,numberTypography:p,titleTypography:u,descriptionTypography:x,numberColor:g,titleColor:h,descriptionColor:m,iconColor:y,itemBackgroundColor:f,itemBackgroundGradient:v,itemBackgroundImage:_,backgroundType:C,itemPadding:j,itemMargin:w,borderWidth:k,borderColor:S,borderRadius:B,borderStyle:N,glassEffect:T,glassBlur:F,glassOpacity:P,neumorphism:I,neumorphismIntensity:L,entranceAnimation:$,animationDelay:z,animationStagger:R,hoverEffect:W,hoverScale:M,customCSS:H,hideOnMobile:O,hideOnTablet:A,hideOnDesktop:E,iconSize:D}=e,U=b()("animated-counter-block",{[`layout-${l}`]:l,[`align-${r}`]:r,"hide-mobile":O,"hide-tablet":A,"hide-desktop":E}),G=()=>{let e={padding:`${j.top} ${j.right} ${j.bottom} ${j.left}`,margin:`${w.top} ${w.right} ${w.bottom} ${w.left}`,borderWidth:`${k}px`,borderColor:S,borderStyle:N,borderRadius:`${B}px`};if("solid"===C&&f?e.backgroundColor=f:"gradient"===C&&v?e.background=v:"image"===C&&_&&(e.backgroundImage=`url(${_})`,e.backgroundSize="cover",e.backgroundPosition="center"),T&&(e.backdropFilter=`blur(${F}px)`,e.WebkitBackdropFilter=`blur(${F}px)`,e.backgroundColor=`rgba(255, 255, 255, ${P})`,e.border="1px solid rgba(255, 255, 255, 0.3)"),I){const t="light"===L?"5px":"medium"===L?"10px":"15px";e.boxShadow=`${t} ${t} ${2*parseInt(t)}px rgba(0, 0, 0, 0.1), -${t} -${t} ${2*parseInt(t)}px rgba(255, 255, 255, 0.7)`,e.backgroundColor=f||"#e0e5ec"}return e};return(0,i.jsxs)("div",{className:U,children:[H&&(0,i.jsx)("style",{children:H}),(0,i.jsx)("div",{className:"animated-counter-container",style:(()=>{let e={};return"grid"===l?(e.display="grid",e.gridTemplateColumns=`repeat(${n}, 1fr)`,e.gap=`${a}px ${o}px`):"horizontal"===l?(e.display="flex",e.flexDirection="row",e.gap=`${o}px`,e.flexWrap="wrap"):"vertical"===l&&(e.display="flex",e.flexDirection="column",e.gap=`${a}px`),e.textAlign=r,e})(),"data-trigger":c,"data-duration":s,"data-separator":d?"1":"0","data-entrance":$,"data-delay":z,"data-stagger":R,children:t.map(((e,t)=>(0,i.jsxs)("div",{className:b()("counter-item",{[`hover-${W}`]:"none"!==W,[`entrance-${$}`]:"none"!==$,"glass-effect":T,neumorphism:I}),style:G(),"data-hover-scale":M,children:[e.showIcon&&e.icon&&(0,i.jsx)("div",{className:"counter-icon",style:{color:y,fontSize:`${D}px`,width:`${D}px`,height:`${D}px`},dangerouslySetInnerHTML:{__html:e.icon}}),(0,i.jsxs)("div",{className:"counter-number",style:{fontSize:p.fontSize,fontWeight:p.fontWeight,lineHeight:p.lineHeight,color:g},"data-start":e.startNumber,"data-end":e.endNumber,"data-prefix":e.prefix,"data-suffix":e.suffix,"data-decimals":e.decimals,children:[e.prefix,"0",e.suffix]}),e.showTitle&&(0,i.jsx)("div",{className:"counter-title",style:{fontSize:u.fontSize,fontWeight:u.fontWeight,lineHeight:u.lineHeight,color:h},children:e.title}),e.showDescription&&e.description&&(0,i.jsx)("div",{className:"counter-description",style:{fontSize:x.fontSize,fontWeight:x.fontWeight,lineHeight:x.lineHeight,color:m},children:e.description})]},e.id)))})]})}}),l.e(789).then(l.bind(l,789))},279:function(e){"use strict";e.exports=window.wp.plugins},370:function(e,t,l){"use strict";var n=l(997),o=l(723),a=l(715),r=l(427),i=l(87),s=l(790),c=JSON.parse('{"UU":"blynex/live-clock-date"}');(0,n.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:t}){const{displayMode:l,layoutMode:n,timeFormat:c,dateFormat:d,timezone:p,customTimezone:u,textAlign:x,textColor:b,backgroundColor:g,gradient:h,separator:m,blinkingSeparator:y,customLabel:f,digitalStyle:v,glowEffect:_,borderRadius:C,boxShadow:j,showSeconds:w,showWeekday:k}=e,[S,B]=(0,i.useState)(new Date);(0,i.useEffect)((()=>{const e=setInterval((()=>{B(new Date)}),1e3);return()=>clearInterval(e)}),[]);const N=(0,a.useBlockProps)({style:{textAlign:x,color:b||void 0,background:h||g||void 0,borderRadius:C?`${C}px`:void 0,boxShadow:j?"0 4px 6px rgba(0, 0, 0, 0.1)":void 0},className:`layout-${n} ${v?"digital-style":""} ${_?"glow-effect":""} ${y?"blinking-separator":""}`}),T=[{label:(0,o.__)("Browser Time","blynex"),value:"browser"},{label:(0,o.__)("Custom Timezone","blynex"),value:"custom"}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Display Settings","blynex"),initialOpen:!0,children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Display Mode","blynex"),value:l,options:[{label:(0,o.__)("Time Only","blynex"),value:"time"},{label:(0,o.__)("Date Only","blynex"),value:"date"},{label:(0,o.__)("Both","blynex"),value:"both"}],onChange:e=>t({displayMode:e})}),"both"===l&&(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Layout Mode","blynex"),value:n,options:[{label:(0,o.__)("Stacked","blynex"),value:"stack"},{label:(0,o.__)("Inline","blynex"),value:"inline"},{label:(0,o.__)("Circle Badge","blynex"),value:"circle"}],onChange:e=>t({layoutMode:e})})]}),(0,s.jsx)(r.PanelBody,{title:(0,o.__)("Time Settings","blynex"),initialOpen:!1,children:("time"===l||"both"===l)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Time Format","blynex"),value:c,options:[{label:(0,o.__)("12 Hour","blynex"),value:"12"},{label:(0,o.__)("24 Hour","blynex"),value:"24"}],onChange:e=>t({timeFormat:e})}),(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Show Seconds","blynex"),checked:w,onChange:e=>t({showSeconds:e})}),(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Separator","blynex"),value:m,options:[{label:(0,o.__)("Colon (:)","blynex"),value:"colon"},{label:(0,o.__)("Dot (·)","blynex"),value:"dot"}],onChange:e=>t({separator:e})}),(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Blinking Separator","blynex"),checked:y,onChange:e=>t({blinkingSeparator:e})}),(0,s.jsx)(r.TextControl,{label:(0,o.__)("Custom Label","blynex"),value:f,onChange:e=>t({customLabel:e}),placeholder:(0,o.__)("e.g., Current Time:","blynex"),help:(0,o.__)("Optional text to display before the time","blynex")})]})}),(0,s.jsx)(r.PanelBody,{title:(0,o.__)("Date Settings","blynex"),initialOpen:!1,children:("date"===l||"both"===l)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Date Format","blynex"),value:d,options:[{label:(0,o.__)("Long (Monday, November 10, 2025)","blynex"),value:"long"},{label:(0,o.__)("Short (Nov 10, 2025)","blynex"),value:"short"},{label:(0,o.__)("Numeric (11/10/2025)","blynex"),value:"numeric"}],onChange:e=>t({dateFormat:e})}),"long"===d&&(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Show Weekday","blynex"),checked:k,onChange:e=>t({showWeekday:e})})]})}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Timezone Settings","blynex"),initialOpen:!1,children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Timezone","blynex"),value:p,options:T,onChange:e=>t({timezone:e})}),"custom"===p&&(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Select Timezone","blynex"),value:u,options:[{label:"UTC",value:"UTC"},{label:"UTC+6 – Dhaka",value:"Asia/Dhaka"},{label:"UTC-5 – New York",value:"America/New_York"},{label:"UTC-8 – Los Angeles",value:"America/Los_Angeles"},{label:"UTC+1 – London",value:"Europe/London"},{label:"UTC+2 – Paris",value:"Europe/Paris"},{label:"UTC+9 – Tokyo",value:"Asia/Tokyo"},{label:"UTC+10 – Sydney",value:"Australia/Sydney"},{label:"UTC+5:30 – Mumbai",value:"Asia/Kolkata"},{label:"UTC+8 – Singapore",value:"Asia/Singapore"}],onChange:e=>t({customTimezone:e})})]}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Style Settings","blynex"),initialOpen:!1,children:[(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Digital Clock Style","blynex"),checked:v,onChange:e=>t({digitalStyle:e}),help:(0,o.__)("Enables a digital/neon clock appearance","blynex")}),v&&(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Glow Effect","blynex"),checked:_,onChange:e=>t({glowEffect:e})}),(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Text Alignment","blynex"),value:x,options:[{label:(0,o.__)("Left","blynex"),value:"left"},{label:(0,o.__)("Center","blynex"),value:"center"},{label:(0,o.__)("Right","blynex"),value:"right"}],onChange:e=>t({textAlign:e})}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Border Radius","blynex"),value:C,onChange:e=>t({borderRadius:e}),min:0,max:50}),(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Box Shadow","blynex"),checked:j,onChange:e=>t({boxShadow:e})})]}),(0,s.jsx)(a.PanelColorSettings,{title:(0,o.__)("Color Settings","blynex"),colorSettings:[{value:b,onChange:e=>t({textColor:e}),label:(0,o.__)("Text Color","blynex")},{value:g,onChange:e=>t({backgroundColor:e}),label:(0,o.__)("Background Color","blynex")}]})]}),(0,s.jsx)("div",{...N,children:(0,s.jsxs)("div",{className:"blynex-live-clock-wrapper",children:[f&&(0,s.jsxs)("span",{className:"clock-label",children:[f," "]}),("time"===l||"both"===l)&&(0,s.jsx)("div",{className:"clock-time",children:(e=>{if(!y)return"dot"===m?e.replace(/:/g,"·"):e;const t="dot"===m?"·":":",l=e.split(":");return l.map(((e,n)=>(0,s.jsxs)(s.Fragment,{children:[e,n{const e={hour:"2-digit",minute:"2-digit",...w&&{second:"2-digit"},hour12:"12"===c,timeZone:"browser"===p?void 0:u};return S.toLocaleTimeString("en-US",e)})())}),("date"===l||"both"===l)&&(0,s.jsx)("div",{className:"clock-date",children:(()=>{const e={timeZone:"browser"===p?void 0:u};return"long"===d?S.toLocaleDateString("en-US",{...e,weekday:k?"long":void 0,year:"numeric",month:"long",day:"numeric"}):"short"===d?S.toLocaleDateString("en-US",{...e,year:"numeric",month:"short",day:"numeric"}):"numeric"===d?S.toLocaleDateString("en-US",{...e,year:"numeric",month:"2-digit",day:"2-digit"}):S.toLocaleDateString("en-US",e)})()})]})})]})},save:function({attributes:e}){const{displayMode:t,layoutMode:l,timeFormat:n,dateFormat:o,timezone:r,customTimezone:i,textAlign:c,textColor:d,backgroundColor:p,gradient:u,separator:x,blinkingSeparator:b,customLabel:g,digitalStyle:h,glowEffect:m,borderRadius:y,boxShadow:f,showSeconds:v,showWeekday:_}=e,C=a.useBlockProps.save({style:{textAlign:c,color:d||void 0,background:u||p||void 0,borderRadius:y?`${y}px`:void 0,boxShadow:f?"0 4px 6px rgba(0, 0, 0, 0.1)":void 0},className:`layout-${l} ${h?"digital-style":""} ${m?"glow-effect":""} ${b?"blinking-separator":""}`});return(0,s.jsx)("div",{...C,"data-display-mode":t,"data-time-format":n,"data-date-format":o,"data-timezone":r,"data-custom-timezone":i,"data-separator":x,"data-blinking-separator":b,"data-show-seconds":v,"data-show-weekday":_,children:(0,s.jsxs)("div",{className:"blynex-live-clock-wrapper",children:[g&&(0,s.jsxs)("span",{className:"clock-label",children:[g," "]}),("time"===t||"both"===t)&&(0,s.jsx)("div",{className:"clock-time",children:"00:00:00"}),("date"===t||"both"===t)&&(0,s.jsx)("div",{className:"clock-date",children:"Loading..."})]})})}})},422:function(e,t,l){"use strict";var n=l(723),o=l(997),a=l(715),r=l(87),i=l(427),s=l(942),c=l.n(s),d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blynex/lottie-animation","version":"1.0.0","title":"Lottie Animation","category":"blynex-blocks","icon":"format-video","description":"Display and customize Lottie (JSON-based SVG) animations with advanced playback controls.","keywords":["lottie","animation","json","vector","svg"],"example":{},"supports":{"html":false,"align":["wide","full","left","center","right"],"spacing":{"padding":true,"margin":true},"color":{"background":true}},"attributes":{"animationSource":{"type":"string","default":"upload"},"animationJSON":{"type":"object","default":null},"animationURL":{"type":"string","default":""},"mediaId":{"type":"number","default":0},"autoplay":{"type":"boolean","default":true},"loop":{"type":"boolean","default":true},"playOnHover":{"type":"boolean","default":false},"playOnScroll":{"type":"boolean","default":false},"scrollThreshold":{"type":"number","default":30},"speed":{"type":"number","default":1},"direction":{"type":"string","default":"normal"},"startFrame":{"type":"number","default":0},"endFrame":{"type":"number","default":0},"width":{"type":"string","default":"400px"},"height":{"type":"string","default":"400px"},"alignment":{"type":"string","default":"center"},"maintainAspectRatio":{"type":"boolean","default":true},"borderRadius":{"type":"string","default":"0px"},"backgroundColor":{"type":"string","default":""},"overlayColor":{"type":"string","default":""},"boxShadow":{"type":"boolean","default":false},"boxShadowValue":{"type":"string","default":"0 4px 6px rgba(0, 0, 0, 0.1)"},"linkUrl":{"type":"string","default":""},"linkNewTab":{"type":"boolean","default":false},"hoverEffect":{"type":"string","default":"none"},"altText":{"type":"string","default":""},"ariaLabel":{"type":"string","default":""},"role":{"type":"string","default":"img"},"showControls":{"type":"boolean","default":false},"lazyLoad":{"type":"boolean","default":true}},"textdomain":"blynex","editorScript":"file:./index.js","editorStyle":"file:./style.scss","style":"file:./style.scss","viewScript":"file:./view.js"}'),p=l(790),u=({attributes:e,setAttributes:t})=>{const{animationSource:l,animationURL:o,mediaId:r,autoplay:s,loop:c,playOnHover:d,playOnScroll:u,scrollThreshold:x,speed:b,direction:g,startFrame:h,endFrame:m,width:y,height:f,alignment:v,maintainAspectRatio:_,borderRadius:C,backgroundColor:j,overlayColor:w,boxShadow:k,boxShadowValue:S,linkUrl:B,linkNewTab:N,hoverEffect:T,altText:F,ariaLabel:P,role:I,showControls:L,lazyLoad:$}=e;return(0,p.jsxs)(a.InspectorControls,{children:[(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Animation Settings","blynex"),initialOpen:!0,children:[(0,p.jsx)(i.SelectControl,{label:(0,n.__)("Animation Source","blynex"),value:l,options:[{label:(0,n.__)("Upload JSON","blynex"),value:"upload"},{label:(0,n.__)("External URL","blynex"),value:"url"}],onChange:e=>t({animationSource:e})}),"upload"===l&&(0,p.jsx)(a.MediaUploadCheck,{children:(0,p.jsx)(a.MediaUpload,{onSelect:e=>{t({mediaId:e.id,animationURL:e.url})},allowedTypes:["application/json"],value:r,render:({open:e})=>(0,p.jsxs)("div",{children:[(0,p.jsx)(i.Button,{onClick:e,variant:"secondary",style:{marginBottom:"10px",width:"100%"},children:r>0?(0,n.__)("Change JSON File","blynex"):(0,n.__)("Upload JSON File","blynex")}),r>0&&(0,p.jsx)(i.Button,{onClick:()=>t({mediaId:0,animationURL:""}),variant:"tertiary",isDestructive:!0,style:{width:"100%"},children:(0,n.__)("Remove","blynex")})]})})}),"url"===l&&(0,p.jsx)(i.TextControl,{label:(0,n.__)("Animation JSON URL","blynex"),value:o,onChange:e=>t({animationURL:e}),placeholder:"https://example.com/animation.json",help:(0,n.__)("Enter the full URL to your Lottie JSON file","blynex")}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Lazy Load","blynex"),checked:$,onChange:e=>t({lazyLoad:e}),help:(0,n.__)("Load animation only when visible in viewport","blynex")})]}),(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Playback Options","blynex"),initialOpen:!1,children:[(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Autoplay","blynex"),checked:s,onChange:e=>t({autoplay:e})}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Loop","blynex"),checked:c,onChange:e=>t({loop:e})}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Play on Hover","blynex"),checked:d,onChange:e=>t({playOnHover:e}),help:(0,n.__)("Start animation when mouse hovers over it","blynex")}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Play on Scroll","blynex"),checked:u,onChange:e=>t({playOnScroll:e}),help:(0,n.__)("Start animation when scrolled into view","blynex")}),u&&(0,p.jsx)(i.RangeControl,{label:(0,n.__)("Scroll Threshold (%)","blynex"),value:x,onChange:e=>t({scrollThreshold:e}),min:0,max:100,step:5,help:(0,n.__)("How much of the element must be visible to trigger","blynex")}),(0,p.jsx)(i.RangeControl,{label:(0,n.__)("Speed","blynex"),value:b,onChange:e=>t({speed:e}),min:.1,max:3,step:.1}),(0,p.jsx)(i.SelectControl,{label:(0,n.__)("Direction","blynex"),value:g,options:[{label:(0,n.__)("Normal","blynex"),value:"normal"},{label:(0,n.__)("Reverse","blynex"),value:"reverse"}],onChange:e=>t({direction:e})}),(0,p.jsx)(i.BaseControl,{label:(0,n.__)("Frame Range (Optional)","blynex"),help:(0,n.__)("Leave at 0 to play full animation","blynex"),children:(0,p.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,p.jsx)(i.TextControl,{type:"number",label:(0,n.__)("Start Frame","blynex"),value:h,onChange:e=>t({startFrame:parseInt(e)||0}),min:0}),(0,p.jsx)(i.TextControl,{type:"number",label:(0,n.__)("End Frame","blynex"),value:m,onChange:e=>t({endFrame:parseInt(e)||0}),min:0})]})}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Show Play/Pause Controls","blynex"),checked:L,onChange:e=>t({showControls:e})})]}),(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Size & Layout","blynex"),initialOpen:!1,children:[(0,p.jsx)(i.TextControl,{label:(0,n.__)("Width","blynex"),value:y,onChange:e=>t({width:e}),placeholder:"400px",help:(0,n.__)("Use px, %, vw, or auto","blynex")}),(0,p.jsx)(i.TextControl,{label:(0,n.__)("Height","blynex"),value:f,onChange:e=>t({height:e}),placeholder:"400px",help:(0,n.__)("Use px, %, vh, or auto","blynex")}),(0,p.jsx)(i.SelectControl,{label:(0,n.__)("Alignment","blynex"),value:v,options:[{label:(0,n.__)("Left","blynex"),value:"left"},{label:(0,n.__)("Center","blynex"),value:"center"},{label:(0,n.__)("Right","blynex"),value:"right"}],onChange:e=>t({alignment:e})}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Maintain Aspect Ratio","blynex"),checked:_,onChange:e=>t({maintainAspectRatio:e})}),(0,p.jsx)(i.TextControl,{label:(0,n.__)("Border Radius","blynex"),value:C,onChange:e=>t({borderRadius:e}),placeholder:"0px"})]}),(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Color & Background","blynex"),initialOpen:!1,children:[(0,p.jsx)(i.BaseControl,{label:(0,n.__)("Background Color","blynex"),children:(0,p.jsx)(i.TextControl,{value:j,onChange:e=>t({backgroundColor:e}),placeholder:"#ffffff or rgba(255,255,255,0.5)"})}),(0,p.jsx)(i.BaseControl,{label:(0,n.__)("Overlay Color (Tint)","blynex"),children:(0,p.jsx)(i.TextControl,{value:w,onChange:e=>t({overlayColor:e}),placeholder:"rgba(0,0,0,0.2)",help:(0,n.__)("Add a color overlay on top of animation","blynex")})}),(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Box Shadow","blynex"),checked:k,onChange:e=>t({boxShadow:e})}),k&&(0,p.jsx)(i.TextControl,{label:(0,n.__)("Shadow Value","blynex"),value:S,onChange:e=>t({boxShadowValue:e}),placeholder:"0 4px 6px rgba(0, 0, 0, 0.1)"})]}),(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Interactivity","blynex"),initialOpen:!1,children:[(0,p.jsx)(i.TextControl,{label:(0,n.__)("Link URL","blynex"),value:B,onChange:e=>t({linkUrl:e}),placeholder:"https://",help:(0,n.__)("Make the animation clickable","blynex")}),B&&(0,p.jsx)(i.ToggleControl,{label:(0,n.__)("Open in New Tab","blynex"),checked:N,onChange:e=>t({linkNewTab:e})}),(0,p.jsx)(i.SelectControl,{label:(0,n.__)("Hover Effect","blynex"),value:T,options:[{label:(0,n.__)("None","blynex"),value:"none"},{label:(0,n.__)("Scale","blynex"),value:"scale"},{label:(0,n.__)("Pulse","blynex"),value:"pulse"},{label:(0,n.__)("Bounce","blynex"),value:"bounce"}],onChange:e=>t({hoverEffect:e}),help:(0,n.__)("Visual effect on mouse hover","blynex")})]}),(0,p.jsxs)(i.PanelBody,{title:(0,n.__)("Accessibility","blynex"),initialOpen:!1,children:[(0,p.jsx)(i.TextControl,{label:(0,n.__)("Alt Text","blynex"),value:F,onChange:e=>t({altText:e}),help:(0,n.__)("Describe the animation for screen readers","blynex")}),(0,p.jsx)(i.TextControl,{label:(0,n.__)("ARIA Label","blynex"),value:P,onChange:e=>t({ariaLabel:e})}),(0,p.jsx)(i.SelectControl,{label:(0,n.__)("Role","blynex"),value:I,options:[{label:(0,n.__)("Image","blynex"),value:"img"},{label:(0,n.__)("Presentation","blynex"),value:"presentation"}],onChange:e=>t({role:e})})]})]})};(0,o.registerBlockType)(d.name,{...d,attributes:{animationSource:{type:"string",default:"upload"},animationJSON:{type:"object",default:null},animationURL:{type:"string",default:""},mediaId:{type:"number",default:0},autoplay:{type:"boolean",default:!0},loop:{type:"boolean",default:!0},playOnHover:{type:"boolean",default:!1},playOnScroll:{type:"boolean",default:!1},scrollThreshold:{type:"number",default:30},speed:{type:"number",default:1},direction:{type:"string",default:"normal"},startFrame:{type:"number",default:0},endFrame:{type:"number",default:0},width:{type:"string",default:"400px"},height:{type:"string",default:"400px"},alignment:{type:"string",default:"center"},maintainAspectRatio:{type:"boolean",default:!0},borderRadius:{type:"string",default:"0px"},backgroundColor:{type:"string",default:""},overlayColor:{type:"string",default:""},boxShadow:{type:"boolean",default:!1},boxShadowValue:{type:"string",default:"0 4px 6px rgba(0, 0, 0, 0.1)"},linkUrl:{type:"string",default:""},linkNewTab:{type:"boolean",default:!1},hoverEffect:{type:"string",default:"none"},altText:{type:"string",default:""},ariaLabel:{type:"string",default:""},role:{type:"string",default:"img"},showControls:{type:"boolean",default:!1},lazyLoad:{type:"boolean",default:!0}},edit:function({attributes:e,setAttributes:t}){const{animationURL:o,autoplay:s,loop:d,speed:x,direction:b,width:g,height:h,alignment:m,maintainAspectRatio:y,borderRadius:f,backgroundColor:v,overlayColor:_,boxShadow:C,boxShadowValue:j,hoverEffect:w,showControls:k}=e,S=(0,r.useRef)(null),B=(0,r.useRef)(null),[N,T]=(0,r.useState)(s),[F,P]=(0,r.useState)(null),[I,L]=(0,r.useState)(!1),[$,z]=(0,r.useState)(null),R=(0,a.useBlockProps)({className:c()("wp-block-blynex-lottie-animation",`align-${m}`,{[`hover-effect-${w}`]:"none"!==w,"has-controls":k})});(0,r.useEffect)((()=>{o?(L(!0),z(null),fetch(o).then((e=>{if(!e.ok)throw new Error("Failed to load animation");return e.json()})).then((e=>{P(e),L(!1)})).catch((e=>{z(e.message),L(!1)}))):P(null)}),[o]),(0,r.useEffect)((()=>{if(F&&S.current)return l.e(891).then(l.t.bind(l,891,23)).then((e=>{B.current&&B.current.destroy(),B.current=e.default.loadAnimation({container:S.current,renderer:"svg",loop:d,autoplay:s,animationData:F}),B.current.setSpeed(x),"reverse"===b&&B.current.setDirection(-1),T(s)})).catch((e=>{console.error("Failed to load lottie-web:",e),z("Failed to load animation library")})),()=>{B.current&&B.current.destroy()}}),[F,d,s,x,b]);const W={width:g||"400px",height:y?"auto":h||"400px",backgroundColor:v||"transparent",borderRadius:f||"0px",boxShadow:C?j:"none",position:"relative",overflow:"hidden"};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u,{attributes:e,setAttributes:t}),(0,p.jsxs)("div",{...R,children:[!o&&(0,p.jsx)(i.Placeholder,{icon:"format-video",label:(0,n.__)("Lottie Animation","blynex"),instructions:(0,n.__)("Upload a Lottie JSON file or provide a URL in the block settings to get started.","blynex")}),I&&(0,p.jsx)(i.Placeholder,{icon:"format-video",label:(0,n.__)("Loading Animation...","blynex"),children:(0,p.jsx)(i.Spinner,{})}),$&&(0,p.jsx)(i.Placeholder,{icon:"format-video",label:(0,n.__)("Error Loading Animation","blynex"),instructions:$}),o&&F&&!I&&!$&&(0,p.jsxs)("div",{className:"lottie-animation-wrapper",style:W,children:[(0,p.jsx)("div",{ref:S,className:"lottie-animation-container",style:{width:"100%",height:"100%"}}),_&&(0,p.jsx)("div",{className:"lottie-overlay",style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:_,pointerEvents:"none"}}),k&&(0,p.jsx)("div",{className:"lottie-controls",children:(0,p.jsx)(i.Button,{variant:"secondary",onClick:()=>{B.current&&(N?B.current.pause():B.current.play(),T(!N))},size:"small",children:N?(0,n.__)("Pause","blynex"):(0,n.__)("Play","blynex")})})]})]})]})},save:function({attributes:e}){const{animationURL:t,autoplay:l,loop:o,playOnHover:r,playOnScroll:i,scrollThreshold:s,speed:d,direction:u,startFrame:x,endFrame:b,width:g,height:h,alignment:m,maintainAspectRatio:y,borderRadius:f,backgroundColor:v,overlayColor:_,boxShadow:C,boxShadowValue:j,linkUrl:w,linkNewTab:k,hoverEffect:S,altText:B,ariaLabel:N,role:T,showControls:F,lazyLoad:P}=e;if(!t)return null;const I=a.useBlockProps.save({className:c()("wp-block-blynex-lottie-animation",`align-${m}`,{[`hover-effect-${S}`]:"none"!==S,"has-controls":F})}),L={width:g||"400px",height:y?"auto":h||"400px",backgroundColor:v||"transparent",borderRadius:f||"0px",boxShadow:C?j:"none",position:"relative",overflow:"hidden"},$={"data-animation-url":t,"data-autoplay":l?"true":"false","data-loop":o?"true":"false","data-play-on-hover":r?"true":"false","data-play-on-scroll":i?"true":"false","data-scroll-threshold":s,"data-speed":d,"data-direction":u,"data-start-frame":x,"data-end-frame":b,"data-show-controls":F?"true":"false","data-lazy-load":P?"true":"false"},z=(0,p.jsxs)("div",{className:"lottie-animation-wrapper",style:L,children:[(0,p.jsx)("div",{className:"lottie-animation-container",...$,role:T,"aria-label":N||B||(0,n.__)("Lottie Animation","blynex"),style:{width:"100%",height:"100%"}}),_&&(0,p.jsx)("div",{className:"lottie-overlay",style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:_,pointerEvents:"none"}}),F&&(0,p.jsx)("div",{className:"lottie-controls",children:(0,p.jsxs)("button",{className:"lottie-play-pause","aria-label":(0,n.__)("Play/Pause","blynex"),children:[(0,p.jsx)("span",{className:"play-icon",children:"▶"}),(0,p.jsx)("span",{className:"pause-icon",children:"⏸"})]})})]});return w?(0,p.jsx)("div",{...I,children:(0,p.jsx)("a",{href:w,target:k?"_blank":void 0,rel:k?"noopener noreferrer":void 0,className:"lottie-link",children:z})}):(0,p.jsx)("div",{...I,children:z})}})},427:function(e){"use strict";e.exports=window.wp.components},490:function(e){"use strict";e.exports=window.wp.domReady},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),a=l(427),r=(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:h,gap:m,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 N={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)"},T=(0,o.useBlockProps)({className:`blynex-announcement-widget align-${_}`,style:{backgroundColor:p||N.accent6,border:`${b}px solid ${u||N.accent1}`,borderRadius:`${x}px`,padding:`${g.top} ${g.right} ${g.bottom} ${g.left}`,margin:`${h.top} ${h.right} ${h.bottom} ${h.left}`,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:`${m}px`,minHeight:"auto",width:"auto",maxWidth:"none"}}),F={backgroundColor:s||N.accent2,color:c||N.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"},P={color:d||N.base,fontSize:`${C}px`,fontWeight:w,flex:1,margin:0,lineHeight:"1.4"},I={backgroundColor:v||N.accent1,color:f||N.base,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BlockControls,{children:(0,r.jsx)(o.AlignmentToolbar,{value:_,onChange:e=>t({align:e})})}),(0,r.jsxs)(o.InspectorControls,{children:[(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,r.jsx)(a.TextControl,{label:(0,n.__)("Badge Text","blynex"),value:l,onChange:e=>t({badgeText:e})}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("Main Text","blynex"),value:i,onChange:e=>t({mainText:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Icon","blynex"),checked:y,onChange:e=>t({showIcon:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Badge Styling","blynex"),initialOpen:!1,children:[(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Badge Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:s,onChange:e=>t({badgeColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Badge Text Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:c,onChange:e=>t({badgeTextColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Badge Font Size","blynex"),value:j,onChange:e=>t({badgeFontSize:e}),min:8,max:24,step:1}),(0,r.jsx)(a.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,r.jsxs)(a.PanelBody,{title:(0,n.__)("Text Styling","blynex"),initialOpen:!1,children:[(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Text Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:d,onChange:e=>t({textColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Font Size","blynex"),value:C,onChange:e=>t({fontSize:e}),min:12,max:32,step:1}),(0,r.jsx)(a.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,r.jsxs)(a.PanelBody,{title:(0,n.__)("Background & Border","blynex"),initialOpen:!1,children:[(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:p,onChange:e=>t({backgroundColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Border Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:u,onChange:e=>t({borderColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Border Radius","blynex"),value:x,onChange:e=>t({borderRadius:e}),min:0,max:50,step:1}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Border Width","blynex"),value:b,onChange:e=>t({borderWidth:e}),min:0,max:10,step:1})]}),(0,r.jsx)(a.PanelBody,{title:(0,n.__)("Dimensions & Spacing","blynex"),initialOpen:!1,children:(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Gap (px)","blynex"),value:m,onChange:e=>t({gap:e}),min:4,max:32,step:1})}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Icon Styling","blynex"),initialOpen:!1,children:[(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Icon Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:f,onChange:e=>t({iconColor:e}),colors:S,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Icon Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:v,onChange:e=>t({iconBackgroundColor:e}),colors:S,disableCustomColors:!1})]})]})]}),(0,r.jsxs)("div",{...T,children:[(0,r.jsx)("div",{style:F,children:(0,r.jsx)(o.RichText,{tagName:"span",value:l,onChange:e=>t({badgeText:e}),placeholder:(0,n.__)("Badge text...","blynex"),className:"blynex-announcement-badge-text"})}),(0,r.jsx)(o.RichText,{tagName:"p",value:i,onChange:e=>t({mainText:e}),placeholder:(0,n.__)("Main announcement text...","blynex"),className:"blynex-announcement-text",style:P}),y?(0,r.jsx)("div",{style:I,children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):(0,r.jsx)("div",{style:{...I,opacity:.3},children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.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,r.jsxs)("div",{style:{padding:"20px",border:"2px dashed #ff0000",backgroundColor:"#fff5f5",color:"#ff0000",textAlign:"center"},children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Announcement Widget Error"})}),(0,r.jsx)("p",{children:"There was an error rendering this widget."}),(0,r.jsxs)("p",{children:["Error: ",e.message]})]})}},save:({attributes:e})=>{const{badgeText:t,mainText:l,badgeColor:n,badgeTextColor:a,textColor:i,backgroundColor:s,borderColor:c,borderRadius:d,borderWidth:p,padding:u,margin:x,gap:b,showIcon:g,iconColor:h,iconBackgroundColor:m,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:a||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"},N={backgroundColor:m||w,color:h||j,width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,r.jsxs)("div",{...k,children:[(0,r.jsx)("div",{style:S,children:(0,r.jsx)(o.RichText.Content,{tagName:"span",value:t,className:"blynex-announcement-badge-text"})}),(0,r.jsx)(o.RichText.Content,{tagName:"p",value:l,className:"blynex-announcement-text",style:B}),g&&(0,r.jsx)("div",{style:N,children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.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),a=l(715),r=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:h,menuWidthTablet:m,menuWidthMobile:y,menuHeight:f,menuHeightTablet:v,menuHeightMobile:_,itemSpacing:C,itemSpacingTablet:j,itemSpacingMobile:w,enableAccordion:k,showToggleIcon:S,toggleIconPosition:B,containerBackgroundColor:N,containerBorderColor:T,containerBorderWidth:F,containerBorderRadius:P,titleFontFamily:I,titleFontSize:L,titleFontWeight:$,titleLineHeight:z,titleLetterSpacing:R,menuItemFontFamily:W,menuItemFontSize:M,menuItemFontWeight:H,menuItemLineHeight:O,menuItemLetterSpacing:A}=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,a.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 a=[...n];a[e][l]=o,t({menuItems:a})};return(0,s.jsxs)("div",{...E,children:[(0,s.jsx)(a.BlockControls,{children:(0,s.jsx)(r.ToolbarGroup,{children:(0,s.jsx)(r.ToolbarButton,{icon:c,label:(0,o.__)("Add Menu Item","blynex"),onClick:D})})}),(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Menu Settings","blynex"),children:[(0,s.jsx)(r.TextControl,{label:(0,o.__)("Menu Title","blynex"),value:l,onChange:e=>t({menuTitle:e})}),(0,s.jsx)(r.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)(r.ToggleControl,{label:(0,o.__)("Show Toggle Icon","blynex"),checked:S,onChange:e=>t({showToggleIcon:e})}),S&&(0,s.jsx)(r.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)(r.PanelBody,{title:(0,o.__)("Responsive Layout","blynex"),initialOpen:!1,children:(0,s.jsx)(r.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)(r.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)(r.__experimentalUnitControl,{label:(0,o.__)("Menu Width","blynex"),value:h,onChange:e=>t({menuWidth:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(r.__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)(r.__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)(r.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)(r.__experimentalUnitControl,{label:(0,o.__)("Menu Width","blynex"),value:m,onChange:e=>t({menuWidthTablet:e}),units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"auto"}]}),(0,s.jsx)(r.__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)(r.__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)(r.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)(r.__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)(r.__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)(r.__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)(r.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)(a.ColorPalette,{colors:(0,a.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)(a.ColorPalette,{colors:(0,a.useSetting)("color.palette"),value:p,onChange:e=>t({linkColor:e||"var(--wp--preset--color--primary)"}),enableAlpha:!0,clearable:!0})]})]}),(0,s.jsxs)(r.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)(a.ColorPalette,{colors:(0,a.useSetting)("color.palette"),value:N,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)(a.ColorPalette,{colors:(0,a.useSetting)("color.palette"),value:T,onChange:e=>t({containerBorderColor:e||"var(--wp--preset--color--contrast)"}),enableAlpha:!0,clearable:!0})]}),(0,s.jsx)(r.__experimentalUnitControl,{label:(0,o.__)("Border Width","blynex"),value:F,onChange:e=>t({containerBorderWidth:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}]}),(0,s.jsx)(r.__experimentalUnitControl,{label:(0,o.__)("Border Radius","blynex"),value:P,onChange:e=>t({containerBorderRadius:e}),units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}]})]}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Typography","blynex"),initialOpen:!1,children:[(0,s.jsx)("h4",{children:(0,o.__)("Title Typography","blynex")}),(0,s.jsx)(r.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)(r.__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)(r.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)(r.__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)(r.__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)(r.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)(r.__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)(r.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)(r.__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)(r.__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)(r.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)(r.TextControl,{label:(0,o.__)("Label","blynex"),value:e.label,onChange:e=>U(l,"label",e)}),(0,s.jsx)(r.TextControl,{label:(0,o.__)("URL","blynex"),value:e.url,onChange:e=>U(l,"url",e)}),(0,s.jsx)(r.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)(r.Button,{icon:c,onClick:D,variant:"primary",children:(0,o.__)("Add Menu Item","blynex")})]})]}),(0,s.jsx)("div",{className:"responsive-nav-menu-preview","data-menu-direction":x,"data-enable-accordion":k,"data-toggle-position":B,children:(0,s.jsxs)("div",{className:"responsive-nav-menu",style:{width:h,height:f,backgroundColor:N||void 0,borderColor:T||void 0,borderWidth:F||"0px",borderRadius:P||"0px",borderStyle:T&&"0px"!==F?"solid":"none"},children:[(0,s.jsxs)("h3",{className:"menu-title",style:{color:i,fontFamily:I||void 0,fontSize:L,fontWeight:$,lineHeight:z,letterSpacing:R},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:W||void 0,fontSize:M,fontWeight:H,lineHeight:O,letterSpacing:A},onClick:e=>e.preventDefault(),children:e.label},e.id)))})]})})]})},save:({attributes:e})=>{const{menuTitle:t,menuItems:l,titleColor:n,linkColor:o,menuDirection:r,menuDirectionTablet:i,menuDirectionMobile:c,menuWidth:d,menuWidthTablet:p,menuWidthMobile:u,menuHeight:x,menuHeightTablet:b,menuHeightMobile:g,itemSpacing:h,itemSpacingTablet:m,itemSpacingMobile:y,enableAccordion:f,showToggleIcon:v,toggleIconPosition:_,containerBackgroundColor:C,containerBorderColor:j,containerBorderWidth:w,containerBorderRadius:k,titleFontFamily:S,titleFontSize:B,titleFontWeight:N,titleLineHeight:T,titleLetterSpacing:F,menuItemFontFamily:P,menuItemFontSize:I,menuItemFontWeight:L,menuItemLineHeight:$,menuItemLetterSpacing:z}=e,R=a.useBlockProps.save({className:"blynex-responsive-nav-menu","data-desktop-direction":r,"data-tablet-direction":i,"data-mobile-direction":c,"data-enable-accordion":f,"data-toggle-position":_}),W={"--menu-width":d,"--menu-width-tablet":p,"--menu-width-mobile":u,"--menu-height":x,"--menu-height-tablet":b,"--menu-height-mobile":g,"--item-spacing":h,"--item-spacing-tablet":m,"--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",{...R,style:W,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:N,lineHeight:T,letterSpacing:F},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-${r}`,id:`menu-items-${t.toLowerCase().replace(/\s+/g,"-")}`,role:"region","aria-labelledby":"menu-title",style:{gap:h,flexDirection:"horizontal"===r?"row":"column"},children:l.map((e=>(0,s.jsx)("a",{href:e.url,className:"menu-item",style:{color:o,fontFamily:P||void 0,fontSize:I,fontWeight:L,lineHeight:$,letterSpacing:z},children:e.label},e.id)))})]})})}})},715:function(e){"use strict";e.exports=window.wp.blockEditor},723:function(e){"use strict";e.exports=window.wp.i18n},790:function(e){"use strict";e.exports=window.ReactJSXRuntime},832:function(e){"use strict";e.exports=window.wp.url},873:function(e,t,l){"use strict";var n=l(723),o=l(715),a=l(427),r=(l(87),l(790));const{registerBlockType:i}=wp.blocks;i("blynex/contact-form-widget",{title:(0,n.__)("Contact Form Widget","blynex"),description:(0,n.__)("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,n.__)("Get In Touch","blynex")},formSubtitle:{type:"string",default:(0,n.__)("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,n.__)("Your Name","blynex")},emailLabel:{type:"string",default:(0,n.__)("Your Email","blynex")},phoneLabel:{type:"string",default:(0,n.__)("Your Phone","blynex")},subjectLabel:{type:"string",default:(0,n.__)("Subject","blynex")},messageLabel:{type:"string",default:(0,n.__)("Your Message","blynex")},namePlaceholder:{type:"string",default:(0,n.__)("John Doe","blynex")},emailPlaceholder:{type:"string",default:(0,n.__)("john@example.com","blynex")},phonePlaceholder:{type:"string",default:(0,n.__)("+1 234 567 890","blynex")},subjectPlaceholder:{type:"string",default:(0,n.__)("How can we help?","blynex")},messagePlaceholder:{type:"string",default:(0,n.__)("Write your message here...","blynex")},buttonText:{type:"string",default:(0,n.__)("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:""},fieldPlaceholderColor:{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,n.__)("Thank you! Your message has been sent successfully.","blynex")},errorMessage:{type:"string",default:(0,n.__)("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:i,showTitle:s,showSubtitle:c,showNameField:d,showEmailField:p,showPhoneField:u,showSubjectField:x,showMessageField:b,nameLabel:g,emailLabel:h,phoneLabel:m,subjectLabel:y,messageLabel:f,namePlaceholder:v,emailPlaceholder:_,phonePlaceholder:C,subjectPlaceholder:j,messagePlaceholder:w,buttonText:k,buttonAlignment:S,formStyle:B,fieldLayout:N,fieldSpacing:T,fieldPadding:F,buttonPadding:P,fieldBorderRadius:I,fieldBorderWidth:L,buttonBorderRadius:$,titleColor:z,subtitleColor:R,labelColor:W,fieldBackgroundColor:M,fieldTextColor:H,fieldPlaceholderColor:O,fieldBorderColor:A,fieldFocusBorderColor:E,buttonBackgroundColor:D,buttonTextColor:U,buttonHoverBackgroundColor:G,buttonHoverTextColor:V,titleFontSize:q,subtitleFontSize:Z,labelFontSize:J,fieldFontSize:Y,buttonFontSize:Q,recipientEmail:K,successMessage:X,errorMessage:ee,enableHoneypot:te,showRequiredIndicator:le}=e,ne=(0,o.useBlockProps)({className:`contact-form-widget style-${B} layout-${N}`}),oe=(0,o.useSetting)("color.palette")||[],ae=F||{top:"12px",right:"16px",bottom:"12px",left:"16px"},re=P||{top:"14px",right:"32px",bottom:"14px",left:"32px"};console.log("Contact Form Colors:",{fieldTextColor:H,fieldPlaceholderColor:O,fieldBackgroundColor:M,titleColor:z,buttonBackgroundColor:D});const ie={"--form-field-spacing":`${T}px`,"--form-field-border-radius":`${I}px`,"--form-field-border-width":`${L}px`,"--form-button-border-radius":`${$}px`,"--form-title-font-size":`${q}px`,"--form-subtitle-font-size":`${Z}px`,"--form-label-font-size":`${J}px`,"--form-field-font-size":`${Y}px`,"--form-button-font-size":`${Q}px`,...z&&{"--form-title-color":z},...R&&{"--form-subtitle-color":R},...W&&{"--form-label-color":W},...M&&{"--form-field-background-color":M},...H&&{"--form-field-text-color":H},...O&&{"--form-field-placeholder-color":O},...A&&{"--form-field-border-color":A},...E&&{"--form-field-focus-border-color":E},...D&&{"--form-button-background-color":D},...U&&{"--form-button-text-color":U},...G&&{"--form-button-hover-background-color":G},...V&&{"--form-button-hover-text-color":V},"--form-field-padding-top":ae.top||"12px","--form-field-padding-right":ae.right||"16px","--form-field-padding-bottom":ae.bottom||"12px","--form-field-padding-left":ae.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 console.log("Form Styles Object:",ie),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.InspectorControls,{children:[(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Content Settings","blynex"),initialOpen:!0,children:[(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Title","blynex"),checked:s,onChange:e=>t({showTitle:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Subtitle","blynex"),checked:c,onChange:e=>t({showSubtitle:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Required Indicator (*)","blynex"),checked:le,onChange:e=>t({showRequiredIndicator:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Field Visibility","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Name Field","blynex"),checked:d,onChange:e=>t({showNameField:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Email Field","blynex"),checked:p,onChange:e=>t({showEmailField:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Phone Field","blynex"),checked:u,onChange:e=>t({showPhoneField:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Subject Field","blynex"),checked:x,onChange:e=>t({showSubjectField:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Show Message Field","blynex"),checked:b,onChange:e=>t({showMessageField:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Field Labels","blynex"),initialOpen:!1,children:[d&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Name Label","blynex"),value:g,onChange:e=>t({nameLabel:e})}),p&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Email Label","blynex"),value:h,onChange:e=>t({emailLabel:e})}),u&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Phone Label","blynex"),value:m,onChange:e=>t({phoneLabel:e})}),x&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Subject Label","blynex"),value:y,onChange:e=>t({subjectLabel:e})}),b&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Message Label","blynex"),value:f,onChange:e=>t({messageLabel:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Field Placeholders","blynex"),initialOpen:!1,children:[d&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Name Placeholder","blynex"),value:v,onChange:e=>t({namePlaceholder:e})}),p&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Email Placeholder","blynex"),value:_,onChange:e=>t({emailPlaceholder:e})}),u&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Phone Placeholder","blynex"),value:C,onChange:e=>t({phonePlaceholder:e})}),x&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Subject Placeholder","blynex"),value:j,onChange:e=>t({subjectPlaceholder:e})}),b&&(0,r.jsx)(a.TextControl,{label:(0,n.__)("Message Placeholder","blynex"),value:w,onChange:e=>t({messagePlaceholder:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Style Settings","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.SelectControl,{label:(0,n.__)("Form Style","blynex"),value:B,options:[{label:(0,n.__)("Modern","blynex"),value:"modern"},{label:(0,n.__)("Classic","blynex"),value:"classic"},{label:(0,n.__)("Minimal","blynex"),value:"minimal"}],onChange:e=>t({formStyle:e})}),(0,r.jsx)(a.SelectControl,{label:(0,n.__)("Field Layout","blynex"),value:N,options:[{label:(0,n.__)("Stacked","blynex"),value:"stacked"},{label:(0,n.__)("Inline (Name & Email)","blynex"),value:"inline"}],onChange:e=>t({fieldLayout:e})}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Field Spacing","blynex"),value:T,onChange:e=>t({fieldSpacing:e}),min:0,max:50}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Field Border Radius","blynex"),value:I,onChange:e=>t({fieldBorderRadius:e}),min:0,max:50}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Field Border Width","blynex"),value:L,onChange:e=>t({fieldBorderWidth:e}),min:0,max:10}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Button Border Radius","blynex"),value:$,onChange:e=>t({buttonBorderRadius:e}),min:0,max:50})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Spacing","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.__experimentalBoxControl,{label:(0,n.__)("Field Padding","blynex"),values:F,onChange:e=>t({fieldPadding:e})}),(0,r.jsx)(a.__experimentalBoxControl,{label:(0,n.__)("Button Padding","blynex"),values:P,onChange:e=>t({buttonPadding:e})})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Button Settings","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.TextControl,{label:(0,n.__)("Button Text","blynex"),value:k,onChange:e=>t({buttonText:e})}),(0,r.jsx)("p",{children:(0,n.__)("Button Alignment","blynex")}),(0,r.jsxs)(a.ButtonGroup,{children:[(0,r.jsx)(a.Button,{isPressed:"left"===S,onClick:()=>t({buttonAlignment:"left"}),children:(0,n.__)("Left","blynex")}),(0,r.jsx)(a.Button,{isPressed:"center"===S,onClick:()=>t({buttonAlignment:"center"}),children:(0,n.__)("Center","blynex")}),(0,r.jsx)(a.Button,{isPressed:"right"===S,onClick:()=>t({buttonAlignment:"right"}),children:(0,n.__)("Right","blynex")})]})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Typography","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Title Font Size","blynex"),value:q,onChange:e=>t({titleFontSize:e}),min:16,max:72}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Subtitle Font Size","blynex"),value:Z,onChange:e=>t({subtitleFontSize:e}),min:12,max:32}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Label Font Size","blynex"),value:J,onChange:e=>t({labelFontSize:e}),min:10,max:24}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Field Font Size","blynex"),value:Y,onChange:e=>t({fieldFontSize:e}),min:12,max:24}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Button Font Size","blynex"),value:Q,onChange:e=>t({buttonFontSize:e}),min:12,max:24})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Colors","blynex"),initialOpen:!1,children:[(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Title Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:z,onChange:e=>t({titleColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Subtitle Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:R,onChange:e=>t({subtitleColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Label Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:W,onChange:e=>t({labelColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Field Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:M,onChange:e=>t({fieldBackgroundColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Field Text Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:H,onChange:e=>t({fieldTextColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Field Placeholder Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:O,onChange:e=>t({fieldPlaceholderColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Field Border Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:A,onChange:e=>t({fieldBorderColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Field Focus Border Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:E,onChange:e=>t({fieldFocusBorderColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Button Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:D,onChange:e=>t({buttonBackgroundColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Button Text Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:U,onChange:e=>t({buttonTextColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Button Hover Background Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:G,onChange:e=>t({buttonHoverBackgroundColor:e}),colors:oe,disableCustomColors:!1})]}),(0,r.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,r.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:(0,n.__)("Button Hover Text Color","blynex")}),(0,r.jsx)(o.ColorPalette,{value:V,onChange:e=>t({buttonHoverTextColor:e}),colors:oe,disableCustomColors:!1})]})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Email Settings","blynex"),initialOpen:!1,children:[(0,r.jsx)(a.TextControl,{label:(0,n.__)("Recipient Email","blynex"),value:K,onChange:e=>t({recipientEmail:e}),help:(0,n.__)("Email address to receive form submissions. Leave empty to use admin email.","blynex")}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("Success Message","blynex"),value:X,onChange:e=>t({successMessage:e})}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("Error Message","blynex"),value:ee,onChange:e=>t({errorMessage:e})}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Enable Honeypot Protection","blynex"),checked:te,onChange:e=>t({enableHoneypot:e}),help:(0,n.__)("Helps prevent spam submissions","blynex")})]})]}),(0,r.jsx)("div",{...ne,style:ie,children:(0,r.jsx)("div",{className:"contact-form-container",children:(0,r.jsxs)("form",{className:"blynex-contact-form",children:[s&&(0,r.jsx)(o.RichText,{tagName:"h2",className:"form-title",value:l,onChange:e=>t({formTitle:e}),placeholder:(0,n.__)("Enter form title...","blynex")}),c&&(0,r.jsx)(o.RichText,{tagName:"p",className:"form-subtitle",value:i,onChange:e=>t({formSubtitle:e}),placeholder:(0,n.__)("Enter form subtitle...","blynex")}),(0,r.jsxs)("div",{className:"form-fields",children:["inline"===N&&(d||p)&&(0,r.jsxs)("div",{className:"form-row inline",children:[d&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[g,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:v,disabled:!0})]}),p&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[h,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:_,disabled:!0})]})]}),"stacked"===N&&d&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[g,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:v,disabled:!0})]}),"stacked"===N&&p&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[h,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:_,disabled:!0})]}),u&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:m}),(0,r.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:C,disabled:!0})]}),x&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[y,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:j,disabled:!0})]}),b&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[f,le&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:w,rows:"5",disabled:!0})]}),te&&(0,r.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,r.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,r.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,r.jsx)("div",{className:`form-submit align-${S}`,children:(0,r.jsx)("button",{type:"submit",className:"submit-button",disabled:!0,children:k})}),(0,r.jsxs)("div",{className:"form-messages",children:[(0,r.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:X}),(0,r.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:ee})]})]})})})]})},save:({attributes:e})=>{const{formTitle:t,formSubtitle:l,showTitle:n,showSubtitle:a,showNameField:i,showEmailField:s,showPhoneField:c,showSubjectField:d,showMessageField:p,nameLabel:u,emailLabel:x,phoneLabel:b,subjectLabel:g,messageLabel:h,namePlaceholder:m,emailPlaceholder:y,phonePlaceholder:f,subjectPlaceholder:v,messagePlaceholder:_,buttonText:C,buttonAlignment:j,formStyle:w,fieldLayout:k,fieldSpacing:S,fieldPadding:B,buttonPadding:N,fieldBorderRadius:T,fieldBorderWidth:F,buttonBorderRadius:P,titleColor:I,subtitleColor:L,labelColor:$,fieldBackgroundColor:z,fieldTextColor:R,fieldPlaceholderColor:W,fieldBorderColor:M,fieldFocusBorderColor:H,buttonBackgroundColor:O,buttonTextColor:A,buttonHoverBackgroundColor:E,buttonHoverTextColor:D,titleFontSize:U,subtitleFontSize:G,labelFontSize:V,fieldFontSize:q,buttonFontSize:Z,recipientEmail:J,successMessage:Y,errorMessage:Q,enableHoneypot:K,showRequiredIndicator:X}=e,ee=(o.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`}),B||{top:"12px",right:"16px",bottom:"12px",left:"16px"}),te=N||{top:"14px",right:"32px",bottom:"14px",left:"32px"},le={"--form-field-spacing":`${S}px`,"--form-field-border-radius":`${T}px`,"--form-field-border-width":`${F}px`,"--form-button-border-radius":`${P}px`,"--form-title-font-size":`${U}px`,"--form-subtitle-font-size":`${G}px`,"--form-label-font-size":`${V}px`,"--form-field-font-size":`${q}px`,"--form-button-font-size":`${Z}px`,...I&&{"--form-title-color":I},...L&&{"--form-subtitle-color":L},...$&&{"--form-label-color":$},...z&&{"--form-field-background-color":z},...R&&{"--form-field-text-color":R},...W&&{"--form-field-placeholder-color":W},...M&&{"--form-field-border-color":M},...H&&{"--form-field-focus-border-color":H},...O&&{"--form-button-background-color":O},...A&&{"--form-button-text-color":A},...E&&{"--form-button-hover-background-color":E},...D&&{"--form-button-hover-text-color":D},"--form-field-padding-top":ee.top||"12px","--form-field-padding-right":ee.right||"16px","--form-field-padding-bottom":ee.bottom||"12px","--form-field-padding-left":ee.left||"16px","--form-button-padding-top":te.top||"14px","--form-button-padding-right":te.right||"32px","--form-button-padding-bottom":te.bottom||"14px","--form-button-padding-left":te.left||"32px"},ne=o.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`,style:le});return(0,r.jsx)("div",{...ne,children:(0,r.jsx)("div",{className:"contact-form-container",children:(0,r.jsxs)("form",{className:"blynex-contact-form",method:"post","data-recipient":J,children:[n&&(0,r.jsx)(o.RichText.Content,{tagName:"h2",className:"form-title",value:t}),a&&(0,r.jsx)(o.RichText.Content,{tagName:"p",className:"form-subtitle",value:l}),(0,r.jsxs)("div",{className:"form-fields",children:["inline"===k&&(i||s)&&(0,r.jsxs)("div",{className:"form-row inline",children:[i&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:m,required:!0})]}),s&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]})]}),"stacked"===k&&i&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:m,required:!0})]}),"stacked"===k&&s&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]}),c&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:b}),(0,r.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:f})]}),d&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[g,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:v,required:!0})]}),p&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[h,X&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:_,rows:"5",required:!0})]}),K&&(0,r.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,r.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,r.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,r.jsx)("div",{className:`form-submit align-${j}`,children:(0,r.jsx)("button",{type:"submit",className:"submit-button","data-text":C,children:(0,r.jsx)("span",{children:C})})}),(0,r.jsxs)("div",{className:"form-messages",children:[(0,r.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:Y}),(0,r.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:Q})]})]})})})},save:({attributes:e})=>{const{formTitle:t,formSubtitle:l,showTitle:n,showSubtitle:a,showNameField:i,showEmailField:s,showPhoneField:c,showSubjectField:d,showMessageField:p,nameLabel:u,emailLabel:x,phoneLabel:b,subjectLabel:g,messageLabel:h,namePlaceholder:m,emailPlaceholder:y,phonePlaceholder:f,subjectPlaceholder:v,messagePlaceholder:_,buttonText:C,buttonAlignment:j,formStyle:w,fieldLayout:k,fieldSpacing:S,fieldPadding:B,buttonPadding:N,fieldBorderRadius:T,fieldBorderWidth:F,buttonBorderRadius:P,titleColor:I,subtitleColor:L,labelColor:$,fieldBackgroundColor:z,fieldTextColor:R,fieldPlaceholderColor:W,fieldBorderColor:M,fieldFocusBorderColor:H,buttonBackgroundColor:O,buttonTextColor:A,buttonHoverBackgroundColor:E,buttonHoverTextColor:D,titleFontSize:U,subtitleFontSize:G,labelFontSize:V,fieldFontSize:q,buttonFontSize:Z,successMessage:J,errorMessage:Y,enableHoneypot:Q,showRequiredIndicator:K}=e,X=o.useBlockProps.save({className:`contact-form-widget style-${w} layout-${k}`}),ee=B||{top:"12px",right:"16px",bottom:"12px",left:"16px"},te=N||{top:"14px",right:"32px",bottom:"14px",left:"32px"},le={"--form-field-spacing":`${S}px`,"--form-field-border-radius":`${T}px`,"--form-field-border-width":`${F}px`,"--form-button-border-radius":`${P}px`,"--form-title-font-size":`${U}px`,"--form-subtitle-font-size":`${G}px`,"--form-label-font-size":`${V}px`,"--form-field-font-size":`${q}px`,"--form-button-font-size":`${Z}px`,...I&&{"--form-title-color":I},...L&&{"--form-subtitle-color":L},...$&&{"--form-label-color":$},...z&&{"--form-field-background-color":z},...R&&{"--form-field-text-color":R},...W&&{"--form-field-placeholder-color":W},...M&&{"--form-field-border-color":M},...H&&{"--form-field-focus-border-color":H},...O&&{"--form-button-background-color":O},...A&&{"--form-button-text-color":A},...E&&{"--form-button-hover-background-color":E},...D&&{"--form-button-hover-text-color":D},"--form-field-padding-top":ee.top||"12px","--form-field-padding-right":ee.right||"16px","--form-field-padding-bottom":ee.bottom||"12px","--form-field-padding-left":ee.left||"16px","--form-button-padding-top":te.top||"14px","--form-button-padding-right":te.right||"32px","--form-button-padding-bottom":te.bottom||"14px","--form-button-padding-left":te.left||"32px"};return(0,r.jsx)("div",{...X,style:le,children:(0,r.jsx)("div",{className:"contact-form-container",children:(0,r.jsxs)("form",{className:"blynex-contact-form",children:[n&&(0,r.jsx)(o.RichText.Content,{tagName:"h2",className:"form-title",value:t}),a&&(0,r.jsx)(o.RichText.Content,{tagName:"p",className:"form-subtitle",value:l}),(0,r.jsxs)("div",{className:"form-fields",children:["inline"===k&&(i||s)&&(0,r.jsxs)("div",{className:"form-row inline",children:[i&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:m,required:!0})]}),s&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]})]}),"stacked"===k&&i&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-name",children:[u,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-name",name:"contact_name",className:"field-input",placeholder:m,required:!0})]}),"stacked"===k&&s&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-email",children:[x,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"email",id:"contact-email",name:"contact_email",className:"field-input",placeholder:y,required:!0})]}),c&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsx)("label",{className:"field-label",htmlFor:"contact-phone",children:b}),(0,r.jsx)("input",{type:"tel",id:"contact-phone",name:"contact_phone",className:"field-input",placeholder:f})]}),d&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-subject",children:[g,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"contact-subject",name:"contact_subject",className:"field-input",placeholder:v,required:!0})]}),p&&(0,r.jsxs)("div",{className:"form-field",children:[(0,r.jsxs)("label",{className:"field-label",htmlFor:"contact-message",children:[h,K&&(0,r.jsx)("span",{className:"required",children:"*"})]}),(0,r.jsx)("textarea",{id:"contact-message",name:"contact_message",className:"field-input field-textarea",placeholder:_,rows:"5",required:!0})]}),Q&&(0,r.jsx)("input",{type:"text",name:"contact_website",className:"honeypot-field",tabIndex:"-1",autoComplete:"off"}),(0,r.jsx)("input",{type:"hidden",name:"action",value:"blynex_contact_form_submit"}),(0,r.jsx)("input",{type:"hidden",name:"nonce",value:"",className:"contact-form-nonce"})]}),(0,r.jsx)("div",{className:`form-submit align-${j}`,children:(0,r.jsx)("button",{type:"submit",className:"submit-button","data-text":C,children:(0,r.jsx)("span",{children:C})})}),(0,r.jsxs)("div",{className:"form-messages",children:[(0,r.jsx)("div",{className:"form-message success-message",style:{display:"none"},children:J}),(0,r.jsx)("div",{className:"form-message error-message",style:{display:"none"},children:Y})]})]})})})}})},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;tt({displayType:e})}),"linear"===l&&(0,i.jsx)(a.SelectControl,{label:(0,r.__)("Position","blynex"),value:n,options:[{label:(0,r.__)("Top","blynex"),value:"top"},{label:(0,r.__)("Bottom","blynex"),value:"bottom"}],onChange:e=>t({position:e})}),"circular"===l&&(0,i.jsx)(a.SelectControl,{label:(0,r.__)("Position","blynex"),value:n,options:[{label:(0,r.__)("Bottom Right","blynex"),value:"bottom-right"},{label:(0,r.__)("Bottom Left","blynex"),value:"bottom-left"},{label:(0,r.__)("Top Right","blynex"),value:"top-right"},{label:(0,r.__)("Top Left","blynex"),value:"top-left"}],onChange:e=>t({position:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,r.__)("Fixed Position","blynex"),checked:C,onChange:e=>t({isFixed:e}),help:(0,r.__)("Keep the indicator visible while scrolling","blynex")}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Z-Index","blynex"),value:j,onChange:e=>t({zIndex:e}),min:1,max:99999,step:1}),(0,i.jsx)(a.ToggleControl,{label:(0,r.__)("Hide on Mobile","blynex"),checked:w,onChange:e=>t({hideOnMobile:e})}),(0,i.jsx)(a.ToggleControl,{label:(0,r.__)("Hide on Scroll Down","blynex"),checked:k,onChange:e=>t({hideOnScrollDown:e}),help:(0,r.__)("Hide indicator when scrolling down, show when scrolling up","blynex")})]}),(0,i.jsxs)(a.PanelBody,{title:(0,r.__)("Style Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.__experimentalText,{className:"components-base-control__label",children:(0,r.__)("Bar Color","blynex")}),(0,i.jsx)(a.ColorPicker,{color:s,onChangeComplete:e=>t({barColor:e.hex})}),(0,i.jsx)(a.__experimentalText,{className:"components-base-control__label",style:{marginTop:"16px"},children:(0,r.__)("Background Color","blynex")}),(0,i.jsx)(a.ColorPicker,{color:c,onChangeComplete:e=>t({backgroundColor:e.hex})}),"linear"===l&&(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Height","blynex"),value:d,onChange:e=>t({height:e}),min:1,max:50,step:1}),"circular"===l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Circular Size","blynex"),value:p,onChange:e=>t({circularSize:e}),min:40,max:200,step:5}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Stroke Width","blynex"),value:S,onChange:e=>t({strokeWidth:e}),min:2,max:20,step:1})]}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Border Radius","blynex"),value:u,onChange:e=>t({borderRadius:e}),min:0,max:50,step:1}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Opacity (%)","blynex"),value:x,onChange:e=>t({opacity:e}),min:0,max:100,step:5}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Animation Speed (ms)","blynex"),value:b,onChange:e=>t({animationSpeed:e}),min:0,max:1e3,step:50})]}),(0,i.jsxs)(a.PanelBody,{title:(0,r.__)("Label Settings","blynex"),initialOpen:!1,children:[(0,i.jsx)(a.ToggleControl,{label:(0,r.__)("Show Percentage Label","blynex"),checked:g,onChange:e=>t({showLabel:e})}),g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.SelectControl,{label:(0,r.__)("Label Position","blynex"),value:_,options:[{label:(0,r.__)("Inside","blynex"),value:"inside"},{label:(0,r.__)("Outside","blynex"),value:"outside"}],onChange:e=>t({labelPosition:e})}),(0,i.jsx)(a.TextControl,{label:(0,r.__)("Prefix Text","blynex"),value:f,onChange:e=>t({labelPrefix:e}),help:(0,r.__)('Text before percentage (e.g., "Reading progress: ")',"blynex")}),(0,i.jsx)(a.TextControl,{label:(0,r.__)("Suffix Text","blynex"),value:v,onChange:e=>t({labelSuffix:e})}),(0,i.jsx)(a.RangeControl,{label:(0,r.__)("Font Size","blynex"),value:h,onChange:e=>t({labelFontSize:e}),min:10,max:32,step:1}),(0,i.jsx)(a.SelectControl,{label:(0,r.__)("Font Weight","blynex"),value:m,options:[{label:(0,r.__)("Light (300)","blynex"),value:"300"},{label:(0,r.__)("Normal (400)","blynex"),value:"400"},{label:(0,r.__)("Medium (500)","blynex"),value:"500"},{label:(0,r.__)("Semi-Bold (600)","blynex"),value:"600"},{label:(0,r.__)("Bold (700)","blynex"),value:"700"}],onChange:e=>t({labelFontWeight:e})}),(0,i.jsx)(a.__experimentalText,{className:"components-base-control__label",children:(0,r.__)("Label Color","blynex")}),(0,i.jsx)(a.ColorPicker,{color:y,onChangeComplete:e=>t({labelColor:e.hex})})]})]})]}),(0,i.jsxs)("div",{...B,children:[(0,i.jsx)("div",{className:"scroll-progress-preview-note",children:(0,i.jsx)("p",{children:(0,r.__)("📊 Scroll Progress Indicator (Editor Preview - Shows 45%)","blynex")})}),"linear"===l?(0,i.jsxs)("div",{className:"scroll-progress-linear",children:[(0,i.jsx)("div",{className:"scroll-progress-track",children:(0,i.jsx)("div",{className:"scroll-progress-bar",style:{width:"45%"},children:g&&"inside"===_&&(0,i.jsxs)("span",{className:"scroll-progress-label",children:[f,45,v]})})}),g&&"outside"===_&&(0,i.jsxs)("div",{className:"scroll-progress-label-outside",children:[f,45,v]})]}):(()=>{const e=(p-S)/2,t=2*Math.PI*e,l=t-.45*t;return(0,i.jsxs)("div",{className:"scroll-progress-circular",children:[(0,i.jsxs)("svg",{width:p,height:p,className:"circular-svg",children:[(0,i.jsx)("circle",{cx:p/2,cy:p/2,r:e,stroke:c,strokeWidth:S,fill:"none"}),(0,i.jsx)("circle",{cx:p/2,cy:p/2,r:e,stroke:s,strokeWidth:S,fill:"none",strokeDasharray:t,strokeDashoffset:l,strokeLinecap:"round",className:"progress-circle",style:{transform:"rotate(-90deg)",transformOrigin:"center"}})]}),g&&(0,i.jsxs)("div",{className:"scroll-progress-label-circular",children:[f,45,v]})]})})()]})]})},save:function({attributes:e}){const{displayType:t,position:l,barColor:n,backgroundColor:a,height:r,circularSize:s,borderRadius:c,opacity:d,animationSpeed:p,showLabel:u,labelFontSize:x,labelFontWeight:b,labelColor:g,labelPrefix:h,labelSuffix:m,labelPosition:y,isFixed:f,zIndex:v,hideOnMobile:_,hideOnScrollDown:C,strokeWidth:j}=e,w=o.useBlockProps.save({className:`blynex-scroll-progress ${t} position-${l} ${f?"is-fixed":""} ${_?"hide-on-mobile":""} ${C?"hide-on-scroll-down":""}`,style:{"--scroll-bar-color":n,"--scroll-bg-color":a,"--scroll-height":"linear"===t?`${r}px`:"auto","--scroll-border-radius":`${c}px`,"--scroll-opacity":d/100,"--scroll-animation-speed":`${p}ms`,"--scroll-label-size":`${x}px`,"--scroll-label-weight":b,"--scroll-label-color":g,"--scroll-z-index":v,"--circular-size":`${s}px`,"--stroke-width":`${j}px`},"data-display-type":t,"data-show-label":u,"data-label-prefix":h,"data-label-suffix":m,"data-label-position":y,"data-circular-size":s,"data-stroke-width":j});return(0,i.jsx)("div",{...w,children:"linear"===t?(0,i.jsxs)("div",{className:"scroll-progress-linear",children:[(0,i.jsx)("div",{className:"scroll-progress-track",children:(0,i.jsx)("div",{className:"scroll-progress-bar","data-progress":"0",children:u&&"inside"===y&&(0,i.jsxs)("span",{className:"scroll-progress-label",children:[(0,i.jsx)("span",{className:"label-prefix",children:h}),(0,i.jsx)("span",{className:"label-value",children:"0"}),(0,i.jsx)("span",{className:"label-suffix",children:m})]})})}),u&&"outside"===y&&(0,i.jsxs)("div",{className:"scroll-progress-label-outside",children:[(0,i.jsx)("span",{className:"label-prefix",children:h}),(0,i.jsx)("span",{className:"label-value",children:"0"}),(0,i.jsx)("span",{className:"label-suffix",children:m})]})]}):(()=>{const e=(s-j)/2,t=2*Math.PI*e;return(0,i.jsxs)("div",{className:"scroll-progress-circular",children:[(0,i.jsxs)("svg",{width:s,height:s,className:"circular-svg",children:[(0,i.jsx)("circle",{cx:s/2,cy:s/2,r:e,stroke:a,strokeWidth:j,fill:"none"}),(0,i.jsx)("circle",{cx:s/2,cy:s/2,r:e,stroke:n,strokeWidth:j,fill:"none",strokeDasharray:t,strokeDashoffset:t,strokeLinecap:"round",className:"progress-circle","data-circumference":t,style:{transform:"rotate(-90deg)",transformOrigin:"center"}})]}),u&&(0,i.jsxs)("div",{className:"scroll-progress-label-circular",children:[(0,i.jsx)("span",{className:"label-prefix",children:h}),(0,i.jsx)("span",{className:"label-value",children:"0"}),(0,i.jsx)("span",{className:"label-suffix",children:m})]})]})})()})}})},997:function(e){"use strict";e.exports=window.wp.blocks}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var l=r[e]={exports:{}};return a[e].call(l.exports,l,l.exports,i),l.exports}i.m=a,i.amdO={},e=[],i.O=function(t,l,n,o){if(!l){var a=1/0;for(d=0;d=o)&&Object.keys(i.O).every((function(e){return i.O[e](l[s])}))?l.splice(s--,1):(r=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[l,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},l=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,l({}),l([]),l(l)];for(var r=2&n&&e;"object"==typeof r&&!~t.indexOf(r);r=l(r))Object.getOwnPropertyNames(r).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},i.d(o,a),o},i.d=function(e,t){for(var l in t)i.o(t,l)&&!i.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(t,l){return i.f[l](e,t),t}),[]))},i.u=function(e){return e+".js?ver="+{789:"8be9b9b3052c91541f1d",891:"2a4a0a0d0aa623e9bf64"}[e]},i.miniCssF=function(e){return e+".css"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="blynex:",i.l=function(e,t,l,a){if(n[e])n[e].push(t);else{var r,s;if(void 0!==l)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(/\/[^\/]+$/,"/"),i.p=e}(),function(){if("undefined"!=typeof document){var e={57:0,216:0,358:0,628:0,707:0,798:0,864:0};i.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=i.miniCssF(e),o=i.p+n;if(function(e,t){for(var l=document.getElementsByTagName("link"),n=0;n