PageSourceSearch

https://j2proxy.vn/_next/static/chunks/24204.06ee2af3d17cae24.js

js j2proxy.vn collected 2026-09-24 15:19:17 UTC 20,667 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24204],{3998:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>s});var n=r(95155);r(12115);var a=r(32467),i=r(83101),o=r(64269);let s=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 hover:border-primary/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:r,size:i,asChild:l=!1,...c}=e,d=l?a.DX:"button";return(0,n.jsx)(d,{"data-slot":"button",className:(0,o.cn)(s({variant:r,size:i,className:t})),...c})}},14734:(e,t,r)=>{r.d(t,{F:()=>i});var n=r(12115),a=r(32140);function i(e){let{notifications:t,isConnected:r,clearNotifications:i,initSocket:o,disconnectSocket:s,emit:l}=(0,a.U)();(0,n.useEffect)(()=>{e&&o(e)},[e,o]);let c=(0,n.useCallback)((e,t,r)=>{l(e,t,r)},[l]);return{socket:null,notifications:t,isConnected:r,emit:c,disconnect:(0,n.useCallback)(()=>{s()},[s]),clearNotifications:(0,n.useCallback)(()=>i(),[i])}}},20865:(e,t,r)=>{r.d(t,{CI:()=>d,IL:()=>l,Jv:()=>c,LN:()=>s,mD:()=>o});var n=r(96199),a=r(75746),i=r(69715);function o(){return window.location.host}function s(){let e="true"===sessionStorage.getItem("preview_mode")?new URLSearchParams(window.location.search).get("previewTemplate"):null;return e?"/?previewTemplate=".concat(e):"/"}function l(){return"true"===sessionStorage.getItem("preview_mode")}function c(e,t){return l()?(a.k.getState().setUser(i._o),Promise.resolve({code:null,error:null})):(0,n.Jv)(e,t)}function d(e){return l()?(a.k.getState().clearUser(),Promise.resolve(void 0)):(0,n.CI)(e)}},32140:(e,t,r)=>{r.d(t,{U:()=>i});var n=r(25959),a=r(9829);let i=(0,n.v)()((e,t)=>({notifications:[],socket:null,isConnected:!1,currentToken:null,addNotification:t=>e(e=>({notifications:[...e.notifications,t]})),clearNotifications:()=>e({notifications:[]}),initSocket:r=>{let n=t();if(n.socket&&n.currentToken===r)return;n.socket&&n.socket.disconnect();let i=(0,a.io)("https://api.homeproxy.vn",{transports:["websocket"],auth:{token:r}});i.on("connect",()=>{e({isConnected:!0}),i.emit("register")}),i.on("connect_error",()=>{e({isConnected:!1})}),i.on("disconnect",()=>{e({isConnected:!1})}),i.on("transactionUpdate",e=>{t().addNotification(e)}),i.on("userproxyUpdate",e=>{t().addNotification(e)}),e({socket:i,currentToken:r})},disconnectSocket:()=>{let{socket:r}=t();r&&(r.disconnect(),e({socket:null,isConnected:!1,currentToken:null}))},emit:(e,r,n)=>{let{socket:a,isConnected:i}=t();a&&i&&a.emit(e,r,n)}}))},35652:(e,t,r)=>{r.d(t,{E:()=>m,default:()=>u});var n=r(12115),a=r(20063),i=r(72378),o=r(13744),s=r(96199),l=r(20865);let c="__hp_utm",d=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];function u(){let e=(0,a.useSearchParams)(),{status:t}=(0,s.wV)();return(0,n.useEffect)(()=>{if("authenticated"===t)return;let r=e.get("utm_source"),n=e.get("utm_type"),a=i.A.get(c);if(r&&"mkt"===n&&!a){let t={};for(let r of d){let n=e.get(r);n&&(t[r]=n)}if(!t.utm_source)return;let r=window.location.pathname,n=r&&"/"!==r?"".concat(window.location.host).concat(r):window.location.host,a=(0,l.mD)();o.A.postApi("/api/v1/utms/utm-visit",{utmSource:t.utm_source,utmMedium:t.utm_medium,utmCampaign:t.utm_campaign,utmContent:t.utm_content,utmTerm:t.utm_term,domain:n,...a&&{domainSource:a}}).then(e=>{(null==e?void 0:e.valid)&&i.A.set(c,JSON.stringify(t),{expires:30,path:"/",sameSite:"lax"})}).catch(()=>{})}},[e,t]),null}function m(){i.A.remove(c,{path:"/"})}},39180:(e,t,r)=>{r.d(t,{r:()=>a});var n=r(68019);let a=(0,r(25959).v)((e,t)=>({config:null,affiliateProgram:null,setConfig:t=>{var r,a;return e({config:{...t,theme:(null==t?void 0:t.theme)?{...t.theme,textmarquee:null!=(a=null!=(r=t.theme.textmarquee)?r:t.theme.textMarquee)?a:"",...t.theme.logo&&{logo:(0,n.V)(t.theme.logo,t.hostName)},...t.theme["logo-l"]&&{"logo-l":(0,n.V)(t.theme["logo-l"],t.hostName)}}:t.theme}})},setAffiliateProgram:t=>e({affiliateProgram:t}),getRotateUrl:()=>{var e,r;return null==(r=t().config)||null==(e=r.theme)?void 0:e.rotateUrl}}))},41052:(e,t,r)=>{r.d(t,{C5:()=>v,MJ:()=>x,Rr:()=>h,eI:()=>p,lR:()=>g,lV:()=>c,zB:()=>u});var n=r(95155),a=r(12115),i=r(32467),o=r(22544),s=r(64269),l=r(76444);let c=o.Op,d=a.createContext({}),u=e=>{let{...t}=e;return(0,n.jsx)(d.Provider,{value:{name:t.name},children:(0,n.jsx)(o.xI,{...t})})},m=()=>{let e=a.useContext(d),t=a.useContext(f),{getFieldState:r}=(0,o.xW)(),n=(0,o.lN)({name:e.name}),i=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:s}=t;return{id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message"),...i}},f=a.createContext({});function p(e){let{className:t,...r}=e,i=a.useId();return(0,n.jsx)(f.Provider,{value:{id:i},children:(0,n.jsx)("div",{"data-slot":"form-item",className:(0,s.cn)("grid gap-2",t),...r})})}function g(e){let{className:t,...r}=e,{error:a,formItemId:i}=m();return(0,n.jsx)(l.J,{"data-slot":"form-label","data-error":!!a,className:(0,s.cn)("data-[error=true]:text-destructive",t),htmlFor:i,...r})}function x(e){let{...t}=e,{error:r,formItemId:a,formDescriptionId:o,formMessageId:s}=m();return(0,n.jsx)(i.DX,{"data-slot":"form-control",id:a,"aria-describedby":r?"".concat(o," ").concat(s):"".concat(o),"aria-invalid":!!r,...t})}function h(e){let{className:t,...r}=e,{formDescriptionId:a}=m();return(0,n.jsx)("p",{"data-slot":"form-description",id:a,className:(0,s.cn)("text-muted-foreground text-sm",t),...r})}function v(e){var t;let{className:r,...a}=e,{error:i,formMessageId:o}=m(),l=i?String(null!=(t=null==i?void 0:i.message)?t:""):a.children;return l?(0,n.jsx)("p",{"data-slot":"form-message",id:o,className:(0,s.cn)("text-destructive text-sm",r),...a,children:l}):null}},51834:(e,t,r)=>{r.d(t,{Cf:()=>m,Es:()=>p,HM:()=>d,L3:()=>g,LC:()=>u,ZJ:()=>c,c7:()=>f,lG:()=>s,rr:()=>x,zM:()=>l});var n=r(95155);r(12115);
1var a=r(89511),i=r(65229),o=r(64269);function s(e){let{...t}=e;return(0,n.jsx)(a.bL,{"data-slot":"dialog",...t})}function l(e){let{...t}=e;return(0,n.jsx)(a.l9,{"data-slot":"dialog-trigger",...t})}function c(e){let{...t}=e;return(0,n.jsx)(a.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{...t}=e;return(0,n.jsx)(a.bm,{"data-slot":"dialog-close",...t})}function u(e){let{className:t,...r}=e;return(0,n.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function m(e){let{className:t,iconColor:r,template:s,hideCloseButton:l,closeClassName:d,children:m,...f}=e;return(0,n.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,n.jsx)(u,{}),(0,n.jsxs)(a.UC,{"data-slot":"dialog-content",className:(0,o.cn)("bg-background 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]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...f,children:[m,!l&&(0,n.jsxs)(a.bm,{className:(0,o.cn)("ring-offset-background focus:ring-primary data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 z-50 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",d),children:[(0,n.jsx)(i.A,{className:(0,o.cn)("!h-6 !w-6",r,"blue-tech"===s&&"text-primary")}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function f(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function p(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-footer",className:(0,o.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...r})}function g(e){let{className:t,...r}=e;return(0,n.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,o.cn)("text-lg leading-none font-semibold",t),...r})}function x(e){let{className:t,...r}=e;return(0,n.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,o.cn)("text-muted-foreground text-sm",t),...r})}},65142:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(95155);r(12115);var a=r(64269);function i(e){let{className:t,type:r,...i}=e;return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i})}},66654:(e,t,r)=>{r.d(t,{$w:()=>o,KA:()=>i,fV:()=>l,rK:()=>s,tM:()=>c});var n=r(15653);let a=/^0[1-9]\d{8}$/,i=n.z.preprocess(e=>"string"==typeof e?e.trim().replace(/[^\d+]/g,"").replace(/^(\+?84)/,"0"):e,n.z.string().nonempty("Số điện thoại l\xe0 bắt buộc").refine(e=>a.test(e),{message:"Số điện thoại kh\xf4ng hợp lệ"})),o=n.z.string().nonempty("Mật khẩu l\xe0 bắt buộc").regex(/^[a-zA-Z0-9@#$%^&*()_+!\-=.?]*$/,"Mật khẩu chứa k\xfd tự kh\xf4ng hợp lệ").min(6,"Mật khẩu tối thiểu 6 k\xed tự");n.z.preprocess(e=>{if("string"!=typeof e)return e;let t=e.trim();return""===t?void 0:t},n.z.string().email("Email kh\xf4ng hợp lệ").optional().transform(e=>"string"==typeof e?e.toLowerCase():e));let s=n.z.preprocess(e=>"string"==typeof e?e.trim():e,n.z.string().nonempty("Email l\xe0 bắt buộc").email("Email kh\xf4ng hợp lệ").transform(e=>e.toLowerCase())),l=n.z.string().min(1,"Họ l\xe0 bắt buộc").max(50,"Tối đa 50 k\xfd tự"),c=n.z.string().min(1,"T\xean l\xe0 bắt buộc").max(50,"Tối đa 50 k\xfd tự")},68019:(e,t,r)=>{r.d(t,{V:()=>n});let n=(e,t)=>{if(!e||"string"!=typeof e)return"";let r=e.trim();if(r.startsWith("https://")||r.startsWith("http://"))return r.replace("/api/v1","");
1if((e=>e.startsWith("/api/v1/files")||e.startsWith("/files/")||e.includes("/files/"))(r)){let e="https://api.homeproxy.vn".replace(/\/$/,"");if(e){let t=r.startsWith("/")?r:"/".concat(r);return"".concat(e).concat(t).replace("/api/v1","")}}let n=(t||"https://app.homeproxy.vn").trim().replace(/^https?:\/\//,"").replace(/\/$/,"");return n?r.startsWith("/")?"https://".concat(n).concat(r).replace("/api/v1",""):"https://".concat(n,"/").concat(r).replace("/api/v1",""):r}},75746:(e,t,r)=>{r.d(t,{k:()=>n});let n=(0,r(25959).v)()(e=>({user:null,setUser:t=>e({user:t}),updateCoin:t=>e(e=>({user:e.user?{...e.user,coin:Number(e.user.coin)+t}:null})),clearUser:()=>e({user:null})}))},76444:(e,t,r)=>{r.d(t,{J:()=>o});var n=r(95155);r(12115);var a=r(10489),i=r(64269);function o(e){let{className:t,...r}=e;return(0,n.jsx)(a.b,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},79012:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(95155),a=r(12115),i=r(51834),o=r(3998),s=r(65229),l=r(20063),c=r(75746),d=r(63590),u=r(12963),m=r(72264),f=r(15239);function p(e){var t,r,p;let{appConfig:g}=e,x=null!=(p=null==g||null==(t=g.setting)?void 0:t.depositBonus)?p:[],h=null==g||null==(r=g.theme)?void 0:r.template,v=(0,c.k)(e=>e.user),[b,w]=a.useState(!1),[y,k]=a.useState(!1),[j,N]=a.useState(!1),C=(0,l.usePathname)();if(a.useEffect(()=>{v&&k(!1)},[v]),a.useEffect(()=>{if("/"===C&&x&&x.length>0){let e=setTimeout(()=>{w(!0)},100);return()=>clearTimeout(e)}},[C,x]),!x||0===x.length)return null;let _=e=>new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format(e);return(0,n.jsxs)(i.lG,{open:b,onOpenChange:w,children:[(0,n.jsxs)(i.Cf,{template:h,className:"max-h-[85vh] max-w-[95vw] overflow-y-auto rounded-2xl border-none p-0 sm:max-w-[796px] [&>button:last-child]:hidden",children:[(0,n.jsx)(i.HM,{className:"absolute right-1 z-20 flex h-8 w-8 cursor-pointer items-center justify-center transition-colors hover:bg-white/10 md:top-4 md:right-4",children:(0,n.jsx)(s.A,{className:"h-6 w-6 text-white"})}),(0,n.jsx)("div",{className:"popup-template-3 relative overflow-hidden rounded-2xl",children:(0,n.jsxs)("div",{className:"flex flex-col gap-6 p-6 sm:flex-row sm:items-center",children:[(0,n.jsxs)("div",{className:"relative z-10 flex-1",children:[(0,n.jsx)("h2",{className:"mb-2 text-center text-[26px] leading-6 font-semibold text-[#DF3B30]",children:"Chương tr\xecnh khuyến m\xe3i"}),(0,n.jsx)("p",{className:"mb-6 text-center text-base leading-[22px] font-semibold text-[#152752]",children:"Thưởng nạp tiền - nhận ngay ưu đ\xe3i"}),(0,n.jsx)("div",{className:"mb-6 w-full",children:(0,n.jsx)("div",{className:"custom-scroll max-h-[172px] w-full overflow-y-auto pr-2",children:x.map((e,t)=>{let r,a=e.min*e.rate,i="bonus-".concat(e.min,"-").concat(e.rate);return(0,n.jsx)("div",{className:"relative w-full bg-[#FBEBEA] p-2 ".concat(0!==t?"mt-4":""),children:(0,n.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-lg border border-dashed border-[#F5BE90] bg-white p-2",children:[(0,n.jsx)(m.F.TagIcon,{className:"h-6 w-6 shrink-0 sm:h-10 sm:w-10"}),(0,n.jsxs)("div",{className:"shrink-0 border-r border-dashed border-[#FFB6BB] pr-1 text-[26px] leading-6 font-semibold text-[#FF4450]",children:["+",(r=e.rate,"".concat((100*r).toFixed(0),"%"))]}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start gap-2",children:[(0,n.jsx)("div",{className:"rounded-full bg-[#FFBEA1] px-2 text-center",children:(0,n.jsxs)("p",{className:"truncate text-xs leading-4 font-normal text-white",children:["Nạp từ ",_(e.min)]})}),(0,n.jsxs)("p",{className:"text-sm leading-[22px] font-semibold text-[#152752]",children:["Tặng từ ",_(a)]})]})]})},i)})})}),(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)(o.$,{onClick:()=>void(w(!1),(null==v?void 0:v.id)?N(!0):k(!0)),className:"bg-primary hover:bg-primary/90 h-9 w-[138px] rounded-full text-base font-medium text-white",children:"Nạp ngay"})})]}),(0,n.jsxs)("div",{className:"relative hidden h-[343px] flex-1 shrink-0 items-center justify-center overflow-hidden sm:flex",children:[(0,n.jsx)(f.default,{src:"/images/images-Template3/bannerPopUp.webp",alt:"banner",fill:!0,className:"object-contain"}),(0,n.jsx)("div",{className:"absolute right-0 h-32 w-2 rounded-tl-xl rounded-bl-xl bg-white"})]})]})})]}),y&&(0,n.jsx)(d.A,{onCallBack:()=>k(!1)}),j&&(0,n.jsx)(u.A,{open:j,onClose:()=>N(!1)})]})}},80389:(e,t,r)=>{r.d(t,{c:()=>s});var n=r(95155);r(12115);var a=r(55817),i=r(31719),o=r(64269);function s(e){let{className:t,...r}=e;
1return(0,n.jsx)(a.bL,{children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(a.pd,{className:(0,o.cn)("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...r}),(0,n.jsx)(a.lM,{id:r.id+"btn-toggle",className:"absolute top-1/2 right-2 -translate-y-1/2 text-gray-500 hover:text-gray-700",children:(0,n.jsx)(a.In,{visible:(0,n.jsx)(i.N5q,{}),hidden:(0,n.jsx)(i.V$C,{})})})]})})}},86948:(e,t,r)=>{r.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>s,Zp:()=>i,aR:()=>o,wL:()=>d});var n=r(95155);r(12115);var a=r(64269);function i(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...r})}function o(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function s(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",t),...r})}function l(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...r})}function c(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-4",t),...r})}function d(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center px-4 [.border-t]:pt-6",t),...r})}},95307:(e,t,r)=>{r.d(t,{p7:()=>x,default:()=>f,G2:()=>g,Yk:()=>p});var n=r(12115),a=r(20063),i=r(72378),o=r(1474);let s=null,l=null;var c=r(39180),d=r(13744);let u="ref_data",m="ref_click_id";function f(){let e=(0,a.useSearchParams)(),{fingerprint:t,getFingerprint:r}=function(){let[e,t]=(0,n.useState)(s),[r,a]=(0,n.useState)(!s),[i,c]=(0,n.useState)(null),d=(0,n.useCallback)(async()=>{if(s)return s;try{l||(l=o.Ay.load());
1let e=await l,r=await e.get(),n={visitorId:r.visitorId,confidence:r.confidence.score};return s=n,t(n),n}catch(t){let e=t instanceof Error?t:Error("Failed to get fingerprint");return c(e),console.error("Fingerprint error:",e),null}},[]);return(0,n.useEffect)(()=>{s||(a(!0),d().finally(()=>a(!1)))},[d]),{fingerprint:e,isLoading:r,error:i,getFingerprint:d}}(),f=(0,c.r)(e=>e.config),p=null==f?void 0:f.merchantId,g=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{(async()=>{let n=e.get("ref");if(!n||!p||g.current)return;let a=e.get("cid");if(!a){let e=i.A.get(u);if(e)try{if(JSON.parse(e).referralCode===n)return}catch(e){}}g.current=!0;let o=t;o||(o=await r());let s={referralCode:n,landingUrl:window.location.href,referer:document.referrer||void 0,utmSource:e.get("utm_source")||void 0,utmMedium:e.get("utm_medium")||void 0,utmCampaign:e.get("utm_campaign")||void 0};a&&(s.cid=a),o&&(s.fingerprint=o.visitorId,s.fingerprintConfidence=o.confidence);try{let e=await d.A.postApi("/api/v1/clicks/track",s,"",{headers:{"x-merchant-id":p}});if(null==e?void 0:e.valid){let t=e.cookieMaxAge||2592e3,r=new Date(Date.now()+1e3*t),n={referralCode:e.referralCode,affiliateId:e.affiliateId,programId:e.programId,clickId:e.clickId,trackedAt:new Date().toISOString()};i.A.set(u,JSON.stringify(n),{expires:r,path:"/",sameSite:"lax"}),e.clickId&&i.A.set(m,e.clickId,{expires:r,path:"/",sameSite:"lax"}),console.log("[ReferralTracker] Tracked successfully:",e)}else console.warn("[ReferralTracker] Invalid referral:",null==e?void 0:e.error)}catch(e){console.error("[ReferralTracker] Track error:",e),g.current=!1}})()},[e,t,r,p]),null}function p(){let e=i.A.get(u);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}function g(){return i.A.get(m)}function x(){i.A.remove(u,{path:"/"}),i.A.remove(m,{path:"/"})}}}]);

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.