






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

@interface MinSockViewController ()

@end

@implementation MinSockViewController

- (UIButton *)wayEitherButton
{
    if (!_wayEitherButton) {
        _wayEitherButton = [[UIButton alloc] init];
        [_wayEitherButton setTitle:PrintFarFor.guideMaySelf.yearPackExtendsSolutionsSchoolFarsi forState:UIControlStateNormal];
        [_wayEitherButton setTitleColor:[PrintFarFor slightBedColor] forState:UIControlStateNormal];
        [_wayEitherButton addTarget:self action:@selector(capturingDidLookupYetEphemeralAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _wayEitherButton;
}

- (UIButton *)adjustSuchButton
{
    if (!_adjustSuchButton) {
        _adjustSuchButton = [[UIButton alloc] init];
        [_adjustSuchButton setTitle:PrintFarFor.guideMaySelf.wakeCloudySecurelyExpensiveScalingWill forState:UIControlStateNormal];
        [_adjustSuchButton setTitleColor:[PrintFarFor slightBedColor] forState:UIControlStateNormal];
        [_adjustSuchButton addTarget:self action:@selector(longestOutBayerPositiveDialogAction:) forControlEvents:UIControlEventTouchUpInside];
        _adjustSuchButton.hidden = [PrintFarFor skinFilterCanadianRealFinderUpdating];
    }
    return _adjustSuchButton;
}

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

- (void)longestOutBayerPositiveDialogAction:(UIButton *)sender {
    [[WeekStripManager shared] fourteenInfoWindow];
    [PrintFarFor longestOutBayerPositiveDialogAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = PrintFarFor.guideMaySelf.boxAbovePast;

    
    self.view.backgroundColor = [PrintFarFor kindScanningAuditTypeHexColor];
    NSString *uppercaseCornerEncryptedIrregularInstances = [PrintFarFor canonicalMaxFunnelCurrentlyPrototypeImage];
    if (uppercaseCornerEncryptedIrregularInstances) {
        UIImageView *realResumeImageView = [[UIImageView alloc] init];
        realResumeImageView.contentMode = UIViewContentModeScaleAspectFill;
        realResumeImageView.clipsToBounds = YES;
        realResumeImageView.layer.cornerRadius = PrintFarFor.guideMaySelf.boxAbovePast;
        realResumeImageView.layer.masksToBounds = YES;
        [realResumeImageView sd_setImageWithURL:[NSURL URLWithString:uppercaseCornerEncryptedIrregularInstances]];
        [self.view insertSubview:realResumeImageView atIndex:0];
        [realResumeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.drawingSubgroupMegabytesTagInferImageView = realResumeImageView;
    }

    [self.view addSubview:self.wayEitherButton];
    [self.view addSubview:self.adjustSuchButton];
    
    CGFloat oneSize = PrintFarFor.guideMaySelf.staleOddJoin;
    [_wayEitherButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(PrintFarFor.guideMaySelf.splatButPen);
        make.size.mas_equalTo(CGSizeMake(oneSize, oneSize));
    }];
    [_adjustSuchButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(PrintFarFor.guideMaySelf.splatButPen);
        make.right.equalTo(self.view).offset(-PrintFarFor.guideMaySelf.splatButPen);
        make.size.mas_equalTo(CGSizeMake(oneSize, oneSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(globalCommittedCountAltimeterIllFetchFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeListCarrierGenerateExclusiveIslamic:) 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([PrintFarFor turnWateryResetBatchMetalGravitySize]);
    }];
}


- (void)globalCommittedCountAltimeterIllFetchFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect availRunFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [WeekStripManager shared].swipePenSideWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(PrintFarFor.guideMaySelf.unifyCarLeapWidthCaffeineWake)]) {
#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 illRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((illRect.origin.y + illRect.size.height) > availRunFrame.origin.y) {
                CGFloat strip = ((illRect.origin.y + illRect.size.height) - availRunFrame.origin.y) + 10;
                
                theBand(self);
                [UIView animateWithDuration:duration animations:^{
                    illReturn(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -strip);
                }];
            }
        }
    }
}


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

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

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