useDeleteWearablesApplication",["fbt","GeoToast.react","RelayHooks","WearablesLogger","WearablesPath","react","react-compiler-runtime","useDeleteWearablesApplicationMutation.graphql","useGeoToaster","useWearablesSuccessToast"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||c("react");function a(a){var e=d("react-compiler-runtime").c(11),f=c("useGeoToaster")(),g=f.add;f=d("WearablesPath").useWearablesRouteParams();var j=f.organisationID;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=i!==void 0?i:i=b("useDeleteWearablesApplicationMutation.graphql"),e[0]=f):f=e[0];f=d("RelayHooks").useMutation(f);var l=f[0];f=f[1];var m;e[1]===Symbol["for"]("react.memo_cache_sentinel")?(m=h._(/*BTDS*/"Project deleted"),e[1]=m):m=e[1];var n=c("useWearablesSuccessToast")(m);e[2]!==g||e[3]!==l||e[4]!==n||e[5]!==a||e[6]!==j?(m=function(b){return l({onCompleted:function(){n(),b()},onError:function(b){g(k.jsx(c("GeoToast.react"),{heading:h._(/*BTDS*/"Failed to delete project"),status:"error"})),d("WearablesLogger").logError({applicationID:a,event:"project_delete_failure",exception:b,organisationID:j})},updater:function(b){var c;b=b.get(j!=null?j:"");b=b==null?void 0:b.getLinkedRecord("applications");c=(c=b==null?void 0:b.getLinkedRecords("nodes"))!=null?c:[];c=c.filter(function(b){return(b==null?void 0:b.getValue("id"))!==a});b==null||b.setLinkedRecords(c,"nodes")},variables:{input:{wearables_application_id:a}}})},e[2]=g,e[3]=l,e[4]=n,e[5]=a,e[6]=j,e[7]=m):m=e[7];m=m;var o;e[8]!==m||e[9]!==f?(o=[m,f],e[8]=m,e[9]=f,e[10]=o):o=e[10];return o}g["default"]=a}),226);
-----
useDeleteWearablesApplicationMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XARDeleteWearablesApplicationResponsePayload",kind:"LinkedField",name:"xar_delete_wearables_application",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useDeleteWearablesApplicationMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useDeleteWearablesApplicationMutation",selections:b},params:{id:"23973240505645250",metadata:{},name:"useDeleteWearablesApplicationMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----