import{o as a}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as r}from"./vendor-frame-CwiylG4Y.js";import{$r as o,Jr as e}from"./shared-1-3-6x7RKF.js";import{fa as m,oa as t,va as s}from"./shared-4-6CEyRAHb.js";var i=a(r());function n(){const{data:a,mutate:r}=o(),n=a?.promotionId,{data:f}=s();return(0,i.useEffect)(()=>{f?.referral_code&&(f.campaign===t.EVERGREEN_CLAUDE_DISCOUNT||m(f.campaign))&&n!==f.campaign&&r({promotionId:f.campaign,referralCode:f.referral_code})},[n,f,r]),e()}export{n as t};