






#import "WeightManViewController.h"
#import "HexWonLossyButton.h"
#import "TryToast.h"
#import "FailBuddyTextField.h"
#import "NSString+MayRename.h"

@interface WeightManViewController ()

@property (nonatomic, strong) FailBuddyTextField *pivotBagItsTextField;
@property (nonatomic, strong) UITextField *collisionTextField;
@property (nonatomic, strong) UITextField *adaptiveInuitTextField;
@property (nonatomic, strong) HexWonLossyButton *localizedButton;
@end

@implementation WeightManViewController

- (HexWonLossyButton *)localizedButton {
    if (!_localizedButton) {
        _localizedButton = [[HexWonLossyButton alloc] init];
    }
    return _localizedButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.pivotBagItsTextField = [[FailBuddyTextField alloc] initWithController:self];
    [self.view addSubview:self.pivotBagItsTextField];
    [self.pivotBagItsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafeTradEar.smallestMany.fiberViewLaw);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.swipeMaxTool);
    }];
    
    
    self.collisionTextField = [SafeTradEar meanCoalescedDenseAnnotatedPenHurricaneCode];
    [self.view addSubview:self.collisionTextField];
    [self.collisionTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pivotBagItsTextField.mas_bottom).offset(SafeTradEar.smallestMany.tensionBody);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.swipeMaxTool);
    }];
    
    allDeny(self);
    self.localizedButton.waxHashYouMinAction = ^{
        incorrect(self);
        
        NSString *moireFaceCode = self.pivotBagItsTextField.sixBookEyeWide;
        NSString *infoSession = self.pivotBagItsTextField.lingerAirBuddyBridgingMoment;
        if (self.pivotBagItsTextField.pivotBagItsTextField.text.followHelper) {
            [self.localizedButton redirectsRenameInfoRenderedInvoke];
            [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.interlaceBehaviorCoalescedBitMagnesiumAsset completion:nil];
            return;
        }
        if ([self.putAddEggLoop respondsToSelector:@selector(ownTipSliderSupportLeapBlobIndexingType:blackVendor:deepCode:completion:)]) {
            [OfferAngleView inuitFailJoinWindow];
            [self.putAddEggLoop ownTipSliderSupportLeapBlobIndexingType:SafeTradEar.smallestMany.axialStrokingCookieReviewSuggested blackVendor:infoSession deepCode:moireFaceCode completion:^(id object) {
                [OfferAngleView excludedHeadEditorsSoloistOriginWindow];
                if ([object boolValue]) {
                    [TryToast forkMapOur:SafeTradEar.bankRowTapsAsk.blockScoreSecondRopeAngleResourceCode];
                }else {
                    [self.localizedButton redirectsRenameInfoRenderedInvoke];
                }
            }];
        }
    };
    [self.view addSubview:self.localizedButton];
    [self.localizedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.collisionTextField);
        make.height.equalTo(self.collisionTextField);
        make.left.equalTo(self.collisionTextField.mas_right).offset(SafeTradEar.smallestMany.gigabytesYet);
        make.right.equalTo(self.pivotBagItsTextField);
    }];
    
    
    [self.localizedButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.adaptiveInuitTextField = [SafeTradEar electricHisEntitiesHockeyTipPassword:YES];
    [self.view addSubview:self.adaptiveInuitTextField];
    [self.adaptiveInuitTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.collisionTextField.mas_bottom).offset(SafeTradEar.smallestMany.tensionBody);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.swipeMaxTool);
    }];
    UIButton *lowerCanButton = self.adaptiveInuitTextField.rightView.subviews.firstObject;
    [lowerCanButton addTarget:self action:@selector(ownerWeekendKilowattPreventedCatCurveHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *mailReadoutButton = [SafeTradEar endRedImageAccessingGrandauntColor:SafeTradEar.bankRowTapsAsk.sentDeepSubKey];
    [mailReadoutButton addTarget:self action:@selector(guaraniSolutionsClickKirghizCrossAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:mailReadoutButton];
    [mailReadoutButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.adaptiveInuitTextField.mas_bottom).offset(SafeTradEar.smallestMany.tensionBody);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.fixTransient);
    }];
}
- (void)ownerWeekendKilowattPreventedCatCurveHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.adaptiveInuitTextField.secureTextEntry = !self.adaptiveInuitTextField.isSecureTextEntry;
}

- (void)guaraniSolutionsClickKirghizCrossAction:(id)sender {
    if (self.pivotBagItsTextField.pivotBagItsTextField.text.followHelper) {
        [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.interlaceBehaviorCoalescedBitMagnesiumAsset completion:nil];
        return;
    }
    if (self.collisionTextField.text.followHelper) {
        [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.streetSessionsNoneShortMost completion:nil];
        return;
    }
    if (self.adaptiveInuitTextField.text.length < SafeTradEar.smallestMany.sayGivenTab) {
        [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.ornamentEraMightWaterReferentOrigin completion:nil];
        return;
    }
    NSString *moireFaceCode = self.pivotBagItsTextField.sixBookEyeWide;
    NSString *infoSession = self.pivotBagItsTextField.lingerAirBuddyBridgingMoment;
    if ([self.putAddEggLoop respondsToSelector:@selector(reversingPackageDatumControlRetFloatInfer:code:deepCode:menKey:completion:)]) {
        [OfferAngleView inuitFailJoinWindow];
        [self.putAddEggLoop reversingPackageDatumControlRetFloatInfer:infoSession code:self.collisionTextField.text deepCode:moireFaceCode menKey:self.adaptiveInuitTextField.text completion:^(id object) {
            [OfferAngleView excludedHeadEditorsSoloistOriginWindow];
            [TryToast forkMapOur:SafeTradEar.bankRowTapsAsk.lacrosseRollThreeValueFocus];
            if (object) {
                [self.clockBoxBedDelegate optimizedStateCutThatAuxiliaryWithName:object warnDayBusyPassword:self.adaptiveInuitTextField.text];
                [self manRoleEarDogSymbolicAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.localizedButton redirectsRenameInfoRenderedInvoke];
}
@end
