






#import "GroupLoseViewController.h"
#import "EyeThemeSliderDocumentsDemandHandler.h"

@interface GroupLoseViewController ()<WKNavigationDelegate,WKUIDelegate,WKScriptMessageHandler>

@end

@implementation GroupLoseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    

    
    if (self.farMemberStopTwoSpringImageView) {
        [self.farMemberStopTwoSpringImageView removeFromSuperview];
        self.farMemberStopTwoSpringImageView = nil;
    }

    
    self.view.layer.cornerRadius = 0;

    self.visualPintButton.hidden = YES;
    self.negotiateButton.hidden = YES;
    [self foreverReduceView];
}

- (void)foreverReduceView
{
    WKUserContentController *gaspCaseDecide = [[WKUserContentController alloc] init];
    WKUserScript *neutralCar = [[WKUserScript alloc] initWithSource:LambdaPatch.faxChildBend.affiliateAmountDirectoryCopperHurricane injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
    [gaspCaseDecide addUserScript:neutralCar];
    
    WKWebViewConfiguration * config = [[WKWebViewConfiguration alloc] init];
    WKPreferences *workoutHas = [[WKPreferences alloc]init];
    workoutHas.javaScriptCanOpenWindowsAutomatically = YES;
    workoutHas.minimumFontSize = 40.0;
    workoutHas.javaScriptEnabled = YES;
    config.preferences = workoutHas;
    config.selectionGranularity = WKSelectionGranularityDynamic;
    config.preferences.minimumFontSize = 18;
    config.preferences.javaScriptEnabled = YES;
    config.userContentController = gaspCaseDecide;
    
    self.vibrancyCat = [[WKWebView alloc] initWithFrame:CGRectZero];
    self.vibrancyCat.backgroundColor = UIColor.clearColor;
    self.vibrancyCat.scrollView.backgroundColor = UIColor.clearColor;
    self.vibrancyCat.navigationDelegate = self;
    self.vibrancyCat.opaque = YES;
    self.vibrancyCat.scrollView.bounces = NO;
    self.vibrancyCat.scrollView.showsVerticalScrollIndicator = NO;
    self.vibrancyCat.scrollView.showsHorizontalScrollIndicator = NO;
    self.vibrancyCat.UIDelegate = self;
    [self.view addSubview:self.vibrancyCat];
    self.vibrancyCat.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    
    
    EyeThemeSliderDocumentsDemandHandler *badJoule = [[EyeThemeSliderDocumentsDemandHandler alloc] initWithDelegate:self];
    EyeThemeSliderDocumentsDemandHandler *smoothed = [[EyeThemeSliderDocumentsDemandHandler alloc] initWithDelegate:self];
    
    [self.vibrancyCat.configuration.userContentController addScriptMessageHandler:badJoule name:LambdaPatch.faxChildBend.verticalDiastolicProvinceAllRetain];
    [self.vibrancyCat.configuration.userContentController addScriptMessageHandler:smoothed name:LambdaPatch.faxChildBend.segueBitMegabitsPartialPinSeeTip];
}

- (void)setEraReverses:(NSString *)eraReverses {
    _eraReverses = eraReverses;
    NSURL *url = [NSURL URLWithString:eraReverses];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
    [request addValue:[LambdaPatch renewingServicesExpandRestoreDebuggerToken] forHTTPHeaderField:LambdaPatch.faxChildBend.undoFinishedOpenFlightMasters];
    [self.vibrancyCat loadRequest:request];
}

- (void)visitedBridgeViolationChunkApplyRebusDuctility:(NSURL *)URL {
    if ([self.loudPipeEmail respondsToSelector:@selector(flagDayView:huePullMaxAction:ill:)]) {
        [self.loudPipeEmail flagDayView:self.vibrancyCat huePullMaxAction:URL.host ill:URL];
    }
}



- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler {
    decisionHandler(WKNavigationResponsePolicyAllow);
}


- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
    NSURL *URL = navigationAction.request.URL;
    
    if ([URL.scheme hasPrefix:LambdaPatch.faxChildBend.appleArm]) {
        [self visitedBridgeViolationChunkApplyRebusDuctility:URL];
        decisionHandler(WKNavigationActionPolicyCancel);
        return;
    }
    decisionHandler(WKNavigationActionPolicyAllow);
}


-(void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation{

}


- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation{
    

}


-(void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation {
    
    [webView evaluateJavaScript:LambdaPatch.faxChildBend.fourAdaptiveCanTextShiftEncrypted completionHandler:nil];
    
    [webView evaluateJavaScript:LambdaPatch.faxChildBend.expertBookmarkGaussianMinimumServiceGet completionHandler:nil];
    [webView evaluateJavaScript:LambdaPatch.faxChildBend.butMoireUplinkDiamondCoptic completionHandler:nil];
    
    [HalfTapOddView readFemaleDetachFileEditorialView:self.view];
    while (self.vibrancyCat.isLoading) {
        return;
    }
}


- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
    
    
    if ([self.loudPipeEmail respondsToSelector:@selector(flagDayView:huePullMaxAction:ill:)]) {
        [self.loudPipeEmail flagDayView:self.vibrancyCat huePullMaxAction:message.name ill:message.body];
    }
}

-(void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler{
    
    [GetAlertView collapsesButterflyCapturesKernelsPairInvite:@"" message:message completion:^(NSInteger canCanIndex) {
        completionHandler();
    }];
}



- (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures{
    WKFrameInfo *frameInfo = navigationAction.targetFrame;
    if (![frameInfo isMainFrame]) {
        [webView loadRequest:navigationAction.request];
    }
    return nil;
}


- (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(nullable NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * __nullable result))completionHandler{
    completionHandler(LambdaPatch.faxChildBend.hebrewNapYou);
}


- (void)webView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(BOOL result))completionHandler{
    completionHandler(YES);
}

- (void)dealloc {
    self.vibrancyCat.UIDelegate = nil;
    self.view = nil;
    [self.vibrancyCat.configuration.userContentController removeAllUserScripts];
}

@end
