1import{i as e,t}from"./react-Ca_kTYur.js";import{t as n}from"./useTranslation-D32ZIPDx.js";import{t as r}from"./config-BMxZ_yZV.js";import{R as i,s as a,t as o}from"./chunk-OB3PAWPO-CyDuO_TE.js";import{n as s}from"./chunk-H4DAEOV7-Cnh0KfSl.js";import{t as c}from"./jsx-runtime-Wddns1t4.js";import{r as l}from"./dist-DLNJnobq.js";import{A as u,D as d,I as f,O as p,j as m,k as h,o as g,t as _,y as v}from"./dist-DmXqZzrJ.js";import{t as y}from"./merge-9SvznBTx.js";import{t as ee}from"./link-CUfbSpzA.js";import{t as b}from"./icon-CGdZ3Smk.js";import{a as x,c as S,n as C,o as w,r as T,s as E}from"./constants-CMlg-lbJ.js";import{t as D}from"./render-html-j0MmCQ2A.js";import{i as O,n as k,r as A,t as j}from"./loader-button-DenofJRd.js";import{n as M}from"./events-De-TPlY1.js";var N=c(),P=f`w-full pt-4 lg:relative lg:z-[0] lg:before:absolute lg:before:inset-0 lg:before:z-[-1] lg:before:content-[''] lg:before:[background-color:#f5f8fb] lg:before:[clip-path:polygon(0_0,100%_0,100%_76%,49%_100%,0%_76%)]`,F=({children:e,className:t})=>(0,N.jsx)(`div`,{className:y(P,t),children:e}),I=({gtm:e,isSalesCtaVisible:t})=>{let{t:r}=n();return(0,N.jsxs)(u,{className:`mb-1 mt-8 w-full text-center`,children:[(0,N.jsx)(h,{size:`md`,renderAs:`h1`,className:`mb-3 font-light [&_strong]:font-bold`,children:(0,N.jsx)(D,{data:r(`AO_SRF_HERO_TITLE`)})}),(0,N.jsx)(p,{children:r(`AO_SRF_HERO_SUBTITLE`)}),t?(0,N.jsx)(g,{variant:`buttonConversion`,size:`sm`,className:`mt-4 inline-flex items-center gap-2 rounded-lg`,to:x,"data-gtm":e,children:r(`AO_SRF_SALES_CTA`)}):null]})},L=e(t(),1),R=A({route:O(),statisticPaidOrFree:k([`paid`,`free`]).optional(),accountTypeId:O().optional()});function z({storedUserJourney:e,isLoggedIn:t,isDiscoveryAccountVisible:n}){if(!e)return C;let{route:r,statisticPaidOrFree:i,accountTypeId:a}=R.parse(JSON.parse(e)),o=!r||E[`home-profile-route`].includes(r),s=E[`statistic-route`].includes(r),c=E[`study-route`].includes(r),l=E[`outlook-route`].includes(r),u=a===`15`,d=a===`35`,f=a===`2`,p=a===`48`,m=a===`1`||a===`23`,h=i===`paid`;if(!(t&&u))return l||o&&d?`professional`:t&&o&&f?`personal`:s?h?n&&!p?`discovery`:t&&!m?void 0:C:t?void 0:`basic`:c?t&&d?void 0:!t&&n?`professional`:`personal`:C}function B({isLoggedIn:e,isDiscoveryAccountVisible:t}){let n=localStorage.getItem(w);return{storedUserJourney:n,recommended:z({storedUserJourney:n,isLoggedIn:e,isDiscoveryAccountVisible:t})}}function V(e){return S.includes(e)}function H(e,t,n){let r=e.some(e=>e.type===t);return e.map(e=>({...e,isRecommended:r?e.type===t:e.type===n}))}function U(){let[e]=i(),t=e.get(`recommendation`);return t&&V(t)?t:void 0}function te(){let[e,t]=(0,L.useState)();return(0,L.useEffect)(()=>{let e=localStorage.getItem(`userJourney`);e&&t(e)},[]),e}function ne({productsData:e,isLoggedIn:t,platform:n,isDiscoveryAccountVisible:r=!1,defaultRecommendedProduct:i}){let a=U(),[o,s]=(0,L.useState)(a),[c,l]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{if(!a){let{recommended:e}=B({isLoggedIn:t,isDiscoveryAccountVisible:r});s(e)}l(!0)},[r,t,n,a]),{isLocalStorageValueChecked:c,productsWithRecommendation:(0,L.useMemo)(()=>H(e,o,i),[e,o,i])}}function re({isGtmEnabled:e,isLocalStorageValueChecked:t,productsWithRecommendation:n}){(0,L.useEffect)(()=>{if(e&&t){let e=n.map(e=>({name:e.name,isRecommended:e.isRecommended}));M(e)}},[e,t,n])}var ie=({addOnsData:e})=>{let{t}=n();return(0,N.jsx)(`section`,{className:`py-12`,children:(0,N.jsxs)(u,{children:[(0,N.jsxs)(`div`,{className:`mb-10 text-center`,children:[(0,N.jsx)(h,{renderAs:`h2`,size:`md`,children:(0,N.jsx)(D,{className:`[&>strong]:font-bold`,data:t(`AO_ADDONS_SECTION_HEADLINE`)})}),(0,N.jsx)(p,{size:`sm`,className:`mt-2`,children:t(`AO_ADDONS_SECTION_SUBLINE`)})]}),(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4 lg:grid-cols-2`,children:e.map(e=>(0,N.jsxs)(`div`,{className:y(`relative flex flex-col justify-between rounded-lg bg-surface p-6 shadow`,e.isFeatured?`border-2 border-primary`:`border border-on-primary`),children:[e.popularPillKey?(0,N.jsx)(`span`,{className:`absolute -top-4 left-6 rounded-full bg-primary px-3 py-1 text-sm font-semibold text-info-container`,children:t(e.popularPillKey)}):null,(0,N.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,N.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(b,{name:e.iconName,...e.iconSize?{size:e.iconSize}:{}}),(0,N.jsx)(`span`,{className:`text-xl font-bold text-on-surface-strong`,children:e.name})]}),(0,N.jsx)(d,{label:t(e.pillKey),size:`sm`,className:`border-none bg-surface-container px-2 py-1 text-primary`})]}),(0,N.jsx)(`hr`,{className:`border-t border-outline`}),(0,N.jsx)(p,{size:`sm`,className:`font-semibold`,children:t(e.headlineKey)}),(0,N.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.bulletKeys.map(e=>(0,N.jsxs)(`li`,{className:`flex items-start gap-1 text-sm text-on-surface`,children:[(0,N.jsx)(b,{name:`16-bold-check-normal`,className:`mt-1 shrink-0 text-primary`}),t(e)]},e))})]}),(0,N.jsxs)(`div`,{className:`mt-6 flex items-center gap-4`,children:[(0,N.jsx)(g,{to:e.ctaUrl,variant:e.isFeatured?`buttonPrimary`:`buttonOutline`,className:`flex h-10 items-center rounded px-4 text-sm font-semibold`,"data-gtm":e.gtmContact,children:t(`AO_ADDONS_CTA_CONTACT`)}),(0,N.jsxs)(g,{to:e.exploreUrl,variant:`unstyled`,className:`flex items-center gap-1 text-sm font-semibold text-primary`,"data-gtm":e.gtmExploreLink,children:[t(`AO_ADDONS_CTA_EXPLORE`),(0,N.jsx)(b,{name:`16-bold-chevron-right`,className:`h-3 w-3`})]})]})]}
1,e.pillKey))})]})})},W=e=>{let{variant:t=`primary`,size:n=`sm`,className:r,children:i}=e;return(0,N.jsx)(`span`,{className:y(`inline-flex items-center rounded-full border-1 font-semibold transition`,{primary:`border-surface-primary bg-surface-primary text-foreground-inverted`,muted:`border-surface-muted bg-surface-muted text-foreground-primary`,brightConversion:`border-[#9CEC18] bg-[#9CEC18] text-on-surface-strong`}[t],{sm:`px-2 py-1 text-xs leading-none`}[n],r),children:(0,N.jsx)(`span`,{className:`px-1`,children:i})})},ae={png:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{d:`M18 15C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13C17.4477 13 17 13.4477 17 14C17 14.5523 17.4477 15 18 15Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11 11.5C11 11.2239 11.2239 11 11.5 11H20.5C20.7761 11 21 11.2239 21 11.5V20.5C21 20.7761 20.7761 21 20.5 21H11.5C11.2239 21 11 20.7761 11 20.5V11.5ZM20 12V17.2929L18.8536 16.1464C18.6583 15.9512 18.3417 15.9512 18.1464 16.1464L17.5 16.7929L15.3536 14.6464C15.2598 14.5527 15.1326 14.5 15 14.5C14.8674 14.5 14.7402 14.5527 14.6464 14.6464L12 17.2929V12H20ZM12 20V18.7071L15 15.7071L17.1464 17.8536C17.3417 18.0488 17.6583 18.0488 17.8536 17.8536L18.5 17.2071L20 18.7071V20H12Z`})]}),pdf:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 19.5C14 18.6716 13.3284 18 12.5 18H11.5C11.2239 18 11 18.2239 11 18.5V21.5C11 21.7761 11.2239 22 11.5 22C11.7761 22 12 21.7761 12 21.5V21H12.5C13.3284 21 14 20.3284 14 19.5ZM12 20V19H12.5C12.7761 19 13 19.2239 13 19.5C13 19.7761 12.7761 20 12.5 20H12Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M18 19.5C18 18.6716 17.3284 18 16.5 18H15.5C15.2239 18 15 18.2239 15 18.5V21.5C15 21.7761 15.2239 22 15.5 22H16.5C17.3284 22 18 21.3284 18 20.5V19.5ZM16.5 19C16.7761 19 17 19.2239 17 19.5V20.5C17 20.7761 16.7761 21 16.5 21H16V19H16.5Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M21.5 18.5C21.5 18.2239 21.2761 18 21 18H19.5C19.2239 18 19 18.2239 19 18.5V21.5C19 21.7761 19.2239 22 19.5 22C19.7761 22 20 21.7761 20 21.5V21H20.5C20.7761 21 21 20.7761 21 20.5C21 20.2239 20.7761 20 20.5 20H20V19H21C21.2761 19 21.5 18.7761 21.5 18.5Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.8536 10.1464C16.7598 10.0527 16.6326 10 16.5 10H11.5C11.2239 10 11 10.2239 11 10.5V16.5C11 16.7761 11.2239 17 11.5 17C11.7761 17 12 16.7761 12 16.5V11H16V14.5C16 14.7761 16.2239 15 16.5 15H20V16.5C20 16.7761 20.2239 17 20.5 17C20.7761 17 21 16.7761 21 16.5V14.5C21 14.3674 20.9473 14.2402 20.8536 14.1464L16.8536 10.1464ZM19.2929 14H17V11.7071L19.2929 14Z`})]}),xls:(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.5 11C10.2239 11 10 11.2239 10 11.5V20.5C10 20.7761 10.2239 21 10.5 21H21.5C21.7761 21 22 20.7761 22 20.5V11.5C22 11.2239 21.7761 11 21.5 11H10.5ZM11 17V15H14V17H11ZM11 18V20H14V18H11ZM15 18V20H21V18H15ZM21 17V15H15V17H21ZM21 14H11V12H21V14Z`}),ppt:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 14C14.8284 14 15.5 14.6716 15.5 15.5C15.5 16.3284 14.8284 17 14 17H13.5V17.5C13.5 17.7761 13.2761 18 13 18C12.7239 18 12.5 17.7761 12.5 17.5V14.5C12.5 14.2239 12.7239 14 13 14H14ZM13.5 16H14C14.2761 16 14.5 15.7761 14.5 15.5C14.5 15.2239 14.2761 15 14 15H13.5V16Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17 10C20.3136 10.0002 23 12.6864 23 16C23 19.3136 20.3136 21.9998 17 22C15.2233 21.9999 13.6272 21.2262 12.5293 20H10.5C10.2239 20 10 19.7761 10 19.5V12.5C10 12.2239 10.2239 12 10.5 12H12.5293C13.6272 10.7738 15.2233 10.0001 17 10ZM18 19.5C18 19.7761 17.7761 20 17.5 20H14.0029C14.8385 20.6272 15.8753 20.9999 17 21C19.5925 20.9998 21.7247 19.0266 21.9756 16.5H18V19.5ZM11 19H17V13H11V19ZM17 11C15.8753 11.0001 14.8385 11.3728 14.0029 12H17.5C17.7761 12 18 12.2239 18 12.5V15.5H21.9756C21.7247 12.9734 19.5925 11.0002 17 11Z`})]}),api:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{d:`M12.3841 13.1799C12.2992 13.078 12.1773 13.0141 12.0453 13.0021C11.9132 12.99 11.7818 13.031 11.6799 13.1159L8.6799 15.6159C8.62359
115.6628 8.57829 15.7215 8.5472 15.7879C8.51611 15.8543 8.5 15.9267 8.5 16C8.5 16.0733 8.51611 16.1457 8.5472 16.212C8.57829 16.2784 8.62359 16.3372 8.6799 16.3841L11.6799 18.8841C11.7303 18.9262 11.7886 18.958 11.8513 18.9777C11.914 18.9973 11.98 19.0044 12.0455 18.9985C12.1109 18.9926 12.1746 18.9738 12.2328 18.9433C12.291 18.9128 12.3426 18.8711 12.3847 18.8206C12.4268 18.7701 12.4585 18.7118 12.478 18.6491C12.4976 18.5863 12.5045 18.5203 12.4985 18.4548C12.4925 18.3894 12.4737 18.3258 12.4431 18.2676C12.4124 18.2094 12.3707 18.1579 12.3201 18.1159L9.78104 16L12.3201 13.8841C12.422 13.7992 12.4859 13.6773 12.4979 13.5453C12.5099 13.4132 12.469 13.2818 12.3841 13.1799Z`}),(0,N.jsx)(`path`,{d:`M23.3197 15.6154L20.3197 13.1154C20.2693 13.0733 20.2111 13.0415 20.1483 13.0218C20.0856 13.0022 20.0196 12.9951 19.9542 13.001C19.8887 13.0069 19.825 13.0257 19.7668 13.0562C19.7086 13.0867 19.657 13.1284 19.6149 13.1789C19.5728 13.2294 19.5411 13.2877 19.5216 13.3505C19.5021 13.4132 19.4951 13.4792 19.5011 13.5447C19.5071 13.6101 19.526 13.6738 19.5566 13.7319C19.5872 13.7901 19.629 13.8416 19.6795 13.8836L22.2186 15.9995L19.6795 18.1154C19.629 18.1574 19.5872 18.209 19.5566 18.2672C19.526 18.3253 19.5071 18.3889 19.5011 18.4544C19.4951 18.5199 19.5021 18.5858 19.5216 18.6486C19.5411 18.7114 19.5728 18.7697 19.6149 18.8202C19.657 18.8706 19.7086 18.9123 19.7668 18.9429C19.825 18.9734 19.8887 18.9921 19.9542 18.998C20.0196 19.0039 20.0856 18.9969 20.1483 18.9772C20.2111 18.9576 20.2693 18.9258 20.3197 18.8836L23.3197 16.3836C23.376 16.3367 23.4213 16.278 23.4524 16.2116C23.4835 16.1452 23.4996 16.0728 23.4996 15.9995C23.4996 15.9262 23.4835 15.8538 23.4524 15.7875C23.4213 15.7211 23.376 15.6624 23.3197 15.6154Z`}),(0,N.jsx)(`path`,{d:`M18.171 10.03C18.0464 9.98479 17.9089 9.99087 17.7888 10.0469C17.6686 10.103 17.5756 10.2045 17.5302 10.329L13.5302 21.329C13.5077 21.3908 13.4976 21.4563 13.5005 21.5219C13.5033 21.5876 13.5191 21.652 13.5468 21.7116C13.5746 21.7711 13.6138 21.8246 13.6622 21.869C13.7107 21.9134 13.7674 21.9478 13.8291 21.9702C13.8909 21.9927 13.9564 22.0027 14.0221 21.9998C14.0877 21.9969 14.1521 21.9811 14.2116 21.9533C14.2712 21.9255 14.3246 21.8863 14.369 21.8378C14.4133 21.7893 14.4477 21.7326 14.4701 21.6708L18.4701 10.6708C18.5154 10.5462 18.5093 10.4087 18.4533 10.2885C18.3972 10.1683 18.2957 10.0753 18.171 10.03Z`})]}),mcp:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{d:`M17.5 17C17.7761 17 18 17.2239 18 17.5V18H18.5C18.7761 18 19 18.2239 19 18.5C18.9997 18.7759 18.776 19 18.5 19H18V19.5C17.9997 19.7759 17.776 20 17.5 20C17.224 20 17.0003 19.7759 17 19.5V19H16.5C16.224 19 16.0003 18.7759 16 18.5C16 18.2239 16.2239 18 16.5 18H17V17.5C17 17.2239 17.2239 17 17.5 17Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14.5 9.99902C15.8161 9.99902 16.6563 10.2631 17.1855 10.5654C17.4494 10.7162 17.6305 10.8744 17.751 11.0059C17.8109 11.0712 17.8561 11.1302 17.8877 11.1768C17.9033 11.1997 17.9161 11.2206 17.9258 11.2373C17.9305 11.2454 17.935 11.2534 17.9385 11.2598C17.9401 11.2628 17.942 11.2659 17.9434 11.2686L17.9463 11.2744C17.9421 11.277 17.9004 11.2998 17.5 11.5L17.9473 11.2764C17.9819 11.3457 18 11.4225 18 11.5V15.0352C19.6961 15.2778 21 16.7368 21 18.5C20.9997 20.4328 19.4328 22 17.5 22C16.1021 22 14.8958 21.1799 14.335 19.9951C13.1133 19.9741 12.3212 19.724 11.8145 19.4346C11.5507 19.2838 11.3696 19.1255 11.249 18.9941C11.1891 18.9288 11.144 18.8699 11.1123 18.8232C11.0968 18.8003 11.084 18.7794 11.0742 18.7627C11.0695 18.7546 11.065 18.7467 11.0615 18.7402C11.0599 18.7372 11.058 18.7341 11.0566 18.7314L11.0537 18.7256C11.0565 18.7237 11.0914 18.7043 11.5 18.5L11.0527 18.7236C11.0181 18.6544 11.0001 18.5775 11 18.5V11.5C11 11.4225 11.0181 11.3457 11.0527 11.2764L11.5 11.5C11.0996 11.2998 11.0579 11.278 11.0537 11.2754L11.0566 11.2686C11.058 11.2659 11.0599 11.2628 11.0615 11.2598C11.065 11.2534 11.0695 11.2454 11.0742 11.2373C11.0839 11.2206 11.0967 11.1997 11.1123 11.1768C11.1439 11.1302 11.1891 11.0712 11.249 11.0059C11.3695 10.8744 11.5506 10.7162 11.8145 10.5654C12.3437 10.2631 13.1839 9.99902 14.5 9.99902ZM17.5 16C16.1193 16 15 17.1193 15 18.5C15.0003 19.8805 16.1195 21 17.5 21C18.8805 21 19.9997 19.8805 20 18.5C20 17.1193 18.8807 16 17.5 16ZM12 18.3311C12.0545 18.3877 12.1511 18.4743 12.3105 18.5654C12.6081 18.7354 13.1384 18.9331 14.0342 18.9854C14.0121 18.8267 14 18.6647 14 18.5C14 18.326 14.0126 18.1545 14.0371 17.9873C13.1139 17.9403 12.4602 17.7538 12 17.5303V18.3311ZM12 16.3311C12.0546 16.3877 12.1513 16.4744 12.3105 16.5654C12.6403 16.7538 13.2557 16.9746 14.3379 16.9951C14.5202 16.6127 14.7707 16.269 15.0723 15.9785C14.8922 15.9901 14.7018 16 14.5 16C13.3277 16 12.5337 15.7895 12 15.5303V16.3311ZM17 13.5303C16.4663 13.7895 15.6723 14 14.5 14C13.3277 14 12.5337 13.7895 12 13.5303V14.3311C12.0546 14.3877 12.1513 14.4744 12.3105 14.5654C12.6564 14.763 13.3166 15 14.5 15C15.6834 15 16.3436 14.763 16.6895 14.5654C16.8487 14.4744 16.9454 14.3877 17 14.3311V13.5303ZM14.5 11C13.3163 11 12.6564 11.237 12.3105 11.4346C12.1515 11.5255 12.0545 11.6113 12 11.668V12.3311C12.0546 12.3877 12.1513 12.4744 12.3105 12.5654C12.6564 12.763 13.3166 13 14.5 13C15.6834 13 16.3436 12.763 16.6895 12.5654C16.8487 12.4744 16.9454 12.3877 17 12.3311V11.668C16.9455 11.6113 16.8485 11.5255 16.6895 11.4346C16.3436 11.237 15.6837 11 14.5 11Z`})]})},oe=({format:e,className:t})=>(0,N.jsxs)(`svg`,{"aria-hidden":`true`,className:y(`size-8 fill-on-surface`,t),viewBox:`0 0 32 32`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,N.jsx)(`rect`,{width:`32`,height:`32`,rx:`8`,className:`fill-background-muted`}),ae[e]]}),G=({productFootnotes:e,duration:t})=>{let{t:r}=n();return e&&e.length>0?e.map(({sup:e,legalText:n,gtm:i},a)=>(0,N.jsx)(_,{text:r(n),placement:`end`,"data-gtm":i,children:(0,N.jsxs)(`span`,{className:`curs
1or-help`,children:[r(t),(0,N.jsx)(`sup`,{className:`ml-1`,children:e})]})},a)):(0,N.jsx)(`span`,{children:r(t)})},K=e=>{(0,L.useEffect)(()=>{let t=t=>{t.persisted&&e()};return window.addEventListener(`pageshow`,t),()=>window.removeEventListener(`pageshow`,t)},[e])},q=({children:e,gtm:t,isRecommended:r,className:i,isBlocked:a,...c})=>{let{t:l}=n(),[u,d]=(0,L.useState)(!1);if(K(()=>d(!1)),a)return(0,N.jsx)(v,{className:`justify-center text-center text-xs font-semibold`,variant:`warning`,size:`large`,children:l(`UAO_UNAVAILABLE_IN_YOUR_COUNTRY`)});switch(c.target){case`REGISTER_FOR_BAP`:case`MY_ACCOUNT`:case`REGISTER`:case`CONTACT`:return(0,N.jsx)(g,{"data-gtm":t,variant:r?`buttonPrimary`:`buttonOutline`,className:i,to:c.targetLink,children:e});case`PURCHASE_KEYLIGHT`:case`UPGRADE_KEYLIGHT`:return c.source===`KEYLIGHT`?(0,N.jsxs)(o,{method:`GET`,action:s(`/accounts/redirect`),className:`flex w-full flex-col items-center gap-4`,onSubmit:()=>d(!0),children:[(0,N.jsx)(`input`,{type:`hidden`,name:`productId`,value:c.keylightProductId}),(0,N.jsx)(`input`,{type:`hidden`,name:`subscriptionPlanId`,value:c.subscriptionPlanId}),c?.businessEntityId?(0,N.jsx)(`input`,{type:`hidden`,name:`businessEntityId`,value:c.businessEntityId}):void 0,c?.currencyId?(0,N.jsx)(`input`,{type:`hidden`,name:`currencyId`,value:c.currencyId}):void 0,c?.languageId?(0,N.jsx)(`input`,{type:`hidden`,name:`languageId`,value:c.languageId}):void 0,(0,N.jsx)(j,{isLoading:u,"data-gtm":t,type:`submit`,variant:r?`primary`:`outline`,className:y(`w-full`,i),children:e})]}):void 0;case`DOWNGRADE`:return(0,N.jsx)(v,{className:`justify-center text-center text-xs font-semibold`,variant:`info`,size:`large`,children:e})}};function se(e){if(e){let t=R.parse(JSON.parse(e)),n=t.route,r=t.statisticPaidOrFree===`paid`;return E[`statistic-route`].includes(n)&&r}return!1}var J=(e,t)=>e.filter(e=>e.eligibleProducts.includes(t));function Y(e){return T[e]}var ce=({className:e,width:t=24,height:n=24,title:r})=>(0,N.jsxs)(`svg`,{className:e,width:t,height:n,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,children:[r?(0,N.jsx)(`title`,{children:r}):void 0,(0,N.jsxs)(`g`,{clipPath:`url(#clip0_4573_1206)`,children:[(0,N.jsx)(`path`,{d:`M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z`,fill:`#E5F1FF`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.5 18C10.1193 18 9 19.1193 9 20.5V23.5C9 23.7761 8.77614 24 8.5 24C8.22386 24 8 23.7761 8 23.5V20.5C8 18.567 9.567 17 11.5 17H20.5C22.433 17 24 18.567 24 20.5V23.5C24 23.7761 23.7761 24 23.5 24C23.2239 24 23 23.7761 23 23.5V20.5C23 19.1193 21.8807 18 20.5 18H11.5Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 7C13.7909 7 12 8.79086 12 11C12 13.2091 13.7909 15 16 15C18.2091 15 20 13.2091 20 11C20 8.79086 18.2091 7 16 7ZM11 11C11 8.23858 13.2386 6 16 6C18.7614 6 21 8.23858 21 11C21 13.7614 18.7614 16 16 16C13.2386 16 11 13.7614 11 11Z`,fill:`#0666E5`})]}),(0,N.jsx)(`defs`,{children:(0,N.jsx)(`clipPath`,{id:`clip0_4573_1206`,children:(0,N.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})})})]}),le=({className:e,width:t=24,height:n=24,title:r})=>(0,N.jsxs)(`svg`,{className:e,width:t,height:n,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,children:[r?(0,N.jsx)(`title`,{children:r}):void 0,(0,N.jsxs)(`g`,{clipPath:`url(#clip0_4573_3157)`,children:[(0,N.jsx)(`path`,{d:`M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z`,fill:`#E5F1FF`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.5 16.9998C8.67157 16.9998 8 17.6714 8 18.4998V21.4998C8 21.7759 7.77614 21.9998 7.5 21.9998C7.22386 21.9998 7 21.7759 7 21.4998V18.4998C7 17.1191 8.11929 15.9998 9.5 15.9998H14.5C15.8807 15.9998 17 17.1191 17 18.4998V21.4998C17 21.7759 16.7761 21.9998 16.5 21.9998C16.2239 21.9998 16 21.7759 16 21.4998V18.4998C16 17.6714 15.3284 16.9998 14.5 16.9998H9.5Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.9999 10C10.8954 10 9.99994 10.8954 9.99994 12C9.99994 13.1046 10.8954 14 11.9999 14C13.1045 14 13.9999 13.1046 13.9999 12C13.9999 10.8954 13.1045 10 11.9999 10ZM8.99994 12C8.99994 10.3431 10.3431 9 11.9999 9C13.6568 9 14.9999 10.3431 14.9999 12C14.9999 13.6569 13.6568 15 11.9999 15C10.3431 15 8.99994 13.6569 8.99994 12Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.5 16.4998C17.5 16.2237 17.7239 15.9998 18 15.9998H18.5C19.8807 15.9998 21 17.1191 21 18.4998V21.4998C21 21.7759 20.7761 21.9998 20.5 21.9998C20.2239 21.9998 20 21.7759 20 21.4998V18.4998C20 17.6714 19.3284 16.9998 18.5 16.9998H18C17.7239 16.9998 17.5 16.7759 17.5 16.4998Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16 10C15.8624 10 15.7285 10.0138 15.5995 10.04C15.3288 10.0949 15.0649 9.9201 15.01 9.64948C14.9551 9.37885 15.1299 9.11494 15.4005 9.06C15.5946 9.0206 15.7952 9 16 9C17.6569 9 19 10.3431 19 12C19 13.6569 17.6569
115 16 15C15.7952 15 15.5946 14.9794 15.4005 14.94C15.1299 14.8851 14.9551 14.6211 15.01 14.3505C15.0649 14.0799 15.3288 13.9051 15.5995 13.96C15.7285 13.9862 15.8624 14 16 14C17.1046 14 18 13.1046 18 12C18 10.8954 17.1046 10 16 10Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M21.5001 16.4998C21.5001 16.2237 21.7239 15.9998 22.0001 15.9998H22.5001C23.8808 15.9998 25.0001 17.1191 25.0001 18.4998V21.4998C25.0001 21.7759 24.7762 21.9998 24.5001 21.9998C24.2239 21.9998 24.0001 21.7759 24.0001 21.4998V18.4998C24.0001 17.6714 23.3285 16.9998 22.5001 16.9998H22.0001C21.7239 16.9998 21.5001 16.7759 21.5001 16.4998Z`,fill:`#0666E5`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M20 10C19.8624 10 19.7285 10.0138 19.5995 10.04C19.3288 10.0949 19.0649 9.9201 19.01 9.64948C18.9551 9.37885 19.1299 9.11494 19.4005 9.06C19.5946 9.0206 19.7952 9 20 9C21.6569 9 23 10.3431 23 12C23 13.6569 21.6569 15 20 15C19.7952 15 19.5946 14.9794 19.4005 14.94C19.1299 14.8851 18.9551 14.6211 19.01 14.3505C19.0649 14.0799 19.3288 13.9051 19.5995 13.96C19.7285 13.9862 19.8624 14 20 14C21.1046 14 22 13.1046 22 12C22 10.8954 21.1046 10 20 10Z`,fill:`#0666E5`})]}),(0,N.jsx)(`defs`,{children:(0,N.jsx)(`clipPath`,{id:`clip0_4573_3157`,children:(0,N.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})})})]}),ue=({className:e,width:t=24,height:n=24})=>(0,N.jsxs)(`svg`,{className:e,width:t,height:n,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.5 15C6.11929 15 5 16.1193 5 17.5V20.5C5 20.7761 4.77614 21 4.5 21C4.22386 21 4 20.7761 4 20.5V17.5C4 15.567 5.567 14 7.5 14H16.5C18.433 14 20 15.567 20 17.5V20.5C20 20.7761 19.7761 21 19.5 21C19.2239 21 19 20.7761 19 20.5V17.5C19 16.1193 17.8807 15 16.5 15H7.5Z`}),(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4ZM7 8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8C17 10.7614 14.7614 13 12 13C9.23858 13 7 10.7614 7 8Z`})]}),de=({className:e,width:t=24,height:n=24})=>(0,N.jsxs)(`svg`,{className:e,width:t,height:n,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,N.jsx)(`path`,{d:`M17.5 3L17.6006 3.00977C17.8286 3.05629 18 3.25829 18 3.5V20.5C18 20.7761 17.7761 21 17.5 21H13.5C13.2239 21 13 20.7761 13 20.5V18H11V20.5C11 20.7761 10.7761 21 10.5 21H6.5C6.22386 21 6 20.7761 6 20.5V3.5L6.00977 3.39941C6.05629 3.17145 6.25829 3 6.5 3H17.5ZM7 20H10V17.5C10 17.2239 10.2239 17 10.5 17H13.5C13.7761 17 14 17.2239 14 17.5V20H17V4H7V20Z`}),(0,N.jsx)(`path`,{d:`M9 15.5V14.5C9 14.2239 9.22386 14 9.5 14C9.77614 14 10 14.2239 10 14.5V15.5C10 15.7762 9.77614 16 9.5 16C9.22386 16 9 15.7762 9 15.5ZM11.5 15.5V14.5C11.5 14.2239 11.7239 14 12 14C12.2761 14 12.5 14.2239 12.5 14.5V15.5C12.5 15.7762 12.2761 16 12 16C11.7239 16 11.5 15.7762 11.5 15.5ZM14 15.5V14.5C14 14.2239 14.2239 14 14.5 14C14.7761 14 15 14.2239 15 14.5V15.5C15 15.7762 14.7761 16 14.5 16C14.2239 16 14 15.7762 14 15.5ZM9 12.5V11.5C9 11.2239 9.22386 11 9.5 11C9.77614 11 10 11.2239 10 11.5V12.5C10 12.7762 9.77614 13 9.5 13C9.22386 13 9 12.7762 9 12.5ZM11.5 12.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V12.5C12.5 12.7762 12.2761 13 12 13C11.7239 13 11.5 12.7762 11.5 12.5ZM14 12.5V11.5C14 11.2239 14.2239 11 14.5 11C14.7761 11 15 11.2239 15 11.5V12.5C15 12.7762 14.7761 13 14.5 13C14.2239 13 14 12.7762 14 12.5ZM9 9.50005V8.50005C9 8.22391 9.22386 8.00005 9.5 8.00005C9.77614 8.00005 10 8.22391 10 8.50005V9.50005C10 9.77619 9.77614 10 9.5 10C9.22386 10 9 9.77619 9 9.50005ZM11.5 9.50005V8.50005C11.5 8.22391 11.7239 8.00005 12 8.00005C12.2761 8.00005 12.5 8.22391 12.5 8.50005V9.50005C12.5 9.77619 12.2761 10 12 10C11.7239 10 11.5 9.77619 11.5 9.50005ZM14 9.50005V8.50005C14 8.22391 14.2239 8.00005 14.5 8.00005C14.7761 8.00005 15 8.22391 15 8.50005V9.50005C15 9.77619 14.7761 10 14.5 10C14.2239 10 14 9.77619 14 9.50005ZM9 6.50005V5.50005C9 5.22391 9.22386 5.00005 9.5 5.00005C9.77614 5.00005 10 5.2239
11 10 5.50005V6.50005C10 6.77619 9.77614 7.00005 9.5 7.00005C9.22386 7.00005 9 6.77619 9 6.50005ZM11.5 6.50005V5.50005C11.5 5.22391 11.7239 5.00005 12 5.00005C12.2761 5.00005 12.5 5.22391 12.5 5.50005V6.50005C12.5 6.77619 12.2761 7.00005 12 7.00005C11.7239 7.00005 11.5 6.77619 11.5 6.50005ZM14 6.50005V5.50005C14 5.22391 14.2239 5.00005 14.5 5.00005C14.7761 5.00005 15 5.22391 15 5.50005V6.50005C15 6.77619 14.7761 7.00005 14.5 7.00005C14.2239 7.00005 14 6.77619 14 6.50005Z`})]}),fe=({seatLabel:e,isMultiSeat:t})=>(0,N.jsx)(d,{variant:`muted`,size:`sm`,className:`shrink-0 border-transparent bg-surface-container px-2 py-1 text-primary`,icon:(0,N.jsx)(t?le:ce,{width:16,height:16}),label:e}),pe=({label:e})=>(0,N.jsx)(d,{variant:`muted`,size:`sm`,className:`shrink-0 border-transparent bg-[linear-gradient(124deg,#001327_9%,#093B7F_58%)] px-2 py-1 text-foreground-inverted`,icon:(0,N.jsx)(b,{width:16,height:16,name:`16-reg-research-ai-normal`}),label:e}),X=({isRecommended:e,isLoggedIn:t,isBlocked:i,type:a,name:o,productId:s,availableSeats:c,seatLabel:l,letsTalkLabel:u,footnotesData:d,currentProductId:f,accountDescription:m,discountedPrice:g,formattedAmount:x,duration:S,ctaGtm:C,cta:w,benefits:T,accessExportFormats:E,promotion:O,statistaConnectLearnMoreLink:k,hasPromotionalProducts:A,...j})=>{let{t:M}=n(),P=Y(o),F=J(d,a),I=a===`business-suite`||a===`statista-connect`||a===`professional`,L=s===`statista-connect`,R=c>1,z=s===`1`||s===`23`,B=f===`1`||f===`23`,V=se(te()),H;return V&&z&&(t&&B?H=r`AO_BAP_USER_JOURNEY_FREE_USER`:t||(H=r`AO_BAP_USER_JOURNEY_ANONYMOUS_USER`)),(0,N.jsxs)(`div`,{className:y(!L&&`p-6`,`flex size-full flex-col items-stretch gap-y-4 lg:row-span-4 lg:grid lg:grid-rows-subgrid lg:gap-y-0`),children:[(0,N.jsxs)(`div`,{className:`flex flex-col`,children:[(0,N.jsx)(`div`,{className:`mb-4 flex items-center lg:mb-2`,children:(0,N.jsxs)(`div`,{className:`flex w-full items-start justify-between gap-2 text-sm font-normal lg:flex-col xl:flex-row xl:items-center`,children:[(0,N.jsx)(h,{size:`xs`,renderAs:`h2`,className:`font-bold capitalize`,children:P}),L?(0,N.jsx)(pe,{label:M(l)}):(0,N.jsx)(fe,{seatLabel:M(l),isMultiSeat:R})]})}),(0,N.jsx)(`hr`,{className:`mb-4 border-t border-border-muted`}),(0,N.jsxs)(`div`,{className:`flex grow flex-col overflow-hidden`,children:[(0,N.jsxs)(`div`,{className:`flex items-baseline`,children:[(0,N.jsx)(`p`,{className:y(L?`mb-4 text-sm font-normal`:u?`text-3xl font-light leading-[44px] lg:mb-4`:`text-3xl font-bold`,L||u?`text-foreground`:`text-foreground-strong`),children:g??x??(L?M(m):u?M(u):`\xA0`)}),g?(0,N.jsx)(`p`,{children:(0,N.jsx)(`s`,{className:`ml-1 text-on-primary-disabled`,children:x})}):void 0]}),A&&!O?(0,N.jsx)(`div`,{className:`lg:h-[40px]`}):void 0,O?(0,N.jsxs)(W,{className:`w-fit flex-wrap lg:mb-2`,variant:`muted`,children:[(0,N.jsx)(W,{className:`-ml-2 mr-2 px-[3px]`,variant:`brightConversion`,children:M(`AO_CARD_SAVE_XX_NOW`,{discount:`${O.promotionPercentage}%`})}),M(`AO_CARD_UNTIL_XX`,{date:`15.04.`})]}):void 0]})]}),(0,N.jsx)(`div`,{className:`text-[11px] font-normal lg:mb-4`,children:I?M(`UAO_CUSTOM_PRICE`):(0,N.jsx)(G,{productFootnotes:F,duration:S})}),(0,N.jsx)(`div`,{className:`w-full lg:mb-4`,children:(0,N.jsx)(q,{gtm:`aoCards__${C}`,isRecommended:e,isLoggedIn:t,isBlocked:i,className:`min-h-14 w-full justify-center text-nowrap text-base`,...j,children:M(w)})}),(0,N.jsxs)(`div`,{className:y(`flex grow flex-col gap-y-4`,L?`lg:min-h-[560px]`:`lg:min-h-[430px]`),children:[(0,N.jsxs)(`div`,{className:y(L?`flex flex-col`:`flex grow flex-col`),children:[T.headline?(0,N.jsx)(`p`,{className:`mb-4 text-sm font-bold`,children:M(T.headline)}):void 0,(0,N.jsx)(`ul`,{className:`mb-6`,children:T.list.map((e,t)=>e.subHeader?(0,N.jsxs)(`li`,{className:`my-3 font-bold uppercase text-primary`,children:[M(e.subHeader),`:`]},t):e.title&&(0,N.jsx)(`li`,{className:`mb-2 flex flex-col rounded md:hover:cursor-help md:hover:bg-background-muted`,children:(0,N.jsx)(_,{placement:`end`,text:M(e.tooltip),children:(0,N.jsx)(`div`,{className:`flex items-start text-sm`,children:M(e.title)})})},t))})]}),H?(0,N.jsx)(v,{className:`mb-4 justify-center text-center text-xs font-semibold`,variant:`warning`,size:`large`,children:(0,N.jsx)(D,{data:M(H)})}):void 0,E&&E.length>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`hr`,{className:`border-t border-border-muted`}),(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(p,{size:`sm`,className:`font-bold uppercase`,children:M(`UAO_ACCESS_EXPORT_HEADLINE`)}),(0,N.jsx)(`div`,{className:`flex flex-wrap gap-2 md:hover:cursor-help`,children:E.map(({format:e,tooltip:t})=>(0,N.jsx)(_,{text:M(t),"aria-label":M(t),children:(0,N.jsx)(oe,{format:e})},e))})]})]}
1):void 0,L&&k?(0,N.jsxs)(ee,{"data-gtm":`aoCards__link__anchorTable`,to:k,className:`mt-auto flex cursor-pointer items-center text-[0.813rem] font-semibold text-on-primary`,children:[M(`UAO_LEARN_MORE`),(0,N.jsx)(b,{name:`16-bold-chevron-right`,className:`ml-1`})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`a`,{"data-gtm":`aoCards__link__anchorTable`,href:`#${j.id}-table`,className:`mt-2 hidden cursor-pointer items-center text-[0.813rem] font-semibold text-primary lg:flex`,children:[M(`UAO_COMPARE_SOLUTIONS_LINK`),(0,N.jsx)(b,{name:`16-bold-chevron-down`,className:`ml-1`})]}),(0,N.jsxs)(`a`,{"data-gtm":`aoCards__link__anchorTable`,href:`#${j.id}`,className:`mt-2 flex cursor-pointer items-center text-[0.813rem] font-semibold text-primary lg:hidden`,children:[M(`UAO_COMPARE_SOLUTIONS_LINK`),(0,N.jsx)(b,{name:`16-bold-chevron-down`,className:`ml-1`})]})]})]})]})},me=f` 2z-0 after:z-0 relative 3grid min-h-[850px] 4w-full grid-rows-1 5overflow-hidden 6p-6 7 8after:absolute after:inset-x-0 9after:bottom-0 after:h-[248px] 10after:rounded-b after:bg-[url('/accounts/resources/statista-connect-card-s.svg')] 11after:bg-cover 12after:bg-bottom 13after:bg-no-repeat 14 15md:after:h-[257px] 16md:after:w-full 17md:after:bg-[url('/accounts/resources/statista-connect-card-m.svg')] 18md:after:bg-cover 19 20lg:row-span-4 21lg:grid lg:h-auto lg:grid-rows-subgrid 22lg:after:h-[200px] 23lg:after:bg-[url('/accounts/resources/statista-connect-card.svg')] 24lg:after:bg-contain 25`,he=({children:e,className:t})=>(0,N.jsx)(`div`,{className:y(me,t),children:(0,N.jsx)(`div`,{className:`relative z-[10] lg:row-span-4 lg:grid lg:grid-rows-subgrid`,children:e})}),ge=({isRecommended:e,statistaConnectLearnMoreLink:t,hasPromotionalProducts:r,...i})=>{let{t:a}=n(),o=i.productId===`statista-connect`,s;return e&&(s=i.isPromotion?(0,N.jsxs)(W,{className:`absolute z-[2] -translate-y-4 translate-x-6 justify-center border-none`,children:[a(`MOST_POPULAR`),(0,N.jsx)(W,{className:`-mr-2 ml-2 px-[3px]`,variant:`brightConversion`,children:a(`AO_CARD_LIMITED_OFFER`)})]}):(0,N.jsx)(d,{className:`absolute z-[2] -translate-y-4 translate-x-6 justify-center border-none`,label:a(`MOST_POPULAR`)})),(0,N.jsxs)(`article`,{className:`relative size-full lg:contents`,children:[s,(0,N.jsx)(m,{className:`h-full lg:contents`,children:o?(0,N.jsx)(he,{children:(0,N.jsx)(X,{...i,isRecommended:e,statistaConnectLearnMoreLink:t})}):(0,N.jsx)(X,{...i,isRecommended:e,hasPromotionalProducts:r})})]})},Z={2:`lg:grid-cols-[repeat(2,minmax(0,285px))]`,3:`lg:grid-cols-[repeat(3,minmax(0,285px))]`,4:`lg:grid-cols-[repeat(4,minmax(0,285px))]`},_e=({products:e,currentProductId:t,footnotes:n,isCountryBlocked:r,statistaConnectLearnMoreLink:i})=>{let{isLoggedIn:a}=l(),o=e.some(e=>e.isPromotion);return(0,N.jsx)(u,{className:`w-full py-8`,children:(0,N.jsx)(`ul`,{className:`flex w-full flex-col justify-center lg:grid lg:grid-rows-[auto_auto_auto_1fr] lg:justify-center lg:gap-x-4 lg:gap-y-4 ${Z[e.length]??Z[4]}`,children:e.map(e=>(0,N.jsx)(`li`,{className:`relative mb-4 flex flex-1 grow rounded bg-surface-neutral shadow lg:row-span-4 lg:mb-0 lg:grid lg:min-w-0 lg:max-w-[285px] lg:grid-rows-subgrid${e.isRecommended?` outline outline-2 outline-primary`:``}`,children:(0,N.jsx)(ge,{footnotesData:n,isLoggedIn:a,currentProductId:t,isBlocked:r,statistaConnectLearnMoreLink:i,hasPromotionalProducts:o,...e})},e.id))})})},Q=({availability:e,iconsStyles:t,price:r})=>{let{t:i}=n(),a=e?`16-bold-check-normal`:`16-bold-cross-normal`,o=e?`text-primary`:`text-on-primary-disabled`;return typeof e==`string`?(0,N.jsx)(`p`,{className:`text-sm`,children:r?`${r}`:i(e)}):(0,N.jsx)(b,{name:a,className:y(`mr-2 ${o}`,t)})};function ve({items:e,activeItemId:t,ariaLabel:n}){let r=f`[box-shadow:0_4px_6px_-1px_rgba(0,0,0,0.1)]`;return(0,N.jsx)(`nav`,{"aria-label":n,className:y(`z-[10] flex min-h-20 items-center justify-center bg-surface [@media(min-height:600px)]:sticky [@media(min-height:600px)]:top-0`,r),children:(0,N.jsx)(`ul`,{className:`flex flex-wrap justify-center gap-6 p-6`,children:e.map(e=>(0,N.jsx)(`li`,{className:y(`border-b-2 pb-2 transition-colors`,t===e.id?`border-primary font-bold`:`border-transparent`),children:(0,N.jsx)(`a`,{href:`#${e.id}`,className:`no-underline`,"aria-current":t===e.id?`location`:void 0,children:(0,N.jsx)(`span`,{className:`text-on-surface`,children:e.label})})},e.id))})})}function ye({className:e,items:t,children:n,ariaLabel:r,customObserverOptions:i,customVisibilityThreshold:a}
25){let[o,s]=(0,L.useState)(),c=(0,L.useRef)([]);return(0,L.useEffect)(()=>{t.length>0&&s(t[0].id);let e=new Map,n=i??{rootMargin:`-25px 0px 0px 0px`,threshold:[0,.25,.5,.75,1]},r=a??.25,o=new IntersectionObserver(n=>{for(let t of n)e.set(t.target.id,t.isIntersecting?t.intersectionRatio:0);let i=t.find(t=>(e.get(t.id)??0)>r);i&&s(i.id)},n);for(let e of c.current??[])e&&o.observe(e);return()=>{o.disconnect()}},[t,i,a]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ve,{items:t,activeItemId:o,ariaLabel:r}),(0,N.jsx)(u,{className:y(`flex flex-col`,e),children:L.Children.map(n,(e,n)=>{let r=t[n]?.id;if(!r)throw Error(`NavigationList: No matching item found for child at index ${n}`);return(0,N.jsx)(`article`,{id:r,tabIndex:-1,"aria-label":t[n].label,className:`[@media(min-height:600px)]:scroll-mt-20`,ref:e=>{c.current[n]=e},children:e},r)})})]})}var be=({type:e,name:t,tabsContent:i,duration:a,footnotes:o,cta:s,ctaGtm:c,formattedAmount:l,discountedPrice:u,isLoggedIn:d,isCountryBlocked:f,...p})=>{let{t:h}=n(),g=J(o,e),_=u??l,v=Y(t);return(0,N.jsxs)(m,{className:`p-8`,children:[(0,N.jsx)(`h2`,{className:`mb-4 text-xl font-bold [@media(min-height:600px)]:hidden`,children:v}),(0,N.jsx)(`ul`,{children:i?.map(({feature:t,featureAccess:n},i)=>{let a=n.find(t=>t.accountType===e),o=a?.value??!1,s=h(o?`AO_FEATURE_INCLUDED`:`AO_FEATURE_NOT_INCLUDED`);return a?(0,N.jsxs)(`li`,{children:[t===r`AO_TABLE_ADVANCED_ADD_ONS_STATISTA_CONNECT`?(0,N.jsx)(`h3`,{className:`my-4 font-bold uppercase text-foreground-primary`,children:h(`AO_TABLE_ADVANCED_ADD_ONS`)}):void 0,(0,N.jsxs)(`span`,{className:`mb-3 flex flex-row items-center text-sm`,children:[(0,N.jsx)(Q,{availability:o}),(0,N.jsx)(`span`,{className:`sr-only`,children:`${s}: `}),h(t)]})]},`feature-${i}`):void 0})}),(0,N.jsxs)(`div`,{className:`flex w-full flex-col items-end`,children:[(0,N.jsx)(`p`,{className:`font-bold text-background-strong`,"aria-describedby":`current-price`,children:_}),(0,N.jsx)(`div`,{className:`text-xs`,children:_?(0,N.jsx)(G,{productFootnotes:g,duration:a}):h(`UAO_CUSTOM_PRICE`)})]}),(0,N.jsx)(q,{gtm:`aoTable__${c}--tableMobile`,className:`mt-4 w-full justify-center text-nowrap`,isLoggedIn:d,isBlocked:f,...p,children:h(s)})]})},xe=({productsData:e,tabsData:t,footnotesData:r,isLoggedIn:i,isCountryBlocked:a})=>{let{t:o}=n(),s=e.map(e=>({id:e.id,label:Y(e.name)}));return(0,N.jsxs)(`div`,{className:`lg:hidden`,children:[(0,N.jsxs)(`div`,{className:`mt-6 w-full text-center`,children:[(0,N.jsx)(h,{size:`md`,renderAs:`h2`,className:`font-light`,children:(0,N.jsx)(D,{data:o(t?.comparisonHeader?.headline)})}),(0,N.jsx)(p,{className:`mt-2`,children:o(t?.comparisonHeader?.description)})]}),(0,N.jsx)(ye,{items:s,ariaLabel:o(`AO_TABLE_MOBILE_NAVIGATION_ARIA_LABEL`),className:`space-y-8`,children:e.map((e,n)=>(0,N.jsx)(be,{tabsContent:t?.tabsContent,tabIndex:n,footnotes:r,isLoggedIn:i,isCountryBlocked:a,...e},e.id))})]})},Se=({productsData:e,tableData:t,footnotesData:r,isLoggedIn:i,isCountryBlocked:a})=>{let{t:o}=n();return(0,N.jsx)(u,{className:`hidden py-20 lg:flex`,children:(0,N.jsxs)(`table`,{className:`w-full`,children:[(0,N.jsx)(`colgroup`,{children:Array.from({length:e.length+1},(t,n)=>(0,N.jsx)(`col`,{className:`${n>0&&e[n-1].isRecommended&&`rounded-b-lg border-x-1 border-b-1 border-t-4 border-x-primary-disabled border-b-primary-disabled border-t-on-primary-container bg-surface-muted/25`}`},`${n}-isRecommended`))}),(0,N.jsx)(`thead`,{className:`h-full`,children:(0,N.jsxs)(`tr`,{className:`h-full`,children:[(0,N.jsxs)(`th`,{className:`p-6 align-baseline`,children:[(0,N.jsx)(h,{size:`sm`,renderAs:`h2`,className:`font-light`,children:(0,N.jsx)(D,{data:o(t?.comparisonHeader?.headline)})}),(0,N.jsx)(`p`,{className:`mt-2`,children:o(t?.comparisonHeader?.description)})]}),e?.map(({id:e,type:t,name:n,isRecommended:s,formattedAmount:c,discountedPrice:l,duration:u,cta:f,ctaGtm:p,...m})=>{let h=J(r,t),g=l??c;return(0,N.jsxs)(`th`,{className:`h-40 max-w-40 px-4 py-6`,"aria-label":`${Y(n)}`,tabIndex:-1,id:`${e}-table`,children:[s?(0,N.jsx)(d,{className:`absolute z-[2] -translate-x-1/2 -translate-y-10 justify-center whitespace-nowrap border-none`,label:o(`MOST_POPULAR`)}):void 0,(0,N.jsxs)(`div`,{className:`flex size-full h-full flex-col`,children:[(0,N.jsx)(`p`,{className:`text-sm`,children:Y(n)}),(0,N.jsx)(`p`,{className:`text-nowrap text-2xl text-surface-strong`,children:g}),g?(0,N.jsx)(`div`,{className:`min-h-20 min-w-20 flex-auto text-balance text-sm font-normal xl:min-h-12`,children:(0,N.jsx)(G,{productFootnotes:h,duration:u})}):(0,N.jsx)(`div`,{className:`my-3 min-h-20 flex-auto text-balance text-sm font-normal xl:min-h-12`,children:o(`UAO_CUSTOM_PRICE`)}),(0,N.jsx)(q,{gtm:`aoTable__${p}`,isRecommended:s,isLoggedIn:i,isBlocked:a,className:`w-full min-w-[135px] justify-center whitespace-nowrap p-4`,...m,children:o(f)})]})]},`${e}-table`)})]})}),(0,N.jsx)(`tbody`,{children:t?.tableContent?.map(({id:e,header:t,iconName:n,features:r},i)=>(0,N.jsxs)(L.Fragment,{children:[(0,N.jsxs)(`tr`,{className:`border-b-1 border-b-primary-disabled`,children:[(0,N.jsx)(`th`,{className:y(`items-center p-2 pl-4 text-sm font-semibold`,i!==0&&`pt-10`),"data-gtm":`aoTable__row__${o(t).toLowerCase()}`,"aria-label":`${o(t)}`,children:(0,N.jsxs)(`p`,{className:`flex items-center`,children:[o(t),(0,N.jsx)(`span`,{"aria-hidden":`true`,children:(0,N.jsx)(b,{name:n||`24-square-statistics-plus-color`,className:`ml-2 !h-6 !w-6 text-primary`})})]})}),r?.[0].featureAccess?.map(({accountType:t})=>(0,N.jsx)(`td`,{"aria-hidden":`true`,className:`max-w-40 flex-1 text-center`},`${e}-${t}-empty`))]},`${e}${i}`),r?.map(({name:n,tooltip:r,featureAccess:i},a)=>(0,N.jsxs)(`tr`,{className:`h-10 border-b-1 border-b-primary-disabled`,children:[(0,N.jsxs)(`th`,{className:`flex min-h-10 items-center pl-4 text-sm font-normal`,children:[o(n),(0,N.jsx)(_,{text:o(r.description),placement:`end`,"aria-label":`${o(n)} details`,children:(0,N.jsx)(b,{"data-gtm":`aoTable__tooltip__${o(t).toLowerCase()}--${a}`,name:`16-bold-info-normal`,className:`ml-2 cursor-pointer text-on-primary-disabled`})})]}),i?.map(({accountType:t,value:n,price:r})=>{let i=(()=>
25{if(typeof n==`boolean`)return o(n?`AO_FEATURE_INCLUDED`:`AO_FEATURE_NOT_INCLUDED`)})();return(0,N.jsxs)(`td`,{className:`max-w-40 flex-1 text-center`,children:[i?(0,N.jsx)(`span`,{className:`sr-only`,children:i}):void 0,(0,N.jsx)(Q,{availability:n,price:r,iconsStyles:`min-w-full`})]},`${e}-${t}-marker`)})]},`${e}-${a}-feature`))]},e))})]})})},Ce=({products:e,tableData:t,tabsData:n,footnotes:r,isCountryBlocked:i})=>{let{isLoggedIn:a}=l();return(0,N.jsxs)(`section`,{id:`accountOverview__table`,children:[(0,N.jsx)(Se,{productsData:e,tableData:t,footnotesData:r,isLoggedIn:a,isCountryBlocked:i}),(0,N.jsx)(xe,{productsData:e,tabsData:n,footnotesData:r,isLoggedIn:a,isCountryBlocked:i})]})},$=e=>{let t=f`flex w-full items-center justify-center rounded-full px-6 py-3 text-center text-sm text-on-surface-strong no-underline *:fill-on-surface-strong hover:text-on-surface-strong focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary-focus md:w-auto`;return y(t,e?f`z-10 relative bg-surface font-bold shadow`:f`bg-surface-muted`)},we=()=>{let{t:e}=n();return(0,N.jsx)(`div`,{className:`mx-auto my-8 flex items-center justify-center rounded-full bg-surface p-2 shadow md:w-max`,children:(0,N.jsxs)(`div`,{className:`flex w-full items-center justify-between rounded-full bg-surface-muted md:w-auto`,children:[(0,N.jsxs)(a,{"data-gtm":`pricing__toggle__individuals`,to:s(`/accounts/individuals`),className:({isActive:e})=>$(e),children:[(0,N.jsx)(ue,{width:24,height:24,className:`mr-2 hidden md:inline-block`,"aria-hidden":`true`}),e(`AO_INDIVIDUALS_TOGGLE_TEXT`)]}),(0,N.jsxs)(a,{"data-gtm":`pricing__toggle__business`,to:s(`/accounts/businesses`),className:({isActive:e})=>$(e),children:[(0,N.jsx)(de,{width:24,height:24,className:`mr-2 hidden md:inline-block`,"aria-hidden":`true`}),e(`AO_BUSINESSES_TOGGLE_TEXT`)]})]})})};export{re as a,F as c,ie as i,Ce as n,ne as o,_e as r,I as s,we as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.