1import{j as e,e as x,s as y,w as c,t as u,v as g,y as w,I as k,r as j,x as h,i as C,a as P,b as _,o as E}from"../chunks/chunk-Db16goaD.js";import{u as D}from"../chunks/chunk-B6boHbs7.js";import{S as A}from"../chunks/chunk-C9Yo7374.js";import{S as N,C as L,R as z}from"../chunks/chunk-Cwh2G_60.js";import"../chunks/chunk-BPfJR9UF.js";/* empty css */import"../chunks/chunk-DAAttwMh.js";import"../chunks/chunk-C7j5q_8H.js";import"../chunks/chunk-BTg_7fYw.js";function R(a,i){if(typeof a=="string")return a;let t=a.text;if(a.marks?.includes("bold")&&(t=e.jsx("strong",{children:t})),a.marks?.includes("italic")&&(t=e.jsx("em",{children:t})),a.href){const s=/^https:/i.test(a.href);return e.jsx("a",{href:a.href,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,className:"font-medium underline decoration-1 underline-offset-2 transition-opacity hover:opacity-70",children:t},i)}return e.jsx("span",{children:t},i)}function p({content:a}){return e.jsx(e.Fragment,{children:a.map((i,t)=>R(i,`${typeof i=="string"?i:i.text}-${t}`))})}function f({blocks:a,className:i}){return e.jsx("div",{className:x("space-y-7",i),children:a.map((t,s)=>{if(t.type==="paragraph")return e.jsx("p",{children:e.jsx(p,{content:t.content})},`paragraph-${s}`);if(t.type==="heading"){const r="pt-2 font-heading font-bold leading-tight text-savi-dark-purple";return t.level===2?e.jsx("h2",{className:x(r,"text-[26px]"),children:t.text},`heading-${s}`):e.jsx("h3",{className:x(r,"text-[21px]"),children:t.text},`heading-${s}`)}return e.jsx("ul",{className:"ml-6 list-disc space-y-3",children:t.items.map((r,n)=>e.jsx("li",{children:e.jsx(p,{content:r})},`item-${n}`))},`list-${s}`)})})}function S({checks:a}){return a.length===0?null:e.jsxs("section",{className:"border-t border-savi-gray-outline px-4 pt-6 md:px-0 md:pt-8",children:[e.jsx("h2",{className:"font-heading text-[22px] font-bold leading-[1.2] text-savi-dark-purple md:text-[24px]",children:"Second channel checks"}),e.jsx("p",{className:"mt-2 text-[18px] text-savi-dark-purple md:text-[17px]",children:"Tips for verifying through official channels"}),e.jsx("ol",{className:"mt-6 space-y-4 md:mt-7",children:a.map((i,t)=>e.jsxs("li",{className:"grid grid-cols-[32px_minmax(0,1fr)] gap-3 rounded-[24px] bg-white p-4 md:grid-cols-[34px_minmax(0,1fr)] md:p-6",children:[e.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-savi-dark-purple text-[16px] font-bold text-white",children:t+1}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-sans text-[18px] font-bold leading-[1.35] text-savi-black-text",children:i.title}),e.jsx("p",{className:"mt-2 text-[18px] leading-[1.5] text-savi-black-text md:text-[17px]",children:e.jsx(p,{content:i.content})})]})]},i.title))})]})}const b=12;function v({onClick:a,tabIndex:i}){return e.jsxs(k,{href:"/scam-trends",onClick:a,tabIndex:i,className:"inline-flex items-center gap-3 text-[16px] font-bold text-savi-dark-purple transition-opacity hover:opacity-70",children:[e.jsx("span",{"aria-hidden":"true",className:"text-[24px] font-normal",children:"â"}),"Back"]})}function I(){const[a,i]=j.useState(!0);return j.useEffect(()=>{let t=0,s=Math.max(window.scrollY,0),r=s,n=null;const l=()=>{const o=Math.max(window.scrollY,0);if(o<=b)n=null,r=o,i(!0);else if(o!==s){const m=o>s?"down":"up";m!==n&&(n=m,r=s),Math.abs(o-r)>=b&&(i(m==="up"),r=o)}s=o,t=0},d=()=>{t===0&&(t=window.requestAnimationFrame(l))};return window.addEventListener("scroll",d,{passive:!0}),()=>{window.removeEventListener("scroll",d),window.cancelAnimationFrame(t)}},[]),a}function B({items:a,currentSlug:i,onBackClick:t,onItemClick:s}){const r=I();return e.jsx("aside",{className:"hidden lg:block",children:e.jsxs("div",{className:`sticky transition-[top] duration-300 ease-out motion-reduce:transition-none ${r?"top-[155px]":"top-[108px]"}`,children:[e.jsx("div",{"data-testid":"scam-trends-sidebar-back","aria-hidden":!r,className:`grid transition-[grid-template-rows,margin-bottom,opacity,transform] duration-300 ease-out motion-reduce:transition-none ${r?"mb-6 grid-rows-[1fr] translate-y-0 opacity-100":"pointer-events-none mb-0 grid-rows-[0fr] -translate-y-2 opacity-0"}`,children:e.jsx("div",{className:"min-h-0 overflow-hidden",children:e.jsx(v,{onClick:t,tabIndex:r?void 0:-1})})}),e.jsx("nav",{"aria-label":"Current impersonated-brand ranking",className:"trend-brand-navigation flex flex-col gap-0.5",children:a.map((n,l)=>e.jsxs(k,{href:`/scam-trends/${n.slug}`,onClick:()=>s(n,l),"aria-current":n.slug===i?"page":void 0,className:`trend-brand-navigation-item relative grid min-h-[58px] grid-cols-[28px_minmax(0,1fr)_auto] items-center gap-2 overflow-hidden border border-transparent py-[14px] pl-5 pr-3 text-[15px] leading-[1.2] text-savi-dark-purple transition-[background-color,border-color,filter] hover:z-20 hover:rounded-[40px] hover:bg-white focus-visible:z-20 focus-visible:rounded-[40px] focus-visible:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-savi-bright-purple/40 focus-visible:ring-offset-2 ${n.slug===i?"z-10 rounded-[40px] bg-white":""}`,children:[e.jsxs("span",{className:"font-semibold",children:[n.rank,"."]}
1),e.jsx("span",{className:"min-w-0 truncate font-medium",children:n.title}),e.jsx(L,{category:n.category,compactOnDesktop:!1})]},n.slug))})]})})}function T({title:a,items:i,onItemClick:t}){return i.length===0?null:e.jsxs("section",{"data-testid":"scam-trends-related-section",className:"mx-auto max-w-[1208px] px-4 pb-20 pt-16 md:px-10 md:pb-24",children:[e.jsx("h2",{className:"font-sans text-[22px] font-medium text-savi-dark-purple",children:a}),e.jsx("div",{"data-testid":"scam-trends-related-grid",className:"mt-[22px] grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:i.map((s,r)=>e.jsx(z,{item:s,onClick:()=>t(s,r)},s.slug))})]})}function $({data:a,sourceTrend:i}){const t=a.item,s=y(),r=c(t.slug),n=l=>{s?.capture(u,g({sourcePageType:"detail",sourcePagePath:r,sourceTrend:i,...l}))};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mx-auto grid max-w-[1128px] gap-0 px-0 pb-8 pt-4 md:gap-9 md:px-10 md:pt-12 lg:grid-cols-[378px_minmax(0,706px)] lg:gap-[55px]",children:[e.jsx(B,{items:a.currentBrandNavigation,currentSlug:t.slug,onBackClick:()=>n({sourceSurface:"back_link",targetType:"index",targetPath:h}),onItemClick:(l,d)=>n({sourceSurface:"brand_sidebar",targetType:"trend",targetPath:c(l.slug),targetTrend:l,targetPosition:d+1})}),e.jsxs("article",{className:"min-w-0",children:[e.jsx("div",{className:"mb-6 px-4 md:mb-8 md:px-0 lg:hidden",children:e.jsx(v,{onClick:()=>n({sourceSurface:"back_link",targetType:"index",targetPath:h})})}),e.jsxs("h1",{className:"px-4 font-heading text-[30px] font-bold leading-[1.15] text-savi-dark-purple md:px-0 md:text-[40px]",children:[a.currentRank?`${a.currentRank}. `:"",t.title," Scams"]}),e.jsxs("div",{"data-testid":"scam-trends-detail-meta",className:"mt-6 flex min-h-[38px] items-center justify-between gap-4 rounded-none bg-savi-pale-gray px-4 py-2 text-[16px] md:mt-5 md:rounded-[18px] md:px-5 md:text-[15px]",children:[e.jsxs("span",{className:"text-savi-text-mid-gray",children:["Brand imposter · ",t.category]}),e.jsx("span",{"data-testid":"scam-trends-edition-label",className:"shrink-0 text-savi-black-text",children:t.updatedLabel??N})]}),e.jsx(f,{blocks:t.introduction,className:"px-4 py-6 text-[18px] leading-[1.45] text-savi-black-text md:mt-7 md:px-0 md:py-0 md:leading-[1.5]"}),e.jsx("div",{className:"pb-6 md:mb-10 md:mt-8 md:pb-0",children:e.jsx(A,{headline:t.calloutHeadline??`Have a suspicious message from ${t.calloutLabel??t.title}?`,onSubmitted:()=>s?.capture(u,g({sourceSurface:"detail_check_callout",sourcePageType:"detail",sourcePagePath:r,sourceTrend:i,targetType:"checker",targetPath:w}))})}),t.impersonationMethods.length>0?e.jsxs("section",{className:"border-t border-savi-gray-outline px-4 pt-6 md:mt-10 md:px-0 md:pt-9",children:[e.jsxs("h2",{className:"font-heading text-[22px] font-bold leading-[1.2] text-savi-dark-purple md:text-[24px]",children:["How ",t.impersonationHeadingLabel??t.title," is being impersonated"]}),t.introductionImage?e.jsx("div",{className:"mt-6 md:mt-7",children:e.jsx("img",{src:t.introductionImage.src,alt:t.introductionImage.alt,className:"w-full rounded-[24px]"})}):null,e.jsx("p",{className:`text-[18px] leading-[1.45] text-savi-dark-purple md:text-[17px] ${t.introductionImage?"mt-6 md:mt-7":"mt-2"}`,children:"Popular impersonation lures to pay attention to:"}),e.jsx("div",{className:"mt-6 space-y-4 md:mt-7",children:t.impersonationMethods.map(l=>e.jsxs("article",{className:"rounded-[24px] bg-white p-4 md:p-6",children:[e.jsx("h3",{className:"font-sans text-[18px] font-bold leading-[1.35] text-savi-black-text",children:l.title}),e.jsx(f,{blocks:l.content,className:"mt-3 text-[18px] leading-[1.5] text-savi-black-text md:text-[17px]"})]},l.title))})]}):null,e.jsx("div",{id:"second-channel-checks",className:"mt-4 scroll-mt-[155px] md:mt-10",children:e.jsx(S,{checks:t.secondChannelChecks})})]})]}),e.jsx(T,{title:"Similar impersonated brands",items:a.relatedItems,onItemClick:(l,d)=>n({sourceSurface:"related_card",targetType:"trend",targetPath:c(l.slug),targetTrend:l,targetPosition:d+1})})]})}function U({data:a,sourceTrend:i}){const t=a.item,s=y();if(t.template!=="emergingTrend")return null;const r=c(t.slug),n=l=>{s?.capture(u,g({sourcePageType:"detail",sourcePagePath:r,sourceTrend:i,...l}))};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mx-auto grid max-w-[1098px] gap-6 px-0 pb-8 pt-4 md:gap-8 md:px-10 md:pt-12 lg:grid-cols-[160px_minmax(0,706px)] lg:gap-[52px]",children:[e.jsx("div",{className:"px-4 md:px-0",children:e.jsx(v,{onClick:()=>n({sourceSurface:"back_link",targetType:"index",targetPath:h})})}),e.jsxs("article",{className:"min-w-0",children:[e.jsxs("h1",{className:"px-4 font-heading text-[30px] font-bold leading-[1.18] text-savi-dark-purple md:px-0 md:text-[40px]",children:[t.iconEmoji?e.jsx("span",{className:"mr-3","aria-hidden":"true",children:t.iconEmoji}):null,t.title]}),e.jsxs("div",{"data-testid":"scam-trends-detail-meta",className:"mt-6 flex min-h-[38px] items-center justify-between gap-4 roun
1ded-none bg-savi-pale-gray px-4 py-2 text-[16px] md:rounded-[18px] md:px-5 md:text-[15px]",children:[e.jsxs("span",{className:"text-savi-text-mid-gray",children:["Emerging trend · ",t.category]}),e.jsx("span",{"data-testid":"scam-trends-edition-label",className:"shrink-0 text-savi-black-text",children:N})]}),e.jsxs("section",{className:"px-4 py-6 md:mt-10 md:px-0 md:py-0",children:[e.jsx("h2",{className:"font-heading text-[22px] font-bold text-savi-dark-purple md:text-[24px]",children:"What's happening"}),e.jsx("p",{"data-testid":"scam-trends-emerging-lead",className:"mt-6 rounded-[24px] bg-savi-light-purple px-5 py-4 text-[20px] font-medium italic leading-[1.55] text-savi-dark-purple",children:e.jsx(p,{content:t.lead})}),e.jsx(f,{blocks:t.body,className:"mx-2 mt-6 text-[20px] leading-[1.41] text-savi-black-text md:mx-0 md:mt-8 md:leading-[1.58]"})]}),e.jsx("div",{id:"second-channel-checks",className:"mt-4 scroll-mt-[155px] md:mt-10",children:e.jsx(S,{checks:t.secondChannelChecks})})]})]}),e.jsx(T,{title:"Related scams",items:a.relatedItems,onItemClick:(l,d)=>n({sourceSurface:"related_card",targetType:"trend",targetPath:c(l.slug),targetTrend:l,targetPosition:d+1})})]})}function H(){const a=D(),i={slug:a.item.slug,template:a.item.template,category:a.item.category,rank:a.currentRank};return e.jsx("div",{className:"bg-gradient-to-b from-savi-calming-beige from-[62%] to-savi-light-purple to-[92%] text-savi-dark-purple",children:a.item.template==="impersonatedBrand"?e.jsx($,{data:a,sourceTrend:i}):e.jsx(U,{data:a,sourceTrend:i})})}function V(){return e.jsx(H,{})}const M=Object.freeze(Object.defineProperty({__proto__:null,Page:V},Symbol.toStringTag,{value:"Module"})),Q={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:E}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/scam-trends/@slug/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:M}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:_}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+title.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:P}},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:C}}};export{Q as configValuesSerialized}; 2//# sourceMappingURL=src_pages_scam-trends_-slug.BXN-0puQ.js.map
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.