{"version":3,"file":"NextButton.BugNVei5.mjs","names":[],"sources":["https:/framerusercontent.com/modules/BL9m45uWc9hMZEetBsxn/XEcYfEw60vwIqpdhEa4G/NextButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function NextButton(props){const{label,fontSizeCustom,font,paddingX,paddingY,iconScale,colorPreset,textColor,bgColor,bgHover,outlineColor,shadowColor,cornerRadius,amount1,amount2,link,openInNewTab,scrollToSection,scrollBehavior}=props;const fontSize=fontSizeCustom;const iconSize=fontSize*iconScale;// ---- COLOR PRESETS ----\nconst presets={Pink:{text:\"#ffffff\",bg:\"#ff135a\",hover:\"#ff1472\",outline:\"rgba(255,20,90,0.25)\",shadow:\"rgba(0,0,0,0.25)\"},Blue:{text:\"#ffffff\",bg:\"#2563eb\",hover:\"#1d4ed8\",outline:\"rgba(37,99,235,0.4)\",shadow:\"rgba(0,0,0,0.4)\"},Black:{text:\"#ffffff\",bg:\"#0f172a\",hover:\"#020617\",outline:\"rgba(15,23,42,0.5)\",shadow:\"rgba(0,0,0,0.6)\"},White:{text:\"#111827\",bg:\"#ffffff\",hover:\"#f9fafb\",outline:\"rgba(148,163,184,0.7)\",shadow:\"rgba(0,0,0,0.25)\"}};const preset=presets[colorPreset]||presets.Pink;const currentText=textColor||preset.text;const currentBg=bgColor||preset.bg;const currentHover=bgHover||preset.hover;const currentOutline=outlineColor||preset.outline;const currentShadow=shadowColor||preset.shadow;const fontStyle=font||{fontFamily:\"Poppins\",fontWeight:600,fontStyle:\"normal\"};const handleClick=()=>{if(link){if(scrollToSection){// Jeśli link jest do sekcji na tej samej stronie\nconst targetElement=document.querySelector(link);if(targetElement){targetElement.scrollIntoView({behavior:scrollBehavior===\"smooth\"?\"smooth\":\"auto\",block:\"start\"});}}else{// Jeśli link prowadzi do innej strony\nwindow.open(link,openInNewTab?\"_blank\":\"_self\");}}};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\"},children:[/*#__PURE__*/_jsx(\"button\",{className:\"next-btn\",onClick:handleClick,style:{\"--color-text\":currentText,\"--color-background\":currentBg,\"--color-background-hover\":currentHover,\"--color-outline\":currentOutline,\"--color-shadow\":currentShadow,...fontStyle,fontSize,color:currentText,borderRadius:cornerRadius,paddingTop:paddingY,paddingBottom:paddingY,paddingLeft:paddingX,paddingRight:paddingX,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:paddingX*.4,border:\"none\",outline:\"none\",cursor:\"pointer\",boxSizing:\"border-box\",background:currentBg},children:/*#__PURE__*/_jsxs(\"span\",{style:{...fontStyle,fontSize,color:currentText},children:[label,\" \",/*#__PURE__*/_jsx(\"span\",{children:amount1}),\" \",/*#__PURE__*/_jsx(\"span\",{style:{textDecoration:\"line-through\",opacity:.7},children:amount2})]})}),/*#__PURE__*/_jsx(\"style\",{children:`\n                .next-btn {\n                    box-shadow: 0 0 0.2em var(--color-background);\n                    transition: 0.3s ease;\n                }\n\n                .next-btn:active {\n                    transform: scale(0.96);\n                }\n\n                .next-btn:hover {\n                    background: var(--color-background-hover);\n                    box-shadow: 0 0 1em var(--color-background);\n                    outline: 0.1em solid transparent;\n                    outline-offset: 0.2em;\n                    animation: ripple 1s linear infinite, colorize 1s infinite;\n                }\n\n                .next-btn:hover span {\n                    text-shadow: 5px 5px 5px var(--color-shadow);\n                }\n\n                .next-btn:hover svg {\n                    transform: translateX(0.2em);\n                    filter: drop-shadow(5px 5px 2.5px var(--color-shadow));\n                }\n\n                .next-btn:hover span span:nth-child(2) {\n                    opacity: 0; /* Hides crossed-out amount on hover */\n                }\n\n                @keyframes colorize {\n                    0% { background: var(--color-background); }\n                    50% { background: var(--color-background-hover); }\n                    100% { background: var(--color-background); }\n                }\n\n                @keyframes ripple {\n                    0% { outline-offset: -0.1em; }\n                    50% { outline: 0.2em solid var(--color-outline); outline-offset: 0.2em; }\n                    100% { outline: 0.4em solid transparent; outline-offset: 0.4em; }\n                }\n            `})]});}NextButton.defaultProps={label:\"GET STARTED\",amount1:\"$100\",amount2:\"$150\",link:\"#\",openInNewTab:true,scrollToSection:false,scrollBehavior:\"smooth\",fontSizeCustom:18,iconScale:1,paddingX:28,paddingY:12,font:{fontFamily:\"Poppins\",fontWeight:600,fontStyle:\"normal\"},colorPreset:\"Pink\",textColor:\"\",bgColor:\"\",bgHover:\"\",outlineColor:\"\",shadowColor:\"\",cornerRadius:999};addPropertyControls(NextButton,{label:{title:\"Text\",type:ControlType.String,defaultValue:\"GET STARTED\"},amount1:{title:\"Amount 1\",type:ControlType.String,defaultValue:\"$100\"},amount2:{title:\"Amount 2\",type:ControlType.String,defaultValue:\"$150\"},link:{title:\"Link\",type:ControlType.String,defaultValue:\"#\"},openInNewTab:{title:\"Open in new tab\",type:ControlType.Boolean,defaultValue:true},scrollToSection:{title:\"Scroll to Section\",type:ControlType.Boolean,defaultValue:false},scrollBehavior:{title:\"Scroll Behavior\",type:ControlType.Enum,options:[\"smooth\",\"instant\"],optionTitles:[\"Smooth\",\"Instant\"],defaultValue:\"smooth\"},fontSizeCustom:{title:\"Font Size\",type:ControlType.Number,defaultValue:18,min:10,max:80,step:1},iconScale:{title:\"Icon Size\",type:ControlType.Number,defaultValue:1,min:.5,max:2,step:.05},font:{title:\"Font\",type:ControlType.Font,defaultValue:{fontFamily:\"Poppins\",fontWeight:600,fontStyle:\"normal\"}},paddingX:{title:\"Padding X\",type:ControlType.Number,defaultValue:28,min:4,max:80,step:1},paddingY:{title:\"Padding Y\",type:ControlType.Number,defaultValue:12,min:2,max:40,step:1},colorPreset:{title:\"Color Preset\",type:ControlType.Enum,options:[\"Pink\",\"Blue\",\"Black\",\"White\"],optionTitles:[\"Pink\",\"Blue\",\"Black\",\"White\"],defaultValue:\"Pink\"},textColor:{title:\"Text Override\",type:ControlType.Color},bgColor:{title:\"BG Override\",type:ControlType.Color},bgHover:{title:\"Hover Override\",type:ControlType.Color},outlineColor:{title:\"Outline Override\",type:ControlType.Color},shadowColor:{title:\"Shadow Override\",type:ControlType.Color},cornerRadius:{title:\"Radius\",type:ControlType.Number,defaultValue:999,min:0,max:300}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NextButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NextButton.map"],"mappings":"6KAA6G,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,iBAAe,OAAK,WAAS,WAAS,YAAU,cAAY,YAAU,UAAQ,UAAQ,eAAa,cAAY,eAAa,UAAQ,UAAQ,OAAK,eAAa,kBAAgB,kBAAgB,EAAY,EAAS,EAA8B,EAAS,EAC7Z,IAAM,EAAQ,CAAC,KAAK,CAAC,KAAK,UAAU,GAAG,UAAU,MAAM,UAAU,QAAQ,uBAAuB,OAAO,mBAAmB,CAAC,KAAK,CAAC,KAAK,UAAU,GAAG,UAAU,MAAM,UAAU,QAAQ,sBAAsB,OAAO,kBAAkB,CAAC,MAAM,CAAC,KAAK,UAAU,GAAG,UAAU,MAAM,UAAU,QAAQ,qBAAqB,OAAO,kBAAkB,CAAC,MAAM,CAAC,KAAK,UAAU,GAAG,UAAU,MAAM,UAAU,QAAQ,wBAAwB,OAAO,mBAAmB,CAAC,CAAO,EAAO,EAAQ,IAAc,EAAQ,KAAW,EAAY,GAAW,EAAO,KAAW,EAAU,GAAS,EAAO,GAAS,EAAa,GAAS,EAAO,MAAY,EAAe,GAAc,EAAO,QAAc,EAAc,GAAa,EAAO,OAAa,EAAU,GAAM,CAAC,WAAW,UAAU,WAAW,IAAI,UAAU,SAAS,CAE9tB,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,CAAC,SAAS,CAAc,EAAK,SAAS,CAAC,UAAU,WAAW,YAF2nB,CAAC,GAAG,EAAM,GAAG,EAAgB,CACt0B,IAAM,EAAc,SAAS,cAAc,EAAK,CAAI,GAAe,EAAc,e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