






#import "SegmentedViewController.h"
#import "PinClampingButton.h"
#import "SinToast.h"
#import "BlurRoundTextField.h"
#import "NSString+TwoPhotos.h"

@interface SegmentedViewController ()

@property (nonatomic, strong) BlurRoundTextField *adapterDustTextField;
@property (nonatomic, strong) UITextField *zoneLossyTextField;
@property (nonatomic, strong) UITextField *neverSelectedTextField;
@property (nonatomic, strong) PinClampingButton *safariHueButton;
@end

@implementation SegmentedViewController

- (PinClampingButton *)safariHueButton {
    if (!_safariHueButton) {
        _safariHueButton = [[PinClampingButton alloc] init];
    }
    return _safariHueButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.adapterDustTextField = [[BlurRoundTextField alloc] initWithController:self];
    [self.view addSubview:self.adapterDustTextField];
    [self.adapterDustTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PintResting.findClickCat.treeKinAcute);
        make.left.mas_equalTo(PintResting.findClickCat.redSeasonFax);
        make.right.mas_equalTo(-PintResting.findClickCat.redSeasonFax);
        make.height.mas_equalTo(PintResting.findClickCat.capHybridAre);
    }];
    
    
    self.zoneLossyTextField = [PintResting pitchBackNepaliBirthBuildSiteCode];
    [self.view addSubview:self.zoneLossyTextField];
    [self.zoneLossyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.adapterDustTextField.mas_bottom).offset(PintResting.findClickCat.airCapsSign);
        make.left.mas_equalTo(PintResting.findClickCat.redSeasonFax);
        make.height.mas_equalTo(PintResting.findClickCat.capHybridAre);
    }];
    
    eggWeek(self);
    self.safariHueButton.saltNormalizeAction = ^{
        queryBlue(self);
        
        NSString *neverTiedCode = self.adapterDustTextField.smileLocations;
        NSString *traitAllHas = self.adapterDustTextField.altimeterOurNoteProducerLeaky;
        if (self.adapterDustTextField.adapterDustTextField.text.mayItsPartly) {
            [self.safariHueButton yellowCinematicRectangleSymbolicStore];
            [UseAlertView succeededTopPoolClipDanceQuerying:PintResting.exposeLeapAuto.pathWrong message:PintResting.exposeLeapAuto.magicEscapeAccordingOldEraserMap completion:nil];
            return;
        }
        if ([self.costWasArtMid respondsToSelector:@selector(slightDependingUploadingRevertingFutureCoastPenType:itsTorchAir:tallCode:completion:)]) {
            [EmptyBatchView earBagCapUsesWindow];
            [self.costWasArtMid slightDependingUploadingRevertingFutureCoastPenType:PintResting.findClickCat.goldenActivatedDayLostReal itsTorchAir:traitAllHas tallCode:neverTiedCode completion:^(id object) {
                [EmptyBatchView birthdayCertSegmentedHeadVortexWindow];
                if ([object boolValue]) {
                    [SinToast sawTagWarp:PintResting.exposeLeapAuto.succeedAdditiveInvisibleLambdaPedometerSodiumCode];
                }else {
                    [self.safariHueButton yellowCinematicRectangleSymbolicStore];
                }
            }];
        }
    };
    [self.view addSubview:self.safariHueButton];
    [self.safariHueButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.zoneLossyTextField);
        make.height.equalTo(self.zoneLossyTextField);
        make.right.equalTo(self.adapterDustTextField);
        
        make.width.mas_equalTo(self.safariHueButton.titleLabel.intrinsicContentSize.width + PintResting.findClickCat.advanceValue);
    }];
    
    [self.zoneLossyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.safariHueButton.mas_left).offset(-PintResting.findClickCat.askSegmented);
    }];
    
    
    self.neverSelectedTextField = [PintResting runSectionBuddhistSlashCostPassword:YES];
    [self.view addSubview:self.neverSelectedTextField];
    [self.neverSelectedTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.zoneLossyTextField.mas_bottom).offset(PintResting.findClickCat.airCapsSign);
        make.left.mas_equalTo(PintResting.findClickCat.redSeasonFax);
        make.right.mas_equalTo(-PintResting.findClickCat.redSeasonFax);
        make.height.mas_equalTo(PintResting.findClickCat.capHybridAre);
    }];
    UIButton *abortCupButton = self.neverSelectedTextField.rightView.subviews.firstObject;
    [abortCupButton addTarget:self action:@selector(moveBackwardOutInferiorsSelectedRectumHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *unitIcyMoodButton = [PintResting serbianManInvokeSnapshotTwelveColor:PintResting.exposeLeapAuto.scaleWinRowKey];
    [unitIcyMoodButton addTarget:self action:@selector(basicFrictionArrowLiterAppleAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:unitIcyMoodButton];
    [unitIcyMoodButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.neverSelectedTextField.mas_bottom).offset(PintResting.findClickCat.airCapsSign);
        make.left.mas_equalTo(PintResting.findClickCat.redSeasonFax);
        make.right.mas_equalTo(-PintResting.findClickCat.redSeasonFax);
        make.height.mas_equalTo(PintResting.findClickCat.artThousands);
    }];
}
- (void)moveBackwardOutInferiorsSelectedRectumHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.neverSelectedTextField.secureTextEntry = !self.neverSelectedTextField.isSecureTextEntry;
}

- (void)basicFrictionArrowLiterAppleAction:(id)sender {
    if (self.adapterDustTextField.adapterDustTextField.text.mayItsPartly) {
        [UseAlertView succeededTopPoolClipDanceQuerying:PintResting.exposeLeapAuto.pathWrong message:PintResting.exposeLeapAuto.magicEscapeAccordingOldEraserMap completion:nil];
        return;
    }
    if (self.zoneLossyTextField.text.mayItsPartly) {
        [UseAlertView succeededTopPoolClipDanceQuerying:PintResting.exposeLeapAuto.pathWrong message:PintResting.exposeLeapAuto.buddhistUpdatingProvisionImmediateInset completion:nil];
        return;
    }
    if (self.neverSelectedTextField.text.length < PintResting.findClickCat.overdueInfo) {
        [UseAlertView succeededTopPoolClipDanceQuerying:PintResting.exposeLeapAuto.pathWrong message:PintResting.exposeLeapAuto.spousesLengthScrollBasalDestroySmaller completion:nil];
        return;
    }
    NSString *neverTiedCode = self.adapterDustTextField.smileLocations;
    NSString *traitAllHas = self.adapterDustTextField.altimeterOurNoteProducerLeaky;
    if ([self.costWasArtMid respondsToSelector:@selector(weekUnlockSinhaleseTranslateSymmetricCanonStylus:code:tallCode:tryKey:completion:)]) {
        [EmptyBatchView earBagCapUsesWindow];
        [self.costWasArtMid weekUnlockSinhaleseTranslateSymmetricCanonStylus:traitAllHas code:self.zoneLossyTextField.text tallCode:neverTiedCode tryKey:self.neverSelectedTextField.text completion:^(id object) {
            [EmptyBatchView birthdayCertSegmentedHeadVortexWindow];
            [SinToast sawTagWarp:PintResting.exposeLeapAuto.hallHoursBondAttributeBoth];
            if (object) {
                [self.lineArmLookDelegate duplicateIntegerHerProvidingFigureWithName:object glyphWasArmPassword:self.neverSelectedTextField.text];
                [self buildFirstClickedBroadcastHowAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.safariHueButton yellowCinematicRectangleSymbolicStore];
}
@end
