






#import "FeedOceanViewController.h"
#import "EyeButTrustButton.h"
#import "OptVeryDrawEndViewController.h"
#import "ZipToast.h"
#import "YouSlowFileLabel.h"
#import "WasItalicTextField.h"
#import "NSString+MoreAlien.h"

@interface FeedOceanViewController ()

@property (nonatomic, strong) WasItalicTextField *ellipseDaysTextField;
@property (nonatomic, strong) UITextField *satisfiedTextField;
@property (nonatomic, strong) EyeButTrustButton *submittedButton;
@property (nonatomic,strong) YouSlowFileLabel *widthCreditsLabel;

@end

@implementation FeedOceanViewController

- (EyeButTrustButton *)submittedButton {
    if (!_submittedButton) {
        _submittedButton = [[EyeButTrustButton alloc] init];
    }
    return _submittedButton;
}

- (YouSlowFileLabel *)widthCreditsLabel {
    if (!_widthCreditsLabel) {
        _widthCreditsLabel = [YouSlowFileLabel rateNetHerOutLabel:NO];
    }
    return _widthCreditsLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.ellipseDaysTextField = [[WasItalicTextField alloc] initWithController:self];
    [self.view addSubview:self.ellipseDaysTextField];
    [self.ellipseDaysTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BigAddition.noiseFactMen.drawJapanese);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.fourSugarSob);
    }];
    
    
    self.satisfiedTextField = [BigAddition ciphersSortSignerFathomsVisitSpaCode];
    [self.view addSubview:self.satisfiedTextField];
    [self.satisfiedTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.ellipseDaysTextField.mas_bottom).offset(BigAddition.noiseFactMen.pubMetalFade);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.fourSugarSob);
    }];
    
    mustYet(self);
    self.submittedButton.mousePaceBarsAction = ^{
        birthPipe(self);
        NSString *heapUnionCode = self.ellipseDaysTextField.mayGreenOffZip;
        NSString *kitAlienOwn = self.ellipseDaysTextField.catalanSupportsJobEldestAsk;
        if (self.ellipseDaysTextField.ellipseDaysTextField.text.tradFetchShe) {
            [self.submittedButton regularOriginOffRenewingModal];
            [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.twentyFunSymbolicOptimizedVolatileMaker completion:nil];
            return;
        }
        if ([self.pitchRecorder respondsToSelector:@selector(yetPutTapsLatvianAnonymousLossBroadcastType:relatedMole:sinkCode:completion:)]) {
            [AllSunLoopView yetBusNowForkWindow];
            [self.pitchRecorder yetPutTapsLatvianAnonymousLossBroadcastType:BigAddition.noiseFactMen.foldCaseWetDanceAccept relatedMole:kitAlienOwn sinkCode:heapUnionCode completion:^(id object) {
                [AllSunLoopView largeCanReportsNetworkNeutralWindow];
                if ([object boolValue]) {
                    [ZipToast nearParent:BigAddition.lateTapLineAll.checkingQuantizeProtectedDissolveTwoUnableCode];
                }else {
                    [self.submittedButton regularOriginOffRenewingModal];
                }
            }];
        }
    };
    [self.view addSubview:self.submittedButton];
    [self.submittedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.satisfiedTextField);
        make.height.equalTo(self.satisfiedTextField);
        make.left.equalTo(self.satisfiedTextField.mas_right).offset(BigAddition.noiseFactMen.lossArranged);
        make.right.equalTo(self.ellipseDaysTextField);
    }];
    
    
    [self.submittedButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *sitePresenterButton = [BigAddition jabberMenLowWhoCleanupColor:BigAddition.lateTapLineAll.extractIconComposerWatchMergeKind];
    [sitePresenterButton addTarget:self action:@selector(minTrustedPetiteScrollsFastAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:sitePresenterButton];
    [sitePresenterButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.satisfiedTextField.mas_bottom).offset(BigAddition.noiseFactMen.pubMetalFade);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.visitedSugar);
    }];
    
    [self.view addSubview:self.widthCreditsLabel];
    [self.widthCreditsLabel setExceededNominallyTwentySegueBinEqually:^{
        birthPipe(self);
        [self hourOperatingPriceVisitorLinearSayAction];
    }];
    [self.widthCreditsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BigAddition.noiseFactMen.disorderNear);
        make.left.mas_equalTo(BigAddition.noiseFactMen.subReadyNear);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.subReadyNear);
    }];
}

- (void)minTrustedPetiteScrollsFastAction:(UIButton *)sender {
    if (self.ellipseDaysTextField.ellipseDaysTextField.text.tradFetchShe) {
        [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.twentyFunSymbolicOptimizedVolatileMaker completion:nil];
        return;
    }
    if (self.satisfiedTextField.text.tradFetchShe) {
        [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.retryModeratePrintableKeyArabic completion:nil];
        return;
    }
    NSString *heapUnionCode = self.ellipseDaysTextField.mayGreenOffZip;
    NSString *kitAlienOwn = self.ellipseDaysTextField.catalanSupportsJobEldestAsk;
    if ([self.pitchRecorder respondsToSelector:@selector(winRevealedBrandFavoriteResonantFathomsUseAdvance:code:sinkCode:completion:)]) {
        [AllSunLoopView yetBusNowForkWindow];
        [self.pitchRecorder winRevealedBrandFavoriteResonantFathomsUseAdvance:kitAlienOwn code:self.satisfiedTextField.text sinkCode:heapUnionCode completion:^(id object) {
            [AllSunLoopView largeCanReportsNetworkNeutralWindow];
        }];
    }
}


- (void)hourOperatingPriceVisitorLinearSayAction {
    OptVeryDrawEndViewController *whoLearnLoud = [OptVeryDrawEndViewController new];
    whoLearnLoud.primaryMile = @(YES);
    whoLearnLoud.pitchRecorder = self.pitchRecorder;
    [whoLearnLoud setNotifyingDeletionTremorOptDividing:^(BOOL result) {
        self.widthCreditsLabel.thumbGradeWrap = result;
    }];
    [self.navigationController pushViewController:whoLearnLoud animated:NO];
}

- (void)dealloc {
    [self.submittedButton regularOriginOffRenewingModal];
}
@end
