Build 589089stable
Module 242874
658 characters · in d7d106bf2ad42155.jsDependencies
Source Raw
function(e,n,i){i.d(n,{UN:()=>f,oA:()=>c,yE:()=>p});var t,r=i(284009),l=i.n(r),a=i(308528),o=i(148494),s=i(451909),d=i(734057),u=i(45938),h=i(381941),c=((t={}).ACTION="action",t.LOOP="loop",t.IDLE="idle",t);async function f(e,n){if(null==n)throw Error("giftCode must be defined");if(null==e)throw Error("Recipient must be defined");let i=await a.A.openPrivateChannel({recipientIds:e.id}).then(e=>{let n=d.A.getChannel(e);if(l()(null!=n,"PrivateChannel is null"),null==n)throw Error("Channel must be defined");return n}),t=(0,u.Zq)(n);return o.A.sendMessage(i.id,s.Ay.parse(i,t),void 0,{isGiftLinkSentOnBehalfOfUser:!0,location:h.Hx.GIFTING})}function p(e){}}