1import{a as P,O as j,r as w,j as t,P as d,N as l}from"./index-DgF7sRNe.js";import{u as L,i as b,b as R}from"./trackedLinks-BFdUgqyD.js";import{u as k,i as E}from"./campaignsCms-DdNkeFe9.js";import{c as S}from"./campaigns-DoWTJqQ-.js";import U from"./NotFound-4-WKQytk.js";import"./Seo-CdCwRrT6.js";import"./SectionHeading-WJEbiZUL.js";import"./LemonHighlight-DJsPvrIS.js";import"./SlideReveal-Cgf_feC2.js";import"./use-transform-CSRRfta5.js";import"./SectionReveal-DYXmpBn3.js";import"./ActionLink-NOeJVyok.js";import"./CaretRight.es-DdjD40nu.js";import"./lazy-img-Df6Ew-Fc.js";import"./logo-colour-CWjD39W9.js";const f="https://www.himumsaiddad.com",B=()=>{const{code:h=""}=P(),{search:p,hash:i}=j(),{data:n,isLoading:g}=L(h),{data:u,isLoading:x}=k(),r=u==null?void 0:u.find(a=>a.short_code===h&&E(a)),_=r?(()=>{const a=new URL(S(r.slug),f);new URLSearchParams(p).forEach((o,e)=>a.searchParams.set(e,o));for(const[o,e]of[["utm_source",r.utm_source],["utm_medium",r.utm_medium],["utm_campaign",r.utm_campaign],["utm_content",r.utm_content]])e&&!a.searchParams.has(o)&&a.searchParams.set(o,e);return a.searchParams.get("utm_source")||a.searchParams.set("utm_source","shortlink"),i&&(a.hash=i),`${a.pathname}${a.search}${a.hash}`})():"",m=n?b(n.destination_url):!1,c=n?(()=>{const a=new URLSearchParams(p),s=new URL(R(n),f);return a.forEach((o,e)=>{s.searchParams.has(e)||s.searchParams.set(e,o)}),s.searchParams.get("utm_source")||s.searchParams.set("utm_source","shortlink"),i&&(s.hash=i),m?s.toString():`${s.pathname}${s.search}${s.hash}`})():"";return w.useEffect(()=>{m&&c&&window.location.replace(c)},[m,c]),g||x?t.jsx("div",{className:"min-h-screen bg-background","aria-hidden":"true"}):r?t.jsxs(t.Fragment,{children:[t.jsx(d,{children:t.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),t.jsx(l,{to:_,replace:!0})]}):n?t.jsxs(t.Fragment,{children:[t.jsx(d,{children:t.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),!m&&t.jsx(l,{to:c,replace:!0})]}):t.jsx(U,{})};export{B as default};
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.