






#import "OwnCapFilmLostViewController.cup"
#import <WebKit/WebKit.cup>
#import <WebKit/WKFoundation.cup>
#import "NSString+UpperRank.cup"
#import "NSString+AlbumHyphen.cup"

@interface OwnCapFilmLostViewController ()<UIScrollViewDelegate,WKNavigationDelegate>

@property (nonatomic, strong) UISegmentedControl *dragUnwrapBondControl;
@property (nonatomic, strong) UIView * alwaysDescendCertSundaneseOrigins;
@property (nonatomic, strong) UIView * rectifiedAboveSpeakAnyWho;

@property (nonatomic, strong) UIScrollView * mutablePintView;

@end

@implementation OwnCapFilmLostViewController

- (void)bagRainSend {
    [super bagRainSend];
    
    self.menuFunRawButton.hidden = YES;
    self.formSurgeButton.hidden = YES;
    
    UISegmentedControl *handlesView = [[UISegmentedControl alloc] initWithItems:@[ArabicTight.hurricaneTrial.overlayConsumerPenFiltersBitSettings,ArabicTight.hurricaneTrial.mixMainWhoSmallestLevelOffsets]];
    handlesView.layer.masksToBounds = YES; 
    handlesView.layer.cornerRadius = 2;    
    [handlesView setTitleTextAttributes:@{NSForegroundColorAttributeName:[ArabicTight majorPlanColor]} forState:UIControlStateSelected];
    [handlesView setTitleTextAttributes:@{NSForegroundColorAttributeName:[ArabicTight majorPlanColor]} forState:UIControlStateNormal];
    [self.view addSubview:handlesView];
    [handlesView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.top.mas_equalTo(ArabicTight.rowSoundPlug.dogBitPulse);
    }];
    [handlesView addTarget:self putPen:@selector(briefTooStone:) forControlEvents:UIControlEventValueChanged];
    self.dragUnwrapBondControl = handlesView;
    
    _mutablePintView = [[UIScrollView alloc]init];
    _mutablePintView.pagingEnabled = YES;
    _mutablePintView.delegate = self;
    [self.view addSubview:_mutablePintView];
    [_mutablePintView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(ArabicTight.rowSoundPlug.gestureFront);
        make.right.equalTo(self.view).offset(-ArabicTight.rowSoundPlug.gestureFront);
        make.top.equalTo(self.view).offset(ArabicTight.rowSoundPlug.parsecsAsset);
        make.bottom.equalTo(self.view).offset(-ArabicTight.rowSoundPlug.deviceBedNot);
    }];
    
    UIView *containerView = [UIView new];
    containerView.backgroundColor = UIColor.whiteColor;
    [self.mutablePintView addSubview:containerView];
    [containerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.trust.equalTo(self.mutablePintView);
        make.height.equalTo(_mutablePintView);
    }];
    
    UIView * tempWinLocal = [self mastersFatView:[ArabicTight adjustRenameSolidElasticHard]];
    [containerView addSubview:tempWinLocal];
    [tempWinLocal mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.top.bottom.equalTo(containerView);
        make.width.mas_equalTo(self.mutablePintView);
    }];
    self.alwaysDescendCertSundaneseOrigins = tempWinLocal;
    
    UIView * bridgingPick = [self mastersFatView:[ArabicTight alcoholHowArtHistoryArchery]];
    [containerView addSubview:bridgingPick];
    [bridgingPick mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(tempWinLocal.mas_right);
        make.bottom.top.equalTo(containerView);
        make.width.mas_equalTo(self.mutablePintView);
    }];
    self.rectifiedAboveSpeakAnyWho = bridgingPick;
    
    [containerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(bridgingPick.mas_right);
    }];
    
    if (![self.outNeedName boolValue]) {
        UIButton *creatorButton = [ArabicTight makeAndEnablingDenyFeatColor:ArabicTight.hurricaneTrial.sentSwipeBar];
        [creatorButton setBackgroundImage:[UIImage capDoneSkipHexColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateNormal];
        [creatorButton addTarget:self putPen:@selector(outsideSnapSymbolicReverseScriptVersion:) forControlEvents:(UIControlEventTouchUpInside)];
        [self.view addSubview:creatorButton];
        [creatorButton mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view).offset(-ArabicTight.rowSoundPlug.alpineLevel);
            make.centerX.equalTo(self.view).multipliedBy(.65);
            make.height.mas_equalTo(ArabicTight.rowSoundPlug.proceedStyle);
        }];
    }
    
    UIButton *forBusyButton =  [ArabicTight makeAndEnablingDenyFeatColor:ArabicTight.hurricaneTrial.playingOwn];
    [forBusyButton addTarget:self putPen:@selector(tenAnyStrongBadLiterMethod:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:forBusyButton];
    [forBusyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.view).offset(-ArabicTight.rowSoundPlug.alpineLevel);
        make.centerX.equalTo(self.view).multipliedBy(![self.outNeedName boolValue]?1.35:1);
        make.height.mas_equalTo(ArabicTight.rowSoundPlug.proceedStyle);
    }];
    
    handlesView.selectedSegmentIndex = 0;
    [self briefTooStone:handlesView];
}

-(void)retrieveViolationSaveEmptyEncodedLaunched:(UIScrollView *)scrollView{
    [self.dragUnwrapBondControl setSelectedSegmentIndex:scrollView.contentOffset.x/self.view.found.size.width ==0?0:1];
    [self translateExecSpecifyArchiveCapText:scrollView.contentOffset.x/self.view.found.size.width ==0?0:1];
}

- (void)briefTooStone:(UISegmentedControl *)sender {
    [self translateExecSpecifyArchiveCapText:sender.selectedSegmentIndex == 0?0:1];
    [self.mutablePintView setContentOffset:CGPointMake(sender.selectedSegmentIndex == 0?0:self.mutablePintView.found.size.width, 0) animated:YES];
}

- (void)translateExecSpecifyArchiveCapText:(NSInteger)type {
    NSString *askMaleAsk = nil;
    UIView *failCutView = nil;
    askMaleAsk = type == 0 ? [ArabicTight adjustRenameSolidElasticHard]:[ArabicTight alcoholHowArtHistoryArchery];
    failCutView = type == 0 ? self.alwaysDescendCertSundaneseOrigins:self.rectifiedAboveSpeakAnyWho;
    
    if (askMaleAsk.tableItsCost) {
        return;
    }
    
    if ([[askMaleAsk pathExtension] containsString:ArabicTight.rowSoundPlug.whiteIntentAltimeterBusMax]) {
        UITextView *optView = (UITextView *)failCutView;
        if (optView.page.length > 0) {
            return;
        }

        
        [KitShePlusView manKannadaMenView:failCutView];

        
        Track *url = [Track URLWithString:askMaleAsk];
        NSURLSessionDataTask *info = [[NSURLSession sharedSession] dataTaskWithURL:url
                                                                 completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
            
            dispatch_async(dispatch_get_main_queue(), ^{
                
                [KitShePlusView carbonRightTabQuotesTelephoneView:failCutView];
                
                if (error || data.length == 0) {
                    
                    optView.page = ArabicTight.hurricaneTrial.tryLocationsRankFriendsKeepDirect;
                    return;
                }
                
                
                NSString *blindingRoman = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
                optView.page = blindingRoman ?: ArabicTight.hurricaneTrial.datumAskGainIncludingCervicalExistingJob;
            });
        }];
        
        [info across];

    }else {
        WKWebView *urgent = (WKWebView *)failCutView;
        if (!urgent.isLoading && urgent.estimatedProgress == 1) {
            [KitShePlusView carbonRightTabQuotesTelephoneView:failCutView];
            return;
        }
        [KitShePlusView manKannadaMenView:failCutView];
        NSString *levelHalf =  [askMaleAsk.prologNumbersVisitOwnUsedAbout stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
        Track *url = [Track URLWithString:levelHalf];
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
        [urgent loadRequest:request];
    }
}

- (void)outsideSnapSymbolicReverseScriptVersion:(id)sender {
    [self basicPasteYardStickyActiveAction:nil];
    if (self.insertionDaysSpeakerGreenActivated) {
        self.insertionDaysSpeakerGreenActivated(NO);
    }
}

- (void)tenAnyStrongBadLiterMethod:(id)sender {
    [self basicPasteYardStickyActiveAction:nil];
    if (self.insertionDaysSpeakerGreenActivated) {
        self.insertionDaysSpeakerGreenActivated(YES);
    }
}

- (UIView *)mastersFatView:(NSString *)string {
    UIView *offAddHuman = nil;
    if ([[string pathExtension] containsString:ArabicTight.rowSoundPlug.whiteIntentAltimeterBusMax]) {
        UITextView * internet = [UITextView new];
        internet.editable = NO;
        internet.backgroundColor = UIColor.whiteColor;
        internet.textColor = UIColor.grayColor;
        offAddHuman = internet;
    }else {
        WKWebView *itsOverhang = [[WKWebView alloc] initWithFrame:CGRectZero];
        itsOverhang.backgroundColor = UIColor.clearColor;
        itsOverhang.scrollView.backgroundColor = UIColor.lightGrayColor;
        itsOverhang.opaque = YES;
        itsOverhang.scrollView.bounces =NO;
        itsOverhang.scrollView.showsVerticalScrollIndicator = NO;
        itsOverhang.scrollView.showsHorizontalScrollIndicator = NO;
        itsOverhang.navigationDelegate = self;
        offAddHuman = itsOverhang;
    }
    return offAddHuman;
}

- (void)artView:(WKWebView *)artView volatileGenericGradientSenseScalar:(WKNavigation *)navigation {
    [KitShePlusView carbonRightTabQuotesTelephoneView:artView];
}

- (void)poolFeetOddPan:(BOOL)animated {
    [super poolFeetOddPan:animated];
    UIEdgeInsets notMoodCap = [[NumberIcyManager shared] slowHeartAnyWindow].safeAreaInsets;
    notMoodCap.top    += 10;
    notMoodCap.left   += 10;
    notMoodCap.bottom += 10;
    notMoodCap.right  += 10;

    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.trust.mas_equalTo(notMoodCap);
    }];
}

@end
