






#import "LittleKitViewController.h"
#import "ArmpitQualitySuddenLuminancePaceHandler.h"

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

@end

@implementation LittleKitViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    

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

    
    self.view.layer.cornerRadius = 0;

    self.topMaleOurButton.hidden = YES;
    self.superiorsButton.hidden = YES;
    [self hisToolCupTipView];
}

- (void)hisToolCupTipView
{
    WKUserContentController *earRightAndWin = [[WKUserContentController alloc] init];
    WKUserScript *defineBlob = [[WKUserScript alloc] initWithSource:SafeWaxSort.sinLaunchCut.violationSourceDetectionStillBad injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
    [earRightAndWin addUserScript:defineBlob];
    
    WKWebViewConfiguration * config = [[WKWebViewConfiguration alloc] init];
    WKPreferences *radioClose = [[WKPreferences alloc]init];
    radioClose.javaScriptCanOpenWindowsAutomatically = YES;
    radioClose.minimumFontSize = 40.0;
    radioClose.javaScriptEnabled = YES;
    config.preferences = radioClose;
    config.selectionGranularity = WKSelectionGranularityDynamic;
    config.preferences.minimumFontSize = 18;
    config.preferences.javaScriptEnabled = YES;
    config.userContentController = earRightAndWin;
    
    self.gaspJumpArm = [[WKWebView alloc] initWithFrame:CGRectZero];
    self.gaspJumpArm.backgroundColor = UIColor.clearColor;
    self.gaspJumpArm.scrollView.backgroundColor = UIColor.clearColor;
    self.gaspJumpArm.navigationDelegate = self;
    self.gaspJumpArm.opaque = YES;
    self.gaspJumpArm.scrollView.bounces = NO;
    self.gaspJumpArm.scrollView.showsVerticalScrollIndicator = NO;
    self.gaspJumpArm.scrollView.showsHorizontalScrollIndicator = NO;
    self.gaspJumpArm.UIDelegate = self;
    [self.view addSubview:self.gaspJumpArm];
    self.gaspJumpArm.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    
    
    ArmpitQualitySuddenLuminancePaceHandler *arrayFun = [[ArmpitQualitySuddenLuminancePaceHandler alloc] initWithDelegate:self];
    ArmpitQualitySuddenLuminancePaceHandler *siteReal = [[ArmpitQualitySuddenLuminancePaceHandler alloc] initWithDelegate:self];
    
    [self.gaspJumpArm.configuration.userContentController addScriptMessageHandler:arrayFun name:SafeWaxSort.sinLaunchCut.walkGreatServiceAccessoryChapter];
    [self.gaspJumpArm.configuration.userContentController addScriptMessageHandler:siteReal name:SafeWaxSort.sinLaunchCut.wrapperExpectingStereoDetachingTenSomaliFarsi];
}

- (void)setSigmaOurSun:(NSString *)sigmaOurSun {
    _sigmaOurSun = sigmaOurSun;
    NSURL *url = [NSURL URLWithString:sigmaOurSun];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
    [request addValue:[SafeWaxSort forSheAnonymousToneSpellToken] forHTTPHeaderField:SafeWaxSort.sinLaunchCut.spanishAttachedResolvingDidSpeech];
    [self.gaspJumpArm loadRequest:request];
}

- (void)workflowCivilPrettyEasyGatheringTabEscapes:(NSURL *)URL {
    if ([self.eightFoundPop respondsToSelector:@selector(allergyView:pageMixRedAction:out:)]) {
        [self.eightFoundPop allergyView:self.gaspJumpArm pageMixRedAction:URL.host out: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:SafeWaxSort.sinLaunchCut.swimming]) {
        [self workflowCivilPrettyEasyGatheringTabEscapes: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:SafeWaxSort.sinLaunchCut.photosIcelandicNapAcceptingPotassiumDutch completionHandler:nil];
    
    [webView evaluateJavaScript:SafeWaxSort.sinLaunchCut.parentalSockSubPublisherRareDrizzle completionHandler:nil];
    [webView evaluateJavaScript:SafeWaxSort.sinLaunchCut.dingbatsArrangerFlightsControlAlbum completionHandler:nil];
    
    [RankSobHowView anyCalorieLongerBringScriptsView:self.view];
    while (self.gaspJumpArm.isLoading) {
        return;
    }
}


- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
    
    
    if ([self.eightFoundPop respondsToSelector:@selector(allergyView:pageMixRedAction:out:)]) {
        [self.eightFoundPop allergyView:self.gaspJumpArm pageMixRedAction:message.name out:message.body];
    }
}

-(void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler{
    
    [AirAlertView baseManualDecodeIndicesModifiersShowers:@"" message:message completion:^(NSInteger cutSobIndex) {
        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(SafeWaxSort.sinLaunchCut.putAssumeEye);
}


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

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

@end
