!function(){"use strict";var e,n={87:function(e){e.exports=window.wp.element},282:function(e,n,l){var t=l(997),o=l(723),a=l(715),r=l(427),i=l(87),s=l(790),c=JSON.parse('{"UU":"blynex/three-d-tilt-card"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:n}){const{title:l,description:t,titleTag:c,iconUrl:d,iconId:x,iconType:u,iconPreset:h,showButton:b,buttonText:g,buttonUrl:p,tiltMax:y,scale:C,enableFloatingIcon:v,floatSpeed:j,floatHeight:f,cardPadding:_,cardRadius:m,cardBgColor:w,cardBgGradient:B,cardBorderWidth:T,cardBorderColor:R,shadowColor:$,shadowIntensity:k,alignment:S,textColor:I,descColor:P,iconColor:N,iconSize:U,buttonTextColor:O,buttonBgColor:F}=e,M=(0,i.useRef)(null),H=(0,a.useBlockProps)({className:"blynex-3d-tilt-card-wrapper",style:{display:"flex",justifyContent:"left"===S?"flex-start":"right"===S?"flex-end":"center"}}),G={padding:`${_}px`,borderRadius:`${m}px`,background:B||w,border:`${T}px solid ${R}`,boxShadow:`0 20px 30px ${$}`,textAlign:S},A={width:`${U}px`,height:`${U}px`,fill:N,color:N,animation:v?`float ${j}s ease-in-out infinite`:"none","--float-height":`${f}px`};return(0,s.jsxs)("div",{...H,children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Content Settings","blynex"),children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Title Tag","blynex"),value:c,options:[{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"}],onChange:e=>n({titleTag:e})}),(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Show Button","blynex"),checked:b,onChange:e=>n({showButton:e})}),b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.TextControl,{label:(0,o.__)("Button Text","blynex"),value:g,onChange:e=>n({buttonText:e})}),(0,s.jsx)(r.TextControl,{label:(0,o.__)("Button URL","blynex"),value:p,onChange:e=>n({buttonUrl:e})})]})]}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Icon Settings","blynex"),initialOpen:!1,children:[(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Icon Type","blynex"),value:u,options:[{label:"Upload SVG/Image",value:"upload"},{label:"Preset (Not Implemented)",value:"preset"},{label:"None",value:"none"}],onChange:e=>n({iconType:e})}),"upload"===u&&(0,s.jsx)(a.MediaUploadCheck,{children:(0,s.jsx)(a.MediaUpload,{onSelect:e=>n({iconUrl:e.url,iconId:e.id}),allowedTypes:["image"],value:x,render:({open:e})=>(0,s.jsx)(r.Button,{variant:"secondary",onClick:e,children:d?(0,o.__)("Replace Icon","blynex"):(0,o.__)("Upload Icon","blynex")})})}),d&&(0,s.jsx)(r.Button,{variant:"link",isDestructive:!0,onClick:()=>n({iconUrl:"",iconId:0}),children:(0,o.__)("Remove Icon","blynex")}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Icon Size","blynex"),value:U,onChange:e=>n({iconSize:e}),min:10,max:100}),(0,s.jsx)(r.ToggleControl,{label:(0,o.__)("Enable Floating Icon","blynex"),checked:v,onChange:e=>n({enableFloatingIcon:e})}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Float Speed (s)","blynex"),value:j,onChange:e=>n({floatSpeed:e}),min:1,max:10,step:.1}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Float Height (px)","blynex"),value:f,onChange:e=>n({floatHeight:e}),min:0,max:50})]})]}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Animation Settings","blynex"),initialOpen:!1,children:[(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Max Tilt (deg)","blynex"),value:y,onChange:e=>n({tiltMax:e}),min:0,max:45}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Hover Scale","blynex"),value:C,onChange:e=>n({scale:e}),min:1,max:1.5,step:.01})]}),(0,s.jsxs)(r.PanelBody,{title:(0,o.__)("Styling","blynex"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Title Color","blynex")})}),(0,s.jsx)(r.ColorPalette,{value:I,onChange:e=>n({textColor:e})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Description Color","blynex")})}),(0,s.jsx)(r.ColorPalette,{value:P,onChange:e=>n({descColor:e})}),b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Button Text Color","blynex")})}),(0,s.jsx)(r.ColorPalette,{value:O,onChange:e=>n({buttonTextColor:e})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Button Background Color","blynex")})}),(0,s.jsx)(r.ColorPalette,{value:F,onChange:e=>n({buttonBgColor:e})})]}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Card Background (Solid)","blynex")})}),(0,s.jsx)(r.ColorPalette,{value:w||void 0,onChange:e=>n({cardBgColor:e,cardBgGradient:""}),clearable:!0}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,o.__)("Card Background (Gradient)","blynex")})}),(0,s.jsx)(r.GradientPicker,{value:B||void 0,onChange:e=>n({cardBgGradient:e,cardBgColor:""}),clearable:!0}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Border Radius","blynex"),value:m,onChange:e=>n({cardRadius:e}),min:0,max:50}),(0,s.jsx)(r.RangeControl,{label:(0,o.__)("Padding","blynex"),value:_,onChange:e=>n({cardPadding:e}),min:0,max:100}),(0,s.jsx)(r.SelectControl,{label:(0,o.__)("Content Alignment","blynex"),value:S,options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],onChange:e=>n({alignment:e})})]})]}),(0,s.jsxs)("div",{className:"blynex-3d-tilt-card",ref:M,onMouseMove:e=>{if(!M.current)return;const n=M.current,l=n.getBoundingClientRect(),t=e.clientX-l.left,o=e.clientY-l.top,a=l.width/2,r=l.height/2,i=(o-r)/r*y*-1,s=(t-a)/a*y;n.style.transform=`perspective(1000px) rotateX(${i}deg) rotateY(${s}deg) scale3d(${C}, ${C}, ${C})`},onMouseLeave:()=>{M.current&&(M.current.style.transform="perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")},style:G,children:[d&&"none"!==u&&(0,s.jsx)("div",{className:"blynex-card-icon",style:A,children:(0,s.jsx)("img",{src:d,alt:"Card Icon",style:{width:"100%",height:"100%",objectFit:"contain"}})}),(0,s.jsx)(a.RichText,{tagName:c,className:"blynex-card-title",value:l,onChange:e=>n({title:e}),style:{color:I},placeholder:(0,o.__)("Enter Title...","blynex")}),(0,s.jsx)(a.RichText,{tagName:"p",className:"blynex-card-desc",value:t,onChange:e=>n({description:e}),style:{color:P},placeholder:(0,o.__)("Enter Description...","blynex")}),b&&(0,s.jsx)("div",{className:"blynex-card-btn-wrapper",children:(0,s.jsx)("span",{className:"blynex-card-btn",style:{color:O,backgroundColor:F},children:g})})]})]})},save:function({attributes:e}){const{title:n,description:l,titleTag:t,iconUrl:o,iconType:r,iconPreset:i,showButton:c,buttonText:d,buttonUrl:x,tiltMax:u,scale:h,enableFloatingIcon:b,floatSpeed:g,floatHeight:p,cardPadding:y,cardRadius:C,cardBgColor:v,cardBgGradient:j,cardBorderWidth:f,cardBorderColor:_,shadowColor:m,shadowIntensity:w,alignment:B,textColor:T,descColor:R,iconColor:$,iconSize:k,buttonTextColor:S,buttonBgColor:I}=e,P=a.useBlockProps.save({className:"blynex-3d-tilt-card-wrapper",style:{display:"flex",justifyContent:"left"===B?"flex-start":"right"===B?"flex-end":"center","--blynex-tilt-max":`${u}deg`,"--blynex-tilt-scale":h,"--blynex-float-speed":`${g}s`,"--blynex-float-height":`${p}px`}}),N={padding:`${y}px`,borderRadius:`${C}px`,background:j||v,border:`${f}px solid ${_}`,boxShadow:`0 4px 6px ${m}`,textAlign:B},U={width:`${k}px`,height:`${k}px`,fill:$,color:$,animation:b?`blynexFloat ${g}s ease-in-out infinite`:"none"},O=t;return(0,s.jsx)("div",{...P,children:(0,s.jsxs)("div",{className:"blynex-3d-tilt-card",style:N,"data-tilt-max":u,"data-scale":h,"data-shadow-color":m,"data-shadow-intensity":w,children:[o&&"none"!==r&&(0,s.jsx)("div",{className:"blynex-card-icon",style:U,children:(0,s.jsx)("img",{src:o,alt:"Card Icon",style:{width:"100%",height:"100%",objectFit:"contain"}})}),(0,s.jsx)(O,{className:"blynex-card-title",style:{color:T},children:(0,s.jsx)(a.RichText.Content,{value:n})}),(0,s.jsx)("p",{className:"blynex-card-desc",style:{color:R},children:(0,s.jsx)(a.RichText.Content,{value:l})}),c&&(0,s.jsx)("div",{className:"blynex-card-btn-wrapper",children:(0,s.jsx)("a",{href:x,className:"blynex-card-btn",style:{color:S,backgroundColor:I},children:d})})]})})}})},427:function(e){e.exports=window.wp.components},715:function(e){e.exports=window.wp.blockEditor},723:function(e){e.exports=window.wp.i18n},790:function(e){e.exports=window.ReactJSXRuntime},997:function(e){e.exports=window.wp.blocks}},l={};function t(e){var o=l[e];if(void 0!==o)return o.exports;var a=l[e]={exports:{}};return n[e](a,a.exports,t),a.exports}t.m=n,e=[],t.O=function(n,l,o,a){if(!l){var r=1/0;for(d=0;d=a)&&Object.keys(t.O).every((function(e){return t.O[e](l[s])}))?l.splice(s--,1):(i=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[l,o,a]},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={798:0,350:0};t.O.j=function(n){return 0===e[n]};var n=function(n,l){var o,a,r=l[0],i=l[1],s=l[2],c=0;if(r.some((function(n){return 0!==e[n]}))){for(o in i)t.o(i,o)&&(t.m[o]=i[o]);if(s)var d=s(t)}for(n&&n(l);c