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]=`36e00c90-e2cd-4dd7-bf40-caa7bc1d4711`,e._sentryDebugIdIdentifier=`sentry-dbid-36e00c90-e2cd-4dd7-bf40-caa7bc1d4711`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Ig as r,Wn as i,ch as a,eh as o,hn as s,l as c,lh as l}from"./entry.client-dr7r6s9a.js";import{rr as u}from"./xds-icons-d7khcnpi.js";import{t as d}from"./NarrowPurchaseShell-lkyxvfta.js";var f=n(),p=e(r(),1),m=t(),h=`https://support.xbox.com/en-US/help/family-online-safety/child-accounts/approve-child-purchases`,g=e=>{let t=(0,f.c)(35),{trackAppAction:n}=a(),{t:r}=l(`PurchaseAskAParentResult`),{locClose:g}=o(),_,v;t[0]!==n||t[1]!==e.productId?(_=()=>{n(`ShowPurchaseAskAParentResult`,{productId:e.productId},{location:`AskAParent`})},v=[n,e.productId],t[0]=n,t[1]=e.productId,t[2]=_,t[3]=v):(_=t[2],v=t[3]),(0,p.useEffect)(_,v);let y;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,m.jsx)(i,{size:`title1`,icon:(0,m.jsx)(u,{})}),t[4]=y):y=t[4];let b;t[5]===r?b=t[6]:(b=r(`Request sent!`,{shortKey:`ask_a_parent_request_sent_header`}),t[5]=r,t[6]=b);let x;t[7]===b?x=t[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})]}),t[7]=b,t[8]=x);let S;t[9]===r?S=t[10]:(S=r(`The request has been sent. Good luck - we find that saying please tends to work wonders!`,{shortKey:`ask_a_parent_request_sent_message`}),t[9]=r,t[10]=S);let C;t[11]===S?C=t[12]:(C=(0,m.jsx)(`p`,{className:`mt-3 text-noninteractive-content-primary-content type-body`,children:S}),t[11]=S,t[12]=C);let w;t[13]!==x||t[14]!==C?(w=(0,m.jsxs)(`div`,{className:`m-layout-vertical-related-content-in-a-section-tight`,children:[x,C]}),t[13]=x,t[14]=C,t[15]=w):w=t[15];let T;t[16]===r?T=t[17]:(T=r(`Get support`,{shortKey:`get_support`}),t[16]=r,t[17]=T);let E;t[18]===T?E=t[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})}),t[18]=T,t[19]=E);let D;t[20]!==e.cV||t[21]!==r?(D=e.cV&&(0,m.jsxs)(`p`,{className:`text-noninteractive-content-secondary-content type-caption`,children:[r(`cV: {cV}`,{shortKey:`cv_label`,values:{cV:e.cV}}),e.cV]}),t[20]=e.cV,t[21]=r,t[22]=D):D=t[22];let O=e.exit,k;t[23]===g?k=t[24]:(k=g(),t[23]=g,t[24]=k);let A;t[25]!==e.exit||t[26]!==k?(A=(0,m.jsx)(s,{as:`button`,kind:`standard`,onPress:O,size:`standard`,children:k}),t[25]=e.exit,t[26]=k,t[27]=A):A=t[27];let j;t[28]!==D||t[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]}),t[28]=D,t[29]=A,t[30]=j):j=t[30];let M;return t[31]!==w||t[32]!==E||t[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]})}),t[31]=w,t[32]=E,t[33]=j,t[34]=M):M=t[34],M};export{g as default};