1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5154],{5329:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(14232);let r="krb-local-storage-change",a=e=>{let[t,l]=(0,n.useState)(()=>{try{var t,l,n;return null!=(n=null==(l=globalThis)||null==(t=l.localStorage)?void 0:t.getItem(e))?n:null}catch(t){return console.error("Error getting local storage key=".concat(e," in useLocalStorage"),t),null}});return(0,n.useEffect)(()=>{let t=t=>{if(t.detail.key===e)try{let t=globalThis.localStorage.getItem(e);l(t)}catch(t){console.error("Error getting local storage key=".concat(e," in useLocalStorage"),t)}};return globalThis.addEventListener(r,t),()=>{globalThis.removeEventListener(r,t)}},[e]),{localStorageItem:t,setLocalStorageItem:t=>{try{l(t),localStorage.setItem(e,t);let n=new CustomEvent(r,{detail:{key:e,value:t}});globalThis.dispatchEvent(n)}catch(l){console.error("Error setting local storage key=".concat(e," with value=").concat(t),l)}}}}},10714:(e,t,l)=>{l.d(t,{s:()=>o,t:()=>a});var n=l(14232);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let l=!1,n=e.map(e=>{let n=r(e,t);return l||"function"!=typeof n||(l=!0),n});if(l)return()=>{for(let t=0;t<n.length;t++){let l=n[t];"function"==typeof l?l():r(e[t],null)}}}}function o(...e){return n.useCallback(a(...e),e)}},47137:(e,t,l)=>{l.d(t,{F:()=>o});var n=l(69241);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,o=(e,t)=>l=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==l?void 0:l.class,null==l?void 0:l.className);let{variants:o,defaultVariants:i}=t,u=Object.keys(o).map(e=>{let t=null==l?void 0:l[e],n=null==i?void 0:i[e];if(null===t)return null;let a=r(t)||r(n);return o[e][a]}),s=l&&Object.entries(l).reduce((e,t)=>{let[l,n]=t;return void 0===n||(e[l]=n),e},{});return a(e,u,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:l,className:n,...r}=t;return Object.entries(r).every(e=>{let[t,l]=e;return Array.isArray(l)?l.includes({...i,...s}[t]):({...i,...s})[t]===l})?[...e,l,n]:e},[]),null==l?void 0:l.class,null==l?void 0:l.className)}},82987:(e,t,l)=>{l.d(t,{DX:()=>d,TL:()=>c,xV:()=>p});var n,r=l(14232),a=l(10714),o=l(37876),i=Symbol.for("react.lazy"),u=(n||(n=l.t(r,2)))[" use ".trim().toString()];function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:l,...n}=e;if(s(l)&&"function"==typeof u&&(l=u(l._payload)),r.isValidElement(l)){var o;let e,i,u=(o=l,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let l={...t};for(let n in t){let r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?l[n]=(...e)=>{let t=a(...e);return r(...e),t}:r&&(l[n]=r):"style"===n?l[n]={...r,...a}:"className"===n&&(l[n]=[r,a].filter(Boolean).join(" "))}return{...e,...l}}(n,l.props);return l.type!==r.Fragment&&(s.ref=t?(0,a.t)(t,u):u),r.cloneElement(l,s)}return r.Children.count(l)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),l=r.forwardRef((e,l)=>{let{children:n,...a}=e;s(n)&&"function"==typeof u&&(n=u(n._payload));let i=r.Children.toArray(n),c=i.find(y);if(c){let e=c.props.children,n=i.map(t=>t!==c?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:l,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(t,{...a,ref:l,children:n})});return l.displayName=`${e}.Slot`,l}var d=c("Slot"),f=Symbol("radix.slottable"),p=function(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=f,t}("Slottable");function y(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}},92864:(e,t,l)=>{l.r(t),l.d(t,{ABTestContainer:()=>p,default:()=>y});var n=l(37876),r=l(14232),a=l(561),o=l(4972),i=l(5329),u=l(19950),s=l(9563),c=l(67212),d=l(78181),f=l(85315);let p=e=>{var t,l,p,y;let g,v,{fields:m,...h}=e,{ab_test_variants:_,a_b_test_rule:b}=m,[x,S]=(0,r.useState)(!1),[j,E]=(0,r.useState)(0),{localStorageItem:k}=(0,i.A)(s.ks),{i18n:N}=(0,u.X)(),C=null==(t=b[0])?void 0:t.codename,O=null==(l=b[0])?void 0:l.target_experiences;if((0,r.useEffect)(()=>{S(!0)},[]),!x)return null;if(c.ud)v=null==(g=_[j])?void 0:g.name;else{let e;if(!C)return null;try{e=JSON.parse(null!=k?k:"{}")}catch(t){console.error("Error reading current ab testing rules from local storage",t),e={}}let t=e[C],l=null==O?void 0:O.findIndex(e=>(null==e?void 0:e.variant_id)===t);if(void 0===l||-1===l){let e=null==O?void 0:O.findIndex(e=>{var t,l;return(null==e||null==(l=e.default)||null==(t=l[0])?void 0:t.codename)==="yes"});if(void 0===e||-1===e)return null;l=e}g=_[l]}let w=null==g||null==(y=g.content)||null==(p=y[0])?void 0:p._type,I=w===a.O._carousel_card||w===a.O._internal_link_item_||w===a.O._external_link_item_||w===a.O._modal_link_item;return(0,n.jsxs)(n.Fragment,{children:[!c.ud&&g?(0,n.jsx)(o.A,{fields:g,i18n:N,...h}):null,c.ud&&g&&(0,n.jsxs)("div",{children:[(0,n.jsx)(o.A,{fields:g,i18n:N,...h}),(0,n.jsxs)("div",{className:(0,f.cn)("py-xs flex items-center justify-between",{"px-xs":
1I,"px-margin":!I}),children:[(0,n.jsxs)("span",{className:(0,f.cn)({"text-tiny-normal":I,"heading-6":!I}),children:["AB Test Container - Variant: ",v]}),_.length>1?(0,n.jsx)(d.$,{variant:"high-emphasis",onClick:e=>{e.preventDefault(),j+1>_.length-1?E(0):E(j+1)},className:"ml-xxs bg-black",iconLeft:I?"arrow_forward":void 0,iconOnly:I,children:"Next"}):null]})]})]})},y=p}}]);
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.