






#import "SleepAgentViewController.h"
#import "BridgedRowViewController.h"
#import "HairSexNapConfig.h"
#import "NSObject+MayModel.h"
#import "UIColor+CarColor.h"
#import "WasToast.h"
#import "CalciumNewsstandConnectedExtraDeferring.h"
#import "UIButton+WebCache.h"

@interface SleepAgentViewController ()

@property (nonatomic, strong) UIImageView *rhythmImageView;
@property (nonatomic, strong) UIButton *tapButton;
@property (nonatomic, strong) UIButton *bigButton;
@property (nonatomic, strong) UIButton *waxButton;

@end

@implementation SleepAgentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.backgroundColor = [UIColor husbandExponentProminentSpecialRestingExpand:DiscardsOld.dogPongRoman.andTheEvent];
    
    
    UIView *streetTagCellularRequestedScene = [[UIView alloc] init];
    streetTagCellularRequestedScene.backgroundColor = [UIColor clearColor];
    [self.view addSubview:streetTagCellularRequestedScene];
    
    
    _rhythmImageView = [[UIImageView alloc] init];
    UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:DiscardsOld.dogPongRoman.seasonManBig weight:UIImageSymbolWeightMedium];
    UIImage *headerImage = [UIImage systemImageNamed:DiscardsOld.dogPongRoman.meanYardAlgorithmGenericLikeResonantHundred withConfiguration:config];
    _rhythmImageView.image = headerImage;
    _rhythmImageView.tintColor = [DiscardsOld celticBusColor];
    _rhythmImageView.contentMode = UIViewContentModeScaleAspectFit;
    [streetTagCellularRequestedScene addSubview:_rhythmImageView];
    
    
    UILabel *flattenPinLabel = [[UILabel alloc] init];
    flattenPinLabel.text = DiscardsOld.forceParameter.maskFileRecordingProjectSocketClamped;
    flattenPinLabel.font = [UIFont boldSystemFontOfSize:DiscardsOld.dogPongRoman.pathDanceTen];
    flattenPinLabel.textAlignment = NSTextAlignmentLeft;
    flattenPinLabel.textColor = [UIColor husbandExponentProminentSpecialRestingExpand:DiscardsOld.dogPongRoman.deepOffEasy];
    [streetTagCellularRequestedScene addSubview:flattenPinLabel];
    
    
    [streetTagCellularRequestedScene mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(DiscardsOld.dogPongRoman.dueFreeStair);
        make.centerX.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.bigWarpPipe);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.setupHostHas);
    }];
    
    
    [_rhythmImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(streetTagCellularRequestedScene);
        make.centerY.equalTo(streetTagCellularRequestedScene);
        make.width.height.mas_equalTo(DiscardsOld.dogPongRoman.setupHostHas);
    }];
    
    [flattenPinLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_rhythmImageView.mas_right).offset(DiscardsOld.dogPongRoman.vendorAskIcy);
        make.centerY.equalTo(streetTagCellularRequestedScene);
        make.right.equalTo(streetTagCellularRequestedScene);
    }];
    
    
    _tapButton = [self paperCoercionCursorPlugReturningStylisticIcon:DiscardsOld.dogPongRoman.supportedRefreshedSpouseInvalidPartQuechua
                                                  title:DiscardsOld.forceParameter.rollResolvedEraRankedPortal
                                               subtitle:HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern.wayEndInvoke.dogUses];
    [self.view addSubview:_tapButton];
    [_tapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(streetTagCellularRequestedScene.mas_bottom).offset(DiscardsOld.dogPongRoman.dueFreeStair);
        make.left.equalTo(self.view).offset(DiscardsOld.dogPongRoman.rowSpaceSide);
        make.right.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.rowSpaceSide);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.setupHostHas);
    }];
    [_tapButton addTarget:self action:@selector(greekShotBandAction:) forControlEvents:UIControlEventTouchUpInside];
    
    
    _bigButton = [self paperCoercionCursorPlugReturningStylisticIcon:DiscardsOld.dogPongRoman.microCellphoneLawLateHerNode
                                                   title:DiscardsOld.forceParameter.provinceSleetResourceTooDelay
                                                subtitle:HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern.wayEndInvoke.unlikely];
    [self.view addSubview:_bigButton];
    [_bigButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_tapButton.mas_bottom).offset(DiscardsOld.dogPongRoman.beaconAnswer);
        make.left.equalTo(self.view).offset(DiscardsOld.dogPongRoman.rowSpaceSide);
        make.right.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.rowSpaceSide);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.setupHostHas);
    }];
    [_bigButton addTarget:self action:@selector(eastHexSexNoneAction:) forControlEvents:UIControlEventTouchUpInside];
    
    
    _waxButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _waxButton.layer.cornerRadius = DiscardsOld.dogPongRoman.pathDanceTen;
    _waxButton.layer.masksToBounds = YES;
    
    NSString *danishImage = [DiscardsOld degreesDependingPreparedMeanPoloImage];
    if (danishImage) {
        [_waxButton sd_setBackgroundImageWithURL:[NSURL URLWithString:danishImage] forState:UIControlStateNormal];
    } else {
        _waxButton.backgroundColor = [UIColor husbandExponentProminentSpecialRestingExpand:DiscardsOld.dogPongRoman.celticBusColor];
    }
    [_waxButton setTitle:DiscardsOld.forceParameter.cornerSenseDemandOfficialCollected forState:UIControlStateNormal];
    [_waxButton setTitleColor:[DiscardsOld sobLowElderColor] forState:UIControlStateNormal];
    _waxButton.titleLabel.font = [UIFont systemFontOfSize:DiscardsOld.dogPongRoman.dueFreeStair weight:UIFontWeightMedium];
    UIImage *bedIcon = [UIImage systemImageNamed:DiscardsOld.dogPongRoman.wayMostlyHowYardButterflyOutdoor];
    [_waxButton setImage:bedIcon forState:UIControlStateNormal];
    _waxButton.imageEdgeInsets = UIEdgeInsetsMake(0, -DiscardsOld.dogPongRoman.filterSlope, 0, 0);
    _waxButton.titleEdgeInsets = UIEdgeInsetsMake(0, DiscardsOld.dogPongRoman.filterSlope, 0, 0);
    _waxButton.tintColor = [DiscardsOld sobLowElderColor];
    [self.view addSubview:_waxButton];
    [_waxButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_bigButton.mas_bottom).offset(DiscardsOld.dogPongRoman.beaconAnswer);
        make.left.equalTo(self.view).offset(DiscardsOld.dogPongRoman.rowSpaceSide);
        make.right.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.rowSpaceSide);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.setupHostHas);
    }];
    [_waxButton addTarget:self action:@selector(sensorTrackVitalDanceBayerAction:) forControlEvents:UIControlEventTouchUpInside];
    
    
    UILabel *endpointsNet = [[UILabel alloc] init];
    endpointsNet.text = [NSString stringWithFormat:DiscardsOld.dogPongRoman.inhalerChloridePasteYesterdayForkImpact, HairSexNapConfig.shared.heartbeat.endpointsNet];
    endpointsNet.font = [UIFont systemFontOfSize:DiscardsOld.dogPongRoman.zipEarScheme weight:UIFontWeightLight];
    endpointsNet.textAlignment = NSTextAlignmentLeft;
    endpointsNet.textColor = [UIColor husbandExponentProminentSpecialRestingExpand:DiscardsOld.dogPongRoman.argumentIcy];
    [self.view addSubview:endpointsNet];
    [endpointsNet mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.view).offset(-DiscardsOld.dogPongRoman.ambienceBit);
        make.centerX.equalTo(self.view);
    }];
    
    
    UIView *lazyTreeView = [UIView new];
    lazyTreeView.userInteractionEnabled = YES;
    lazyTreeView.backgroundColor = UIColor.clearColor;
    [self.view addSubview:lazyTreeView];
    [lazyTreeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(DiscardsOld.dogPongRoman.mayTorchSort, DiscardsOld.dogPongRoman.mayTorchSort));
        make.right.bottom.equalTo(self.view);
    }];
    UITapGestureRecognizer *itemTornadoPortHalftoneOldest = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(decomposeTagLatencyMusicBracketInfo)];
    itemTornadoPortHalftoneOldest.numberOfTapsRequired = DiscardsOld.dogPongRoman.bigWarpPipe;
    [lazyTreeView addGestureRecognizer:itemTornadoPortHalftoneOldest];
    
    
    UIView *quickCarFigureUserAbnormal = [UIView new];
    quickCarFigureUserAbnormal.userInteractionEnabled = YES;
    quickCarFigureUserAbnormal.backgroundColor = UIColor.clearColor;
    [self.view addSubview:quickCarFigureUserAbnormal];
    [quickCarFigureUserAbnormal mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(DiscardsOld.dogPongRoman.mayTorchSort, DiscardsOld.dogPongRoman.mayTorchSort));
        make.left.bottom.equalTo(self.view);
    }];
    
    UITapGestureRecognizer *lawDismissJoinCountRelations = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(sexualEdgaForm)];
    lawDismissJoinCountRelations.numberOfTapsRequired = DiscardsOld.dogPongRoman.bigWarpPipe;
    [quickCarFigureUserAbnormal addGestureRecognizer:lawDismissJoinCountRelations];
    
    
}


- (UIButton *)paperCoercionCursorPlugReturningStylisticIcon:(NSString *)iconName title:(NSString *)title subtitle:(NSString *)subtitle {
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.layer.cornerRadius = DiscardsOld.dogPongRoman.pathDanceTen;
    
    if ([DiscardsOld fathomsTransferStalledEraserArgumentsImage]) {
        button.backgroundColor = UIColor.clearColor;
        button.layer.borderColor = [DiscardsOld celticBusColor].CGColor;
        button.layer.borderWidth = 0.6;
    } else {
        button.backgroundColor = [UIColor whiteColor];
    }
    
    
    UIImageView *iconView = [[UIImageView alloc] init];
    UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:DiscardsOld.dogPongRoman.pathDanceTen weight:UIImageSymbolWeightMedium];
    UIImage *icon = [UIImage systemImageNamed:iconName withConfiguration:config];
    iconView.image = icon;
    iconView.tintColor = [DiscardsOld celticBusColor];
    iconView.contentMode = UIViewContentModeScaleAspectFit;
    [button addSubview:iconView];
    [iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(button).offset(DiscardsOld.dogPongRoman.vendorAskIcy);
        make.centerY.equalTo(button);
        make.width.height.mas_equalTo(DiscardsOld.dogPongRoman.rowsUnderage);
    }];
    
    
    UILabel *flattenPinLabel = [[UILabel alloc] init];
    flattenPinLabel.text = title;
    flattenPinLabel.font = [UIFont systemFontOfSize:DiscardsOld.dogPongRoman.sortAllMaker weight:UIFontWeightMedium];
    flattenPinLabel.textColor = [UIColor husbandExponentProminentSpecialRestingExpand:DiscardsOld.dogPongRoman.deepOffEasy];
    [button addSubview:flattenPinLabel];
    [flattenPinLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(iconView.mas_right).offset(DiscardsOld.dogPongRoman.vendorAskIcy);
        make.centerY.equalTo(button);
    }];
    
    
    UILabel *subtitleLabel = [[UILabel alloc] init];
    subtitleLabel.text = subtitle;
    subtitleLabel.font = [UIFont systemFontOfSize:DiscardsOld.dogPongRoman.sortAllMaker];
    subtitleLabel.textColor = [DiscardsOld celticBusColor];
    [button addSubview:subtitleLabel];
    [subtitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(button).offset(-DiscardsOld.dogPongRoman.dueFreeStair);
        make.centerY.equalTo(button);
    }];
    
    return button;
}

- (void)greekShotBandAction:(id)sender {
    NSString *occurBag = HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern.wayEndInvoke.dogUses;
    if (occurBag.length > 0) {
        [self.lowPushWinBox hairProcessedJobParentBridgeAnimatorPashto:[NSString stringWithFormat:DiscardsOld.dogPongRoman.liveAirlineDogBitsBigKilowatts, occurBag]];
    } else {
        [WasToast tickets:DiscardsOld.forceParameter.telephonyMoodInterestFoggyArrowInvalid];
    }
}

- (void)eastHexSexNoneAction:(id)sender {
    NSString *earSensor = HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern.wayEndInvoke.unlikely;
    if (earSensor.length > 0) {
        [self.lowPushWinBox hairProcessedJobParentBridgeAnimatorPashto:[NSString stringWithFormat:DiscardsOld.dogPongRoman.forbidVolumePeopleHindiCarKit, earSensor]];
    } else {
        [WasToast tickets:DiscardsOld.forceParameter.youLeakySupportsMasteringRejectLaw];
    }
}

- (void)sensorTrackVitalDanceBayerAction:(id)sender {
    NSString *wetMealFat = HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern.wayEndInvoke.mediaAsk;
    if (wetMealFat.length > 0) {
        [self.lowPushWinBox hairProcessedJobParentBridgeAnimatorPashto:wetMealFat];
    } else {
        [WasToast tickets:DiscardsOld.forceParameter.obtainDitheredItsCapTiedLaw];
    }
}

- (void)decomposeTagLatencyMusicBracketInfo {
    BridgedRowViewController *turnWaxFun = [BridgedRowViewController new];
    NSDictionary *tryAbortBad = @{
        DiscardsOld.dogPongRoman.longestCountedObtainImpactDigitalFormats: [[NSBundle mainBundle] infoDictionary],
        DiscardsOld.dogPongRoman.supplyClampedStrideDiscoverSenderRetried: [HairSexNapConfig.shared.passiveAutoInfo autoSexWorldDict],
        DiscardsOld.dogPongRoman.waxOrdinalsMotionUnitTryImportant: [HairSexNapConfig.shared.heartbeat autoSexWorldDict],
        DiscardsOld.dogPongRoman.seventeenPeerPingSecretWrapDiscount: [HairSexNapConfig.shared.categoryCapInfo autoSexWorldDict],
        DiscardsOld.dogPongRoman.gigahertzBecomeIdiomSwipeRearrangeUppercase: [HairSexNapConfig.shared.computerPositionsSheetGeneratorPattern autoSexWorldDict],
        DiscardsOld.dogPongRoman.elasticTryTheFloatWalkKannada: [HairSexNapConfig.shared.wateryBridgeNordicFemaleYoungest autoSexWorldDict]
    };
    [turnWaxFun wasJobAngularInfo:tryAbortBad withTitle:@""];
    [self.navigationController pushViewController:turnWaxFun animated:NO];
}

- (void)sexualEdgaForm {
    [ScopeViewController showFromViewController:self];
}
@end
