if (self.CavalryLogger) { CavalryLogger.start_js(["rEnpE"]); }

__d("FBRTCParticipantCallState",[],(function a(b,c,d,e,f,g){f.exports={UNKNOWN:0,DISCONNECTED:1,NO_ANSWER:2,REJECTED:3,UNREACHABLE:4,CONNECTION_DROPPED:5,CONTACTING:6,RINGING:7,CONNECTING:8,CONNECTED:9,PARTICIPANT_LIMIT_REACHED:10,IN_ANOTHER_CALL:11,RING_TYPE_UNSUPPORTED:12}}),null);
__d("FBPaymentsErrorNotice_DEPRECATED.react",["cx","React","XUINotice.react"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;"use strict";for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.renderErrorContent=function(){var r=this.props.error;if(r.message.__html)return c("React").createElement("span",{dangerouslySetInnerHTML:r.message});else return c("React").createElement("span",null,r.message)}.bind(this),n}l.prototype.render=function(){"use strict";return c("React").createElement(c("XUINotice.react"),{className:"_3-8n",use:"warn"},this.renderErrorContent())};l.propTypes={error:k.object};l.defaultProps={error:null};f.exports=l}),null);
__d("MessengerProfileImageWrapperReact.bs",["cx","fbt","cssVar","React","Utils.bs","bs_js_boolean","CurrentUser","ReasonReact.bs","TooltipData","joinClasses","bs_js_primitive","MessagingThreadType","getViewportDimensions"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=c("ReasonReact.bs").statelessComponent("MessengerProfileImageWrapperReact");function l(n,o,p,q,r,s,t,u,v,w,x,y){__p&&__p();var z=w?w[0]:"",A=function A(){__p&&__p();if(o)return c("React").createElement("div",{className:"_4ld_ _2pom"},c("React").createElement("div",{className:"_2pon _4p4t"},o[0]));else{var C=0;if(p)C=1;else if(q)C=1;else if(v)C=1;else return null;if(C===1)if(x!==0)if(q)if(c("CurrentUser").isWorkUser())return null;else{var D=q[0];return c("React").createElement("div",{className:"_4ld_ _2pom"},c("React").createElement("div",{className:"_2pon"+(c("bs_js_boolean").to_js_boolean(D)?" _1zvi":"")+(c("bs_js_boolean").to_js_boolean(1-D)?" _2poo":"")}))}else if(v)if(c("CurrentUser").isWorkUser()){var E=v[0],F=u?+(u[0]>45):0,G=+c("CurrentUser").isEmployee(),H=G!==0?"Multi company chat (or employee personal account)":i._("Multi company chat");return c("React").createElement("div",{className:"_4ld_ _2pom"},c("React").cloneElement(c("React").createElement("div",{className:(c("bs_js_boolean").to_js_boolean(E&&1-F)?"_4rwy":"")+(c("bs_js_boolean").to_js_boolean(E&&F)?" _2zb5":"")}),c("TooltipData").propsFor(H,"right")))}else return null;else if(c("CurrentUser").isWorkUser())return null;else{var I=p[0];return c("React").createElement("div",{className:"_4ld_ _2pom"},c("React").createElement("div",{className:"_2pon"+(c("bs_js_boolean").to_js_boolean(I)?" _2poo":"")+(c("bs_js_boolean").to_js_boolean(1-I)?" _2pop":"")}))}else return null}},B=k.slice();B[9]=function(){__p&&__p();var C=u?""+(String(u[0])+"px"):"auto",D=s?+(s[0]===c("MessagingThreadType").ROOM):0,E=n?{"aria-hidden":c("bs_js_boolean").to_js_boolean(n[0])}:{},F;if(t){var G=t[0];if(G==="")F=E;else{var H=c("getViewportDimensions")().width,I=parseInt("700px".replace("px",""),10),J=+(H<=I),K=J!==0?"above":"left";F=Object.assign(E,c("TooltipData").propsFor(G,K))}}else F=E;var L=D!==0?{background:r?r[0]:"#0084ff",height:C,width:C}:{height:C,width:C};return c("React").cloneElement(c("React").createElement("div",{className:c("joinClasses")("_4ldz",z),style:{height:C,width:C}},c("ReasonReact.bs").createDomElement("div",{className:"_4ld-"+(c("bs_js_boolean").to_js_boolean(D)?" _180i":""),style:L},y),A(0)),F)};return B}var m=c("ReasonReact.bs").wrapReasonForJs(k,function(n){var o=n.className;return l(c("Utils.bs").nullUndefinedBooleanToOptionBool(n.ariaHidden),c("bs_js_primitive").null_undefined_to_opt(n.customBadge),c("Utils.bs").nullUndefinedBooleanToOptionBool(n.isMessengerUser),0,c("bs_js_primitive").null_undefined_to_opt(n.threadColor),c("bs_js_primitive").null_undefined_to_opt(n.threadType),c("bs_js_primitive").null_undefined_to_opt(n.tooltipContent),c("bs_js_primitive").null_undefined_to_opt(n.size),[+n.isMultiCompany],[o==null?"":o],+n.showBadge,[].concat(n.children))});g.component=k;g.make=l;g.jsComponent=m}),null);
__d("MessengerContactImage.react",["Image.react","MessengerProfileImageWrapperReact.bs","React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("MessengerProfileImageWrapperReact.bs").jsComponent,k=c("React").PropTypes;h=babelHelpers.inherits(l,c("React").PureComponent);i=h&&h.prototype;l.prototype.render=function(){"use strict";return c("React").createElement("div",{className:this.props.className},c("React").createElement(j,{isMessengerUser:this.props.isMessengerUser,isPartiesUser:this.props.isPartiesUser,size:this.props.size,customBadge:this.props.customBadge,showBadge:false},c("React").createElement(c("Image.react"),{alt:"",height:this.props.size,src:this.props.src,width:this.props.size})))};function l(){"use strict";h.apply(this,arguments)}l.propTypes={customBadge:k.string,isMessengerUser:k.bool,size:k.number.isRequired,src:c("Image.react").validateImageSrcPropType};f.exports=l}),null);
__d("MessengerDialog.react",["cx","LayerFadeOnHide","LayerHideOnEscape","React","XUIDialog.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("React").PropTypes,j=c("React").createClass({displayName:"MessengerDialog",propTypes:{onToggle:i.func.isRequired,repositionOnUpdate:i.bool,shown:i.bool,type:i.oneOf(["alert","default"]),width:i.number},getDefaultProps:function k(){return{repositionOnUpdate:false,shown:true,type:"alert",width:400}},componentDidUpdate:function k(){if(this.props.repositionOnUpdate)setTimeout(function(){if(this.isMounted()&&this.refs.dialog&&this.refs.dialog.layer)this.refs.dialog.layer.updatePosition()}.bind(this),0)},render:function k(){return c("React").createElement(c("XUIDialog.react"),babelHelpers["extends"]({behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerHideOnEscape:c("LayerHideOnEscape")}},this.props,{className:c("joinClasses")("_4ebx",this.props.className),ref:"dialog"}),c("React").createElement("div",{className:"_4eby"+(this.props.type==="alert"?" _2c9g":"")+(this.props.type==="default"?" _2c9i":"")},this.props.children))}});f.exports=j}),null);
__d("MessengerDialogBody.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:c("joinClasses")("_4eb-",this.props.className)},this.props.children)};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("JsConvert.bs",["bs_curry","expectationViolation","bs_caml_builtin_exceptions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(v){},i=function i(v){},j=function j(v){},k=function k(v){},l=function l(v){},m=function m(v){};function n(v){return v}function o(v){if(v==null)return 0;else return[v]}function p(v){return v}function q(v){if(v==null)return 0;else return[v]}function r(v){return+v}function s(v){if(v==null)return 0;else return[+v]}function t(v,w){var x=c("bs_curry")._1(w,v);if(x)return x[0];else throw[c("bs_caml_builtin_exceptions").invalid_argument,"Bad enum conversion."]}function u(v,w){if(v==null)return 0;else{var x=c("bs_curry")._1(w,v);if(x)return[x[0]];else throw[c("bs_caml_builtin_exceptions").invalid_argument,"Bad enum conversion."]}}g.warnIfNotJsString=h;g.warnIfNotJsStringAndNotNullUndefined=i;g.warnIfNotJsInt=j;g.warnIfNotJsIntAndNotNullUndefined=k;g.warnIfNotJsBool=l;g.warnIfNotJsBoolAndNotNullUndefined=m;g.toString=n;g.toOptString=o;g.toInt=p;g.toOptInt=q;g.toBool=r;g.toOptBool=s;g.toEnum=t;g.toOptEnum=u}),null);
__d("LinkReact.bs",["Link.react","ReasonReact.bs","bs_js_null_undefined"],(function a(b,c,d,e,f,g){"use strict";function h(i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){return c("ReasonReact.bs").wrapJsForReason(c("Link.react"),{"aria-label":c("bs_js_null_undefined").from_opt(i),"data-hover":c("bs_js_null_undefined").from_opt(k),"data-tooltip-content":c("bs_js_null_undefined").from_opt(l),"data-tooltip-alignh":c("bs_js_null_undefined").from_opt(m),"data-tooltip-position":c("bs_js_null_undefined").from_opt(n),className:c("bs_js_null_undefined").from_opt(j),href:c("bs_js_null_undefined").from_opt(o),linkRef:c("bs_js_null_undefined").from_opt(p),onClick:c("bs_js_null_undefined").from_opt(q),onMouseDown:c("bs_js_null_undefined").from_opt(r),onMouseEnter:c("bs_js_null_undefined").from_opt(s),role:c("bs_js_null_undefined").from_opt(t),style:c("bs_js_null_undefined").from_opt(u),tabIndex:c("bs_js_null_undefined").from_opt(v),target:c("bs_js_null_undefined").from_opt(w),title:c("bs_js_null_undefined").from_opt(x)},y)}g.make=h}),null);
__d("MessengerButtonReact.bs",["cx","bs_curry","React","JsConvert.bs","LinkReact.bs","ReasonReact.bs","joinClasses","bs_js_primitive","bs_js_null_undefined"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(q,r,s){if(q!==0){s.preventDefault();return 0}else if(r)return c("bs_curry")._1(r[0],s);else return 0}var j=c("ReasonReact.bs").statelessComponent("MessengerButtonReact");function k(q){if(q)return[{color:q[0]}];else return 0}function l(q,r,s,t,u){var v="_3quh _30yy"+(+(r===0)?" _2t_":"")+(+(r===1)?" _2u0":"")+(+(r===2)?" _17u4":"")+(+(u===1)?" _3ay_":"")+(s?" _4zab":"")+(t?" _fy2":"");if(q)return c("joinClasses")(v,q[0]);else return v}function m(q,r,s,t,u,v,w,x,y,z,A,B,C,D,E){__p&&__p();var F=v?v[0]:0,G=y?y[0]:0,H=B?B[0]:0,I=D?D[0]:"",J=function J(N){return i(F,u,N)},K=l(w,A,F,G,H),L=k(x),M=j.slice();M[9]=function(){__p&&__p();if(C)return c("ReasonReact.bs").element(0,0,c("LinkReact.bs").make(q,[K],0,0,0,0,[C[0]],0,[J],0,0,r,L,s,t,0,z));else{var N=c("joinClasses")("_30vt",I),O={className:K,onClick:J};if(r)O.role=r[0];if(L)O.style=L[0];if(s)O.tabIndex=s[0];if(t)O.target=t[0];var P=c("React").createElement("button",O,z),Q=c("React").cloneElement(P,{"aria-label":c("bs_js_null_undefined").from_opt(q)});return c("React").createElement("span",{className:N},Q)}};return M}function n(q){switch(q){case"danger":return[1];case"default":return[0];default:return 0}}function o(q){switch(q){case"faded":return[2];case"primary":return[0];case"secondary":return[1];default:return 0}}var p=c("ReasonReact.bs").wrapReasonForJs(j,function(q){return m(c("JsConvert.bs").toOptString(q.ariaLabel),c("JsConvert.bs").toOptString(q.role),c("JsConvert.bs").toOptInt(q.tabIndex),c("JsConvert.bs").toOptString(q.target),c("bs_js_primitive").null_undefined_to_opt(q.onClick),c("JsConvert.bs").toOptBool(q.disabled),c("JsConvert.bs").toOptString(q.className),c("JsConvert.bs").toOptString(q.color),c("JsConvert.bs").toOptBool(q.customColor),q.label,c("JsConvert.bs").toEnum(q.type,o),c("JsConvert.bs").toOptEnum(q.use,n),c("JsConvert.bs").toOptString(q.href),c("JsConvert.bs").toOptString(q.wrapperClassName),q.children)});g.handleLinkClick=i;g.component=j;g.elementStyle=k;g.interactionElementClassName=l;g.make=m;g.useFromString=n;g.typeFromString=o;g.jsComponent=p}),null);
__d("MessengerDialogButton.react",["cx","MessengerButtonReact.bs","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("MessengerButtonReact.bs").jsComponent,l=c("React").PropTypes;i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;m.prototype.render=function(){var n=this.props,o=n.action,p=n.className,q=babelHelpers.objectWithoutProperties(n,["action","className"]);return c("React").createElement(k,babelHelpers["extends"]({className:c("joinClasses")(p,"_5ixy"+(o==="button"?" layerButton":"")+(o==="cancel"?" layerCancel":"")+(o==="confirm"?" layerConfirm":""))},q))};function m(){i.apply(this,arguments)}m.propTypes={action:l.oneOf(["button","cancel","confirm"])};f.exports=m}),null);
__d("MessengerDialogFooter.react",["cx","LeftRight.react","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement("div",{className:c("joinClasses")("_4eb_",this.props.className)},c("React").createElement(c("LeftRight.react"),null,c("React").createElement("div",{className:"_2_d1"},this.props.leftContent),c("React").createElement("div",null,this.props.children)))};function l(){i.apply(this,arguments)}l.propTypes={leftContent:k.object};f.exports=l}),null);
__d("MessengerDialogHeader.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("h2",{className:c("joinClasses")("_4ebz",this.props.className),id:this.props.id},this.props.children)};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("MessengerDialogTitle.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:c("joinClasses")("_19jt",this.props.className)},this.props.children)};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("MessengerText.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement("div",babelHelpers["extends"]({},this.props,{className:c("joinClasses")("_39r5"+(this.props.type==="primary"?" _39r6":"")+(this.props.type==="secondary"?" _39r7":"")+(this.props.size==="small"?" _39r8":"")+(this.props.display==="inline"?" __0d":""),this.props.className)}),this.props.children)};function l(){i.apply(this,arguments)}l.propTypes={display:k.oneOf(["inline","block"]),type:k.oneOf(["primary","secondary"]).isRequired,size:k.oneOf(["small"])};f.exports=l}),null);
__d("RTCUserRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({FBID:"UNDEFINED",isMessengerUser:false,isPartiesUser:false,lastConnectedAt:0,participantState:null,preferredStream:null,profilePictureUrl:null,profileUrl:null,screenStreams:c("immutable").Set(),streams:c("immutable").Set(),userName:"",userShortName:"",vanity:""});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("RTCUser",["FBRTCParticipantCallState","immutable","RTCUserRecord"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("RTCUserRecord"));i=h&&h.prototype;j.prototype.clone=function(){return new j(this.toObject())};j.prototype.setParticipantState=function(k){if((!this.participantState||this.participantState.state!==c("FBRTCParticipantCallState").CONNECTED)&&k.state===c("FBRTCParticipantCallState").CONNECTED)return this.set("participantState",k).set("lastConnectedAt",Date.now());return!this.participantState||this.participantState.state!==k.state?this.set("participantState",k):this};j.prototype.hasAudio=function(){return this.getAllStreamAudioTracks().some(function(k){return k.length>0})};j.prototype.hasVideo=function(){return this.streams.some(function(k){return k.getVideoTracks().length>0})};j.prototype.isAudioMuted=function(){if(!this.hasAudio())return true;return this.getAllStreamAudioTracks().every(function(k){return this.areAllTracksMuted(k)}.bind(this))};j.prototype.isVideoMuted=function(){if(!this.hasVideo())return true;return this.streams.every(function(k){return this.areAllTracksMuted(k.getVideoTracks())}.bind(this))};j.prototype.areAllTracksMuted=function(k){return!k.some(function(l){return l.enabled})};j.prototype.toggleMuteAudio=function(k){this.getAllStreamAudioTracks().forEach(function(l){return this.$RTCUser1(l)}.bind(this));return this.clone()};j.prototype.toggleMuteVideo=function(k){this.streams.forEach(function(l){return this.$RTCUser1(l.getVideoTracks(),k)}.bind(this));return this.clone()};j.prototype.getAllStreamAudioTracks=function(){return this.streams.concat(this.screenStreams).map(function(k){return k.getAudioTracks()})};j.prototype.hasStream=function(){return!this.streams.isEmpty()};j.prototype.addStream=function(k){return this.set("streams",this.streams.add(k))};j.prototype.setPreferredStream=function(k){return this.set("preferredStream",k)};j.prototype.removeStream=function(k){return this.set("streams",this.streams["delete"](k))};j.prototype.getMainStream=function(){return this.preferredStream?this.preferredStream:this.streams.first()};j.prototype.replaceStream=function(k,l){if(!this.streams.contains(k))return this;if(k===l)return this;return this.set("streams",this.streams.add(l)["delete"](k))};j.prototype.removeAllStreams=function(){return this.set("streams",c("immutable").Set())};j.prototype.hasScreenStream=function(){return!this.screenStreams.isEmpty()};j.prototype.addScreenStream=function(k){return this.set("screenStreams",this.screenStreams.add(k))};j.prototype.removeScreenStream=function(k){return this.set("screenStreams",this.screenStreams["delete"](k))};j.prototype.removeAllScreenStreams=function(){return this.set("screenStreams",c("immutable").Set())};j.prototype.replaceScreenStream=function(k,l){if(!this.screenStreams.contains(k))return this;if(k===l)return this;return this.set("screenStreams",this.screenStreams.add(l)["delete"](k))};j.prototype.$RTCUser1=function(k,l){var m=l!=null?!l:this.areAllTracksMuted(k);k.forEach(function(n){return n.enabled=m})};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("P2PAPIUtils",["fbt","CreditCardFormParam","guid"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=[1001,1004,1006,1002],j={getRandomDigits:function k(l){return Math.random().toString().slice(2,2+l)},genRequestID:function k(){return"id:"+c("guid")()+":"+Date.now()},genOfflineThreadingID:function k(){return Date.now()+""+j.getRandomDigits(6)},getUncaughtErrorMessage:function k(l){if(l&&i.indexOf(l)!==-1)return h._("Sorry, we were unable to complete your request. Please check that you are connected to the internet or refresh this page and try again.");return h._("Sorry, something went wrong. Please try again later.")},prepareCardMutationData:function k(l){__p&&__p();var m={},n=l[c("CreditCardFormParam").CARD_NUMBER].replace(/ /g,"");m[c("CreditCardFormParam").CARD_NUMBER]=n;if(typeof l[c("CreditCardFormParam").CARD_EXPIRATION]==="string"){var o=l[c("CreditCardFormParam").CARD_EXPIRATION].split("/");m[c("CreditCardFormParam").MONTH]=o[0];m[c("CreditCardFormParam").YEAR]=o[1];m[c("CreditCardFormParam").CARD_EXPIRATION]={};m[c("CreditCardFormParam").CARD_EXPIRATION][c("CreditCardFormParam").MONTH]=m[c("CreditCardFormParam").MONTH];m[c("CreditCardFormParam").CARD_EXPIRATION][c("CreditCardFormParam").YEAR]=m[c("CreditCardFormParam").YEAR]}else{m[c("CreditCardFormParam").MONTH]=l[c("CreditCardFormParam").CARD_EXPIRATION][c("CreditCardFormParam").MONTH];m[c("CreditCardFormParam").YEAR]=l[c("CreditCardFormParam").CARD_EXPIRATION][c("CreditCardFormParam").YEAR]}return babelHelpers["extends"]({},l,m)}};f.exports=j}),null);
__d("P2PPasswordProtectionParam",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({STATUS:"status"})}),null);
__d("P2PPaymentCampaignNames",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ZANGOOSE:"zangoose",SEVIPER:"seviper",PICHU:"pichu",PIKACHU:"pikachu",REFERRAL:"referral"})}),null);
__d("P2PTransferParam",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({TRANSFER_ID:"transfer_id",STATUS:"status",SENDER_STATUS:"sender_status",RECEIVER_STATUS:"receiver_status",RISK_RESULT:"risk_result"})}),null);
__d("PaymentActionAPIFields",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AUTHORIZE:"authorize",CAPTURE:"capture",CHARGE:"charge",REFUND:"refund",VOID:"void",CHARGEBACK:"chargeback",CHARGEBACK_REVERSAL:"chargeback_reversal",SALE:"sale",GEN_ASYNC_CREDENTIAL:"gen_async_credential"})}),null);
__d("XCommerceConsumerReceiptUploadCompletionController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/commerce/transaction-invoice/update/receipt-upload/",{})}),null);
__d("XCommerceTransactionInvoiceDetailsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/messages/commerce/transaction_invoice_details/",{invoice_id:{type:"String",required:true}})}),null);
__d("XMoneypennyPaymentsCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/moneypenny/payments/_create/",{})}),null);
__d("XP2PAddressCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/address/_create/",{})}),null);
__d("XP2PAddressesController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/addresses/",{})}),null);
__d("XP2PBannerDismissalsUpdateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/banner_dismissals/_update/",{banner_type:{type:"String",required:true}})}),null);
__d("XP2PBannerStatesController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/banner_states/",{})}),null);
__d("XP2PBannerViewsUpdateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/banner_views/_update/",{banner_type:{type:"String",required:true}})}),null);
__d("XP2PCardBINValidateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/card_bin/validate/",{bin_number:{type:"String",required:true}})}),null);
__d("XP2PCreditCardCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/credit_cards/_create/",{})}),null);
__d("XP2PCreditCardDeleteController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/credit_cards/_delete/",{})}),null);
__d("XP2PCreditCardUpdateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/credit_cards/_update/",{})}),null);
__d("XP2PCreditCardVerifyController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/credit_cards/_verify/",{})}),null);
__d("XP2PCreditCardsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/credit_cards/",{})}),null);
__d("XP2PCurrentUserProfileDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/current_user_profile_data/",{})}),null);
__d("XP2PExtensiveTransferDetailsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transaction/details/",{id:{type:"String",required:true}})}),null);
__d("XP2PFriendPickerController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/friend_picker/",{limit:{type:"Int",defaultValue:100},query:{type:"String"}})}),null);
__d("XP2PPasswordProtectionStatusController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/password_protection_status/",{})}),null);
__d("XP2PPasswordProtectionStatusUpdateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/password_protection_status/_update/",{})}),null);
__d("XP2PPaymentRequestCancelController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/payment_requets/_cancel/",{})}),null);
__d("XP2PPaymentRequestCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/payment_requests/_create/",{})}),null);
__d("XP2PPaymentRequestDeclineController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/payment_requets/_decline/",{})}),null);
__d("XP2PPendingPaymentRequestsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/pending_payment_requests/",{})}),null);
__d("XP2PPlatformContextController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/platform_context/",{platform_context_id:{type:"String",required:true}})}),null);
__d("XP2PPlatformMsgrCommerceCartCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/platform/msgr_commerce/create/",{})}),null);
__d("XP2PPlatformSetShippingAddressController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/platform/set_shipping_address/",{})}),null);
__d("XP2PPresetCreditCardSetController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/preset_credit_card/_set/",{})}),null);
__d("XP2PProductItemBannerController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/product_item_banner/",{other_user_id:{type:"String",required:true}})}),null);
__d("XP2PProductItemBannerDismissalController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/product_item_banner/_dismiss/",{platform_context_id:{type:"String",required:true}})}),null);
__d("XP2PProductItemBannerMarkSoldController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/product_item_banner/_mark_sold/",{platform_context_id:{type:"String",required:true}})}),null);
__d("XP2PTransactionsCampaignCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transactions/campaign/_create/",{})}),null);
__d("XP2PTransactionsCancelController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transactions/_cancel/",{})}),null);
__d("XP2PTransactionsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transactions/",{since:{type:"Int"}})}),null);
__d("XP2PTransactionsCreateController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transactions/_create/",{})}),null);
__d("XP2PTransactionsDeclineController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/transactions/_decline/",{})}),null);
__d("XP2PUserEligibilityController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/p2p/user_eligibility/",{user_ids:{type:"StringVector",required:true}})}),null);
__d("XPayPagesCommercePaymentsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pay/pages_commerce_payments/_charge/",{})}),null);
__d("P2PAPI",["AsyncRequest","CreditCardFormParam","P2PActions","P2PAPIUtils","P2PLogger","P2PGKValues","P2PPasswordProtectionParam","P2PPaymentCampaignNames","P2PPaymentLoggerEvent","P2PPaymentRequestStatus","P2PTransferParam","PaymentActionAPIFields","PaymentTokenProxyUtils","ImmutableObject","XCommerceConsumerReceiptUploadCompletionController","XCommerceTransactionInvoiceDetailsController","XMoneypennyPaymentsCreateController","XP2PAddressesController","XP2PAddressCreateController","XP2PBannerDismissalsUpdateController","XP2PBannerStatesController","XP2PBannerViewsUpdateController","XP2PCardBINValidateController","XP2PCreditCardDeleteController","XP2PCreditCardUpdateController","XP2PCreditCardCreateController","XP2PCreditCardVerifyController","XP2PCreditCardsController","XP2PCurrentUserProfileDataController","XP2PExtensiveTransferDetailsController","XP2PFriendPickerController","XP2PPasswordProtectionStatusController","XP2PPasswordProtectionStatusUpdateController","XP2PPaymentRequestCancelController","XP2PPaymentRequestCreateController","XP2PPaymentRequestDeclineController","XP2PPendingPaymentRequestsController","XP2PPlatformContextController","XP2PPlatformMsgrCommerceCartCreateController","XP2PPlatformSetShippingAddressController","XP2PPresetCreditCardSetController","XP2PProductItemBannerController","XP2PProductItemBannerDismissalController","XP2PProductItemBannerMarkSoldController","XP2PTransactionsCampaignCreateController","XP2PTransactionsCancelController","XP2PTransactionsCreateController","XP2PTransactionsController","XP2PTransactionsDeclineController","XP2PUserEligibilityController","XPayPagesCommercePaymentsController","emptyFunction","isEmpty"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(j,event){if(c("P2PGKValues").P2PWWWClientExceptionLogging)c("P2PLogger").log(event,{exception_message:j.getErrorDescription(),exception_code:j.getError()})},i={getAllCreditCards:function j(){var k=c("XP2PCreditCardsController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(l){var m=l.getPayload(),n=!m.error?m:[];c("P2PActions").updateCreditCards(n)}).setErrorHandler(function(l){c("P2PActions").updateCreditCardsError()}).send()},createTransaction:function j(k){__p&&__p();var l=c("XP2PTransactionsCreateController").getURIBuilder().getURI(),m={},n=k.formData,o=k.success||c("emptyFunction"),p=k.error||c("emptyFunction");m[c("CreditCardFormParam").CREDENTIAL_ID]=n[c("CreditCardFormParam").CREDENTIAL_ID];m.amount=n.amount;m.receiver_id=n.receiverId;m.offline_threading_id=c("P2PAPIUtils").genOfflineThreadingID();m.group_thread_fbid=n.group_thread_fbid;m.platform_context_id=n.platform_context_id;m.shipping_address_id=n.shippingAddressID;m.shipping_option_id=n.shippingOptionID;m.memo_text=n.memoText;m.memo_image_ids=n.memoPhotoIDs;m.payment_request_id=n.paymentRequestID;new(c("AsyncRequest"))().setData(m).setMethod("POST").setURI(l).setAllowCrossPageTransition(true).setHandler(function(q){var r=q?q.getPayload():{};if(r.error)p(r.error);else{o(r);this.getAllCreditCards();if(m.payment_request_id)c("P2PActions").paymentRequestUpdated({id:m.payment_request_id,currentStatus:c("P2PPaymentRequestStatus").TRANSFER_COMPLETED})}}.bind(this)).setErrorHandler(function(q){p({message:c("P2PAPIUtils").getUncaughtErrorMessage(q.getError())});h(q,c("P2PPaymentLoggerEvent").UI_ACTN_CREATE_TRANSFER_EXCEPTION)}).send()},addCreditCard:function j(k){__p&&__p();c("P2PActions").ignoreCreditCardChannelEvents();var l=c("XP2PCreditCardCreateController").getURIBuilder(),m=l.getURI().getPath(),n=k.onSuccess||c("emptyFunction"),o=k.onError||c("emptyFunction"),p=c("PaymentTokenProxyUtils").getURI({tpe:m});k=c("P2PAPIUtils").prepareCardMutationData(k);var q=new(c("ImmutableObject"))(k),r=k.hasPlatformContext;delete k.onSuccess;delete k.onError;c("P2PActions").creditCardSaving();new(c("AsyncRequest"))().setAllowCrossOrigin(true).setURI(p).setData(k).setMethod("POST").setHandler(function(s){__p&&__p();var t=s.getPayload();if(!t.errors){q=c("ImmutableObject").set(q,t);c("P2PActions").addCreditCard(q);if(t.isPreset)c("P2PActions").transferAccepted();if(r)c("P2PActions").checkoutCreditCardSelected(t[c("CreditCardFormParam").CREDENTIAL_ID]);n()}else{c("P2PActions").addCreditCardError(babelHelpers["extends"]({requestID:q.requestID},t));o(t)}c("P2PActions").allowCreditCardChannelEvents()}).setErrorHandler(function(s){c("P2PActions").addCreditCardError({requestID:q.requestID,errors:{general:{message:c("P2PAPIUtils").getUncaughtErrorMessage(s.getError())}}});c("P2PActions").allowCreditCardChannelEvents();h(s,c("P2PPaymentLoggerEvent").UI_ACTN_ADD_CARD_EXCEPTION)}).send()},getTransactions:function j(k){__p&&__p();k=k||{};var l={},m=k,n=c("XP2PTransactionsController").getURIBuilder().getURI(),o=new(c("ImmutableObject"))(m);if(m.since)l.since=m.since;return new(c("AsyncRequest"))().setData(l).setURI(n).setMethod("GET").setReadOnly(true).setHandler(function(p){var q=p.getPayload();if(!q.error)c("P2PActions").updateTransfers(q);else c("P2PActions").updateTransfersError(babelHelpers["extends"]({requestID:o.requestID},q))}).setErrorHandler(function(p){c("P2PActions").updateTransfersError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(p.getError())},requestID:o.requestID})}).send()},getExtensiveTransferDetailsByID:function j(k){var l=c("XP2PExtensiveTransferDetailsController").getURIBuilder().setString("id",k).getURI();new(c("AsyncRequest"))().setURI(l).setMethod("GET").setReadOnly(true).setHandler(function(m){var n=m.getPayload();if(!n.error)c("P2PActions").extensiveTransferDetailsLoaded(n)}).send()},getNUXTransactions:function j(){var k=new Date(),l=Math.round(k.setDate(k.getDate()-15)/1e3),m=c("XP2PTransactionsController").getURIBuilder().getURI();return new(c("AsyncRequest"))().setData({since:l}).setURI(m).setMethod("GET").setReadOnly(true).setHandler(function(n){var o=n.getPayload();if(!o.error)c("P2PActions").updateNUXTransfers(o)}).send()},updatePresetCreditCard:function j(k){__p&&__p();var l=c("XP2PPresetCreditCardSetController").getURIBuilder().getURI();new(c("AsyncRequest"))().setData(k).setURI(l).setMethod("POST").setHandler(function(m){var n=m.getPayload();if(!n.error){c("P2PActions").updatePresetCreditCard(babelHelpers["extends"]({},n,{requestID:k.requestID}));c("P2PActions").transferAccepted()}else c("P2PActions").updatePresetCreditCardError(babelHelpers["extends"]({},n,{requestID:k.requestID}))}).setErrorHandler(function(m){c("P2PActions").updatePresetCreditCardError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(m.getError())},requestID:k.requestID});h(m,c("P2PPaymentLoggerEvent").UI_ACTN_UPDATE_PRESET_CARD_EXCEPTION)}).send()},updateCreditCard:function j(k){__p&&__p();c("P2PActions").ignoreCreditCardChannelEvents();var l=c("XP2PCreditCardUpdateController").getURIBuilder(),m=l.getURI().getPath(),n=c("PaymentTokenProxyUtils").getURI({tpe:m});k=c("P2PAPIUtils").prepareCardMutationData(k);var o=new(c("ImmutableObject"))(k);new(c("AsyncRequest"))().setAllowCrossOrigin(true).setURI(n).setData(k).setMethod("POST").setHandler(function(p){var q=p.getPayload();if(!q.errors)c("P2PActions").updateCreditCard(o);else c("P2PActions").updateCreditCardError(babelHelpers["extends"]({},q,{requestID:o.requestID}));c("P2PActions").allowCreditCardChannelEvents()}).setErrorHandler(function(p){c("P2PActions").updateCreditCardError({errors:{general:{message:c("P2PAPIUtils").getUncaughtErrorMessage(p.getError())}},requestID:o.requestID});c("P2PActions").allowCreditCardChannelEvents();h(p,c("P2PPaymentLoggerEvent").UI_ACTN_UPDATE_CARD_EXCEPTION)}).send()},deleteCreditCard:function j(k){var l=c("XP2PCreditCardDeleteController").getURIBuilder().getURI();new(c("AsyncRequest"))().setData(k).setMethod("POST").setURI(l).setHandler(function(m){var n=m.getPayload();if(!n.error)c("P2PActions").deleteCreditCard(babelHelpers["extends"]({},n,{requestID:k.requestID}));else c("P2PActions").deleteCreditCardError(babelHelpers["extends"]({},n,{requestID:k.requestID}))}).setErrorHandler(function(m){c("P2PActions").deleteCreditCardError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(m.getError())},requestID:k.requestID})}).send()},getPasswordProtectionSetting:function j(k){var l=c("XP2PPasswordProtectionStatusController").getURIBuilder().getURI(),m=k.success||c("emptyFunction"),n=k.error||c("emptyFunction");new(c("AsyncRequest"))().setURI(l).setMethod("GET").setReadOnly(true).setHandler(function(o){var p=o?o.getPayload():[];if(p.error)n();else m(p)}).setErrorHandler(function(o){n()}).send()},setPasswordProtectionSetting:function j(k){var l=c("XP2PPasswordProtectionStatusUpdateController").getURIBuilder().getURI(),m=k.formData,n=k.success||c("emptyFunction"),o=k.error||c("emptyFunction"),p={};p[c("P2PPasswordProtectionParam").STATUS]=m[c("P2PPasswordProtectionParam").STATUS];new(c("AsyncRequest"))().setData(p).setURI(l).setMethod("POST").setHandler(function(q){var r=q?q.getPayload():{};if(r.error)o(r.error);else n()}).setErrorHandler(function(q){o()}).send()},declineTransaction:function j(k){__p&&__p();var l=c("XP2PTransactionsDeclineController").getURIBuilder().getURI(),m=k.formData,n=k.success||c("emptyFunction"),o=k.error||c("emptyFunction"),p={};p[c("P2PTransferParam").TRANSFER_ID]=m[c("P2PTransferParam").TRANSFER_ID];new(c("AsyncRequest"))().setData(p).setURI(l).setMethod("POST").setHandler(function(q){var r=q?q.getPayload():{},s={};if(r.error)o(r.error);else{n();s[c("P2PTransferParam").TRANSFER_ID]=p[c("P2PTransferParam").TRANSFER_ID];c("P2PActions").transferDeclined(s)}}).setErrorHandler(function(q){o();h(q,c("P2PPaymentLoggerEvent").UI_ACTN_DECLINE_TRANSFER_EXCEPTION)}).send()},cancelTransaction:function j(k){var l=c("XP2PTransactionsCancelController").getURIBuilder().getURI(),m=k.formData,n=k.success||c("emptyFunction"),o=k.error||c("emptyFunction"),p={};p[c("P2PTransferParam").TRANSFER_ID]=m[c("P2PTransferParam").TRANSFER_ID];new(c("AsyncRequest"))().setData(p).setURI(l).setMethod("POST").setHandler(function(q){var r=q?q.getPayload():{};if(r.error)o(r.error);else n()}).setErrorHandler(function(q){o()}).send()},verifyCreditCard:function j(k){var l=c("XP2PCreditCardVerifyController").getURIBuilder(),m=l.getURI().getPath(),n=c("PaymentTokenProxyUtils").getURI({tpe:m});new(c("AsyncRequest"))().setAllowCrossOrigin(true).setURI(n).setData(k).setMethod("POST").setHandler(function(o){var p=o.getPayload();if(!p.error)c("P2PActions").verifyCreditCard(babelHelpers["extends"]({},p,{requestID:k.requestID}));else c("P2PActions").verifyCreditCardError(babelHelpers["extends"]({},p,{requestID:k.requestID}))}).setErrorHandler(function(o){c("P2PActions").verifyCreditCardError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(o.getError())},requestID:k.requestID});h(o,c("P2PPaymentLoggerEvent").UI_ACTN_VERIFY_CARD_EXCEPTION)}).send()},validateBINNumber:function j(k){k=k||{};var l=new(c("ImmutableObject"))(k),m=c("XP2PCardBINValidateController").getURIBuilder().setString("bin_number",k.binNumber).getURI();return new(c("AsyncRequest"))().setURI(m).setMethod("GET").setReadOnly(true).setHandler(function(n){var o=n.getPayload();if(!o.error)c("P2PActions").binNumberValidated(babelHelpers["extends"]({},o,{requestID:k.requestID}));else c("P2PActions").binNumberValidatedError(babelHelpers["extends"]({},o,{requestID:l.requestID}))}).send()},getUserEligibility:function j(k){k=k||{};var l=c("XP2PUserEligibilityController").getURIBuilder().setStringVector("user_ids",k.userIDs).getURI();return new(c("AsyncRequest"))().setURI(l).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(m){var n=m.getPayload();if(!n.error)c("P2PActions").userEligibilityUpdated(n)}).send()},getFriendsList:function j(k,l){var m=c("XP2PFriendPickerController").getURIBuilder().setInt("limit",k).setString("query",l).getURI();return new(c("AsyncRequest"))().setURI(m).setMethod("GET").setReadOnly(true).setHandler(function(n){var o=n.getPayload();if(!o.error)c("P2PActions").friendsListUpdated({friends:o,query:l})}).send()},getBannerStates:function j(){var k=c("XP2PBannerStatesController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setHandler(function(l){var m=l.getPayload();if(!m.error)c("P2PActions").bannerStatesUpdated(m)}).send()},incrementBannerViews:function j(k){var l=c("XP2PBannerViewsUpdateController").getURIBuilder().setString("banner_type",k).getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(l).send()},incrementBannerDismissals:function j(k){var l=void 0;c("P2PActions").bannerDismissed(k);l=c("XP2PBannerDismissalsUpdateController").getURIBuilder().setString("banner_type",k).getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(l).send()},createMoneypennyTransfer:function j(k){__p&&__p();var l=c("XMoneypennyPaymentsCreateController").getURIBuilder().getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(l).setData({item_id:k.item_id,credential_id:k.credential_id,amount:k.amount,external_request_id:k.external_request_id}).setHandler(function(m){var n=m.getPayload();if(!n.error){c("P2PActions").moneypennyTransferCreated(babelHelpers["extends"]({},n,{requestID:k.requestID}));this.getAllCreditCards()}else c("P2PActions").moneypennyTransferCreatedError(babelHelpers["extends"]({},n,{requestID:k.requestID}))}.bind(this)).setErrorHandler(function(m){c("P2PActions").moneypennyTransferCreatedError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(m.getError())},requestID:k.requestID});h(m,c("P2PPaymentLoggerEvent").UI_ACTN_CREATE_M_TRANSFER_EXCEPTION)}).send()},createFinancialIncentivesTransfer:function j(k){var l=c("XP2PTransactionsCampaignCreateController").getURIBuilder().getURI(),m=k.success||c("emptyFunction"),n=k.error||c("emptyFunction"),o={};o[c("CreditCardFormParam").CREDENTIAL_ID]=k.credential_id;o.external_request_id=c("P2PAPIUtils").genOfflineThreadingID();o.campaign_name=c("P2PPaymentCampaignNames").SEVIPER;new(c("AsyncRequest"))().setData(o).setURI(l).setMethod("POST").setHandler(function(p){var q=p.getPayload();if(q.error)n(q.error);else m()}).send()},getPlatformContextByOtherUserID:function j(k){k=k||{};var l=c("XP2PProductItemBannerController").getURIBuilder().setString("other_user_id",k.otherUserID).getURI();return new(c("AsyncRequest"))().setURI(l).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(m){var n=m.getPayload();if(!n.error&&!c("isEmpty")(n))c("P2PActions").addPlatformContext(n)}).send()},getPlatformContextByID:function j(k){__p&&__p();k=k||{};var l=k.onSuccess||c("emptyFunction"),m=k.onError||c("emptyFunction"),n=c("XP2PPlatformContextController").getURIBuilder().setString("platform_context_id",k.id).getURI();return new(c("AsyncRequest"))().setURI(n).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(o){var p=o.getPayload();if(!p.error&&!c("isEmpty")(p)){c("P2PActions").addPlatformContext(p);l(p)}}).setErrorHandler(function(o){c("P2PActions").addPlatformContextError({itemID:k.productItemID,error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(o.getError())}});m()}).send()},dismissPlatformContextBanner:function j(k){var l=void 0;c("P2PActions").platformContextBannerDismissed(k);l=c("XP2PProductItemBannerDismissalController").getURIBuilder().setString("platform_context_id",k).getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(l).send()},markSoldPlatformContextProductItem:function j(k){var l=void 0;c("P2PActions").platformContextProductItemSold(k);l=c("XP2PProductItemBannerMarkSoldController").getURIBuilder().setString("platform_context_id",k).getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(l).send()},getAddresses:function j(){var k=c("XP2PAddressesController").getURIBuilder().getURI();return new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(l){var m=l.getPayload();if(!m.error)c("P2PActions").updateAddresses(m)}).send()},addAddress:function j(){__p&&__p();var k=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],l=c("XP2PAddressCreateController").getURIBuilder().getURI(),m=void 0,n=k.platformContext,o=k.onSuccess||c("emptyFunction"),p=k.onError||c("emptyFunction");m={label:k.label,care_of:k.care_of,city:k.city,street1:k.street1,street2:k.street2,state:k.state,zip:k.zip,country:k.country};c("P2PActions").addressSaving();return new(c("AsyncRequest"))().setData(m).setURI(l).setMethod("POST").setHandler(function(q){__p&&__p();var r=q.getPayload();if(!r.errors){c("P2PActions").addAddress(babelHelpers["extends"]({},r,m,{requestID:k.requestID}));if(n){c("P2PActions").checkoutAddressSelected(r.id);this.setPlatformContextShippingAddress({platformContextID:n.id,shippingAddressID:r.id})}o()}else{c("P2PActions").addAddressError(babelHelpers["extends"]({},r,{requestID:k.requestID}));p(r)}}.bind(this)).setErrorHandler(function(q){c("P2PActions").addAddressError({errors:{general:{message:c("P2PAPIUtils").getUncaughtErrorMessage(q.getError())}},requestID:k.requestID});h(q,c("P2PPaymentLoggerEvent").UI_ACTN_ADD_ADDRESS_EXCEPTION)}).send()},createMCCart:function j(k){__p&&__p();var l=c("XP2PPlatformMsgrCommerceCartCreateController").getURIBuilder().getURI(),m=void 0,n=k.productItemID;k=k||{};m={item_id:n};c("P2PActions").checkoutCartInitiated();return new(c("AsyncRequest"))().setData(m).setURI(l).setMethod("POST").setHandler(function(o){var p=o.getPayload();if(!p.error){c("P2PActions").addPlatformContext(babelHelpers["extends"]({},p));c("P2PActions").checkoutCartCreated({sellerID:k.sellerID,productItemID:n})}else c("P2PActions").addPlatformContextError(babelHelpers["extends"]({itemID:n},p))}).setErrorHandler(function(o){c("P2PActions").addPlatformContextError({itemID:n,error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(o.getError())}});h(o,c("P2PPaymentLoggerEvent").UI_ACTN_CREATE_CART_EXCEPTION)}).send()},setPlatformContextShippingAddress:function j(k){__p&&__p();var l=c("XP2PPlatformSetShippingAddressController").getURIBuilder().getURI(),m=void 0,n=k.platformContextID,o=k.shippingAddressID;k=k||{};m={platform_context_id:n,shipping_address_id:o};c("P2PActions").checkoutProcessing(true);return new(c("AsyncRequest"))().setData(m).setURI(l).setMethod("POST").setHandler(function(p){c("P2PActions").checkoutProcessing(false);var q=p.getPayload();if(!q.error)c("P2PActions").addPlatformContext(babelHelpers["extends"]({},q))}).setErrorHandler(function(p){h(p,c("P2PPaymentLoggerEvent").UI_ACTN_SET_CART_ADDRESS_EXCEPTION)}).send()},getCurrentUserProfileData:function j(){var k=c("XP2PCurrentUserProfileDataController").getURIBuilder().getURI();return new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(l){var m=l.getPayload();if(!m.error)c("P2PActions").checkoutBuyerProfileUpdated(m);else c("P2PActions").checkoutBuyerProfileUpdated({})}).setErrorHandler(function(l){c("P2PActions").checkoutBuyerProfileUpdated({})}).send()},createPaymentRequest:function j(k){__p&&__p();var l=c("XP2PPaymentRequestCreateController").getURIBuilder().getURI(),m=k.formData,n=m.amount,o=m.memoText,p=m.group_thread_fbid,q={amount:n,memo_text:o,offline_threading_id:c("P2PAPIUtils").genOfflineThreadingID(),group_thread_fbid:p,platform_context_id:m.platform_context_id},r=m.requestees,s=r.get(0)||{};if(r.size>1)q.requestee_ids=r.map(function(s){return s.userID}).toJS();else q.requestee_id=s.userID;c("P2PActions").paymentRequestInitiated();new(c("AsyncRequest"))().setData(q).setURI(l).setMethod("POST").setHandler(function(t){var u=t.getPayload();if(!u.error){c("P2PActions").paymentRequestCreated(babelHelpers["extends"]({requesteeID:s.userID,amount:n,memoText:o},u));k.success(u)}else{c("P2PActions").paymentRequestCreatedError(u);k.error(u)}c("P2PActions").paymentRequestInitiatedComplete()}).setErrorHandler(function(t){k.error({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(t.getError())}});c("P2PActions").paymentRequestInitiatedComplete();h(t,c("P2PPaymentLoggerEvent").UI_ACTN_CREATE_REQUEST_EXCEPTION)}).send()},declinePaymentRequest:function j(k){__p&&__p();var l=c("XP2PPaymentRequestDeclineController").getURIBuilder().getURI(),m=k.paymentRequestID,n=k.success||c("emptyFunction"),o=k.error||c("emptyFunction"),p={payment_request_id:m};c("P2PActions").paymentRequestDeclineInitiated();return new(c("AsyncRequest"))().setData(p).setURI(l).setMethod("POST").setHandler(function(q){var r=q.getPayload();if(!r.error){c("P2PActions").paymentRequestDeclined(m);c("P2PActions").hideDialog();n(r)}else{c("P2PActions").paymentRequestDeclineError(r);o(r)}}).setErrorHandler(function(q){c("P2PActions").paymentRequestDeclineError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(q.getError())}});o();h(q,c("P2PPaymentLoggerEvent").UI_ACTN_DECLINE_REQUEST_EXCEPTION)}).send()},cancelPaymentRequest:function j(k){__p&&__p();var l=c("XP2PPaymentRequestCancelController").getURIBuilder().getURI(),m=k.paymentRequestID,n=k.success||c("emptyFunction"),o=k.error||c("emptyFunction"),p={payment_request_id:m};c("P2PActions").paymentRequestCancelInitiated();return new(c("AsyncRequest"))().setData(p).setURI(l).setMethod("POST").setHandler(function(q){var r=q.getPayload();if(!r.error){c("P2PActions").paymentRequestCanceled(m);c("P2PActions").hideDialog();n(r)}else{c("P2PActions").paymentRequestCancelError(r);o(r)}}).setErrorHandler(function(q){c("P2PActions").paymentRequestCancelError({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(q.getError())}});o();h(q,c("P2PPaymentLoggerEvent").UI_ACTN_CANCEL_REQUEST_EXCEPTION)}).send()},getPendingPaymentRequests:function j(){var k=c("XP2PPendingPaymentRequestsController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(l){var m=l.getPayload(),n=!m.error?m:[];c("P2PActions").paymentRequestsFetched(n)}).send()},getCommerceInvoiceDetails:function j(k){var l=c("XCommerceTransactionInvoiceDetailsController").getURIBuilder().setString("invoice_id",k.invoiceID).getURI(),m=k.onSuccess||c("emptyFunction"),n=k.onError||c("emptyFunction");new(c("AsyncRequest"))().setURI(l).setMethod("GET").setReadOnly(true).setHandler(function(o){var p=o.getPayload();if(!p.error)m(p);else n(p)}).setErrorHandler(function(o){n({error:{message:c("P2PAPIUtils").getUncaughtErrorMessage(o.getError())}})}).send()},completeReceiptUploadCheckout:function j(k){var l=c("XCommerceConsumerReceiptUploadCompletionController").getURIBuilder().getURI(),m=k.onSuccess||c("emptyFunction"),n=k.onError||c("emptyFunction"),o={invoice_id:k.invoiceID,receipt_image_id:k.receiptImageID,selected_payment_option_id:k.selectedPaymentOptionID};new(c("AsyncRequest"))().setURI(l).setMethod("POST").setData(o).setAllowCrossOrigin(true).setHandler(function(p){var q=p.getPayload();if(!q||!q.error)m(q);else n({message:c("P2PAPIUtils").getUncaughtErrorMessage()})}).setErrorHandler(function(p){n({message:c("P2PAPIUtils").getUncaughtErrorMessage(p.getError())})}).send()},completeNMORCheckout:function j(k){__p&&__p();var l=k.success,m=k.error,n={nmor_order_type:k.nmorOrderType,action:c("PaymentActionAPIFields").SALE,receiver_id:k.receiverID,order_id:k.orderID,request_id:c("P2PAPIUtils").genRequestID(),currency:k.currency,credential_id:k.credentialId,shipping_address_id:k.shippingAddressID,shipping_option_id:k.shippingOptionID,payment_method:{type:k.paymentMethodType},payment_method_data:k.paymentMethodData,extra_data:k.extraData,amount:k.amount,csc:k.securityCode},o=c("XPayPagesCommercePaymentsController").getURIBuilder().getURI();if(n.credential_id&&n.csc){var p=o.getPath();o=c("PaymentTokenProxyUtils").getURI({tpe:p})}var q=new(c("AsyncRequest"))().setAllowCrossOrigin(true).setURI(o).setData(n).setMethod("POST");if(l)q.setHandler(function(r){var s=r.getPayload();if(s.error)m(s.error);else l(s.id,s.extra_data)});if(m)q.setErrorHandler(function(r){m({message:c("P2PAPIUtils").getUncaughtErrorMessage(r.getError())})});q.send()}};f.exports=i}),null);
__d("P2PNUXRendererUtils",["CurrentUser","ImmutableObject","MercuryAttachmentType","P2PTransferParam","P2PTransferStatus","StoryAttachmentStyle"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={getTransferFromMessage:function i(j){var k=void 0,l=void 0;if(!j||!j.attachments||!j.attachments.length)return null;l=j.attachments[0];if(this.isShareAttachment(l))k=l.share.target;if(k)k=new(c("ImmutableObject"))(k);return k},isSuccessfulReceivedTransfer:function i(j){return j&&j.receiver&&j.receiver.id===c("CurrentUser").getID()&&(j.status===c("P2PTransferStatus").COMPLETED||j.status===c("P2PTransferStatus").PENDING_RECIPIENT_NUX)},isShareAttachment:function i(j){return!!(typeof j!=="string"&&j.attach_type==c("MercuryAttachmentType").SHARE&&j.share&&j.share.style_list&&j.share.style_list.indexOf(c("StoryAttachmentStyle").ORION)>=0)},doesNUXNeedCreditCards:function i(j){var k=c("CurrentUser").getID()===j.sender.id;return!k&&j[c("P2PTransferParam").STATUS]===c("P2PTransferStatus").PENDING_RECIPIENT_NUX},isRecipientActionableStatus:function i(j){var k=j[c("P2PTransferParam").STATUS],l=c("CurrentUser").getID()===j.sender.id;return!l&&(k===c("P2PTransferStatus").PENDING_RECIPIENT_NUX||k===c("P2PTransferStatus").PENDING_RECIPIENT_VERIFICATION||k===c("P2PTransferStatus").PENDING_PUSH_FAIL)}};f.exports=h}),null);
__d("P2PButton.react",["MessengerEnvironment","MessengerDialogButton.react","React","XUIButton.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=c("MessengerEnvironment").messengerui,l=k?c("MessengerDialogButton.react"):c("XUIButton.react"),m=this.props.type;if(!m)m=this.props.use==="confirm"?"primary":"secondary";var n=k?"default":this.props.use,o=babelHelpers["extends"]({},this.props,{type:m,use:n});return c("React").createElement(l,o,this.props.children)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("P2PDialog.react",["MessengerEnvironment","LayerFadeOnHide","MessengerDialog.react","React","XUIDialog.react","emptyFunction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"P2PDialog",propTypes:{onToggle:h.func,shown:h.bool,width:h.number},getDefaultProps:function j(){return{onToggle:c("emptyFunction"),repositionOnUpdate:false,shown:true,width:400}},componentDidUpdate:function j(){if(this.props.repositionOnUpdate)setTimeout(function(){if(this.isMounted()&&this.refs.dialog&&this.refs.dialog.layer)this.refs.dialog.layer.updatePosition()}.bind(this),0)},render:function j(){var k=c("MessengerEnvironment").messengerui,l=k?c("MessengerDialog.react"):c("XUIDialog.react");return c("React").createElement(l,babelHelpers["extends"]({behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")}},this.props,{hideOnEscape:true,layerHideOnBlur:true,ref:"dialog"}),this.props.children)}});f.exports=i}),null);
__d("P2PDialogBody.react",["MessengerEnvironment","MessengerDialogBody.react","React","XUIDialogBody.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=c("MessengerEnvironment").messengerui,l=k?c("MessengerDialogBody.react"):c("XUIDialogBody.react");return c("React").createElement(l,this.props,this.props.children)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("P2PDialogFooter.react",["cx","MessengerEnvironment","MessengerDialogFooter.react","React","XUIDialogFooter.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=c("MessengerEnvironment").messengerui,m=l?c("MessengerDialogFooter.react"):c("XUIDialogFooter.react"),n=void 0,o=this.props.children;if(l){n=c("React").Children.count(this.props.children);o=c("React").Children.map(this.props.children,function(p,q){if(!p)return null;return c("React").cloneElement(p,{className:c("joinClasses")(p.props.className,"_4ec0"),type:q===0&&n===2?"secondary":"primary"})})}return c("React").createElement(m,this.props,o)};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("P2PDialogTitle.react",["MessengerEnvironment","MessengerDialogHeader.react","React","XUIDialogTitle.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=c("MessengerEnvironment").messengerui,l=k?c("MessengerDialogHeader.react"):c("XUIDialogTitle.react");return c("React").createElement(l,this.props,this.props.children)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("P2PListRow.react",["cx","invariant","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.prototype.render=function(){var n=this.props;c("React").Children.count(n.children)===2||i(0);var o=n.offset,p=n.offsetRight!==undefined&&n.offsetRight+"px",q=n.offsetBottom!==undefined&&n.offsetBottom+"px";return c("React").createElement("div",{className:"_3q6c"+(o==="large"?" _3q6d":"")+(o==="small"?" _3q6o":"")},c("React").createElement("div",{className:"_3q6p",style:{paddingRight:p,paddingBottom:q}},n.children[0]),c("React").createElement("div",{className:"_3q6q",style:{paddingBottom:q}},n.children[1]))};function m(){j.apply(this,arguments)}m.propTypes={offset:l.oneOf(["large","small"]),offsetBottom:l.number,offsetRight:l.number};m.defaultProps={offset:"large"};f.exports=m}),null);
__d("P2PText.react",["MessengerEnvironment","MessengerText.react","React","XUIGrayText.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.render=function(){var l=c("MessengerEnvironment").messengerui,m=l?c("MessengerText.react"):c("XUIGrayText.react"),n=this.props.type,o=this.props;if(!l){o=babelHelpers["extends"]({},this.props,{display:this.props.display||"block",shade:n==="primary"?"dark":"light",size:this.props.size||"small"});delete o.type}else{o=babelHelpers["extends"]({},this.props,{size:"small"});delete o.size}return c("React").createElement(m,o,this.props.children)};function k(){h.apply(this,arguments)}k.propTypes={type:j.oneOf(["primary","secondary"]).isRequired};f.exports=k}),null);
__d("P2PFriendsListStore",["P2PActionConstants","EventEmitter","P2PAPI","P2PDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=[],k="",l=25;h=babelHelpers.inherits(m,c("EventEmitter"));i=h&&h.prototype;function m(){i.constructor.call(this);c("P2PDispatcher").register(this.onEventDispatched.bind(this))}m.prototype.onEventDispatched=function(n){var o=n.data,p=n.type;switch(p){case c("P2PActionConstants").FRIENDS_LIST_UPDATED:this.handleFriendsListUpdated(o);this.emit("change");break}};m.prototype.handleFriendsListUpdated=function(n){if(!k||k===n.query)j=n.friends};m.prototype.searchFriends=function(n){k=n;this.fetchFriends(n)};m.prototype.fetchFriends=function(n){c("P2PAPI").getFriendsList(l,n)};m.prototype.getFriends=function(){return j};f.exports=new m()}),null);
__d("P2PFriendPicker.react",["ix","cx","fbt","glyph","debounce","Image.react","Layout.react","MercuryIDs","P2PActions","P2PFriendsListStore","P2PLoadingMask.react","P2PLogger","P2PPaymentLoggerEvent","P2PText.react","React","ScrollableArea.react","XUIButton.react","XUITextInput.react"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("Layout.react").FillColumn,o=c("Layout.react").Column,p=c("React").PropTypes;l=babelHelpers.inherits(q,c("React").Component);m=l&&l.prototype;function q(){__p&&__p();var r,s;for(var t=arguments.length,u=Array(t),v=0;v<t;v++)u[v]=arguments[v];return s=(r=m.constructor).call.apply(r,[this].concat(u)),this.state={friends:c("P2PFriendsListStore").getFriends(),showLoader:true},this.log=function(w,x){c("P2PLogger").log(w,babelHelpers["extends"]({www_event_flow:this.props.eventFlow},x))}.bind(this),this.loggedSearch=null,this.friendPickerStoreSub=null,this.updateFriendsList=function(){this.setState({friends:c("P2PFriendsListStore").getFriends(),showLoader:false})}.bind(this),this.onFriendSelect=function(w){this.log(c("P2PPaymentLoggerEvent").UI_ACTN_FRIEND_PICKER_SELECT,{object_id:w.id});c("P2PActions").chatSendViewOpened({amount:this.props.amount,referrer:this.props.referrer,sendMoneyNUXDismissed:this.props.sendMoneyNUXDismissed,threadID:c("MercuryIDs").getThreadIDFromUserID(w.id)});this.props.onFriendSelected&&this.props.onFriendSelected()}.bind(this),this.getQuery=function(){return this.refs.input_ref&&this.refs.input_ref.refs.textInput.getValue()}.bind(this),this.onSearchInputChange=function(){if(!this.loggedSearch){this.log(c("P2PPaymentLoggerEvent").UI_ACTN_FRIEND_PICKER_SEARCH);this.loggedSearch=true}var w=this.getQuery();if(!w)this.setState({showLoader:true});c("P2PFriendsListStore").searchFriends(w)}.bind(this),this.renderTagLineRow=function(){if(this.state.showLoader)return null;return c("React").createElement("li",{className:"_1px5"},c("React").createElement("div",{className:"_1px6"},this.props.subTitle))}.bind(this),this.renderfriendRow=function(w){var x=void 0;if(this.props.buttonLabel)x=c("React").createElement(c("XUIButton.react"),{label:this.props.buttonLabel,size:"large"});return c("React").createElement("li",{className:"_1px7",key:w.id,onClick:this.onFriendSelect.bind(this,w)},c("React").createElement(c("Layout.react"),null,c("React").createElement(n,null,c("React").createElement("div",{className:"_1px8"},c("React").createElement(c("Image.react"),{className:"_1px9",height:50,src:w.image_src,width:50})),c("React").createElement("div",{className:"_1pxa"},c("React").createElement(c("P2PText.react"),{className:"_1pxb",type:"primary"},w.full_name))),c("React").createElement(o,{className:"_1pxc"},x)))}.bind(this),this.renderFriendList=function(){var w=this.getQuery();if(!this.state.showLoader&&this.state.friends.length===0)if(w&&w.length)return c("React").createElement("div",{className:"_1pxd"},j._("No results."));else return c("React").createElement("div",{className:"_1pxd"},j._("You do not have any friends who are able to receive money."));return c("React").createElement("div",{className:"_1pxe"},c("React").createElement(c("P2PLoadingMask.react"),{visible:this.state.showLoader}),c("React").createElement(c("ScrollableArea.react"),{height:this.props.height},c("React").createElement("ul",null,this.state.friends.map(this.renderfriendRow),this.renderTagLineRow())))}.bind(this),s}q.prototype.componentDidMount=function(){this.friendPickerStoreSub=c("P2PFriendsListStore").addListener("change",this.updateFriendsList);c("P2PFriendsListStore").searchFriends();this.log(c("P2PPaymentLoggerEvent").UI_ACTN_FRIEND_PICKER_SHOWN)};q.prototype.componentWillUnmount=function(){if(this.friendPickerStoreSub){this.friendPickerStoreSub.remove();this.friendPickerStoreSub=null}};q.prototype.render=function(){return c("React").createElement("div",null,c("React").createElement("div",{className:"_1pxf"},c("React").createElement("div",{className:"_1pxg"},c("React").createElement(c("XUITextInput.react"),{className:"_1pxn",height:"tall",onChange:c("debounce")(this.onSearchInputChange,150),placeholder:j._("Search friends"),ref:"input_ref"}),c("React").createElement(c("Image.react"),{className:"_1pxo",src:h("101450")}))),this.renderFriendList())};q.propTypes={amount:p.string,buttonLabel:p.node,eventFlow:p.string.isRequired,height:p.number,onFriendSelected:p.func,referrer:p.string,sendMoneyNUXDismissed:p.bool,subTitle:p.node};q.defaultProps={amount:"",buttonLabel:j._("Pay Friend"),height:350,title:j._("Select Friend"),subTitle:j._("These are your friends who are able to receive money.")};f.exports=q}),null);
__d("P2PEncryptedText.react",["ix","cx","fbt","xuiglyph","Image.react","P2PText.react","React"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("React").PropTypes;l=babelHelpers.inherits(o,c("React").Component);m=l&&l.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=m.constructor).call.apply(p,[this].concat(s)),this.getEncryptedMessage=function(){if(this.props.showPasswordProtected)return j._("Encrypted and password protected.");return j._("Encrypted and private.")}.bind(this),q}o.prototype.render=function(){return c("React").createElement(c("P2PText.react"),{type:"secondary"},c("React").createElement("div",{className:"__8t"},c("React").createElement(c("Image.react"),{src:h("89465")})),c("React").createElement("span",{className:"_2pir"},this.getEncryptedMessage()))};o.propTypes={showPasswordProtected:n.bool};o.defaultProps={showPasswordProtected:false};f.exports=o}),null);
__d("P2PNUXNextButton.react",["fbt","P2PButton.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement(c("P2PButton.react"),{label:h._("Next"),onClick:this.props.onNextClick,use:"confirm"})};function l(){i.apply(this,arguments)}l.propTypes={onNextClick:k.func.isRequired};f.exports=l}),null);
__d("P2PSendMoneyNUXListItems.react",["fbt","ix","Image.react","P2PListRow.react","P2PText.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.renderRow=function(s,t){return c("React").createElement(c("P2PListRow.react"),{offset:this.props.size},c("React").createElement(c("Image.react"),s),c("React").createElement(c("P2PText.react"),{type:"primary"},t))}.bind(this),o}m.prototype.render=function(){var n=this.props.size;return c("React").createElement("div",null,this.renderRow(n==="small"?{height:18,src:i("94401"),width:18}:{height:36,src:i("94400"),width:36},h._("It's FREE to send and receive money.")),this.renderRow(n==="small"?{height:27,src:i("94405"),width:18}:{height:54,src:i("94404"),width:36},h._("Industry-leading security \u2014 password protection, anti-fraud team and more.")),this.renderRow(n==="small"?{height:13,src:i("94403"),width:18}:{height:26,src:i("94402"),width:36},h._("Send money from your debit card to theirs.")))};m.propTypes={offset:l.oneOf(["small","medium"])};m.defaultProps={size:"small"};f.exports=m}),null);
__d("P2PSendMoneyNUXTitleText.react",["fbt","React"],(function a(b,c,d,e,f,g,h){"use strict";function i(){return c("React").createElement("div",null,h._("Send Money to Anyone"))}f.exports=i}),null);
__d("P2PSendMoneyNUXDialog.react",["cx","MessengerEnvironment","P2PDialog.react","P2PDialogBody.react","P2PDialogFooter.react","P2PDialogTitle.react","P2PEncryptedText.react","P2PLogger","P2PNUXNextButton.react","P2PPaymentLoggerEvent","P2PSendMoneyNUXListItems.react","P2PSendMoneyNUXTitleText.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$P2PSendMoneyNUXDialog2=function(){this.$P2PSendMoneyNUXDialog1(c("P2PPaymentLoggerEvent").UI_ACTN_SEND_MONEY_NUX_NEXT_CLICK);this.props.onNextClick()}.bind(this),this.$P2PSendMoneyNUXDialog1=function(r,s){c("P2PLogger").log(r,babelHelpers["extends"]({www_event_flow:this.props.eventFlow},this.props.loggingData,s))}.bind(this),n}l.prototype.componentDidMount=function(){this.$P2PSendMoneyNUXDialog1(c("P2PPaymentLoggerEvent").UI_ACTN_SEND_MONEY_NUX_SHOWN)};l.prototype.render=function(){return c("React").createElement(c("P2PDialog.react"),{onToggle:this.props.onToggle,width:this.props.width},c("React").createElement(c("P2PDialogTitle.react"),null,c("React").createElement(c("P2PSendMoneyNUXTitleText.react"),null)),c("React").createElement(c("P2PDialogBody.react"),{className:"_1ou5"},c("React").createElement(c("P2PSendMoneyNUXListItems.react"),{size:"large"})),c("React").createElement(c("P2PDialogFooter.react"),{leftContent:c("React").createElement("div",{className:"_1ou6"},c("React").createElement(c("P2PEncryptedText.react"),null))},c("React").createElement(c("P2PNUXNextButton.react"),{onNextClick:this.$P2PSendMoneyNUXDialog2})))};l.propTypes={eventFlow:k.string,onToggle:k.func.isRequired,onNextClick:k.func.isRequired,width:k.number};l.defaultProps={width:c("MessengerEnvironment").messengerui?400:350};f.exports=l}),null);
__d("P2PChannelType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CREDIT_CARD_CHANGED:"P2P/CreditCardChanged",CREDIT_CARD_DELETED:"P2P/CreditCardDeleted",TRANSFER_STATUS_CHANGED:"P2P/TransferStatusChanged",PLATFORM_CONTEXT_NEW:"P2P/PlatformContextNew",PLATFORM_CONTEXT_DISMISSED:"P2P/PlatformContextDismissed",PLATFORM_CONTEXT_ELIGIBLE_ITEM_UPDATED:"P2P/PlatformContextEligibleItemUpdated",PAYMENT_REQUEST_STATUS_CHANGED:"P2P/PaymentRequestStateChanged"})}),null);
__d("P2PPaymentMethodCategory",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CREDIT_CARD:"credit_card",DEBIT_CARD:"debit_card",PREPAID_CARD:"prepaid_card",STORED_VALUE_ACCOUNT:"stored_value_account",PAYPAL_BA:"paypal_ba"})}),null);
__d("P2PCreditCard",["fbt","ix","CreditCardFormParam","CreditCardTypeEnum","PaymentMethodUtils","P2PPaymentMethodCategory"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j={visa:{image:i("95537"),imageLarge:i("95538"),name:"Visa"},mc:{image:i("95521"),imageLarge:i("95522"),name:"MasterCard"},disc:{image:i("95512"),imageLarge:i("95513"),name:"Discover"},jcb:{image:i("95518"),imageLarge:i("95519"),name:"JCB"},amex:{image:i("95501"),imageLarge:i("95502"),name:"American Express"},unknown:{image:i("26967"),imageLarge:i("26967"),name:h._("Unknown Card Type")}};function k(l){__p&&__p();this.setCredentialId(l[c("CreditCardFormParam").CREDENTIAL_ID]);this.setCardType(l[c("CreditCardFormParam").CARD_TYPE]);this.setCreditCardNumber(l[c("CreditCardFormParam").CARD_NUMBER]);this.setSelected(l.selected);this.setZipCode(l[c("CreditCardFormParam").ZIP]);this.setCSC(l[c("CreditCardFormParam").CSC]);this.setExp(l[c("CreditCardFormParam").CARD_EXPIRATION]);this.setIsPreset(l.isPreset);this.setIsVerified(l.isVerified);this.setIsMobileVerified(l.isMobileVerified);this.setIsPersonalTransferEligible(l.isPersonalTransferEligible);this.setCategory(l.category)}k.prototype.getCreditCardNumber=function(){return this[c("CreditCardFormParam").CARD_NUMBER]};k.prototype.setCreditCardNumber=function(l){l=l.replace(/ /g,"");this.setCardProviderProps(this[c("CreditCardFormParam").CARD_TYPE],l);l=l.substr(l.length-4);this[c("CreditCardFormParam").CARD_NUMBER]=l};k.prototype.setCardProviderProps=function(l,m){var n=this.$P2PCreditCard1(l,m);if(j[n]){this.setImage(j[n].image);this.setImageLarge(j[n].imageLarge);this.setName(j[n].name)}};k.prototype.getExp=function(){return this[c("CreditCardFormParam").CARD_EXPIRATION]};k.prototype.getExpFormatted=function(){var l=this[c("CreditCardFormParam").CARD_EXPIRATION];return l?l[c("CreditCardFormParam").MONTH]+"/"+l[c("CreditCardFormParam").YEAR]:""};k.prototype.getExpFormattedShort=function(){var l=this[c("CreditCardFormParam").CARD_EXPIRATION],m="";if(l&&l[c("CreditCardFormParam").MONTH]&&l[c("CreditCardFormParam").YEAR]){m=l[c("CreditCardFormParam").MONTH]+"/";if(l[c("CreditCardFormParam").YEAR].length===4)m+=l[c("CreditCardFormParam").YEAR].substr(2);else m+=l[c("CreditCardFormParam").YEAR]}return m};k.prototype.setExp=function(l){__p&&__p();if(!l)return;var m=void 0,n=void 0,o={};o[c("CreditCardFormParam").MONTH]=l[c("CreditCardFormParam").MONTH];o[c("CreditCardFormParam").YEAR]=l[c("CreditCardFormParam").YEAR];if(o[c("CreditCardFormParam").MONTH]&&o[c("CreditCardFormParam").MONTH].length===1)o[c("CreditCardFormParam").MONTH]="0"+o[c("CreditCardFormParam").MONTH];if(o[c("CreditCardFormParam").YEAR]&&o[c("CreditCardFormParam").YEAR].length===2){m=new Date().getFullYear()+"";n=m.substr(0,2);o[c("CreditCardFormParam").YEAR]=n+o[c("CreditCardFormParam").YEAR]}this[c("CreditCardFormParam").CARD_EXPIRATION]=o};k.prototype.getCSC=function(){return this[c("CreditCardFormParam").CSC]};k.prototype.setCSC=function(l){this[c("CreditCardFormParam").CSC]=l};k.prototype.getZipCode=function(){return this[c("CreditCardFormParam").ZIP]};k.prototype.setZipCode=function(l){this[c("CreditCardFormParam").ZIP]=l};k.prototype.getSelected=function(){return this.$P2PCreditCard2};k.prototype.setSelected=function(l){this.$P2PCreditCard2=l};k.prototype.getCardType=function(){return this[c("CreditCardFormParam").CARD_TYPE]};k.prototype.setCardType=function(l){this[c("CreditCardFormParam").CARD_TYPE]=l;this.setCardProviderProps(l,this[c("CreditCardFormParam").CARD_NUMBER])};k.prototype.getCredentialId=function(){return this[c("CreditCardFormParam").CREDENTIAL_ID]};k.prototype.setCredentialId=function(l){this[c("CreditCardFormParam").CREDENTIAL_ID]=l};k.prototype.$P2PCreditCard1=function(l,m){__p&&__p();var n="default",o=void 0,p=void 0;if(l){o=Object.keys(c("CreditCardTypeEnum")).filter(function(o){return c("CreditCardTypeEnum")[o]===l})[0];n=this.$P2PCreditCard3(o)}else if(m){p=c("PaymentMethodUtils").getCardType(m);if(p)n=p.name}return n};k.prototype.getImage=function(){return this.$P2PCreditCard4||j.unknown.image};k.prototype.setImage=function(l){this.$P2PCreditCard4=l};k.prototype.getImageLarge=function(){return this.$P2PCreditCard5||j.unknown.imageLarge};k.prototype.setImageLarge=function(l){this.$P2PCreditCard5=l};k.prototype.getName=function(){return this.$P2PCreditCard6||j.unknown.name};k.prototype.setName=function(l){this.$P2PCreditCard6=l};k.prototype.getIsPreset=function(){return this.$P2PCreditCard7};k.prototype.setIsPreset=function(l){this.$P2PCreditCard7=l||false};k.prototype.$P2PCreditCard3=function(l){__p&&__p();switch(l){case"VISA":l="visa";break;case"AMERICANEXPRESS":l="amex";break;case"MASTERCARD":l="mc";break;case"DISCOVER":l="disc";break;case"JCB":l="jcb";break;default:l="unknown";break}return l};k.prototype.getCreditCardNumberFormatted=function(){return"*"+this[c("CreditCardFormParam").CARD_NUMBER]};k.prototype.getDetailsFormatted=function(){return this.getName()+" "+this.getCreditCardNumberFormatted()};k.prototype.getCreditCardNumberMask=function(){return"**** **** **** "+this[c("CreditCardFormParam").CARD_NUMBER]};k.prototype.getMaxCSCLength=function(){var l=this.$P2PCreditCard1(this[c("CreditCardFormParam").CARD_TYPE],this[c("CreditCardFormParam").CARD_NUMBER]);return l==="amex"?4:3};k.prototype.getIsVerified=function(){return this.$P2PCreditCard8||false};k.prototype.setIsVerified=function(l){this.$P2PCreditCard8=l};k.prototype.getIsMobileVerified=function(){return this.$P2PCreditCard9||false};k.prototype.setIsMobileVerified=function(l){this.$P2PCreditCard9=l};k.prototype.getIsPersonalTransferEligible=function(){return!!this.$P2PCreditCard10};k.prototype.setIsPersonalTransferEligible=function(l){this.$P2PCreditCard10=l};k.prototype.getCategory=function(){return this.$P2PCreditCard11};k.prototype.setCategory=function(l){this.$P2PCreditCard11=l};k.prototype.getCategoryName=function(){switch(this.$P2PCreditCard11){case c("P2PPaymentMethodCategory").DEBIT_CARD:return h._("Debit");case c("P2PPaymentMethodCategory").CREDIT_CARD:return h._("Credit");case c("P2PPaymentMethodCategory").PREPAID_CARD:return h._("Prepaid");default:return null}};k.prototype.isExpired=function(){var l=this.getExp();if(!l)return false;var m=l.month,n=l.year,o=new Date(),p=o.getFullYear()+"",q=o.getMonth()+1+"";q=q.length===1?"0"+q:q;return n<p||p===n&&m<q};f.exports=k}),null);
__d("P2PTransferStore",["Arbiter","P2PActionConstants","ChannelConstants","CurrentUser","CreditCardFormParam","EventEmitter","ImmutableObject","P2PActions","P2PAPI","P2PChannelType","P2PCreditCard","P2PDispatcher","P2PGKValues","P2PNUXRendererUtils","P2PTransferParam","P2PTransferStatus","Set","MercuryThreadInformer"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("MercuryThreadInformer").get(),k=false,l=void 0,m=[],n=void 0,o={},p=false,q=false,r=new(c("Set"))(),s=false;function t(w,x){if(x)o[x]=new(c("ImmutableObject"))(w)}function u(w,x){if(x)o[x]={error:w}}h=babelHelpers.inherits(v,c("EventEmitter"));i=h&&h.prototype;function v(){i.constructor.call(this);c("Arbiter").subscribe(c("ChannelConstants").getArbiterType(c("P2PChannelType").TRANSFER_STATUS_CHANGED),this.handleChannelTransferStatusChanged.bind(this));j.subscribe("messages-received",this.handleMessageReceived.bind(this));c("P2PDispatcher").register(this.onEventDispatched.bind(this))}v.prototype.onEventDispatched=function(w){__p&&__p();var x=w.data,y=w.type;switch(y){case c("P2PActionConstants").TRANSFERS_UPDATED:this.handleTransfersUpdated(x);this.emit("change");break;case c("P2PActionConstants").TRANSFERS_UPDATED_ERROR:this.handleTransfersUpdatedError(x);this.emit("change");break;case c("P2PActionConstants").NUX_TRANSFERS_UPDATED:this.handleNUXTransfersUpdated(x);this.emit("change");break;case c("P2PActionConstants").TRANSFER_ADDED:this.handleTransferAdded(x);this.emit("change");break;case c("P2PActionConstants").TRANSFER_UPDATED:this.handleTransferUpdated(x);this.emit("change");break;case c("P2PActionConstants").TRANSFER_ACCEPTED:this.handleTransferAccepted();this.emit("change");break;case c("P2PActionConstants").TRANSFER_DECLINED:this.handleTransferDeclined(x);this.emit("change");break;case c("P2PActionConstants").EXTENSIVE_TRANSFER_DETAILS_UPDATED:this.handleTransferWithExtensiveDetails(x);this.emit("change");break}};v.prototype.getAsyncRequestState=function(){return o};v.prototype.handleTransfersUpdated=function(w){__p&&__p();n=null;p=true;var x=[],y=w.map(function(A){__p&&__p();var B={},C=this.getTransferByID(A[c("P2PTransferParam").TRANSFER_ID]),D={};if(A.creditCard){B[c("CreditCardFormParam").CREDENTIAL_ID]=A.creditCard[c("CreditCardFormParam").CREDENTIAL_ID];B[c("CreditCardFormParam").CARD_NUMBER]=A.creditCard[c("CreditCardFormParam").CARD_NUMBER];B[c("CreditCardFormParam").CARD_TYPE]=A.creditCard[c("CreditCardFormParam").CARD_TYPE];A.creditCard=new(c("P2PCreditCard"))(B)}if(C)for(var E in C)D[E]=A[E]!==null?A[E]:C[E];x.push(A[c("P2PTransferParam").TRANSFER_ID]);return new(c("ImmutableObject"))(A,D)}.bind(this)),z=m.filter(function(A){return x.indexOf(A[c("P2PTransferParam").TRANSFER_ID])===-1});m=y.concat(z);m=m.sort(function(A,B){return B.creationTime-A.creationTime})};v.prototype.handleTransfersUpdatedError=function(w){n=w.error;u(w.requestID,w.error)};v.prototype.handleNUXTransfersUpdated=function(w){if(!p)this.handleTransfersUpdated(w)};v.prototype.handleTransferAdded=function(w){__p&&__p();var x=null;t(w,w.requestID);if(w&&w.sender&&w.sender.id===c("CurrentUser").getID())s=true;x=m.filter(function(y){return y[c("P2PTransferParam").TRANSFER_ID]===w[c("P2PTransferParam").TRANSFER_ID]})[0];if(x)return;m.push(new(c("ImmutableObject"))(w));m=m.sort(function(y,z){return z.creationTime-y.creationTime})};v.prototype.handleTransferAddedError=function(w){u(w.requestID,w.errors)};v.prototype.handleChannelTransferStatusChanged=function(w,x){x=x.obj;c("P2PActions").transferUpdated(x)};v.prototype.handleMessageReceived=function(w,x){__p&&__p();for(var y in x)if(Object.prototype.hasOwnProperty.call(x,y)){var z=x[y];for(var A=0;A<z.length;A++)if(z[A].attachments&&z[A].attachments.length){var B=c("P2PNUXRendererUtils").getTransferFromMessage(z[A]);if(B){if(!this.hasReceived()&&B.receiver.id===c("CurrentUser").getID())c("P2PAPI").getBannerStates();c("P2PActions").transferAdded(B);return}}}};v.prototype.handleTransferUpdated=function(w){for(var x=0,y=m.length;x<y;x++)if(m[x][c("P2PTransferParam").TRANSFER_ID]===w[c("P2PTransferParam").TRANSFER_ID])m[x]=c("ImmutableObject").set(m[x],w)};v.prototype.handleTransferAccepted=function(){var w=void 0;for(var x=0,y=m.length;x<y;x++)if(m[x][c("P2PTransferParam").STATUS]===c("P2PTransferStatus").PENDING_RECIPIENT_NUX){w={};w[c("P2PTransferParam").STATUS]=c("P2PTransferStatus").COMPLETED;m[x]=c("ImmutableObject").set(m[x],w)}q=true};v.prototype.handleTransferDeclined=function(w){var x=void 0;for(var y=0,z=m.length;y<z;y++)if(m[y][c("P2PTransferParam").TRANSFER_ID]===w[c("P2PTransferParam").TRANSFER_ID]&&m[y][c("P2PTransferParam").STATUS]===c("P2PTransferStatus").PENDING_RECIPIENT_NUX){x={};x[c("P2PTransferParam").STATUS]=c("P2PTransferStatus").CANCELED_DECLINED;m[y]=c("ImmutableObject").set(m[y],x);break}};v.prototype.handleTransferUpdatedError=function(w){u(w.requestID,w.errors)};v.prototype.getTransferByID=function(w){return m.filter(function(x){return w===x[c("P2PTransferParam").TRANSFER_ID]})[0]};v.prototype.getAll=function(w){if(!k){k=true;c("P2PAPI").getTransactions(w)}return m};v.prototype.getNUXTransfer=function(){var w=m.filter(function(x){return c("P2PNUXRendererUtils").isRecipientActionableStatus(x)})[0];if(!w&&!l&&!k){l=true;c("P2PAPI").getNUXTransactions()}if(w&&!w.currency)c("P2PAPI").getNUXTransactions();return w};v.prototype.hasTransfers=function(){return m.length>0};v.prototype.hasAccepted=function(){return q};v.prototype.hasReceivedFromSender=function(w){for(var x=0,y=m.length;x<y;x++)if(m[x].sender.id===w)return true;return false};v.prototype.hasReceived=function(){for(var w=0,x=m.length;w<x;w++)if(m[w].receiver.id===c("CurrentUser").getID())return true;return false};v.prototype.getTransferFetchError=function(){return n};v.prototype.getTransferWithExtensiveDetailsByID=function(w){if(!r.has(w)){r.add(w);c("P2PAPI").getExtensiveTransferDetailsByID(w)}};v.prototype.handleTransferWithExtensiveDetails=function(w){if(this.getTransferByID(w.transfer_id))this.handleTransferUpdated(w);else this.handleTransferAdded(w)};v.prototype.getAllLocal=function(){return m};v.prototype.hasSentDuringSession=function(){return s};v.prototype.shouldShowSenderNUX=function(){return!c("P2PGKValues").P2PUserAddedCredentialBefore&&!this.hasSentDuringSession()};f.exports=new v()}),null);
__d("P2PFriendPickerDialog.react",["cx","fbt","P2PActions","P2PDialog.react","P2PDialogBody.react","P2PDialogTitle.react","P2PFriendPicker.react","P2PSendMoneyNUXDialog.react","P2PTransferStore","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={sendMoneyNUXDismissed:false},this.handleToggle=function(s){if(!s)this.props.onClose()}.bind(this),this.handleNUXNextClick=function(){this.setState({sendMoneyNUXDismissed:true})}.bind(this),o}m.prototype.render=function(){var n=445;if(!this.state.sendMoneyNUXDismissed&&c("P2PTransferStore").shouldShowSenderNUX())return c("React").createElement(c("P2PSendMoneyNUXDialog.react"),{eventFlow:this.props.eventFlow,onToggle:this.handleToggle,onNextClick:this.handleNUXNextClick,width:n});return c("React").createElement(c("P2PDialog.react"),{onToggle:this.handleToggle,width:n},c("React").createElement(c("P2PDialogTitle.react"),null,c("React").createElement("div",{className:"_4ia-"},this.props.title)),c("React").createElement(c("P2PDialogBody.react"),{className:"_4ib0"},c("React").createElement(c("P2PFriendPicker.react"),{amount:this.props.amount,buttonLabel:this.props.buttonLabel,eventFlow:this.props.eventFlow,onFriendSelected:this.props.onClose,referrer:this.props.referrer,sendMoneyNUXDismissed:this.state.sendMoneyNUXDismissed,subTitle:this.props.subTitle})))};m.propTypes={amount:l.string,buttonLabel:l.node,eventFlow:l.string.isRequired,onClose:l.func.isRequired,referrer:l.string,subTitle:l.node,title:l.node};m.defaultProps={amount:"",title:i._("Select Friend"),subTitle:i._("These are your friends who are able to receive money.")};f.exports={module:m,render:function n(o){c("P2PActions").showDialog(m,babelHelpers["extends"]({title:i._("Send Money to Friends")},o,{onClose:c("P2PActions").hideDialog}))}}}),null);
__d("P2PSendMoneyHelper",["fbt","MercuryIDs","P2PActions","P2PLogger","P2PFriendPickerDialog.react","P2PPaymentLoggerEvent","P2PPaymentLoggerEventFlow"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("P2PFriendPickerDialog.react").module,j={bindProfileSendMoneyAction:function k(l,m){l.subscribe("itemclick",function(n,o){if(o.item.getValue()==="send_money")c("P2PActions").chatSendViewOpened({referrer:"profile_action",threadID:c("MercuryIDs").getThreadIDFromUserID(m)})})},bindPeopleSearchResultSendMoneyAction:function k(l,m){l.subscribe("itemclick",function(n,o){if(o.item.getValue()==="send_money"){c("P2PLogger").log(c("P2PPaymentLoggerEvent").ACTN_PEOPLE_SEARCH_SEND_MONEY_BUTTON_CLICKED,{www_event_referrer:"www_people_search_result",www_event_flow:c("P2PPaymentLoggerEventFlow").UI_FLOW_P2P_PEOPLE_SEARCH_SEND_MONEY,object_id:m});c("P2PActions").chatSendViewOpened({referrer:"people_search_result",threadID:c("MercuryIDs").getThreadIDFromUserID(m)})}})},initPaymentsBluebarMenuItems:function k(l){l.subscribe("itemclick",function(m,n){var o=n.item.getValue();if(o==="send_money")c("P2PActions").showDialog(i,{eventFlow:c("P2PPaymentLoggerEventFlow").UI_FLOW_SEND_MONEY_BLUEBAR,onClose:c("P2PActions").hideDialog,referrer:"bluebar",title:h._("Send Money to Friends")});else if(o==="payments_history")c("P2PLogger").log(c("P2PPaymentLoggerEvent").UI_ACTN_PAYMENTS_HISTORY_BLUEBAR_CLICK,{www_event_flow:c("P2PPaymentLoggerEventFlow").UI_FLOW_PAYMENTS_MENU_BLUEBAR})})}};f.exports=j}),null);