try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`8ebd6a4b-84e1-4eab-a0aa-b5884e625f18`,e._sentryDebugIdIdentifier=`sentry-dbid-8ebd6a4b-84e1-4eab-a0aa-b5884e625f18`)}catch{}import{Dg as e,Fg as t,sh as n,wg as r}from"./entry.client-dr7r6s9a.js";import{t as i}from"./useIsDuetUser-fcto9lm1.js";var a=t();function o(){let t=(0,a.c)(18),{dialog:o,settings:s}=n(),c=i(),l;t[0]===s.queries.hasSeenDuetFREDialogSetting?l=t[1]:(l=s.queries.hasSeenDuetFREDialogSetting.getOptions(),t[0]=s.queries.hasSeenDuetFREDialogSetting,t[1]=l);let u;t[2]!==l||t[3]!==c?(u={...l,enabled:c},t[2]=l,t[3]=c,t[4]=u):u=t[4];let{data:d,isLoading:f}=e(u),p;t[5]===o.queries.isAnyDialogOpen?p=t[6]:(p=o.queries.isAnyDialogOpen.getOptions(),t[5]=o.queries.isAnyDialogOpen,t[6]=p);let{data:m,isLoading:h}=e(p),g;t[7]===o.mutations.open?g=t[8]:(g=o.mutations.open.getOptions(),t[7]=o.mutations.open,t[8]=g);let{mutate:_}=r(g),v=c&&f||h,y=!v&&c&&d===!1&&m===!1,b=o.keys.duet.fullPath,x;t[9]!==y||t[10]!==_||t[11]!==b?(x=()=>{y&&_({key:b,props:{dialogType:`fre`}})},t[9]=y,t[10]=_,t[11]=b,t[12]=x):x=t[12];let S=x,C;return t[13]!==c||t[14]!==y||t[15]!==v||t[16]!==S?(C={isDuetUser:c,isEligible:y,isLoading:v,openDialog:S},t[13]=c,t[14]=y,t[15]=v,t[16]=S,t[17]=C):C=t[17],C}export{o as t};