var u=Object.defineProperty,S=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(a,e,s)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,g=(a,e)=>{for(var s in e||(e={}))d.call(e,s)&&f(a,s,e[s]);if(l)for(var s of l(e))C.call(e,s)&&f(a,s,e[s]);return a},p=(a,e)=>S(a,h(e));import{at as E,g5 as I,r as O,df as A,dg as _,g6 as w,g7 as x}from"./chunk-FPNVRYEJ.js";import{q as L}from"./chunk-Cs6oBwrl.js";const M=a=>{const e=E(n=>n.signIn.user),s=I(e);O.useEffect(()=>{var i;const{search:n,pathname:m}=window.location,t=(i=new URLSearchParams(n).get(L.MSource))!=null?i:"";if(t&&(t==null?void 0:t.length)>0){const o=new Date().getTime()/1e3+31556952;A.setCookie(_,t,{expires:o})}const r=n.split("&").map(o=>o[0]==="?"?o.slice(1):o);let c={location:m,page_refer:document.referrer};r&&(r==null?void 0:r.length)>0&&r[0]!==""&&(c=p(g({},c),{query:r})),w(x.LOAD_PAGE,c,s)},a||[])};export{M as u};