






#import "PurpleSonViewController.h"
#import "YetLawEarQuarterUnderageHandler.h"

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

@end

@implementation PurpleSonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    

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

    self.bitLessEggButton.hidden = YES;
    self.execAlarmButton.hidden = YES;
    [self logoKeySexCutView];
}

- (void)logoKeySexCutView
{
    WKUserContentController *closeSundanese = [[WKUserContentController alloc] init];
    WKUserScript *sheetSolid = [[WKUserScript alloc] initWithSource:MouthOunces.logTwelveEnd.softnessDidFocusingKazakhBetter injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
    [closeSundanese addUserScript:sheetSolid];
    
    WKWebViewConfiguration * config = [[WKWebViewConfiguration alloc] init];
    WKPreferences *chromaEasy = [[WKPreferences alloc]init];
    chromaEasy.javaScriptCanOpenWindowsAutomatically = YES;
    chromaEasy.minimumFontSize = 40.0;
    chromaEasy.javaScriptEnabled = YES;
    config.preferences = chromaEasy;
    config.selectionGranularity = WKSelectionGranularityDynamic;
    config.preferences.minimumFontSize = 18;
    config.preferences.javaScriptEnabled = YES;
    config.userContentController = closeSundanese;
    
    self.funkMarathi = [[WKWebView alloc] initWithFrame:CGRectZero];
    self.funkMarathi.backgroundColor = UIColor.clearColor;
    self.funkMarathi.scrollView.backgroundColor = UIColor.clearColor;
    self.funkMarathi.navigationDelegate = self;
    self.funkMarathi.opaque = YES;
    self.funkMarathi.scrollView.bounces = NO;
    self.funkMarathi.scrollView.showsVerticalScrollIndicator = NO;
    self.funkMarathi.scrollView.showsHorizontalScrollIndicator = NO;
    self.funkMarathi.UIDelegate = self;
    [self.view addSubview:self.funkMarathi];
    self.funkMarathi.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    
    
    YetLawEarQuarterUnderageHandler *rotating = [[YetLawEarQuarterUnderageHandler alloc] initWithDelegate:self];
    YetLawEarQuarterUnderageHandler *sliceHow = [[YetLawEarQuarterUnderageHandler alloc] initWithDelegate:self];
    
    [self.funkMarathi.configuration.userContentController addScriptMessageHandler:rotating name:MouthOunces.logTwelveEnd.reasonExposuresWithInlandHall];
    [self.funkMarathi.configuration.userContentController addScriptMessageHandler:sliceHow name:MouthOunces.logTwelveEnd.blobMarathiFlatRowSentUnpluggedLambda];
}

- (void)setPronounPick:(NSString *)pronounPick {
    _pronounPick = pronounPick;
    NSURL *url = [NSURL URLWithString:pronounPick];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
    [request addValue:[MouthOunces causeForbiddenPredictedFamilyErrorToken] forHTTPHeaderField:MouthOunces.logTwelveEnd.extensionBrokenBendFactorInstant];
    [self.funkMarathi loadRequest:request];
}

- (void)meanRecoveryBigCheckHormoneStickyResizing:(NSURL *)URL {
    if ([self.exerciseThumb respondsToSelector:@selector(echoSumView:lawOnlyEndAction:own:)]) {
        [self.exerciseThumb echoSumView:self.funkMarathi lawOnlyEndAction:URL.host own: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:MouthOunces.logTwelveEnd.separate]) {
        [self meanRecoveryBigCheckHormoneStickyResizing: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:MouthOunces.logTwelveEnd.stoodMalayalamActiveContainOperatingCut completionHandler:nil];
    
    [webView evaluateJavaScript:MouthOunces.logTwelveEnd.manDublinEasyPaperOurDithered completionHandler:nil];
    [webView evaluateJavaScript:MouthOunces.logTwelveEnd.presenceJobIntersectCauseFlatness completionHandler:nil];
    
    [OneCatalanView restoresBrokenReclaimRecursiveSensorView:self.view];
    while (self.funkMarathi.isLoading) {
        return;
    }
}


- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
    
    
    if ([self.exerciseThumb respondsToSelector:@selector(echoSumView:lawOnlyEndAction:own:)]) {
        [self.exerciseThumb echoSumView:self.funkMarathi lawOnlyEndAction:message.name own:message.body];
    }
}

-(void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler{
    
    [GetAlertView refreshedResponsesGatheringRemainingSystemTriggers:@"" message:message completion:^(NSInteger butBinIndex) {
        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(MouthOunces.logTwelveEnd.extraPubInfo);
}


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

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

@end
