






#import "NotKazakhViewController.h"
#import "JustShowReversesTransformStandardHandler.h"

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

@end

@implementation NotKazakhViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.poloDecodeButton.hidden = YES;
    self.partDraftButton.hidden = YES;
    [self logSeeMainMapView];
}

- (void)logSeeMainMapView
{
    WKUserContentController *itsWinPlateAre = [[WKUserContentController alloc] init];
    WKUserScript *wideEffort = [[WKUserScript alloc] initWithSource:AppleNotify.emailBestRaw.thePenEntityTraitSpa injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
    [itsWinPlateAre addUserScript:wideEffort];
    
    WKWebViewConfiguration * config = [[WKWebViewConfiguration alloc] init];
    WKPreferences *pageMinPin = [[WKPreferences alloc]init];
    pageMinPin.javaScriptCanOpenWindowsAutomatically = YES;
    pageMinPin.minimumFontSize = 40.0;
    pageMinPin.javaScriptEnabled = YES;
    config.preferences = pageMinPin;
    config.selectionGranularity = WKSelectionGranularityDynamic;
    config.preferences.minimumFontSize = 18;
    config.preferences.javaScriptEnabled = YES;
    config.userContentController = itsWinPlateAre;
    
    self.thickBefore = [[WKWebView alloc] initWithFrame:CGRectZero];
    self.thickBefore.backgroundColor = UIColor.clearColor;
    self.thickBefore.scrollView.backgroundColor = UIColor.clearColor;
    self.thickBefore.navigationDelegate = self;
    self.thickBefore.opaque = YES;
    self.thickBefore.scrollView.bounces = NO;
    self.thickBefore.scrollView.showsVerticalScrollIndicator = NO;
    self.thickBefore.scrollView.showsHorizontalScrollIndicator = NO;
    self.thickBefore.UIDelegate = self;
    [self.view addSubview:self.thickBefore];
    self.thickBefore.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    
    
    JustShowReversesTransformStandardHandler *onceLeft = [[JustShowReversesTransformStandardHandler alloc] initWithDelegate:self];
    JustShowReversesTransformStandardHandler *rollStar = [[JustShowReversesTransformStandardHandler alloc] initWithDelegate:self];
    
    [self.thickBefore.configuration.userContentController addScriptMessageHandler:onceLeft name:AppleNotify.emailBestRaw.resultingBandDidSupplySelected];
    [self.thickBefore.configuration.userContentController addScriptMessageHandler:rollStar name:AppleNotify.emailBestRaw.thatReliableRespondsTabUserSchedulerFive];
}

- (void)setArmHexPhoto:(NSString *)armHexPhoto {
    _armHexPhoto = armHexPhoto;
    NSURL *url = [NSURL URLWithString:armHexPhoto];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
    [request addValue:[AppleNotify forceSharePrepareVolumesItemToken] forHTTPHeaderField:AppleNotify.emailBestRaw.exposureEyeGenreGivenDeveloper];
    [self.thickBefore loadRequest:request];
}

- (void)componentButterflyPurchasedHoursAnonymousSecondDeclined:(NSURL *)URL {
    if ([self.lossScattered respondsToSelector:@selector(faxNodeView:wayProgramAction:bin:)]) {
        [self.lossScattered faxNodeView:self.thickBefore wayProgramAction:URL.host bin: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:AppleNotify.emailBestRaw.abnormal]) {
        [self componentButterflyPurchasedHoursAnonymousSecondDeclined: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:AppleNotify.emailBestRaw.playIntegrityReturnsNormalizeDomainsSerbian completionHandler:nil];
    
    [webView evaluateJavaScript:AppleNotify.emailBestRaw.constantGuideDiskCharExitsChroma completionHandler:nil];
    [webView evaluateJavaScript:AppleNotify.emailBestRaw.childLoseRopeInstancesPlane completionHandler:nil];
    
    [MealHealthView hexReferentFrictionPortionVitaminView:self.view];
    while (self.thickBefore.isLoading) {
        return;
    }
}


- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
    
    
    if ([self.lossScattered respondsToSelector:@selector(faxNodeView:wayProgramAction:bin:)]) {
        [self.lossScattered faxNodeView:self.thickBefore wayProgramAction:message.name bin:message.body];
    }
}

-(void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler{
    
    [KinAlertView deliveredFeaturesHailGlucosePhaseFinger:@"" message:message completion:^(NSInteger fatHitIndex) {
        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(AppleNotify.emailBestRaw.howSubmitted);
}


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

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

@end
