





#import "NearbyTelephoneHealthHurricaneRender.h"
@import Network;

static NSString *malaySlantZoom = nil;
static nw_path_monitor_t muteReportJump = NULL;

@implementation NearbyTelephoneHealthHurricaneRender

+ (BOOL)expensiveReminderBestTopSave {
    return malaySlantZoom != nil;
}

+ (NSString *)floatChatAskType {
    return malaySlantZoom ?: @"none";
}

+ (void)factoredYesterdayForeverHitSignerSheet:(void (^)(BOOL expensiveReminderBestTopSave))completion {
    
    if (muteReportJump != NULL) {
        nw_path_monitor_cancel(muteReportJump);
        muteReportJump = NULL;
    }
    
    
    muteReportJump = nw_path_monitor_create();
    nw_path_monitor_set_queue(muteReportJump, dispatch_get_main_queue());
    
    __block nw_path_monitor_t haveRadioSex = muteReportJump;
    nw_path_monitor_set_update_handler(muteReportJump, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                malaySlantZoom = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                malaySlantZoom = @"cellular";
            } else {
                
                malaySlantZoom = @"other";
            }
            
            
            if (haveRadioSex) {
                nw_path_monitor_cancel(haveRadioSex);
                haveRadioSex = NULL;
                muteReportJump = NULL;
            }
            
        } else {
            malaySlantZoom = nil;
        }
        
        
        if (completion) {
            completion([self expensiveReminderBestTopSave]);
        }
        
    });
    
    
    nw_path_monitor_start(muteReportJump);
}

@end
