






#import "SiteGetViewController.h"

@interface SiteGetViewController ()

@end

@implementation SiteGetViewController

- (UIButton *)anyOpaqueButton
{
    if (!_anyOpaqueButton) {
        _anyOpaqueButton = [[UIButton alloc] init];
        [_anyOpaqueButton setTitle:FixChunkBad.swedishTwist.playbackCountedReloadBirthdayManFar forState:UIControlStateNormal];
        [_anyOpaqueButton setTitleColor:[FixChunkBad generatesColor] forState:UIControlStateNormal];
        [_anyOpaqueButton addTarget:self action:@selector(floatingAnchoredFlatnessFaxPronounAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _anyOpaqueButton;
}

- (UIButton *)carIcyMaleButton
{
    if (!_carIcyMaleButton) {
        _carIcyMaleButton = [[UIButton alloc] init];
        [_carIcyMaleButton setTitle:FixChunkBad.swedishTwist.pairAgreementFillEncodedIllegalLook forState:UIControlStateNormal];
        [_carIcyMaleButton setTitleColor:[FixChunkBad generatesColor] forState:UIControlStateNormal];
        [_carIcyMaleButton addTarget:self action:@selector(sunRelationWristProducedHomeAction:) forControlEvents:UIControlEventTouchUpInside];
        _carIcyMaleButton.hidden = [FixChunkBad clinicalPreservedHitEventTrackLicense];
    }
    return _carIcyMaleButton;
}

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

- (void)sunRelationWristProducedHomeAction:(UIButton *)sender {
    [[RelevanceManager shared] handoffEightWindow];
    [FixChunkBad sunRelationWristProducedHomeAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [FixChunkBad tagEncryptedEncipherAcuteStyleColor];
    [self.view addSubview:self.anyOpaqueButton];
    [self.view addSubview:self.carIcyMaleButton];
    
    CGFloat lowSize = FixChunkBad.swedishTwist.herAlongHalf;
    [_anyOpaqueButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(FixChunkBad.swedishTwist.youngerSend);
        make.size.mas_equalTo(CGSizeMake(lowSize, lowSize));
    }];
    [_carIcyMaleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(FixChunkBad.swedishTwist.youngerSend);
        make.right.equalTo(self.view).offset(-FixChunkBad.swedishTwist.youngerSend);
        make.size.mas_equalTo(CGSizeMake(lowSize, lowSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(armTwoDownOnceSobDiagnoseFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(lighterCoastWasHexMildHover:) 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([FixChunkBad soloistRetainDiscoveryLiftMolarReachedSize]);
    }];
}


- (void)armTwoDownOnceSobDiagnoseFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect nameTimeFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [RelevanceManager shared].ropeAnimatorWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(FixChunkBad.swedishTwist.pongFootnoteSocketNetworkLayerPub)]) {
#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 offRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((offRect.origin.y + offRect.size.height) > nameTimeFrame.origin.y) {
                CGFloat heart = ((offRect.origin.y + offRect.size.height) - nameTimeFrame.origin.y) + 10;
                
                runVery(self);
                [UIView animateWithDuration:duration animations:^{
                    pickEvent(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -heart);
                }];
            }
        }
    }
}


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

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

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