






#import "AddSourceViewController.h"
#import "SerifMinSheButton.h"
#import "SoftnessRadialViewController.h"
#import "PanToast.h"
#import "RawSuchDustLabel.h"
#import "FourthFarTextField.h"
#import "NSString+NotWindow.h"

@interface AddSourceViewController ()

@property (nonatomic, strong) FourthFarTextField *appearAloneTextField;
@property (nonatomic, strong) UITextField *duplexFitTextField;
@property (nonatomic, strong) SerifMinSheButton *renewRareButton;
@property (nonatomic,strong) RawSuchDustLabel *tryIncorrectLabel;

@end

@implementation AddSourceViewController

- (SerifMinSheButton *)renewRareButton {
    if (!_renewRareButton) {
        _renewRareButton = [[SerifMinSheButton alloc] init];
    }
    return _renewRareButton;
}

- (RawSuchDustLabel *)tryIncorrectLabel {
    if (!_tryIncorrectLabel) {
        _tryIncorrectLabel = [RawSuchDustLabel sonDrainInuitLabel:NO];
    }
    return _tryIncorrectLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.appearAloneTextField = [[FourthFarTextField alloc] initWithController:self];
    [self.view addSubview:self.appearAloneTextField];
    [self.appearAloneTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FrictionShe.headphoneMay.armPriceGray);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.wetDolbySeed);
    }];
    
    
    self.duplexFitTextField = [FrictionShe repliesPairWordDemandUnknownLongestCode];
    [self.view addSubview:self.duplexFitTextField];
    [self.duplexFitTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.appearAloneTextField.mas_bottom).offset(FrictionShe.headphoneMay.busEndpoints);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.wetDolbySeed);
    }];
    
    canRace(self);
    self.renewRareButton.offLeftZipDidAction = ^{
        bayerMake(self);
        NSString *arbitraryCode = self.appearAloneTextField.pintCostIllMid;
        NSString *pickBagThat = self.appearAloneTextField.vitaminProvideDecimalCapNumbers;
        if (self.appearAloneTextField.appearAloneTextField.text.dogPipeSense) {
            [self.renewRareButton somaliJobPartialMissingPreset];
            [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.icelandicDustInvokeUsesDefinedPort completion:nil];
            return;
        }
        if ([self.buddhistAgent respondsToSelector:@selector(cadenceBendInheritedDogLeaseSenseDarwinType:popStrategy:dateCode:completion:)]) {
            [BaseLookupView mergeMoleFeetWindow];
            [self.buddhistAgent cadenceBendInheritedDogLeaseSenseDarwinType:FrictionShe.headphoneMay.fathomsSeventeenSeventeenDisableOwn popStrategy:pickBagThat dateCode:arbitraryCode completion:^(id object) {
                [BaseLookupView adoptPickSlantResolvedEntityWindow];
                if ([object boolValue]) {
                    [PanToast warnVerify:FrictionShe.saltBurstFinal.sunPenMixExclusionCommonThumbCode];
                }else {
                    [self.renewRareButton somaliJobPartialMissingPreset];
                }
            }];
        }
    };
    [self.view addSubview:self.renewRareButton];
    [self.renewRareButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.duplexFitTextField);
        make.height.equalTo(self.duplexFitTextField);
        make.left.equalTo(self.duplexFitTextField.mas_right).offset(FrictionShe.headphoneMay.widthDateBox);
        make.right.equalTo(self.appearAloneTextField);
    }];
    
    
    [self.renewRareButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *danceColorWhoButton = [FrictionShe icyThiaminFarsiReadoutRetColor:FrictionShe.saltBurstFinal.filteringEarlierKnowFlowStartingHelper];
    [danceColorWhoButton addTarget:self action:@selector(responsesBeenWinDividingWrapperAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:danceColorWhoButton];
    [danceColorWhoButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.duplexFitTextField.mas_bottom).offset(FrictionShe.headphoneMay.busEndpoints);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.beatTouchMap);
    }];
    
    [self.view addSubview:self.tryIncorrectLabel];
    [self.tryIncorrectLabel setLowAgeAscendedWhiteUserOutdoor:^{
        bayerMake(self);
        [self favoriteFarsiBitUnlockPermanentPromptAction];
    }];
    [self.tryIncorrectLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-FrictionShe.headphoneMay.ropeTooLevel);
        make.left.mas_equalTo(FrictionShe.headphoneMay.cloudHasGram);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.cloudHasGram);
    }];
}

- (void)responsesBeenWinDividingWrapperAction:(UIButton *)sender {
    if (self.appearAloneTextField.appearAloneTextField.text.dogPipeSense) {
        [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.icelandicDustInvokeUsesDefinedPort completion:nil];
        return;
    }
    if (self.duplexFitTextField.text.dogPipeSense) {
        [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.weeklyRespectsProcessesLegacyStrip completion:nil];
        return;
    }
    NSString *arbitraryCode = self.appearAloneTextField.pintCostIllMid;
    NSString *pickBagThat = self.appearAloneTextField.vitaminProvideDecimalCapNumbers;
    if ([self.buddhistAgent respondsToSelector:@selector(scanRopeFoundSchemeDuplexSegmentsImperialSnap:code:dateCode:completion:)]) {
        [BaseLookupView mergeMoleFeetWindow];
        [self.buddhistAgent scanRopeFoundSchemeDuplexSegmentsImperialSnap:pickBagThat code:self.duplexFitTextField.text dateCode:arbitraryCode completion:^(id object) {
            [BaseLookupView adoptPickSlantResolvedEntityWindow];
        }];
    }
}


- (void)favoriteFarsiBitUnlockPermanentPromptAction {
    SoftnessRadialViewController *herBoundLive = [SoftnessRadialViewController new];
    herBoundLive.wonSiblings = @(YES);
    herBoundLive.buddhistAgent = self.buddhistAgent;
    [herBoundLive setWaxCaptionSizeDatabasesPlay:^(BOOL result) {
        self.tryIncorrectLabel.boundingCookie = result;
    }];
    [self.navigationController pushViewController:herBoundLive animated:NO];
}

- (void)dealloc {
    [self.renewRareButton somaliJobPartialMissingPreset];
}
@end
