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]=`875244ae-bee0-4ec8-9921-f26e9375ab80`,e._sentryDebugIdIdentifier=`sentry-dbid-875244ae-bee0-4ec8-9921-f26e9375ab80`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Hm as r,Qm as i,ei as a,jg as o,ng as s,x as c,xr as l}from"./entry.client-mpghtlrl.js";import{an as u}from"./xds-icons-m106f2fc.js";import{c as d}from"./PurchaseDialog-fpui7yuh.js";var f=n(),p=e(o(),1),m=s(),h=`https://support.xbox.com/en-US/help/family-online-safety/child-accounts/approve-child-purchases`,g=e=>{let n=(0,f.c)(35),{trackAppAction:o}=i(),{t:s}=t(`PurchaseAskAParentResult`),{locClose:g}=r(),_,v;n[0]!==o||n[1]!==e.productId?(_=()=>{o(`ShowPurchaseAskAParentResult`,{productId:e.productId},{location:`AskAParent`})},v=[o,e.productId],n[0]=o,n[1]=e.productId,n[2]=_,n[3]=v):(_=n[2],v=n[3]),(0,p.useEffect)(_,v);let y;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,m.jsx)(a,{size:`title1`,icon:(0,m.jsx)(u,{})}),n[4]=y):y=n[4];let b;n[5]===s?b=n[6]:(b=s(`Request sent!`,{shortKey:`ask_a_parent_request_sent_header`}),n[5]=s,n[6]=b);let x;n[7]===b?x=n[8]:(x=(0,m.jsxs)(`div`,{className:`flex flex-row items-center gap-3 text-noninteractive-content-primary-content`,children:[y,(0,m.jsx)(`h1`,{className:`font-semibold leading-[2rem] type-title2`,children:b})]}),n[7]=b,n[8]=x);let S;n[9]===s?S=n[10]:(S=s(`The request has been sent. Good luck - we find that saying please tends to work wonders!`,{shortKey:`ask_a_parent_request_sent_message`}),n[9]=s,n[10]=S);let C;n[11]===S?C=n[12]:(C=(0,m.jsx)(`p`,{className:`mt-3 text-noninteractive-content-primary-content type-body`,children:S}),n[11]=S,n[12]=C);let w;n[13]!==x||n[14]!==C?(w=(0,m.jsxs)(`div`,{className:`m-layout-vertical-related-content-in-a-section-tight`,children:[x,C]}),n[13]=x,n[14]=C,n[15]=w):w=n[15];let T;n[16]===s?T=n[17]:(T=s(`Get support`,{shortKey:`get_support`}),n[16]=s,n[17]=T);let E;n[18]===T?E=n[19]:(E=(0,m.jsx)(`div`,{className:`m-layout-vertical-related-content-in-a-section-tight flex grow`,children:(0,m.jsx)(c,{label:T,size:`body`,isExternalLink:!0,href:h})}),n[18]=T,n[19]=E);let D;n[20]!==e.cV||n[21]!==s?(D=e.cV&&(0,m.jsxs)(`p`,{className:`text-noninteractive-content-secondary-content type-caption`,children:[s(`cV: {cV}`,{shortKey:`cv_label`,values:{cV:e.cV}}),e.cV]}),n[20]=e.cV,n[21]=s,n[22]=D):D=n[22];let O=e.exit,k;n[23]===g?k=n[24]:(k=g(),n[23]=g,n[24]=k);let A;n[25]!==e.exit||n[26]!==k?(A=(0,m.jsx)(l,{as:`button`,kind:`standard`,onPress:O,size:`standard`,children:k}),n[25]=e.exit,n[26]=k,n[27]=A):A=n[27];let j;n[28]!==D||n[29]!==A?(j=(0,m.jsxs)(`div`,{className:`m-layout-vertical-related-content-in-a-section-tight flex grow flex-col justify-end gap-internal-gap-regular`,children:[D,A]}),n[28]=D,n[29]=A,n[30]=j):j=n[30];let M;return n[31]!==w||n[32]!==E||n[33]!==j?(M=(0,m.jsx)(d,{children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col bg-container-backgrounds-elevation-background-level-4`,children:[w,E,j]})}),n[31]=w,n[32]=E,n[33]=j,n[34]=M):M=n[34],M};export{g as default};