






#import "LineButViewController.h"
#import "UIImageView+WebCache.h"

@interface LineButViewController ()

@end

@implementation LineButViewController

- (UIButton *)waterWarpButton
{
    if (!_waterWarpButton) {
        _waterWarpButton = [[UIButton alloc] init];
        [_waterWarpButton setTitle:DiscardsOld.dogPongRoman.safeBedFunkMarginArtworkSlow forState:UIControlStateNormal];
        [_waterWarpButton setTitleColor:[DiscardsOld promotionColor] forState:UIControlStateNormal];
        [_waterWarpButton addTarget:self action:@selector(blockerClearedSpacingApertureCookieAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _waterWarpButton;
}

- (UIButton *)volumesIllButton
{
    if (!_volumesIllButton) {
        _volumesIllButton = [[UIButton alloc] init];
        [_volumesIllButton setTitle:DiscardsOld.dogPongRoman.persistOverrideFloatOpticalQuitYou forState:UIControlStateNormal];
        [_volumesIllButton setTitleColor:[DiscardsOld promotionColor] forState:UIControlStateNormal];
        [_volumesIllButton addTarget:self action:@selector(mixInitiatedSafeIllTopAction:) forControlEvents:UIControlEventTouchUpInside];
        _volumesIllButton.hidden = [DiscardsOld affectedUndefinedBoxCancelingScrollAsleep];
    }
    return _volumesIllButton;
}

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

- (void)mixInitiatedSafeIllTopAction:(UIButton *)sender {
    [[SpecifierManager shared] axesDueDeltaWindow];
    [DiscardsOld mixInitiatedSafeIllTopAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = DiscardsOld.dogPongRoman.rowsUnderage;

    
    self.view.backgroundColor = [DiscardsOld italicElectricShutterTheTexturedColor];
    NSString *clusterFarInuitRetainParse = [DiscardsOld fathomsTransferStalledEraserArgumentsImage];
    if (clusterFarInuitRetainParse) {
        UIImageView *tagPoolBadImageView = [[UIImageView alloc] init];
        tagPoolBadImageView.contentMode = UIViewContentModeScaleAspectFill;
        tagPoolBadImageView.clipsToBounds = YES;
        tagPoolBadImageView.layer.cornerRadius = DiscardsOld.dogPongRoman.rowsUnderage;
        tagPoolBadImageView.layer.masksToBounds = YES;
        [tagPoolBadImageView sd_setImageWithURL:[NSURL URLWithString:clusterFarInuitRetainParse]];
        [self.view insertSubview:tagPoolBadImageView atIndex:0];
        [tagPoolBadImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.wasAlertAmharicPopCostImageView = tagPoolBadImageView;
    }

    [self.view addSubview:self.waterWarpButton];
    [self.view addSubview:self.volumesIllButton];
    
    CGFloat cutSize = DiscardsOld.dogPongRoman.seasonManBig;
    [_waterWarpButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(DiscardsOld.dogPongRoman.filterSlope);
        make.size.mas_equalTo(CGSizeMake(cutSize, cutSize));
    }];
    [_volumesIllButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(DiscardsOld.dogPongRoman.filterSlope);
        make.right.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.filterSlope);
        make.size.mas_equalTo(CGSizeMake(cutSize, cutSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(strokeScaleContainFormProgressDutchFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mapWrongAsteriskVideoStormClear:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([DiscardsOld funLastLockingNextHandoffHourlySize]);
    }];
}


- (void)strokeScaleContainFormProgressDutchFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect filteredFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [SpecifierManager shared].cleanIndexesWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(DiscardsOld.dogPongRoman.currencyOptionalInvisibleBottomYouWas)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];
#pragma clang diagnostic pop
        
        if (firstResponder  && [firstResponder isKindOfClass:UITextField.class]) {

            CGRect seeRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((seeRect.origin.y + seeRect.size.height) > filteredFrame.origin.y) {
                CGFloat slope = ((seeRect.origin.y + seeRect.size.height) - filteredFrame.origin.y) + 10;
                
                bigRing(self);
                [UIView animateWithDuration:duration animations:^{
                    provision(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -slope);
                }];
            }
        }
    }
}


- (void)mapWrongAsteriskVideoStormClear:(NSNotification *)notification{
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    bigRing(self);
    [UIView animateWithDuration:duration animations:^{
        provision(self);
        self.navigationController.view.transform = CGAffineTransformIdentity;
    }];
}

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

- (void)barrierDraftActiveSoftballRelevance:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}

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

@end
