1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0c5fb66e-d8b0-54fc-1f14-404a3c7d4dd4")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,184263,e=>{"use strict";var t=e.i(191064),i=e.i(271645),n=e.i(843476),s=(0,i.forwardRef)(({offers:e,offerIcon:i,className:s,style:r,...a},l)=>{let o=1===e.length||void 0===e[1],u=e=>(0,n.jsx)("div",{className:(0,t.cn)("flex w-full flex-1 flex-col text-text-tertiary",o&&"text-start"),children:(0,n.jsxs)("div",{className:"flex flex-col justify-end self-end",children:[(0,n.jsx)("span",{className:"font-heading text-h4 leading-[1.2] font-bold",children:e.title}),(0,n.jsx)("span",{className:"text-sm leading-[1.2]",children:e.subtitle})]})});return(0,n.jsx)("div",{ref:l,className:(0,t.cn)("flex w-full items-center justify-center px-3 py-3",s),style:{background:"linear-gradient(var(--marketing-banner-rotation, 93deg), var(--marketing-banner-color-1) 29.97%, var(--marketing-banner-color-2) 100%)",...r},...a,children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2.5",children:[u(e[0]),(0,n.jsx)("div",{className:"flex shrink-0 grow-0 items-center justify-center text-center",children:i}),e[1]&&u(e[1])]})})});s.displayName="MarketingBanner";var r=(0,i.forwardRef)(({variant:e="single",...t},i)=>"double"===e?(0,n.jsxs)("svg",{ref:i,width:69,height:76,viewBox:"0 0 69 76",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...t,children:[(0,n.jsxs)("g",{filter:"url(#filter0_d_11221_117158)",children:[(0,n.jsx)("path",{d:"M23.7594 23.9215C17.1969 26.8309 13.852 28.4504 12.6498 31.5583C11.4477 34.6663 12.8323 38.1151 15.7289 44.6832L23.3762 41.3018C22.5282 40.861 21.7642 40.2367 21.148 39.4448C18.8286 36.4644 20.5217 32.087 24.2431 31.443C25.2317 31.272 26.217 31.3242 27.1408 31.5688L23.7594 23.9215Z",fill:"url(#paint0_linear_11221_117158)",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M16.7612 47.0178C19.6706 53.5802 21.2901 56.9252 24.398 58.1273C27.506 59.3294 30.9548 57.9449 37.5229 55.0483L32.1026 42.7901C31.9609 45.7503 30.1904 48.5224 27.2955 49.8025C26.6508 50.0875 25.8971 49.796 25.612 49.1513C25.327 48.5067 25.6185 47.753 26.2632 47.4679C28.655 46.4103 29.925 43.864 29.4656 41.4002L16.7612 47.0178Z",fill:"url(#paint1_linear_11221_117158)",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M39.8575 54.016C46.4199 51.1066 49.7649 49.4871 50.967 46.3791C52.1691 43.2712 50.7846 39.8224 47.8879 33.2543L35.1836 38.8718C36.6969 40.8696 39.4351 41.6436 41.8269 40.586C42.4716 40.3009 43.2253 40.5925 43.5103 41.2371C43.7954 41.8818 43.5039 42.6355 42.8592 42.9206C39.9643 44.2006 36.7223 43.6449 34.4372 41.7578L39.8575 54.016Z",fill:"url(#paint2_linear_11221_117158)",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M46.8557 30.9197C43.9462 24.3572 42.3268 21.0123 39.2188 19.8102C36.1109 18.608 32.6621 19.9926 26.0939 22.8892L29.4754 30.5365C29.9162 29.6885 30.5405 28.9245 31.3323 28.3083C34.3128 25.9889 38.6902 27.6821 39.3341 31.4034C39.5052 32.392 39.4529 33.3773 39.2084 34.3011L46.8557 30.9197Z",fill:"url(#paint3_linear_11221_117158)",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M24.6783 33.9583C26.5995 33.6258 28.5004 34.6435 29.2889 36.4267L30.125 38.3176L28.2341 39.1537C26.4509 39.9422 24.3599 39.4159 23.1625 37.8772C22.0266 36.4175 22.8558 34.2736 24.6783 33.9583Z",fill:"url(#paint4_linear_11221_117158)",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M31.6235 35.3944L32.4596 37.2853L34.3504 36.4492C36.1336 35.6607 37.1513 33.7598 36.8189 31.8386C36.5035 30.0161 34.3597 29.1869 32.9 30.3228C31.3613 31.5203 30.835 33.6112 31.6235 35.3944Z",fill:"url(#paint5_linear_11221_117158)",shapeRendering:"crispEdges"})]}),(0,n.jsx)("path",{d:"M7 43L7.98995 49.0101L14 50L7.98995 50.9899L7 57L6.01005 50.9899L0 50L6.01005 49.0101L7 43Z",fill:"url(#paint6_linear_11221_117158)"}),(0,n.jsx)("path",{d:"M59 19L60.4142 27.1565L69 28.5L60.4142 29.8435L59 38L57.5858 29.8435L49 28.5L57.5858 27.1565L59 19Z",fill:"url(#paint7_linear_11221_117158)"}),(0,n.jsx)("path",{d:"M4 27L4.56569 30.8636L8 31.5L4.56569 32.1364L4 36L3.43431 32.1364L0 31.5L3.43431 30.8636L4 27Z",fill:"url(#paint8_linear_11221_117158)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:"filter0_d_11221_117158",x:"2.2168",y:"19.3765",width:"59.1836",height:"59.1846",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,n.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
2dImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"10"}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_11221_117158"}),(0,n.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_11221_117158",result:"shape"})]}),(0,n.jsxs)("linearGradient",{id:"paint0_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint2_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint3_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint4_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint5_linear_11221_117158",x1:"24.9267",y1:"23.4054",x2:"38.6902",y2:"54.5321",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"})]}),(0,n.jsxs)("linearGradient",{id:"paint6_linear_11221_117158",x1:"7",y1:"43",x2:"7",y2:"57",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]}),(0,n.jsxs)("linearGradient",{id:"paint7_linear_11221_117158",x1:"59",y1:"19",x2:"59",y2:"38",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]}),(0,n.jsxs)("linearGradient",{id:"paint8_linear_11221_117158",x1:"4",y1:"27",x2:"4",y2:"36",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]})]})]}):(0,n.jsxs)("svg",{ref:i,width:136,height:68,viewBox:"0 0 136 68",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...t,children:[(0,n.jsx)("mask",{id:"mask0_3367_16781",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"136",height:"68",children:(0,n.jsx)("path",{d:"M0.5 0H135.5V68H0.5V0Z",fill:"#8755F4"})}),(0,n.jsxs)("g",{mask:"url(#mask0_3367_16781)",children:[(0,n.jsx)("ellipse",{cx:"75.5",cy:"68.4615",rx:"60",ry:"58.4615",fill:"url(#paint0_linear_3367_16781)",fillOpacity:"0.5"}),(0,n.jsx)("path",{d:"M112.5 34.875L115.894 54.9525L136.5 58.2596L115.894 61.5667L112.5 81.6442L109.106 61.5667L88.5 58.2596L109.106 54.9525L112.5 34.875Z",fill:"url(#paint1_linear_3367_16781)",fillOpacity:"0.6"}),(0,n.jsxs)("g",{filter:"url(#filter0_dii_3367_16781)",children:[(0,n.jsx)("path",{d:"M59.0584 9.20182C48.3184 12.8717 42.8267 14.9525 40.533 19.5899C38.2393 24.2273 39.9904 29.7091 43.7359 40.1809L56.2503 35.9181C54.966 35.1347 53.8377 34.0789 52.9642 32.7836C49.6763 27.9076 52.9069 21.376 58.8697 20.8438C60.4538 20.7025 62.0043 20.9046 63.4334 21.3953L59.0584 9.20182Z",fill:"url(#paint2_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M45.0715 43.9033C48.8379 54.368 50.9735 59.7188 55.733 61.9537C60.4924 64.1886 66.1185 62.4824 76.8658 58.8329L69.853 39.2875C69.2539 43.8283 66.1044 47.8785 61.3671 49.4922C60.3121 49.8516 59.1579 49.3096 58.7891 48.2817C58.4203 47.2537 58.9765 46.1291 60.0315 45.7698C63.9456 44.4365 66.2754 40.6724 65.8615 36.8216L45.0715 43.9033Z",fill:"url(#paint3_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M80.6862 57.5316C91.4263 53.8617 96.9179 51.781 99.2116 47.1435C101.505 42.5061 99.7542 37.0243 96.0087 26.5525L75.2187 33.6342C77.3573 36.8975 81.5866 38.4274 85.5007 37.0942C86.5557 36.7348 87.7099 37.2768 88.0787 38.3047C88.4475 39.3326 87.8913 40.4572 86.8363 40.8166C82.0989 42.4303 77.0456 41.1742 73.6734 37.9861L80.6862 57.5316Z",fill:"url(#paint4_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M94.6731 22.8301C90.9067 12.3654 88.7712 7.
201459 84.0117 4.7797C79.2522 2.5448 73.6262 4.25103 62.8788 7.90048L67.2538 20.0939C68.0578 18.8426 69.1413 17.7432 70.4708 16.8921C75.4751 13.6885 82.1786 16.8363 82.7247 22.6462C82.8698 24.1897 82.6623 25.7005 82.1588 27.0929L94.6731 22.8301Z",fill:"url(#paint5_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M59.2388 24.7708C62.3172 24.496 65.1924 26.2979 66.2126 29.1412L67.2943 32.1562L64.2 33.2102C61.2819 34.2042 58.044 33.1355 56.3466 30.6182C54.7363 28.2302 56.3185 25.0314 59.2388 24.7708Z",fill:"url(#paint6_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"}),(0,n.jsx)("path",{d:"M70.033 27.8399L71.1147 30.8548L74.209 29.8008C77.1271 28.8068 78.9764 26.0053 78.6945 23.0058C78.427 20.1604 75.144 18.6188 72.6931 20.1878C70.1096 21.8417 69.0128 24.9966 70.033 27.8399Z",fill:"url(#paint7_linear_3367_16781)",fillOpacity:"0.8",shapeRendering:"crispEdges"})]}),(0,n.jsx)("path",{d:"M107.5 1.82422L108.207 6.00704L112.5 6.69601L108.207 7.38499L107.5 11.5678L106.793 7.38499L102.5 6.69601L106.793 6.00704L107.5 1.82422Z",fill:"url(#paint8_linear_3367_16781)",fillOpacity:"0.5"}),(0,n.jsx)("path",{d:"M28.5 40.7969L29.7728 48.3259L37.5 49.5661L29.7728 50.8063L28.5 58.3353L27.2272 50.8063L19.5 49.5661L27.2272 48.3259L28.5 40.7969Z",fill:"url(#paint9_linear_3367_16781)"}),(0,n.jsx)("path",{d:"M24 0.847656L25.9092 12.1413L37.5 14.0015L25.9092 15.8617L24 27.1553L22.0908 15.8617L10.5 14.0015L22.0908 12.1413L24 0.847656Z",fill:"url(#paint10_linear_3367_16781)"})]}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:"filter0_dii_3367_16781",x:"14.5049",y:"-6.22266",width:"110.735",height:"109.178",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,n.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"15"}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"12.5"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3367_16781"}),(0,n.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3367_16781",result:"shape"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow_3367_16781"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"3"}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"effect2_innerShadow_3367_16781",result:"effect3_innerShadow_3367_16781"})]}),(0,n.jsxs)("linearGradient",{id:"paint0_linear_3367_16781",x1:"75.5",y1:"10",x2:"75.5",y2:"56.2821",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_3367_16781",x1:"112.5",y1:"34.875",x2:"112.5",y2:"81.6442",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]}),(0,n.jsxs)("linearGradient",{id:"paint2_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint3_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint4_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint5_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint6_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint7_linear_3367_16781",x1:"60.9686",y1:"8.55115",x2:"77.9683",y2:"58.4574",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"paint8_linear_3367_16781",x1:"107.5",y1:"1.82422",x2:"107.5",y2:"11.5678",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]}),(0,n.jsxs)("linearGradient",{id:"paint9_linear_3367_16781",x1:"28.5",y1:"40.7969",x2:"28.5",y2:"58.3353",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]}),(0,n.jsxs)("linearGradient",{id:"paint10_linear_3367_16781",x1:"24",y1:"0.847656",x2:"24",y2:"27.1553",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"white"}),(0,n.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.18"})]})]})]}));r.displayName="MarketingBannerIcon",e.s(["MarketingBanner",0,s,"MarketingBannerIcon",0,r])},393397,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(618566),s=e.i(861745),r=e.i(948148),a=e.i(184263),l=e.i(619273),o=e.i(266027),u=e.i(343794),d=e.i(743310),c=e.i(557951),p=e.i(262765),f=e.i(766610),h=e.i(359222);
2e.s(["CmsPromoBanner",0,function({content:e,subtitle:x,overlay:g=!1}){let C=(0,r.useTranslations)("topBanner"),m=(0,s.useLocale)(),{user:_}=(0,c.useAuth)(),{anonymousUser:y}=(0,d.useAnonymousUser)(),{config:j}=(0,p.useDynamicConfig)(),b=!!(0,n.useSearchParams)().get("promo"),L=b&&!_,[v,w]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!L)return;let e=window.setTimeout(()=>{w(!0)},3e3);return()=>window.clearTimeout(e)},[L]);let{status:S}=(0,o.useQuery)({queryKey:f.queryKeys.welcome.promoCodes(m),queryFn:l.skipToken}),O=_?_.bonusInfos:y?.bonusInfos??j?.bonusInfos,A=b?O?.length?O[0]:void 0:void 0,k=L&&"pending"===S&&!v,I=(0,t.jsxs)(t.Fragment,{children:[C("enjoyFreeMinutes.line1",{count:(0,h.getXfmFreeSetupMin)(j?.xfmAdditionalFreeSetupTime)}),(0,t.jsx)("br",{}),C("enjoyFreeMinutes.line2",{count:(0,h.getXfmDefaultMinutes)(j?.defaultxfmCredits)})]}),R={title:e?(0,t.jsx)(t.Fragment,{children:e}):I,subtitle:x??""},M=[R];k?M=[{title:(0,t.jsx)("span",{className:"block h-6 w-56 max-w-full animate-pulse rounded bg-white/40"}),subtitle:""}]:A&&(M=[{title:A.specialOffer??"",subtitle:A.bonusText??""},R]);let U=M.length>1;return(0,t.jsx)("div",{className:(0,u.default)("flex w-full",{"absolute inset-x-0 top-16 z-10":g}),"aria-busy":k,children:(0,t.jsx)(a.MarketingBanner,{offers:M,offerIcon:(0,t.jsx)(a.MarketingBannerIcon,{variant:U?"double":"single"})})})}])},358308,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(948148),s=e.i(184263),r=e.i(343794),a=e.i(743310),l=e.i(557951),o=e.i(262765),u=e.i(954091);let d={bonusInfo:null,xfm:null,bonusPending:!1};e.s(["TopBanner",0,function({overlay:e=!1,shouldShowMarketingBanner:c=!0,xfmFreeSetupMin:p=3,xfmDefaultMinutes:f=3,xfmActive:h=!1,isPrerenderMode:x=!1,bonusInfos:g,userBonusInfos:C,userXfmProgram:m,initialState:_=null}){let y=(0,n.useTranslations)("topBanner"),{user:j}=(0,l.useAuth)(),{anonymousUser:b,anonymousUserUnavailable:L}=(0,a.useAnonymousUser)(),{config:v,isLoaded:w}=(0,o.useDynamicConfig)(),S=(0,i.useSyncExternalStore)(u.subscribeWasLoggedIn,u.getWasLoggedIn,u.getServerWasLoggedIn),O=j?.id,A=j?.bonusInfos,k=b?.bonusInfos,I=v?.bonusInfos,R=j?.xfmProgram,M=(0,i.useMemo)(()=>{let e=C??A??[],t=g??k??I??[],i=m??R??null;return function({isLoggedIn:e,bonusInfos:t,userXfmCredits:i,wasLoggedIn:n=!1,xfmActive:s,xfmFreeSetupMin:r,xfmDefaultMinutes:a}){let l=t.length?t[0]:null;if(!(e?!!(i&&i>0):!n&&s&&a>0))return{bonusInfo:l,xfm:null,bonusPending:!1};let o=i??a;return{bonusInfo:l,bonusPending:!1,xfm:{advisorsCount:o,minutesCount:r,isFirstReading:o===a}}}({isLoggedIn:!!O,bonusInfos:O?e:t,userXfmCredits:i?.credits??null,wasLoggedIn:S,xfmActive:h,xfmFreeSetupMin:p,xfmDefaultMinutes:f})},[O,C,A,g,k,I,m,R,S,h,f,p]),U=!!O||w,E=!!O||!!b||L||!!I?.length,P=(0,i.useMemo)(()=>{let e=_??d;return{bonusInfo:E?M.bonusInfo:e.bonusInfo,bonusPending:!E&&e.bonusPending,xfm:U?M.xfm:e.xfm}},[_,M,E,U]),B=(0,i.useMemo)(()=>{if(!c)return[];let e=[];
2if(P.bonusInfo?e.push({title:P.bonusInfo.specialOffer??"",subtitle:P.bonusInfo.bonusText??""}):P.bonusPending&&e.push({title:"",subtitle:""}),P.xfm){let{advisorsCount:i,minutesCount:n,isFirstReading:s}=P.xfm;e.push({title:1===i&&s?(0,t.jsxs)(t.Fragment,{children:[y("enjoyFreeMinutes.firstReadingLine1",{count:n}),(0,t.jsx)("br",{}),y("enjoyFreeMinutes.firstReadingLine2",{count:n})]}):(0,t.jsxs)(t.Fragment,{children:[y("enjoyFreeMinutes.line1",{count:n}),(0,t.jsx)("br",{}),y("enjoyFreeMinutes.line2",{count:i})]}),subtitle:""})}return e},[c,P,y]);if(x||!c||!function({bonusInfo:e,xfm:t,bonusPending:i}){return!!(e||t||i)}(P))return null;let T=P.bonusPending&&!P.bonusInfo,N=B.length>1?[B[0],B[1]]:[B[0]],F=B.length>1;return(0,t.jsx)("div",{"aria-busy":T||void 0,className:(0,r.default)("flex w-full",{"absolute inset-x-0 top-16 z-10":e}),children:(0,t.jsx)(s.MarketingBanner,{offers:N,offerIcon:(0,t.jsx)(s.MarketingBannerIcon,{variant:F?"double":"single"})})})}],358308)},356813,e=>{"use strict";var t=e.i(843476),i=e.i(262765),n=e.i(614537),s=e.i(496353),r=e.i(109599);let a=/^\/[^/]+$/,l=new Set(s.features.localeConfig.locales);function o(e){let t=e.split("/");if(t.length>=2&&l.has(t[1])){let e=t.slice(2).join("/");return e?`/${e}`:"/"}return e}let u=new Set(["psychics","favoriteAdvisors","myActivity"]);function*d(){let{locales:e}=s.features.localeConfig;for(let[t,i]of Object.entries(s.features.appLinks))if(i)for(let n of e){let e=(0,s.resolveAppLink)(i,n);!e||e.startsWith("http")||(yield[t,(0,r.normalizeRoutePath)(e)])}}!function(){let e=new Set,{locales:t}=s.features.localeConfig,i=new Set;for(let e of u){let n=s.features.appLinks[e];if(n)for(let e of t){let t=(0,s.resolveAppLink)(n,e);t&&i.add((0,r.normalizeRoutePath)(o(t)))}}for(let[t,n]of d()){if(u.has(t))continue;let s=(0,r.normalizeRoutePath)(o(n));a.test(s)&&!i.has(s)&&e.add(s)}}();let c=["/notification_preferences","/blocked_advisors","/change_password","/phone_update","/signin","/signin_phone","/register"],p=function(){let e=new Set(c),t=t=>{let i=(0,r.normalizeRoutePath)(o(t));a.test(i)&&e.add(i)};for(let[,e]of d())t(e);for(let e of function*(){for(let[e,t]of Object.entries(s.features.localizedRoutes))if(!e.includes("["))for(let i of(yield(0,r.normalizeRoutePath)(e),"string"==typeof t?[t]:Object.values(t??{})))i&&(yield(0,r.normalizeRoutePath)(i))}())t(e);return e}(),f=function(){let e=new Set,{locales:t}=s.features.localeConfig,i=s.features.appLinks.psychics;if(i)for(let n of t){let t=(0,s.resolveAppLink)(i,n);t&&e.add(`${(0,r.normalizeRoutePath)(t)}/`)}return[...e]}();var h=e.i(359222),x=e.i(358308);e.s(["TopBannerSlot",0,function({initialState:e=null}){let s,l=(0,n.usePathname)(),{config:u}=(0,i.useDynamicConfig)();return""===(s=(0,r.normalizeRoutePath)(o(l)))||"/"===s||f.some(e=>s.startsWith(e))||a.test(s)&&!p.has(s)?(0,t.jsx)(x.TopBanner,{shouldShowMarketingBanner:!0,initialState:e,xfmActive:(0,h.isXfmActive)(u?.xfmProgramActive),xfmFreeSetupMin:(0,h.getXfmFreeSetupMin)(u?.xfmAdditionalFreeSetupTime),xfmDefaultMinutes:(0,h.getXfmDefaultMinutes)(u?.defaultxfmCredits)}):null}],356813)},605791,e=>{"use strict";var t=e.i(979566),i=e.i(834176);let n="advisor_profile_attribution",s="direct",r=null,a=null,l=null,o={},u=null,d=new Set;function c(e){return"string"==typeof e&&e?e:void 0}function p(e){return(e.split("?")[0]??"").split("/").filter(Boolean).at(-1)??""}function f(){try{window.sessionStorage.removeItem(n)}catch{}}let h=new Set(["brand device id","kueez user id","active advisor discount","days since signup","days since first purchase","days since last live session","days since fbm","days since first visit"]);e.s(["DEFAULT_CLICK_SOURCE",0,s,"getAdvisorProfileAnalytics",0,function(){return 0===Object.keys(o).filter(e=>h.has(e)).length?o:Object.fromEntries(Object.entries(o).filter(([e])=>!h.has(e)))},"getAdvisorProfileClickSource",0,function(){return a??s},"getAdvisorProfileSection",0,function(){return r},"getAdvisorProfileSectionSlug",0,function(){return l},"primeAdvisorProfileAttribution",0,function(e){let t=null;try{t=window.sessionStorage.getItem(n)}catch{}let s=null;if(null!==t)try{s=JSON.parse(t)}catch{s=null}let c=null!==s&&s.slug===p(e)&&s.tabId===i.ATTRIBUTION_TAB_ID?s:null;
2if(u!==e||null!==c)for(let i of(u=e,null!==t&&f(),r=c?.section??null,a=c?.clickSource??null,l=c?.sectionSlug??null,o=c?.analytics??{},d))i()},"setAdvisorProfileAttribution",0,function({href:e,section:s,clickSource:r,sectionSlug:a,analytics:l}){let o=c(s),u=c(r)?.toLowerCase(),d=c(a),h=(0,t.isPlainObject)(l)&&Object.keys(l).length>0?l:void 0;if(!o&&!u&&!d&&!h)return void f();let x={slug:p(e),tabId:i.ATTRIBUTION_TAB_ID,...o?{section:o}:{},...u?{clickSource:u}:{},...d?{sectionSlug:d}:{},...h?{analytics:h}:{}};try{window.sessionStorage.setItem(n,JSON.stringify(x))}catch{}},"subscribeAdvisorProfileAttribution",0,function(e){return d.add(e),()=>{d.delete(e)}}])},849788,e=>{"use strict";e.s(["ADVISOR_PROFILE_LINK_PREFETCH",0,!1])},404533,e=>{"use strict";e.s(["ANALYTICS_PROPERTIES",0,{CLICK_SOURCE:"click source"},"CLICK_SOURCE",0,{AI_SEARCH_ADVISOR_NAME:"ai search advisor name",AI_SEARCH_NO_MATCHES:"ai search no matches",AI_SEARCH_ADVISOR_MATCH:"ai search advisor match",SEARCHBAR_AUTOCOMPLETE:"searchbar autocomplete",BUSY_CAROUSEL:"busy carousel",ADVISOR_PROFILE:"advisor profile",HOME_PAGE:"homepage",ADVISORS_LIST:"advisors list",MENU:"menu"}])},54693,e=>{"use strict";var t=e.i(843476),i=e.i(614537),n=e.i(605791),s=e.i(849788);e.s(["AdvisorAttributionLink",0,function({href:e,clickSource:r,section:a,className:l,"data-testid":o,onClick:u,children:d}){return(0,t.jsx)(i.Link,{href:e,prefetch:s.ADVISOR_PROFILE_LINK_PREFETCH,className:l,onClick:()=>{(0,n.setAdvisorProfileAttribution)({href:e,clickSource:r,section:a}),u?.()},children:d})}])},203617,659435,e=>{"use strict";var t=e.i(843476);e.s(["AiSearch",0,function(e){return(0,t.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75867 27.2473C1.30577 27.422 0.83512 27.5594 0.350097 27.6561C0.314487 27.6632 0.2788 27.6701 0.243033 27.6767C-0.0810109 27.7371 -0.0810109 28.222 0.243033 28.2824C0.2788 28.289 0.314487 28.2959 0.350097 28.303C0.83512 28.3997 1.30577 28.5371 1.75867 28.7118C2.02972 28.8164 2.29441 28.9342 2.55202 29.0647C4.33604 29.9683 5.78083 31.4758 6.64686 33.3372C6.77189 33.606 6.88489 33.8822 6.98506 34.165C7.15248 34.6376 7.2842 35.1286 7.37687 35.6347C7.38365 35.6719 7.39023 35.7091 7.39663 35.7464C7.45445 36.0845 7.91926 36.0845 7.97707 35.7464C7.98347 35.7091 7.99006 35.6719 7.99684 35.6347C8.0895 35.1286 8.22122 34.6376 8.38865 34.165C8.48886 33.8822 8.60181 33.606 8.72689 33.3372C9.59287 31.4758 11.0377 29.9683 12.8217 29.0647C13.0793 28.9342 13.344 28.8164 13.615 28.7118C14.0679 28.5371 14.5386 28.3997 15.0236 28.303C15.0592 28.2959 15.0949 28.289 15.1307 28.2824C15.4547 28.222 15.4547 27.7371 15.1307 27.6767C15.0949 27.6701 15.0592 27.6632 15.0236 27.6561C14.5386 27.5594 14.0679 27.422 13.615 27.2473C13.344 27.1427 13.0793 27.0249 12.8217 26.8944C11.0377 25.9908 9.59287 24.4833 8.72689 22.6219C8.60181 22.3531 8.48886 22.0769 8.38865 21.7941C8.22122 21.3215 8.0895 20.8305 7.99684 20.3244C7.99006 20.2873 7.98347 20.25 7.97707 20.2127C7.91926 19.8746 7.45445 19.8746 7.39663 20.2127C7.39023 20.25 7.38365 20.2873 7.37687 20.3244C7.2842 20.8305 7.15248 21.3215 6.98506 21.7941C6.88489 22.0769 6.77189 22.3531 6.64686 22.6219C5.78083 24.4833 4.33604 25.9908 2.55202 26.8944C2.29441 27.0249 2.02972 27.1427 1.75867 27.2473ZM12.5867 15.2329C12.2699 15.322 11.9488 15.4002 11.6235 15.467C11.5727 15.4774 11.5218 15.4876 11.4708 15.4975L11.4554 15.5005L11.4344 15.5045C11.4023 15.5106 11.3669 15.5172 11.2963 15.5304L11.2716 15.535C10.7534 15.6373 10.7534 16.4116 11.2716 16.5139L11.2963 16.5185C11.3669 16.5317 11.4023 16.5382 11.4344 16.5444L11.4554 16.5484L11.4708 16.5513C11.5218 16.5613 11.5727 16.5714 11.6235 16.5818C11.9487 16.6487 12.2699 16.7268 12.5867 16.8159C12.8572 16.892 13.1246 16.9761 13.3885 17.0678C17.6583 18.5529 21.0182 22.0586 22.4415 26.5137C22.5294 26.789 22.61 27.068 22.6829 27.3503C22.7683 27.6808 22.8432 28.0159 22.9072 28.3552C22.9172 28.4082 22.927 28.4613 22.9365 28.5146L22.9393 28.5307L22.9431 28.5525C22.949 28.5857 22.9552 28.6221 22.9675 28.6942L22.968 28.6967L22.9724 28.7224C23.0704 29.2631 23.8125 29.2631 23.9106 28.7224L23.915 28.6967C23.9276 28.6229 23.9339 28.5861 23.9398 28.5525L23.9436 28.5307L23.9465 28.5146C23.956 28.4613 23.9657 28.4082 23.9757 28.3552C24.0398 28.0159 24.1147 27.6808 24.2 27.3503C24.2729 27.068 24.3535 26.789 24.4415 26.5137C25.8648 22.0586 29.2246 18.5529 33.4944 17.0678C33.7583 16.9761 34.0257 16.892 34.2963 16.8159C34.613 16.7268 34.9342 16.6487 35.2594 16.5818C35.3102 16.5714 35.3611 16.5613 35.4121 16.5513
2L35.4276 16.5484L35.4485 16.5444C35.4807 16.5382 35.516 16.5317 35.5866 16.5185L35.6113 16.5139C36.1296 16.4116 36.1296 15.6373 35.6113 15.535L35.5866 15.5304L35.5119 15.5164L35.4485 15.5045L35.4276 15.5005L35.4121 15.4975C35.3611 15.4876 35.3102 15.4774 35.2594 15.467C34.9342 15.4002 34.613 15.322 34.2963 15.2329C34.0257 15.1569 33.7583 15.0728 33.4944 14.981C29.2246 13.496 25.8648 9.99027 24.4415 5.53519C24.3535 5.25982 24.2729 4.98087 24.2 4.69853C24.1147 4.36807 24.0398 4.03293 23.9757 3.6936C23.9657 3.6406 23.956 3.5875 23.9465 3.5343L23.9436 3.51816L23.9398 3.49634L23.9312 3.44723L23.9155 3.35502L23.9106 3.32643C23.8125 2.78571 23.0704 2.78571 22.9724 3.32643L22.968 3.35218C22.9554 3.42576 22.949 3.46282 22.9431 3.49634L22.9393 3.51816L22.9365 3.5343C22.927 3.5875 22.9172 3.6406 22.9072 3.6936C22.8432 4.03298 22.7683 4.36807 22.6829 4.69853C22.61 4.98087 22.5294 5.25982 22.4415 5.53519C21.0182 9.99027 17.6583 13.496 13.3885 14.981C13.1246 15.0728 12.8572 15.1569 12.5867 15.2329ZM5.4402 4.86127C5.98488 4.75273 6.50082 4.56274 6.97613 4.30386C7.18757 4.18869 7.39095 4.05993 7.58521 3.91856C8.12655 3.52479 8.59723 3.03363 8.97467 2.46885C9.11011 2.26611 9.23357 2.05391 9.3439 1.83333C9.59206 1.33739 9.7741 0.799015 9.87813 0.230698C9.88242 0.207237 9.88663 0.183723 9.89064 0.16016C9.92716 -0.0533867 10.2207 -0.0533867 10.2572 0.16016C10.2613 0.183723 10.2654 0.207237 10.2697 0.230698C10.3738 0.799015 10.5558 1.33739 10.8039 1.83333C10.9143 2.05391 11.0378 2.26611 11.1732 2.46885C11.5506 3.03363 12.0213 3.52479 12.5627 3.91856C12.7569 4.05993 12.9603 4.18869 13.1717 4.30386C13.6471 4.56274 14.163 4.75273 14.7077 4.86127C14.7302 4.86575 14.7527 4.87008 14.7753 4.87432C14.9799 4.91238 14.9799 5.21873 14.7753 5.25679C14.7527 5.26102 14.7302 5.26535 14.7077 5.26984C14.163 5.37838 13.6471 5.56837 13.1717 5.82724C12.9603 5.94241 12.7569 6.07118 12.5627 6.21255C12.0213 6.60632 11.5506 7.09748 11.1732 7.66226C11.0378 7.865 10.9143 8.0772 10.8039 8.29777C10.5558 8.79371 10.3738 9.33209 10.2697 9.90041C10.2654 9.92387 10.2613 9.94738 10.2572 9.97094C10.2207 10.1845 9.92716 10.1845 9.89064 9.97094C9.88663 9.94738 9.88242 9.92387 9.87813 9.90041C9.7741 9.33209 9.59206 8.79371 9.3439 8.29777C9.23357 8.0772 9.11011 7.865 8.97467 7.66226C8.59723 7.09748 8.12655 6.60632 7.58521 6.21255C7.39095 6.07118 7.18757 5.94241 6.97613 5.82724C6.50082 5.56837 5.98488 5.37838 5.4402 5.26984C5.41771 5.26535 5.39518 5.26102 5.37255 5.25679C5.16793 5.21873 5.16793 4.91238 5.37255 4.87432C5.39518 4.87008 5.41771 4.86575 5.4402 4.86127Z",fill:"url(#paint0_linear_14147_111528)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_14147_111528",x1:"18",y1:"0",x2:"18",y2:"36",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#6C84FF"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#7BD137"})]})})]})}],203617);var i=e.i(271645),n=e.i(657688),s=e.i(54693);e.i(659619);var r=e.i(404533);function a(e,t){if(!e||!t)return null;let i=e.toLowerCase(),n=t.toLowerCase(),s=i.length,r=n.length,a=[s,s-1,s+1].filter(e=>e>0),l=null;for(let e=0;e<r;e++)for(let t of a){if(e+t>r)continue;let s=function(e,t){let i=e.length,n=t.length;if(0===i)return n;if(0===n)return i;let s=[];for(let e=0;e<=n;e++)s[e]=[e];for(let e=0;e<=i;e++)s[0][e]=e;for(let r=1;r<=n;r++)for(let n=1;n<=i;n++)t[r-1]===e[n-1]?s[r][n]=s[r-1][n-1]:s[r][n]=Math.min(s[r-1][n-1]+1,s[r][n-1]+1,s[r-1][n]+1);return s[n][i]}(i,n.substring(e,e+t));!(s>1)&&(!l||s<l.distance||s===l.distance&&e<l.start)&&(l={start:e,end:e+t,distance:s})}return l?{positions:Array.from({length:l.end-l.start},(e,t)=>l.start+t),distance:l.distance}:null}e.s(["Autocomplete",0,function({query:e,advisors:l,className:o}){let u=(0,i.useMemo)(()=>e?.trim()||"",[e]),[d,c]=(0,i.useState)(e?.trim()||""),p=d!==u,f=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&c(u)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);let h=(0,i.useMemo)(()=>u?l.map(e=>{let t=a(u,e.nickname);return t?{...e,matchIndex:t.positions[0],matchDistance:t.distance}:null}).filter(e=>null!==e).toSorted((e,t)=>
2e.matchDistance!==t.matchDistance?e.matchDistance-t.matchDistance:e.matchIndex-t.matchIndex).slice(0,5):[],[u,l]),x=(0,i.useCallback)(()=>{c(u)},[u]);if(!u||!p||0===h.length)return null;let g=`absolute left-0 w-full bg-bg-primary border border-border-primary rounded-lg py-4 flex flex-col z-50 shadow-lg ${o??""}`.trim();return(0,t.jsx)("div",{ref:f,className:g,children:h.map(e=>(0,t.jsxs)(s.AdvisorAttributionLink,{href:e.slug,clickSource:r.CLICK_SOURCE.SEARCHBAR_AUTOCOMPLETE,className:"flex items-center px-4 py-1.5 hover:bg-bg-secondary transition-colors no-underline",onClick:x,children:[e.profilePictureUrl&&(0,t.jsx)(n.default,{src:e.profilePictureUrl,alt:e.nickname,width:40,height:40,className:"rounded-[8px] object-cover mr-3 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 font-body text-lg leading-snug text-text-primary [&>strong]:font-bold [&>strong]:text-brand-primary",children:function(e,t){if(!t||!e)return e;let n=a(t,e);if(!n||0===n.positions.length)return e;let s=n.positions[0],r=n.positions[n.positions.length-1]+1,l=[];return s>0&&l.push(e.substring(0,s)),l.push((0,i.createElement)("strong",{key:s},e.substring(s,r))),r<e.length&&l.push(e.substring(r)),l}(e.nickname,u)})]},e.slug))})}],659435)},448541,433e3,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(948148),s=e.i(82800),r=e.i(191064),a=(0,s.cva)(["w-full rounded-input font-body","border transition-colors resize-none","placeholder:text-input-placeholder","focus:outline-none focus:ring-0","disabled:cursor-not-allowed"],{variants:{variant:{default:["border-input-border","focus:border-input-border-focus"],error:["border-input-border-error","focus:border-input-border-error"]},size:{sm:"px-3 py-2 text-field-sm min-h-[80px]",md:"px-4 py-3 text-field-md min-h-[120px]",lg:"px-4 py-3 text-field-lg min-h-[160px]"}},defaultVariants:{variant:"default",size:"md"}}),l=(0,i.forwardRef)(({className:e,variant:i,size:n,error:s,disabled:l,style:o,...u},d)=>{let c={backgroundColor:l?"var(--color-input-disabled-bg)":"var(--color-input-bg)",color:l?"var(--color-input-disabled-text)":"var(--color-input-text)",...o};return(0,t.jsx)("textarea",{ref:d,disabled:l,className:(0,r.cn)(a({variant:s?"error":i,size:n}),e),style:c,...u})});l.displayName="Textarea",e.s(["Textarea",0,l],433e3);var o={typeSpeed:60,deleteSpeed:40,pauseDuration:2500,transitionDelay:400},u={sm:{padding:"p-3",inset:"bottom-3 right-3",placeholderInset:"top-3 right-3 left-3",iconInset:"top-3 left-3",leadingPad:"pl-8"},md:{padding:"p-4",inset:"bottom-4 right-4",placeholderInset:"top-4 right-4 left-4",iconInset:"top-4 left-4",leadingPad:"pl-9"},lg:{padding:"p-4",inset:"bottom-4 right-4",placeholderInset:"top-4 right-4 left-4",iconInset:"top-4 left-4",leadingPad:"pl-9"}},d=(0,i.forwardRef)(({className:e,style:n,onSubmit:s,disabled:a,error:d,errorMessage:c,size:p,placeholder:f,placeholderPrefix:h,placeholderPhrases:x,typewriterOptions:g,searchLabel:C,iconLeft:m,value:_,defaultValue:y,onChange:j,...b},L)=>{let v=u[p??"md"],[w,S]=(0,i.useState)(()=>null!=_&&String(_).length>0||null!=y&&String(y).length>0),O=(0,i.useRef)(null),A=(0,i.useCallback)(e=>{O.current=e,"function"==typeof L?L(e):L&&(L.current=e)},[L]);(0,i.useLayoutEffect)(()=>{if(null!=_)return;let e=()=>{(O.current?.value??"").length>0&&S(!0)};e();let t=requestAnimationFrame(e);return window.addEventListener("pageshow",e),()=>{cancelAnimationFrame(t),window.removeEventListener("pageshow",e)}},[_]);let k=null!=_?String(_).length>0:w,I=function(e,t){let n={...o,...t},s=t?.paused??!1,[r,a]=(0,i.useState)(""),[l,u]=(0,i.useState)(0),[d,c]=(0,i.useState)("typing"),p=(0,i.useRef)(void 0),f=(0,i.useCallback)(()=>{p.current&&clearTimeout(p.current)},[]);return(0,i.useEffect)(()=>{if(s){f(),a(""),u(0),c("typing");return}if(0===e.length)return;let t=e[l%e.length];switch(d){case"typing":r.length<t.length?p.current=setTimeout(()=>{a(t.slice(0,r.length+1))},n.typeSpeed):p.current=setTimeout(()=>c("pausing"),0);break;case"pausing":p.current=setTimeout(()=>c("deleting"),n.pauseDuration);break;case"deleting":r.length>0?p.current=setTimeout(()=>{a(r.slice(0,-1))},n.deleteSpeed):p.current=setTimeout(()=>c("transition"),0);break;case"transition":p.current=setTimeout(()=>{u(t=>(t+1)%e.length),c("typing")},n.transitionDelay)}return f},[r,d,l,e,s,n.typeSpeed,n.deleteSpeed,n.pauseDuration,n.transitionDelay,f]),r}(x??[],{...g,paused:k||!x?.length}),R=(0,i.useCallback)(e=>{S(e.target.value.length>0),j?.(e)},[j]),M=(0,i.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),s?.())},[s]),U=x&&x.length>0;return(0,t.jsxs)("div",{className:(0,r.cn)("relative w-full rounded-[16px] border bg-input-bg transition-colors","border-[var(--color-brand-primary)] shadow-[0_0_4px_0_var(--color-shadow-ai-search)]",a&&"cursor-not-allowed bg-input-disabled-bg",v.padding,e),style:n,children:[m&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,r.cn)("pointer-events-none absolute flex items-center justify-center",v.iconInset),children:m}),(0,t.jsx)(l,{ref:A,disabled:a,size:p,value:_,defaultValue:y,placeholder:U?void 0:f,...b,onChange:R,className:(0,r.cn)("block min-h-[98px] md:min-
2h-[75px] rounded-none border-0 bg-transparent p-0 pr-[60px] text-[18px] leading-[24px] focus:border-0",m&&v.leadingPad),style:{backgroundColor:"transparent"},onKeyDown:M}),U&&!k&&(0,t.jsxs)("span",{"aria-hidden":"true",className:(0,r.cn)("pointer-events-none absolute overflow-hidden pr-[60px] text-[18px] leading-[24px] text-input-placeholder font-body",v.placeholderInset,m&&v.leadingPad),children:[h&&`${h} `,I,(0,t.jsx)("span",{className:"animate-pulse",children:"|"})]}),(0,t.jsx)("span",{"aria-hidden":!c,className:"flex justify-end h-5 truncate pr-[60px] text-right font-body text-sm leading-subhead text-state-error",children:c}),(0,t.jsx)("button",{type:"button",disabled:a,onClick:s,"aria-label":C,className:(0,r.cn)("absolute flex size-11 items-center justify-center overflow-hidden rounded-button p-2.5 bg-button-primary-default text-icon-tertiary disabled:bg-button-primary-disabled disabled:pointer-events-none cursor-pointer",v.inset),children:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M16.5 16.5L20 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})})]})});d.displayName="PromptBox";var c=e.i(203617);e.i(716787);var p=e.i(661170),f=e.i(614537),h=e.i(496353),x=e.i(659435);e.s(["SearchPromptBox",0,function({defaultValue:e,maxLength:s,advisors:r,locale:a,validateEmpty:l=!1}){let o=(0,n.useTranslations)("search"),u=(0,n.useTranslations)("common"),g=(0,f.useRouter)(),C=(0,i.useRef)(null),[m,_]=(0,i.useState)(e.length>=s),[y,j]=(0,i.useState)(!1),[b,L]=(0,i.useState)(e),[v,w]=(0,i.useTransition)(),S=(0,h.resolveAppLink)(h.features.localizedRoutes["/search"],a),O=(0,i.useCallback)(()=>{let e=C.current?.value.trim();e?(L(""),w(()=>{g.push(`${S}?q=${encodeURIComponent(e)}`)})):j(l)},[g,S,l]),A=(0,i.useCallback)(()=>{let e=C.current?.value??"";_(e.length>=s),L(e),e.trim()&&j(!1)},[s]),k=y?o("emptyError"):m?o("maxLengthError",{limit:s}):void 0;return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(d,{ref:C,iconLeft:(0,t.jsx)(c.AiSearch,{width:24,height:24}),defaultValue:e,maxLength:s,placeholder:o("placeholder"),searchLabel:u("search"),onSubmit:O,onChange:A,error:!!k,errorMessage:k}),(0,t.jsx)(x.Autocomplete,{query:b,advisors:r,className:"top-[calc(100%+4px)]"}),v&&(0,t.jsx)("div",{className:"absolute bottom-4 right-4 z-10 flex size-11 items-center justify-center rounded-button bg-button-primary-default",children:(0,t.jsx)(p.LoadingSpinner,{size:"md",inverted:!0})})]})}],448541)},825502,e=>{"use strict";var t=e.i(182878),i=e.i(42695);let n={maxQueryLength:200,resultsCount:10};async function s(){try{let e=await (0,i.clientFetch)("/api/ai_searches/new",{query:(0,t.urlParamsWithoutPromo)()});if(!e||e instanceof Response)return n;return e}catch{return n}}async function r(e){let t=await (0,i.clientFetch)(`/api/ai_searches/${e}`);return!t||t instanceof Response?null:t}e.s(["getSearchConfig",0,s,"pollSearch",0,r])},320081,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(861745),s=e.i(722109),r=e.i(825502),a=e.i(448541);e.s(["CmsSearchBoxClient",0,function(){let e=(0,n.useLocale)(),[l,o]=(0,i.useState)([]),[u,d]=(0,i.useState)(200);return(0,i.useEffect)(()=>{let e=!0;return(async()=>{let[t,i]=await Promise.all([(0,s.getAdvisorAutocomplete)().catch(()=>[]),(0,r.getSearchConfig)()]);e&&(o(t),d(i.maxQueryLength))})(),()=>{e=!1}},[]),(0,t.jsx)(a.SearchPromptBox,{defaultValue:"",maxLength:u,advisors:l,locale:e})}])}]); 3 4//# debugId=0c5fb66e-d8b0-54fc-1f14-404a3c7d4dd4
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.