(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,729496,e=>{"use strict";let t=(0,e.i(514514).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],729496)},482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],482317)},146691,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":a,"aria-describedby":l,...n,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Share"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M11.5 10a2.5 2.5 0 0 0-1.944.945L5.9 8.66a2.23 2.23 0 0 0 0-1.32l3.655-2.285A2.5 2.5 0 1 0 9 3.5q.004.337.1.66L5.446 6.445a2.5 2.5 0 1 0 0 3.11L9.1 11.84a2.4 2.4 0 0 0-.1.66 2.5 2.5 0 1 0 2.5-2.5m0-8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m-8 7.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m8 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"})]})),n=a.default.forwardRef((e,a)=>(0,t.jsx)(i.BaseIcon,{ref:a,icon:l,...e}));n.displayName="Share",e.s(["Share",0,n])},190228,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(482317),l=e.i(809058),n=e.i(368847),r=e.i(144103);function o({children:e,fallback:t,delayMs:i=0}){let[l,n]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if(i>0){let e=setTimeout(()=>{n(!0)},i);return()=>clearTimeout(e)}n(!0)},[i]),l)?e:t||null}var s=e.i(146691),d=e.i(632137);let c=({onClick:e=()=>void 0,asChild:a=!1,className:i,type:l})=>{let r={className:(0,d.cn)("flex cursor-pointer items-center text-sm text-gray-500","article"===l&&"px-3 py-2 rounded-lg border border-[#676767] bg-transparent",i),onClick:e,"data-testid":"share-button"},o=(0,t.jsxs)("div",{className:"align-center flex items-center","data-testid":"share-button-content",children:[(0,t.jsx)(s.Share,{size:"sm",className:"m-0 mr-[8px]","data-testid":"share-icon-image"}),(0,t.jsx)(n.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"share-button-text",children:"Share"})]});return a?(0,t.jsx)("div",{...r,children:o}):(0,t.jsx)("button",{...r,children:o})};var h=e.i(514514);let u=(0,h.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var m=e.i(729496);let p=(0,h.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var x=e.i(947118),w=e.i(737801),f=e.i(630986),g=e.i(546446),b=e.i(540768),y=e.i(682142),v=e.i(782937),k=e.i(695881),j=e.i(333350),C=e.i(64412),S=e.i(950771),N=e.i(537989),D=e.i(695203),I=e.i(604323),A=e.i(158662),M=e.i(358273),B=e.i(777638),R=e.i(924776),T=e.i(409628),P=e.i(605781);let $=(0,k.createLogger)("useTrackContentShared");var L=e.i(393864),O=e.i(499167),E=e.i(747961);let V=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":a,"aria-describedby":l,...n,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Reddit"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M9.627 3.772a1.334 1.334 0 1 0-.008-.576 2.153 2.153 0 0 0-1.92 2.138v.007c-1.173.049-2.243.383-3.093.91a1.868 1.868 0 1 0-1.934 3.17c.061 2.168 2.424 3.913 5.331 3.913s5.273-1.747 5.332-3.917a1.869 1.869 0 1 0-1.939-3.169c-.857-.53-1.94-.864-3.124-.909v-.005c0-.793.59-1.452 1.355-1.56zM4.531 8.914c.031-.677.481-1.197 1.004-1.197s.923.55.892 1.227-.422.923-.946.923c-.523 0-.982-.275-.95-.953m5.941-1.197c.524 0 .974.52 1.004 1.197.032.678-.427.953-.95.953s-.915-.245-.946-.923.368-1.227.892-1.227m-.623 2.765c.099.01.161.112.123.203a2.133 2.133 0 0 1-3.938 0 .148.148 0 0 1 .123-.203 19 19 0 0 1 1.846-.09c.65 0 1.27.032 1.846.09"})]})),_=a.default.forwardRef((e,a)=>(0,t.jsx)(E.BaseIcon,{ref:a,icon:V,...e}));_.displayName="Reddit";let z=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":a,"aria-describedby":l,...n,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"LinkedIn"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("g",{clipPath:"url(#a)",children:(0,t.jsx)("path",{fill:"currentColor",d:"M14.816 0H1.18C.528 0 0 .516 0 1.153v13.69A1.17 1.17 0 0 0 1.181 16h13.635c.653 0 1.184-.519 1.184-1.153V1.153C16 .516 15.469 0 14.816 0M4.746 13.634H2.373V5.997h2.375zM3.56 4.956a1.376 1.376 0 1 1-.004-2.751 1.376 1.376 0 0 1 .004 2.751m10.075 8.678h-2.372V9.922c0-.885-.015-2.025-1.234-2.025-1.234 0-1.422.966-1.422 1.962v3.775H6.238V5.997h2.274V7.04h.032c.315-.6 1.09-1.235 2.243-1.235 2.404 0 2.847 1.582 2.847 3.638z"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"a",children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})),U=a.default.forwardRef((e,a)=>(0,t.jsx)(E.BaseIcon,{ref:a,icon:z,...e}));U.displayName="LinkedIn";let H=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":a,"aria-describedby":l,...n,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"BlueSky"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M4.6 3.677C5.976 4.71 7.456 6.805 8 7.93c.543-1.124 2.023-3.219 3.4-4.252.992-.745 2.6-1.322 2.6.513 0 .367-.21 3.08-.333 3.52-.428 1.53-1.99 1.921-3.378 1.685 2.428.413 3.045 1.782 1.711 3.15-2.532 2.599-3.64-.652-3.924-1.485-.052-.153-.076-.224-.077-.164 0-.06-.024.011-.076.164-.284.833-1.392 4.084-3.925 1.485-1.333-1.368-.716-2.737 1.712-3.15C4.32 9.63 2.76 9.24 2.33 7.71c-.123-.44-.333-3.153-.333-3.52 0-1.835 1.609-1.258 2.602-.513"})]})),W=a.default.forwardRef((e,a)=>(0,t.jsx)(E.BaseIcon,{ref:a,icon:H,...e}));W.displayName="BlueSky";let K=(0,a.forwardRef)(({title:e,titleId:a,desc:i,descId:l,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":a,"aria-describedby":l,...n,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"WhatsApp"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"m0 16 1.125-4.109A7.9 7.9 0 0 1 .067 7.927C.069 3.557 3.625 0 7.995 0c2.121 0 4.112.827 5.609 2.325a7.88 7.88 0 0 1 2.32 5.61c-.002 4.371-3.559 7.928-7.929 7.928a7.93 7.93 0 0 1-3.792-.966zm4.398-2.538c1.117.663 2.184 1.06 3.595 1.061a6.6 6.6 0 0 0 6.592-6.59A6.59 6.59 0 0 0 7.998 1.34a6.6 6.6 0 0 0-6.593 6.589c0 1.483.434 2.594 1.164 3.756l-.666 2.432zm7.591-3.643c-.049-.082-.181-.132-.38-.231-.198-.1-1.172-.579-1.354-.645-.181-.066-.313-.099-.446.1-.132.198-.512.644-.627.776s-.231.149-.43.05c-.197-.1-.836-.308-1.593-.984a6 6 0 0 1-1.102-1.372c-.115-.198-.012-.306.087-.404.09-.089.198-.232.297-.348.101-.114.134-.197.2-.33.066-.132.034-.248-.016-.347s-.446-1.074-.611-1.47c-.161-.387-.325-.335-.446-.34l-.38-.007a.73.73 0 0 0-.528.248c-.181.198-.693.677-.693 1.652 0 .976.71 1.918.808 2.05.1.132 1.397 2.133 3.384 2.991.473.204.842.326 1.13.417.474.151.906.13 1.248.079.38-.057 1.172-.48 1.337-.942.165-.463.165-.86.115-.943"})]})),q=a.default.forwardRef((e,a)=>(0,t.jsx)(E.BaseIcon,{ref:a,icon:K,...e}));q.displayName="WhatsApp";var F=e.i(37429);let G=({setIsOpen:e,setCopied:i,copied:l,title:r,imageUrl:o,subText:s})=>{let c,h,k,E,V,z=(c="content-shared",h=(0,x.useIsInitialized)(),k=(0,w.useEventAttributes)(),E=(0,f.useCMSAttributes)(),V=(0,a.useCallback)(({sharedMethod:e})=>{let t={createdDate:E?.createdDate,contentId:E?.contentId,publishDate:E?.publishDate,author:E?.author||"",collection:E?.collection,entitlements:E?.entitlements,sharedMethod:e,...k};if(!h)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(c,window.mParticle?.EventType?.Other,t),console.debug(`MParticle: Event "${c}" tracked`,t)}catch(e){console.error(`MParticle: Event "${c}" failed`,e)}return V},[E?.author,E?.contentId,E?.collection,E?.createdDate,E?.entitlements,E?.publishDate,k,h])),H=(()=>{let e=(0,g.useAtomValue)(N.pageIdAtom),t=(0,g.useAtomValue)(S.pageLocaleAtom),i=(0,g.useAtomValue)(D.deviceClassAtom),l=(0,g.useAtomValue)(I.metricsArticleDataAtom),n=(0,g.useAtomValue)(A.experimentJoinListAtom),{location:r}=(0,C.useLocation)(),o=(0,R.useIsHightouchReady)(),s=(0,a.useCallback)(()=>{let a=(0,y.getCICookie)(),o=a?.["TWC-GeoIP-Country"]??(0,b.getCookie)("twc-location-country"),s=a?.["TWC-GeoIP-Region"]??(0,b.getCookie)("twc-location-region"),d=a?.["TWC-Privacy"]??(0,b.getCookie)("twc-privacy"),c=window.DprSdk?.getGdprConsentOptInsString()??"",h=window.DprSdk?.getCcpaSaleOptInString()??"",u=window.navigator?.globalPrivacyControl??!1,m=c?.includes("functional-technology")??!1,p=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,x=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,w=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),f=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),g=navigator?.cookieEnabled??!1,k=(0,b.getCookie)("partner")||"",j=(0,v.getPartnerByPattern)(k)??k,C=(0,M.getMetricsSession)(),S=C?.sessionId||"",N=new Date(C?.sessionStartTime||0).toISOString(),D=new Date,I=D.getHours(),A=T.WEEK_DAYS[D.getDay()]??"";return{pageId:e??"",schemaVersion:"nextgen",author:l?.author||"",contentId:l?.contentId??null,createdDate:l?.createdDate??null,publishDate:l?.publishDate??null,collection:l?.collection??null,entitlements:l?.entitlements??null,nodeTypes:l?.nodeType??null,pageTemplate:l?.pageTemplate??null,premiumContent:l?.premiumContent!=null?String(l.premiumContent):null,provider:l?.provider??null,tagsGeo:l?.tagsGeo??null,tagsKeyword:l?.tagsKeyword??null,tagsStorm:l?.tagsStorm??null,title:l?.title??null,referrer:document.referrer,locale:t,deviceClass:i,partner:j,sessionId:S,sessionStartTime:N,siteMode:"normal",dayOfWeek:A,hourOfDay:I,regime:d??"",cookiesEnabled:g,gpcSignalOptOut:u,functionalTechnologies:m,geographicallyRelevantAds:p,interestBasedAds:x,priv:c,privProducts:h,saleOfData:w,saleOfDataAuthorization:w,sensitiveDataAuthorization:f,campaign:(0,B.getCampaign)(),linkReferral:(0,B.getLinkReferral)()??void 0,experimentJoinList:n,weatherMode:"normal",physicalCountry:o??"",physicalState:s??"",wlocCity:r?.city??null,wlocCountry:r?.countryCode??null,wlocState:r?.adminDistrictCode??null,wlocDMA:r?.dmaCd??null,appVersion:"292b8a53c066c9d4a278830c85aa0c17db4ab2e9".slice(0,10)}},[e,t,i,l,n,r]);return(0,a.useCallback)(()=>{if(j.default){if(!o)return void $.warn('Hightouch: Event "content-shared" skipped - SDK not ready');(0,P.trackContentShared)(s()),$.info('Hightouch: Event "content-shared" tracked')}},[o,s])})(),K=e=>{z({sharedMethod:e}),H()},G=t=>{let a=encodeURIComponent(window.location.href),i=encodeURIComponent(r),l="";switch(t){case"twitter":l=`https://twitter.com/intent/tweet?url=${a}&text=${i}`;break;case"facebook":l=`https://www.facebook.com/sharer.php?u=${a}`;break;case"linkedin":l=`https://www.linkedin.com/sharing/share-offsite/?url=${a}`;break;case"reddit":l=`https://www.reddit.com/submit?url=${a}&title=${i}`;break;case"bluesky":l=`https://bsky.app/intent/compose?text=${i}%20${a}`;break;case"whatsapp":l=`https://wa.me/?text=${i}%20${a}`}l&&(window.open(l,"_blank"),K(t),e(!1))},X=[{key:"facebook",name:"Facebook",icon:L.Facebook,action:()=>G("facebook")},{key:"twitter",name:"X",icon:O.Twitter,action:()=>G("twitter")},{key:"reddit",name:"Reddit",icon:_,action:()=>G("reddit")},{key:"linkedin",name:"LinkedIn",icon:U,action:()=>G("linkedin")},{key:"bluesky",name:"Bluesky",icon:W,action:()=>G("bluesky")},{key:"whatsapp",name:"WhatsApp",icon:q,action:()=>G("whatsapp")},{key:"email",name:"Email",icon:u,action:()=>{let t=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(window.location.href)}`;document.body.setAttribute("data-mailto-url",t),window.location.href=t,K("email"),e(!1)}},{key:"copy",name:l?"Copied":"Copy link",icon:l?m.Check:p,action:()=>{"u">typeof navigator&&navigator.clipboard.writeText(window.location.href).then(()=>{i(!0),K("linkCopy"),setTimeout(()=>e(!1),3e3),setTimeout(()=>i(!1),3400)})}}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[o&&(0,t.jsx)(F.default,{src:o,alt:"",className:"h-18 w-auto rounded-lg md:h-16.75"}),(0,t.jsx)("p",{className:(0,d.cn)("line-clamp-3 overflow-hidden text-ellipsis","h-18 text-xl leading-6 font-semibold","md:h-16.75 md:text-base md:leading-[140%] md:font-bold"),children:r})]}),s&&(0,t.jsx)(n.default,{variant:"Body.S",className:"m-0 mt-2 leading-[115%] text-gray-600",children:s}),(0,t.jsx)("hr",{className:"my-4 border-[#e9e9e9]"}),(0,t.jsx)("div",{className:"space-y-4","data-testid":"share-options-container",children:X.map(e=>(0,t.jsxs)("button",{onClick:e.action,className:"flex h-6 w-full cursor-pointer items-center rounded-md hover:bg-gray-50","data-testid":`share-${e.key}-button`,children:[(0,t.jsx)("div",{className:"mr-[8px] flex h-6 w-6 items-center justify-center","data-testid":`share-${e.key}-icon`,children:(0,t.jsx)(e.icon,{className:"w-6"})}),(0,t.jsx)(n.default,{variant:"Body.M","data-testid":`share-${e.key}-text`,children:e.name})]},e.key))})]})};var X=e.i(498076);e.s(["Share",0,({type:e="link",title:s,imageUrl:d,authors:h})=>{let[u,m]=(0,a.useState)(!1),[p,x]=(0,a.useState)(!1),w=(0,X.useIsMobile)(),f=(h??[]).map(e=>"string"==typeof e?"":`${e.firstName||""} ${e.lastName||""}`.trim()).filter(Boolean).reduce((e,t,a,i)=>{let l=a===i.length-1,n=a===i.length-2;return e+t+(l?"":n?" and ":", ")},""),g=()=>(0,t.jsx)(G,{setCopied:m,setIsOpen:x,copied:u,title:s,imageUrl:d,subText:f?"By "+f:void 0});return(0,t.jsx)(o,{children:(0,t.jsx)("div",{className:"flex items-center justify-between","data-testid":"share-container",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{onClick:()=>x(!0),type:e}),(0,t.jsx)(r.MobileDrawer,{title:`Share this ${e}`,isOpen:!!w&&p,setIsOpen:x,"data-testid":"share-mobile-drawer",children:g()})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(l.Popover,{open:!w&&p,onOpenChange:x,"data-testid":"share-popover",children:[(0,t.jsx)(l.PopoverTrigger,{children:(0,t.jsx)(c,{asChild:!0,type:e})}),(0,t.jsxs)(l.PopoverContent,{arrowPadding:2,align:"end",alignOffset:-2,className:"relative z-50 w-[312px] rounded-2xl border-0 bg-white p-[16px] drop-shadow-lg/25","data-testid":"share-popover-content",children:[(0,t.jsx)(l.PopoverArrow,{width:21,height:14,className:"fill-white"}),(0,t.jsxs)("div",{className:"mb-[8px] flex items-center justify-between",children:[(0,t.jsxs)(n.default,{variant:"Body.L",className:"font-bold","data-testid":"share-title",children:["Share this ",e]}),(0,t.jsx)("button",{onClick:()=>x(!1),className:"cursor-pointer text-black hover:text-gray-700","data-testid":"share-close-button",children:(0,t.jsx)(i.X,{className:"h-6 w-6"})})]}),g()]})]})})})})}],190228)},775668,function(e){e.n(e.i(190228))},144103,e=>{"use strict";var t=e.i(902875),a=e.i(62544),i=e.i(632137),l=e.i(368847),n=e.i(482317);e.s(["MobileDrawer",0,({isOpen:e,setIsOpen:r,children:o,title:s})=>(0,t.jsx)(a.Dialog,{open:e,children:(0,t.jsxs)(a.DialogPortal,{children:[(0,t.jsx)(a.DialogOverlay,{className:"bg-black/50"}),(0,t.jsxs)(a.DialogContent,{className:(0,i.cn)("p-0 [&>button]:hidden","fixed inset-x-0 top-auto bottom-0 flex h-auto flex-col bg-white","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-bottom-[10%] data-[state=open]:slide-in-from-bottom-[10%]","left-0 w-full max-w-none translate-x-0 translate-y-0 shadow-lg duration-300 sm:max-w-none","border-x-0 border-b-0","rounded-t-3xl rounded-b-none"),children:[(0,t.jsx)(a.DialogTitle,{className:"pt-4",children:(0,t.jsxs)("div",{className:"relative flex items-center justify-center pb-2",children:[(0,t.jsx)(l.default,{variant:"Body.M",className:"font-bold",children:s}),(0,t.jsx)("button",{onClick:()=>r(!1),className:"absolute top-0 right-5 cursor-pointer text-black hover:text-gray-700",children:(0,t.jsx)(n.X,{className:"h-6 w-6"})}),(0,t.jsx)("div",{className:"absolute right-0 bottom-0 left-0 h-[1px] bg-[#e9e9e9]"})]})}),(0,t.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-4 pt-0",children:o})]})]})})])}]);