MWSCastingDevicesFileLaunchCell.react",["fbt","CometRelay","GeoBaseTableCell.react","GeoButton.react","GeoHStack.react","MWSCastingCenterRemoteLaunchContext","MWSCastingCenterRemoteLaunchUtils","MWSCastingCenterRoomContext","MWSCastingDevicesFileLaunchCell_file.graphql","react","useGeoToaster","useRemoteLaunchFileNotificationRequestMutation"],(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.deviceId;a=a.fileReference;a=d("CometRelay").useFragment(n,a);var e=a.file_name,f=a.id;a=m(c("MWSCastingCenterRemoteLaunchContext"));var g=a.onLaunchContentForDevices,i=a.sessionId;a=m(c("MWSCastingCenterRoomContext"));var j=a.roomId,o=a.setShowDeviceOverlay;a=c("useRemoteLaunchFileNotificationRequestMutation")();var p=a.requestInProgress,q=a.sendRequest;a=c("useGeoToaster")();var r=a.add;a=l(function(){var a;q([b],i,f,(a=j)!=null?a:void 0,function(a){return d("MWSCastingCenterRemoteLaunchUtils").onLaunchFailure(r,e,f,"LAUNCH_FILE",[b],a,g,o)},function(){return d("MWSCastingCenterRemoteLaunchUtils").onLaunchSuccess(r,e,f,"LAUNCH_FILE",g,o,[b])})},[q,b,i,f,j,r,e,g,o]);return k.jsx(c("GeoBaseTableCell.react"),{children:k.jsx(c("GeoHStack.react"),{alignItems:"center",justifyContent:"end",children:k.jsx(c("GeoButton.react"),{isDisabled:p,label:h._(/*BTDS*/"Open"),onClick:a})})})}a.displayName=a.name+" [from "+f.id+"]";var n=i!==void 0?i:i=b("MWSCastingDevicesFileLaunchCell_file.graphql");g["default"]=a}),226);
-----
useRemoteLaunchFileNotificationRequestMutation",["CometRelay","react","useRemoteLaunchFileNotificationRequestMutation.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_file_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,file_id:d,request_id:c,room_id:e}}})},[b]);return{sendRequest:a}}var k=h!==void 0?h:h=b("useRemoteLaunchFileNotificationRequestMutation.graphql");g["default"]=a}),98);
-----
MWSCastingCenterRemoteLaunchFileSearchModal.react",["fbt","GeoLink.react","MWSAssignedDeviceFilesSearchSection.react","MWSCastingCenterRemoteLaunchContext","MWSCastingCenterRemoteLaunchSearchModal.react","MWSCastingCenterRemoteLaunchToast.react","MWSCastingCenterRoomContext","react","useGeoToaster","useRemoteLaunchFileNotificationRequestMutation"],(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_FILE"),q(j.jsx(c("MWSCastingCenterRemoteLaunchToast.react"),{contentName:a,contentType:"file",setShowDeviceOverlay:p}))},[q,b,i,p]);a=c("useRemoteLaunchFileNotificationRequestMutation")();var t=a.sendRequest;a=k(function(){if(f!=null){var a;t(b,n,f.id,(a=o)!=null?a:void 0,function(){},function(){return s(f.file_name)})}r()},[b,r,s,f,t,n,o]);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:"/content/manage_files",target:"_blank",children:h._(/*BTDS*/"",[e])}))])),handleSave:a,heading:h._(/*BTDS*/""),onHide:d,saveIsDisabled:f===null,submitButtonLabel:h._(/*BTDS*/""),children:j.jsx(c("MWSAssignedDeviceFilesSearchSection.react"),{deviceIds:b,onRemove:u,selectedFile:f,setSelectedFile:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useRemoteLaunchFileNotificationRequestMutation.graphql",["useRemoteLaunchFileNotificationRequestMutation_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:"XFBRemoteLaunchFileResponse",kind:"LinkedField",name:"xfb_remote_launch_file_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:"useRemoteLaunchFileNotificationRequestMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useRemoteLaunchFileNotificationRequestMutation",selections:c},params:{id:b("useRemoteLaunchFileNotificationRequestMutation_facebookRelayOperation"),metadata:{},name:"useRemoteLaunchFileNotificationRequestMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useRemoteLaunchFileNotificationRequestMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="29768847136046910"}),null);
-----
-----
useRemoteLaunchFileNotificationRequestMutation",["CometRelay","react","useRemoteLaunchFileNotificationRequestMutation.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_file_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,file_id:d,request_id:c,room_id:e}}})},[b]);return{sendRequest:a}}var k=h!==void 0?h:h=b("useRemoteLaunchFileNotificationRequestMutation.graphql");g["default"]=a}),98);
-----
MWSCastingCenterRemoteLaunchFileSearchModal.react",["fbt","GeoLink.react","MWSAssignedDeviceFilesSearchSection.react","MWSCastingCenterRemoteLaunchContext","MWSCastingCenterRemoteLaunchSearchModal.react","MWSCastingCenterRemoteLaunchToast.react","MWSCastingCenterRoomContext","react","useGeoToaster","useRemoteLaunchFileNotificationRequestMutation"],(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_FILE"),q(j.jsx(c("MWSCastingCenterRemoteLaunchToast.react"),{contentName:a,contentType:"file",setShowDeviceOverlay:p}))},[q,b,i,p]);a=c("useRemoteLaunchFileNotificationRequestMutation")();var t=a.sendRequest;a=k(function(){if(f!=null){var a;t(b,n,f.id,(a=o)!=null?a:void 0,function(){},function(){return s(f.file_name)})}r()},[b,r,s,f,t,n,o]);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:"/content/manage_files",target:"_blank",children:h._(/*BTDS*/"",[e])}))])),handleSave:a,heading:h._(/*BTDS*/""),onHide:d,saveIsDisabled:f===null,submitButtonLabel:h._(/*BTDS*/""),children:j.jsx(c("MWSAssignedDeviceFilesSearchSection.react"),{deviceIds:b,onRemove:u,selectedFile:f,setSelectedFile:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useRemoteLaunchFileNotificationRequestMutation.graphql",["useRemoteLaunchFileNotificationRequestMutation_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:"XFBRemoteLaunchFileResponse",kind:"LinkedField",name:"xfb_remote_launch_file_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:"useRemoteLaunchFileNotificationRequestMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useRemoteLaunchFileNotificationRequestMutation",selections:c},params:{id:b("useRemoteLaunchFileNotificationRequestMutation_facebookRelayOperation"),metadata:{},name:"useRemoteLaunchFileNotificationRequestMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useRemoteLaunchFileNotificationRequestMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="29768847136046910"}),null);
-----