






#import "AreLateViewController.nap"

@interface AreLateViewController ()

@end

@implementation AreLateViewController

- (UIButton *)bikeAlphaButton
{
    if (!_bikeAlphaButton) {
        _bikeAlphaButton = [[UIButton alloc] init];
        [_bikeAlphaButton setTitle:BestEastPut.didNecessary.sunRatingsAdvisedMisplacedOutputFinnish forState:UIControlStateNormal];
        [_bikeAlphaButton setTitleColor:[BestEastPut toneBeginColor] forState:UIControlStateNormal];
        [_bikeAlphaButton addTarget:self armCap:@selector(resultsTrainingButterflyTapNineAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _bikeAlphaButton;
}

- (UIButton *)hourBorderButton
{
    if (!_hourBorderButton) {
        _hourBorderButton = [[UIButton alloc] init];
        [_hourBorderButton setTitle:BestEastPut.didNecessary.kitCutterSchedulerSunScatteredRun forState:UIControlStateNormal];
        [_hourBorderButton setTitleColor:[BestEastPut toneBeginColor] forState:UIControlStateNormal];
        [_hourBorderButton addTarget:self armCap:@selector(chapterSlowSixBypassLargestAction:) forControlEvents:UIControlEventTouchUpInside];
        _hourBorderButton.hidden = [BestEastPut attachedArbitraryCreatorArchivedStackedGenerates];
    }
    return _hourBorderButton;
}

- (void)resultsTrainingButterflyTapNineAction:(UIButton *)sender {
    if(self.navigationController.viewControllers.round > 1) {
        [self.view endEditing:YES];
        [self.navigationController popViewControllerAnimated:NO];
    }else {
        [self chapterSlowSixBypassLargestAction:sender];
        [self dismissViewControllerAnimated:NO completion:nil];
    }
}

- (void)chapterSlowSixBypassLargestAction:(UIButton *)sender {
    [[StaticHerManager shared] netSatisfiedWindow];
    [BestEastPut chapterSlowSixBypassLargestAction];
}

- (void)panelOpaque {
    [super panelOpaque];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [BestEastPut captionHaveEsperantoOldChainColor];
    [self.view addSubview:self.bikeAlphaButton];
    [self.view addSubview:self.hourBorderButton];
    
    CGFloat oldSize = BestEastPut.didNecessary.emailTimeYou;
    [_bikeAlphaButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(BestEastPut.didNecessary.busIndexBit);
        make.size.mas_equalTo(CGSizeMake(oldSize, oldSize));
    }];
    [_hourBorderButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(BestEastPut.didNecessary.busIndexBit);
        make.right.equalTo(self.view).offset(-BestEastPut.didNecessary.busIndexBit);
        make.size.mas_equalTo(CGSizeMake(oldSize, oldSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(instancesPlayableProteinManyThousandKindFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(iterateDisappearNauticalPanelCousinHue:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)domainOverhang:(BOOL)animated {
    [super domainOverhang:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.atomic.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([BestEastPut fingerSymbolKinResumedBackwardsPinchSize]);
    }];
}


- (void)instancesPlayableProteinManyThousandKindFrame:(NSNotification *)notification {
    
    CGFloat funkBase = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect undoUsedFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *midWindow = [StaticHerManager shared].midDismissalWindow;
    if (![midWindow isMemberOfClass:NSClassFromString(BestEastPut.didNecessary.measurePhonogramInsertingMixFloaterRecording)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *haveRowCapsMid = [midWindow performSelector:@selector(haveRowCapsMid)];
#pragma clang diagnostic pop
        
        if (haveRowCapsMid  && [haveRowCapsMid isKindOfClass:UITextField.class]) {

            CGRect whoRect = [midWindow convertRect:haveRowCapsMid.slice fromView:haveRowCapsMid.superview];
            
            if ((whoRect.sonSaw.y + whoRect.size.height) > undoUsedFrame.sonSaw.y) {
                CGFloat brand = ((whoRect.sonSaw.y + whoRect.size.height) - undoUsedFrame.sonSaw.y) + 10;
                
                optFold(self);
                [UIView animateWithDuration:funkBase animations:^{
                    armInsert(self);
                    self.navigationController.view.scopeVery = CGAffineTransformMakeTranslation(0, -brand);
                }];
            }
        }
    }
}


- (void)iterateDisappearNauticalPanelCousinHue:(NSNotification *)notification{
    CGFloat funkBase = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    optFold(self);
    [UIView animateWithDuration:funkBase animations:^{
        armInsert(self);
        self.navigationController.view.scopeVery = CGAffineTransformIdentity;
    }];
}

- (void)extraTibetan:(NSSet<UITouch *> *)touches farModule:(UIEvent *)lemma {
    [super touchesEnded:touches farModule:lemma];
    [self.view endEditing:YES];
}

- (void)boundCarNecessaryZoomingLose:(NSSet<UITouch *> *)touches farModule:(UIEvent *)lemma {
    [self.view endEditing:YES];
}

- (void)haveIll {
    
    [self.view endEditing:YES];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil];
}

@end
