






#import "TalkFatViewController.h"

@interface TalkFatViewController ()

@end

@implementation TalkFatViewController

- (UIButton *)sinScreenButton
{
    if (!_sinScreenButton) {
        _sinScreenButton = [[UIButton alloc] init];
        [_sinScreenButton setTitle:BurstUpload.styleOrigins.closestStakeWalkScopeCardOffer forState:UIControlStateNormal];
        [_sinScreenButton setTitleColor:[BurstUpload stoodWarpColor] forState:UIControlStateNormal];
        [_sinScreenButton addTarget:self action:@selector(coverageSchedulerOpacityViolationSecondAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _sinScreenButton;
}

- (UIButton *)slashShapeButton
{
    if (!_slashShapeButton) {
        _slashShapeButton = [[UIButton alloc] init];
        [_slashShapeButton setTitle:BurstUpload.styleOrigins.decrementLostCollationEyeDrivenRequire forState:UIControlStateNormal];
        [_slashShapeButton setTitleColor:[BurstUpload stoodWarpColor] forState:UIControlStateNormal];
        [_slashShapeButton addTarget:self action:@selector(hitPresentedAirborneRestBasicAction:) forControlEvents:UIControlEventTouchUpInside];
        _slashShapeButton.hidden = [BurstUpload warpSpeakingModeratePassivelyIncludingGujarati];
    }
    return _slashShapeButton;
}

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

- (void)hitPresentedAirborneRestBasicAction:(UIButton *)sender {
    [[SquarePenManager shared] workoutPulseWindow];
    [BurstUpload hitPresentedAirborneRestBasicAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [BurstUpload managersCalciumOverageArbitraryRareColor];
    [self.view addSubview:self.sinScreenButton];
    [self.view addSubview:self.slashShapeButton];
    
    CGFloat hueSize = BurstUpload.styleOrigins.finderDryMan;
    [_sinScreenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(BurstUpload.styleOrigins.rawQuickTip);
        make.size.mas_equalTo(CGSizeMake(hueSize, hueSize));
    }];
    [_slashShapeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(BurstUpload.styleOrigins.rawQuickTip);
        make.right.equalTo(self.view).offset(-BurstUpload.styleOrigins.rawQuickTip);
        make.size.mas_equalTo(CGSizeMake(hueSize, hueSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(simpleDarkenSecondaryEmptyQuoteFutureFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(metadataHeapWhoEraDetachingResponds:) 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([BurstUpload nativeSessionsReplySubtitlesLearnUseSize]);
    }];
}


- (void)simpleDarkenSecondaryEmptyQuoteFutureFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect cupAlertFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [SquarePenManager shared].notStayThumbWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(BurstUpload.styleOrigins.beginBannerDiscardedTapsAccordingRelative)]) {
#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 mayRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((mayRect.origin.y + mayRect.size.height) > cupAlertFrame.origin.y) {
                CGFloat chest = ((mayRect.origin.y + mayRect.size.height) - cupAlertFrame.origin.y) + 10;
                
                winPipe(self);
                [UIView animateWithDuration:duration animations:^{
                    slopeSwap(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -chest);
                }];
            }
        }
    }
}


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

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

- (void)warpHostInterruptBaseballDog:(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
