PageSourceSearch

https://www.scamadviser.com/build/assets/Hero-B4M30OOb.js

js scamadviser.com collected 2026-10-02 08:42:10 UTC 9,435 bytes, 1 lines download raw bytes

1import{r as u,j as e,P as x,X as K}from"./app-weKdcTCi.js";import{u as ee,p as te}from"./useUserCountry-DX52TnRD.js";import{c as $,b as z,a as B,i as U}from"./search-5a9cCG4D.js";import{e as ne}from"./url-ND5YOaJp.js";import{P as se}from"./PhoneInput-3_mCA-dI.js";const A=u.forwardRef(({value:n,inputSearchPlaceHolder:s,onChange:t,onFocus:r,onBlur:a},l)=>e.jsxs(e.Fragment,{children:[e.jsx("span",{children:e.jsx("i",{className:"fa fa-search-custom","aria-hidden":"true"})}),e.jsx("input",{ref:l,type:"text",name:"search",className:"search-input form-control pl-0","aria-label":s,placeholder:s,value:n,onChange:t,onFocus:r,onBlur:a})]}));A.displayName="SearchInput";A.propTypes={value:x.string,inputSearchPlaceHolder:x.string,onChange:x.func,onFocus:x.func,onBlur:x.func};const D=u.forwardRef(({value:n,inputSearchPlaceHolder:s,onChange:t,onFocus:r,onBlur:a,onClickCountrySelector:l},h)=>e.jsx(se,{ref:h,value:n,placeholder:s,inputType:"text",classNames:"search-input form-control",onChange:t,onFocus:r,onBlur:a,onClickCountrySelector:l}));D.propTypes={value:x.string,inputSearchPlaceHolder:x.string,onChange:x.func,onFocus:x.func,onBlur:x.func,onClickCountrySelector:x.func};const _="All type",H="Website",L="Phone",O="Crypto",W="IBAN";u.createContext(H);function re(){var F;const{navigation:{search:n}={}}=K().props,{website:s,phone:t,crypto:r,iban:a}=(n==null?void 0:n.urls)??{},l=(F=n==null?void 0:n.placeholders)==null?void 0:F.website,h=u.useRef(null),c=u.useRef(null),i=u.useRef(null),d=u.useRef(null),[y,g]=u.useState(_),[f,w]=u.useState(""),[j,C]=ee(),[I,m]=u.useState(!1),v=()=>{R(),P(),c.current=setTimeout(()=>{h.current&&h.current.focus()},500)},N=()=>{R(),P(),d.current=setTimeout(()=>{i.current&&i.current.focus()},500)},R=()=>{c.current&&clearTimeout(c.current)},P=()=>{d.current&&clearTimeout(d.current)},b=o=>{(!f||f.length<=0)&&g(_)},S=o=>{o||N()},T=o=>{if(o.preventDefault(),f===void 0||f.length<=0){m(!1);return}M(f);let p=!1;switch(y){case H:p=Z(f);break;case L:p=G(f);break;case O:p=Y(f);break;case W:p=q(f);break;default:p=k();break}typeof p=="string"&&p.trim()===""||(m(!1),window.location=p)},k=()=>(m(!0),""),Z=o=>{let p=o;return typeof o!="object"&&(p=$(o.trim())),typeof p=="string"&&p.trim()===""?(m(!0),""):ne(p,s)},G=o=>z(o,j)===!1?(m(!0),""):`${t}/${te(o,j).format("E.164")}`,Y=o=>B(o)===!1?(m(!0),""):`${r}/${o}`,q=o=>U(o)===!1?(m(!0),""):`${a}/${o}`,Q=(o,p)=>{const E=o.target!==void 0?o.target.value:o;w(E),C(p),M(E),N(),typeof E=="string"&&E.trim()===""&&m(!1)},V=o=>{const p=o.target.value;w(p),M(p),typeof p=="string"&&p.trim()===""&&m(!1)},M=o=>{$(o)?(g(H),v()):z(o,j)?(g(L),N()):B(o)?(g(O),v()):U(o)?(g(W),v()):(g(_),v())},J=o=>{w(""),g(_),v(),m(!1)};return e.jsx("form",{onSubmit:T,className:"main-search-form",children:e.jsxs("div",{className:`input-group text-black ${I?"has-error":""}`,children:[y===L?e.jsx(D,{ref:i,value:f,inputSearchPlaceHolder:l,onChange:Q,onBlur:b,onClickCountrySelector:S}):e.jsx(A,{ref:h,value:f,inputSearchPlaceHolder:l,onChange:V,onBlur:b}),f&&e.jsx("button",{type:"button",className:"btn-clear-input",onClick:J,"aria-label":"Clear input",children:e.jsx("i",{className:"fa fa-times-circle-custom","aria-hidden":"true"})}),e.jsx("button",{type:"submit",className:"d-flex align-items-center","aria-label":"Submit search",children:e.jsx("i",{className:`fa fa-arrow-circle-up-custom ${f?"red":""}`,"aria-hidden":"true"})})]})})}const oe=60;function ce(n){const s=[],t=/(<[^>]+>)|(&[a-zA-Z#0-9]+;)|([\s\S])/g;let r;for(;(r=t.exec(n))!==null;)r[1]?s.push({tag:!0,value:r[1]}):s.push({tag:!1,value:r[2]||r[3]});return s}function ie(n){const s=[],t=/<(\/?)([a-zA-Z][a-zA-Z0-9-]*)[^>]*?(\/?)>/g;let r;for(;(r=t.exec(n))!==null;){const[,a,l,h]=r;if(!h)if(a){const c=s.lastIndexOf(l);c!==-1&&s.splice(c,1)}else s.push(l)}return n+s.toReversed().map(a=>`</${a}>`).join("")}function ae(n,s=oe){const t=u.useMemo(()=>ce(n??""),[n]),[r,a]=u.useState(t.length),l=u.useRef(null);return u.useEffect(()=>{if(typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||t.length===0){a(t.length);return}a(0);let i=0;const d=()=>{for(;i<t.length&&t[i].tag;)i+=1;i<t.length&&(i+=1),a(i),!(i>=t.length)&&(l.current=window.setTimeout(d,s))};return l.current=window.setTimeout(d,s),()=>{l.current&&window.clearTimeout(l.current)}},[t,s]),u.useMemo(()=>ie(t.slice(0,r).map(c=>c.value).join("")),[t,r])}function le(n){const s=(n??"").trim();if(!s)return[];const t=[],r=/<span\b/gi;let a;for(;(a=r.exec(s))!==null;)t.push(a.index);if(t.length===0)return[s];const l=[];for(let h=0;h<t.length;h+=1){const c=h===0?0:t[h],i=h+1<t.length?t[h+1]:s.length,d=s.slice(c,i).replace(/^\s+/,"").replace(/\s+$/," ");d.trim()&&l.push(d)}return l}const ue=32,he=.98;function de(n,s){u.useEffect(()=>{const t=n.current;if(!t||typeof window>"u"||s.length===0)return;const r=document.createElement("span");r.className="hero-heading-measure",r.setAttribute("aria-hidden","true"),t.appendChild(r);const a=()=>{t.style.fontSize="";const h=Number.parseFloat(window.getComputedStyle(t).fontSize),c=t.clientWidth;if(!h||!c)return;let i=0;if(s.forEach(y=>{const{html:g,isAccent:f}=typeof y=="string"?{html:y,isAccent:!1}:y;r.className=f?"hero-heading-measure hero-heading-accent":"hero-heading-measure",r.innerHTML=f?`${g}<span class="hero-heading-caret"></span>`:g,i=Math.max(i,r.getBoundingClientRect().width)}),!i)return;const d=c*he/i;d>=1||(t.style.fontSize=`${Math.max(ue,h*d)}px`)};a();const l=new ResizeObserver(a);return l.observe(t),document.fonts&&document.fonts.ready.then(a).catch(()=>{}),()=>{l.disconnect(),r.remove(),t.style.fontSize=""}},[n,s])}function fe(n,s,t,r,a,l,h){u.useEffect(()=>
1{const c=n.current,i=s.current,d=t.current;if(!c||!i||!d||typeof window>"u")return;const y=window.matchMedia("(hover: hover) and (pointer: fine)"),g=window.matchMedia("(prefers-reduced-motion: reduce)");if(!y.matches||g.matches)return;let f=c.getBoundingClientRect(),w=0,j=0,C=null;const I=()=>{C=null;const b=`${w-f.left}px`,S=`${j-f.top}px`;i.style.setProperty("--hero-spotlight-x",b),i.style.setProperty("--hero-spotlight-y",S),d.style.setProperty("--hero-spotlight-x",b),d.style.setProperty("--hero-spotlight-y",S)},m=()=>{const b=r.current,S=a.current;b&&S&&(S.style.fontSize=b.style.fontSize);const T=l.current,k=h.current;T&&k&&(k.style.height=`${T.offsetHeight}px`)},v=b=>{w=b.clientX,j=b.clientY,C===null&&(C=window.requestAnimationFrame(I))},N=()=>{f=c.getBoundingClientRect(),m()},R=()=>{m(),i.classList.add("is-visible"),d.classList.add("is-visible")},P=()=>{i.classList.remove("is-visible"),d.classList.remove("is-visible")};return m(),document.fonts&&document.fonts.ready.then(m).catch(()=>{}),c.addEventListener("pointermove",v),c.addEventListener("pointerenter",R),c.addEventListener("pointerleave",P),window.addEventListener("scroll",N,{passive:!0}),window.addEventListener("resize",N),()=>{c.removeEventListener("pointermove",v),c.removeEventListener("pointerenter",R),c.removeEventListener("pointerleave",P),window.removeEventListener("scroll",N),window.removeEventListener("resize",N),C!==null&&window.cancelAnimationFrame(C),P()}},[n,s,t,r,a,l,h])}function X({hero:n}){const s=u.useMemo(()=>le(n==null?void 0:n.heading),[n==null?void 0:n.heading]),t=u.useRef(null),r=u.useRef(null),a=u.useRef(null),l=u.useRef(null),h=u.useRef(null),c=u.useRef(null),i=u.useRef(null);de(t,s),fe(r,a,l,t,h,c,i);const{heading:d,headingAccent:y,subheading:g,text_below_search:f,link_text_below_search:w,link_url_below_search:j}=n??{},C=ae(y);if(!n)return null;const I=e.jsxs(e.Fragment,{children:[d&&e.jsx("span",{className:"hero-heading-line hero-heading-main",dangerouslySetInnerHTML:{__html:d}}),y&&e.jsxs("span",{className:"hero-heading-line hero-heading-accent",children:[e.jsx("span",{dangerouslySetInnerHTML:{__html:C}}),e.jsx("span",{className:"hero-heading-caret","aria-hidden":"true"})]})]}),m=v=>e.jsxs(e.Fragment,{children:[f,w&&j&&e.jsxs(e.Fragment,{children:["  ",e.jsx("img",{src:"/images/direction-right.png",alt:"","aria-hidden":"true"}),"  ",e.jsx("a",{href:j,className:"hero-link-below-search",target:"_blank",rel:"noopener noreferrer",tabIndex:v?-1:void 0,children:w})]})]});return e.jsxs("section",{className:"hero-container",ref:r,children:[e.jsx("div",{className:"hero-lens-layer",ref:l,"aria-hidden":"true",children:e.jsx("div",{className:"hero-lens-content",children:e.jsx("div",{className:"hero-inner-container",children:e.jsxs("div",{className:"container-lg text-center text-white",children:[d&&e.jsx("h1",{className:"hero-heading",ref:h,children:I}),g&&e.jsx("h2",{className:"hero-subheading",children:g}),e.jsx("div",{className:"search-form-container",ref:i}),e.jsx("p",{className:"hero-text-below-search",children:m(!0)})]})})})}),e.jsx("div",{className:"hero-inner-container",children:e.jsxs("div",{className:"container-lg text-center text-white",children:[d&&e.jsx("h1",{className:"hero-heading",ref:t,children:I}),g&&e.jsx("h2",{className:"hero-subheading",children:g}),e.jsx("div",{className:"search-form-container",ref:c,children:e.jsx(re,{})}),e.jsx("p",{className:"hero-text-below-search",children:m(!1)})]})}),e.jsx("div",{className:"hero-spotlight-layer","aria-hidden":"true",children:e.jsx("span",{className:"hero-spotlight",ref:a})})]})}X.propTypes={hero:x.object};const be=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));export{X as H,re as S,be as a};

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.