






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

@interface SnowSpaViewController ()

@end

@implementation SnowSpaViewController

- (UIButton *)bedNordicButton
{
    if (!_bedNordicButton) {
        _bedNordicButton = [[UIButton alloc] init];
        [_bedNordicButton setTitle:ReadWaxDash.strideFooter.pairParsingPresetGermanCupWorkspace forState:UIControlStateNormal];
        [_bedNordicButton setTitleColor:[ReadWaxDash proxyCharColor] forState:UIControlStateNormal];
        [_bedNordicButton addTarget:self action:@selector(tabularIndexHintStretchExchangesAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _bedNordicButton;
}

- (UIButton *)hairRetainButton
{
    if (!_hairRetainButton) {
        _hairRetainButton = [[UIButton alloc] init];
        [_hairRetainButton setTitle:ReadWaxDash.strideFooter.resolvingIntegralAnySeekPromptDeparture forState:UIControlStateNormal];
        [_hairRetainButton setTitleColor:[ReadWaxDash proxyCharColor] forState:UIControlStateNormal];
        [_hairRetainButton addTarget:self action:@selector(blurAttempterWaitingForkSigmaAction:) forControlEvents:UIControlEventTouchUpInside];
        _hairRetainButton.hidden = [ReadWaxDash googleLargeRevealResetLenientUploaded];
    }
    return _hairRetainButton;
}

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

- (void)blurAttempterWaitingForkSigmaAction:(UIButton *)sender {
    [[StandCapsManager shared] romanHellmanWindow];
    [ReadWaxDash blurAttempterWaitingForkSigmaAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = ReadWaxDash.strideFooter.faxReverting;

    
    self.view.backgroundColor = [ReadWaxDash conditionSpeakStructureBoundProvisionColor];
    NSString *timeIllPanoramasPressedClip = [ReadWaxDash gesturesProductsTremorAndStampImage];
    if (timeIllPanoramasPressedClip) {
        UIImageView *featPetiteImageView = [[UIImageView alloc] init];
        featPetiteImageView.contentMode = UIViewContentModeScaleAspectFill;
        featPetiteImageView.clipsToBounds = YES;
        featPetiteImageView.layer.cornerRadius = ReadWaxDash.strideFooter.faxReverting;
        featPetiteImageView.layer.masksToBounds = YES;
        [featPetiteImageView sd_setImageWithURL:[NSURL URLWithString:timeIllPanoramasPressedClip]];
        [self.view insertSubview:featPetiteImageView atIndex:0];
        [featPetiteImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.lostInvisibleCreamyOnlyAndImageView = featPetiteImageView;
    }

    [self.view addSubview:self.bedNordicButton];
    [self.view addSubview:self.hairRetainButton];
    
    CGFloat fixSize = ReadWaxDash.strideFooter.birthCarrier;
    [_bedNordicButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ReadWaxDash.strideFooter.bagPipeThin);
        make.size.mas_equalTo(CGSizeMake(fixSize, fixSize));
    }];
    [_hairRetainButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ReadWaxDash.strideFooter.bagPipeThin);
        make.right.equalTo(self.view).offset(-ReadWaxDash.strideFooter.bagPipeThin);
        make.size.mas_equalTo(CGSizeMake(fixSize, fixSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tagsSlideBlinkPubFillArbiterFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sumReceivesBarsDisappearCapUppercase:) 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([ReadWaxDash transferEjectSunArmSymbolsCarbonSize]);
    }];
}


- (void)tagsSlideBlinkPubFillArbiterFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect slideCanFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [StandCapsManager shared].kilobytesBagWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(ReadWaxDash.strideFooter.prefixesCallbackIconYardSplitScene)]) {
#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 penRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((penRect.origin.y + penRect.size.height) > slideCanFrame.origin.y) {
                CGFloat metal = ((penRect.origin.y + penRect.size.height) - slideCanFrame.origin.y) + 10;
                
                seeUsed(self);
                [UIView animateWithDuration:duration animations:^{
                    scalarNow(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -metal);
                }];
            }
        }
    }
}


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

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

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