MWSCastingDevicesAppLaunchCell.react",["fbt","CometRelay","GeoBaseTableCell.react","GeoButton.react","GeoHStack.react","MWSCastingCenterRemoteLaunchContext","MWSCastingCenterRemoteLaunchUtils","MWSCastingCenterRoomContext","MWSCastingDevicesAppLaunchCell_app.graphql","react","useGeoToaster","useRemoteLaunchAppNotificationRequestMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext;function a(a){var b=a.appReference,e=a.deviceId;a=d("CometRelay").useFragment(n,b);var f=a.name,g=a.package_name;b=m(c("MWSCastingCenterRemoteLaunchContext"));var i=b.onLaunchContentForDevices,j=b.sessionId;a=m(c("MWSCastingCenterRoomContext"));var o=a.roomId,p=a.setShowDeviceOverlay;b=c("useRemoteLaunchAppNotificationRequestMutation")();a=b.requestInProgress;var q=b.sendRequest;b=c("useGeoToaster")();var r=b.add;b=l(function(){var a;q([e],j,g,(a=o)!=null?a:void 0,function(a){return d("MWSCastingCenterRemoteLaunchUtils").onLaunchFailure(r,f,g,"LAUNCH_APP",[e],a,i,p)},function(){return d("MWSCastingCenterRemoteLaunchUtils").onLaunchSuccess(r,f,g,"LAUNCH_APP",i,p,[e])})},[q,e,j,g,o,r,f,i,p]);return k.jsx(c("GeoBaseTableCell.react"),{children:k.jsx(c("GeoHStack.react"),{alignItems:"center",justifyContent:"end",children:k.jsx(c("GeoButton.react"),{isDisabled:a,label:h._(/*BTDS*/"Launch"),onClick:b})})})}a.displayName=a.name+" [from "+f.id+"]";var n=i!==void 0?i:i=b("MWSCastingDevicesAppLaunchCell_app.graphql");g["default"]=a}),226);
-----
useRemoteLaunchAppNotificationRequestMutation",["CometRelay","react","useRemoteLaunchAppNotificationRequestMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=d("CometRelay").useMutation(k),b=a[0];a=j(function(a,c,d,e,f,g){b({onCompleted:function(a){a=(a=a.xfb_remote_launch_app_request)==null?void 0:a.failed_device_ids;a!=null&&a.length>0?f(a):g()},onError:function(b){f(a)},variables:{input:{device_ids:a,package_name:d,request_id:c,room_id:e}}})},[b]);return{sendRequest:a}}var k=h!==void 0?h:h=b("useRemoteLaunchAppNotificationRequestMutation.graphql");g["default"]=a}),98);
-----
MWSCastingCenterRemoteLaunchAppSearchModal.react",["fbt","GeoLink.react","MWSAssignedDeviceAppsSearchSection.react","MWSCastingCenterRemoteLaunchContext","MWSCastingCenterRemoteLaunchSearchModal.react","MWSCastingCenterRemoteLaunchToast.react","MWSCastingCenterRoomContext","react","useGeoToaster","useRemoteLaunchAppNotificationRequestMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useContext,m=b.useState;function a(a){a=a.props;var b=a.deviceIds,d=a.onHide,e;a=m(null);var f=a[0],g=a[1];a=l(c("MWSCastingCenterRemoteLaunchContext"));var i=a.onLaunchContentForDevices,n=a.sessionId;a=l(c("MWSCastingCenterRoomContext"));var o=a.roomId,p=a.setShowDeviceOverlay;a=c("useGeoToaster")();var q=a.add,r=k(function(){d("layerHideButton")},[d]),s=k(function(a){i(b,a,"LAUNCH_APP"),q(j.jsx(c("MWSCastingCenterRemoteLaunchToast.react"),{contentName:a,contentType:"app",setShowDeviceOverlay:p}))},[q,b,i,p]);a=c("useRemoteLaunchAppNotificationRequestMutation")();var t=a.sendRequest;a=k(function(){if((f==null?void 0:f.packageName)!=null){var a;t(b,n,f.packageName,(a=o)!=null?a:void 0,function(){},function(){return s(f.name)})}r()},[b,r,s,o,f,t,n]);var u=function(){g(null)};return j.jsx(c("MWSCastingCenterRemoteLaunchSearchModal.react"),{description:(e=h._plural(b.length),h._(/*BTDS*/"",[e,h._implicitParam("=m5",j.jsx(c("GeoLink.react"),{href:"/apps/manage_apps",target:"_blank",children:h._(/*BTDS*/"",[e])}))])),handleSave:a,heading:h._(/*BTDS*/""),onHide:d,saveIsDisabled:f==null,submitButtonLabel:h._(/*BTDS*/""),children:j.jsx(c("MWSAssignedDeviceAppsSearchSection.react"),{deviceIds:b,onRemove:u,selectedApp:f,setSelectedApp:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useRemoteLaunchAppNotificationRequestMutation.graphql",["useRemoteLaunchAppNotificationRequestMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"XFBRemoteLaunchAppResponse",kind:"LinkedField",name:"xfb_remote_launch_app_request",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"failed_device_ids",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useRemoteLaunchAppNotificationRequestMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useRemoteLaunchAppNotificationRequestMutation",selections:c},params:{id:b("useRemoteLaunchAppNotificationRequestMutation_facebookRelayOperation"),metadata:{},name:"useRemoteLaunchAppNotificationRequestMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useRemoteLaunchAppNotificationRequestMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9976579189069451"}),null);
-----