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