import{o as e}from"./rolldown-runtime-Bhmf7a9N.js";import{Yt as t}from"./modal-CcNzlVMu.js";import{E as n}from"./analytics-p_StUAKk.js";import{_ as r,h as i,v as a}from"./react-BbpeyRWK.js";import{o,s}from"./styled-components.browser.esm-CoTNGMDh.js";var c=()=>{let[e]=t(`user`);return{hasFeature:t=>e?.featureAccess?e?.featureAccess.indexOf(t)>=0:!1}},l=e(n()),u=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_keyword`,`utm_content`],d=`__goody__`,f=e=>d+e,p=e=>e.replace(/(_\w)/g,e=>e[1].toUpperCase()),m=e=>{if(!window.localStorage)return;let t=[];return u.forEach(n=>{let r=e.get(n);if(r){let e=f(n);window.localStorage.getItem(e)||window.localStorage.setItem(e,r),t.push(n)}}),t},h=()=>(0,l.useMemo)(()=>new URLSearchParams(window.location.search??{}),[window.location.search]),g=()=>{let e={};return u.forEach(t=>{let n=f(t),r=window.localStorage.getItem(n);r&&(e[p(t)]=r)}),Object.values(e).length>0?e:null},_=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},v=(e,t)=>{_({event:e,...t})},y=`text-xl text-white rounded-xl px-5 py-3 font-medium inline-flex items-center not-disabled:active:scale-95 transition-all outline-none relative overflow-hidden z-10 not-disabled:hover:shadow-md-light disabled:opacity-50 disabled:cursor-auto not-disabled:cursor-pointer`,b=`
  ${y}
  bg-gradient-to-r from-gradient-updated-purple-medium to-gradient-updated-blue-medium

  before:block before:absolute before:top-0 before:left-0 before:w-full before:h-full before:bg-gradient-to-r before:opacity-0 before:transition-opacity before:z-[-1] before:from-gradient-updated-purple-dark before:to-gradient-updated-blue-dark
  after:block after:absolute after:top-0 after:left-0 after:w-full after:h-full after:bg-gradient-to-r after:opacity-0 after:transition-opacity after:z-[-1] after:from-gradient-updated-purple-darker after:to-gradient-updated-blue-darker

  not-disabled:hover:shadow-md not-disabled:hover:before:opacity-100
  not-disabled:focus:after:opacity-100 not-disabled:active:after:opacity-100
`,x=o.button`${()=>b}`,S=o(r)`
  ${()=>b}
`;o(a)`
  ${()=>b}
`,o.a`
  ${()=>b}
  no-underline
`;var C=o.div`
  ${()=>b}
`,w=function(e){return e.default=`default`,e.primaryNew=`primaryNew`,e}({}),T=e(i()),E=e=>(0,T.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,T.jsx)(`path`,{d:`M20 6L9 17L4 12`,strokeLinecap:`round`,strokeLinejoin:`round`})}),D=({selected:e,onClick:t,color:n,className:r,...i})=>(0,T.jsx)(`div`,{onClick:t,className:s(`
    transition-all duration-100 cursor-pointer
    flex flex-row items-center justify-center
    h-5 w-5 p-0.5
    rounded shadow-inner-border-px-med
    bg-white group-active:bg-gray-050
  `,e?n===w.primaryNew?`shadow-none bg-primary-new-600 group-active:bg-primary-new-700`:`shadow-none bg-primary-500 group-active:bg-primary-600`:null,r),...i,children:(0,T.jsx)(E,{className:`stroke-current text-white stroke-3`})});export{C as a,b as c,m as d,h as f,x as i,g as l,E as n,S as o,c as p,w as r,y as s,D as t,v as u};