responsiveApp.controller("LoginForceCtrl",["$rootScope","$scope","CommonService",function(g,a,e){a.showSuccessFormContent=!1;a.centeredSuccessModal=!1;a.showErrorText=!1;a.showInformUsModal=!1;a.inform={informType:_e("loginForce.informUsForm.turkeyRadioValue")};a.openInformUsModal=function(){a.showInformUsModal=!0;a.centeredSuccessModal=!1};a.closeInformUsModal=function(){a.showInformUsModal=!1;a.inform.informType===_e("loginForce.informUsForm.turkeyRadioValue")&&(a.showDescribeProblem=!1);a.showErrorText=
!1;a.showSuccessFormContent=!1};a.informTypeListener=function(b){b===_e("loginForce.informUsForm.turkeyRadioValue")&&(a.showDescribeProblem=!1);b===_e("loginForce.informUsForm.otherReasonRadioValue")&&(a.showDescribeProblem=!0)};a.submitInformUsForm=function(b,f){f.preventDefault();b.$valid&&(b={name:a.inform.name,surname:a.inform.surname,email:a.inform.email,infoType:a.inform.informType,describeCase:a.inform.describeProblem,language:_e("loginForce.info.selectedLanguage")},e.submitLoginForceForm(b).then(function(b){var d=
b.data;b=d.success;d=d.data;b?b&&!0!==d?a.showErrorText=!0:b&&!0===d&&(a.showSuccessFormContent=!0,a.centeredSuccessModal=!0):a.showErrorText=!0}).catch(function(){a.showErrorText=!0}))}}]);var returnUrlWarnings={"/s-reklam/reklam-ver":"Reklam vermek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/ilan-ver/adim-1":"\u0130lan vermek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/mesajlarim/detay/":"Mesaj g\u00f6ndermek i\u00e7in \u00fcye giri\u015fi yap\u0131n","showFolders\x3dtrue":"\u0130lan\u0131 favorilerinize eklemek i\u00e7in \u00fcye giri\u015fi yap\u0131n",ilaniFavoriyeEkle:"\u0130lan\u0131 favorilerinize eklemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/detay?showAddFavoriteSeller\x3dtrue":"\u0130lan sahibini takip etmek i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"/detay?paramGuvende\x3dtrue":"Talep g\u00f6nderebilmek i\u00e7in \u00fcye giri\u015fi yap\u0131n",saticiyiFavorilereEkle:"\u0130lan sahibini takip etmek i\u00e7in \u00fcye giri\u015fi yap\u0131n","saveSearch\x3dtrue":"Aramay\u0131 favorilerinize eklemek i\u00e7in \u00fcye giri\u015fi yap\u0131n",addToFavoriteSearches:"Aramay\u0131 favorilerinize eklemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/hemen-al?classifiedId":"Se\u00e7ti\u011finiz \u00fcr\u00fcn\u00fc sat\u0131n almak i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"/destek":"Sorun / \u00d6neri bildirimi i\u00e7in \u00fcye giri\u015fi yap\u0131n","/ilanlarim/pasif":"Yay\u0131nda olmayan ilanlar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/ilanlarim":"Yay\u0131nda olan ilanlar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/get/mesajlarim":"GeT mesajlar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n.","/mesajlarim":"\u0130lan mesajlar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"/bilgilendirmeler":"Bilgilendirmeleri g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/izinlerim/bildirimler":"Bildirim izinlerinizi g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/favori-ilanlar":"Favori ilanlar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/favori-aramalarim?update":"Favori bildirim ayarlar\u0131n\u0131 a\u00e7mak i\u00e7in giri\u015f yap\u0131n","/favori-aramalarim":"Favori aramalar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"/favori-saticilarim?update":"Favori bildirim ayarlar\u0131n\u0131 a\u00e7mak i\u00e7in giri\u015f yap\u0131n","/favori-saticilarim":"Favori sat\u0131c\u0131lar\u0131n\u0131z\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/ilan-karsilastir":"Kar\u015f\u0131la\u015ft\u0131rma listenizi g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/mevcut-siparislerim":"Al\u0131m i\u015flemlerinizi g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"/satistaki-urunlerim":"Sat\u0131\u015f i\u015flemlerinizi g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/yorum-yonetimi":"Yorum y\u00f6netimini g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","/adreslerim":"Teslimat / Fatura adreslerinizi g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","magaza-kategori-secimi":"Ma\u011faza A\u00e7mak i\u00e7in kurumsal \u00fcye olman\u0131z gerekmektedir","emlak360/emlak-endeksi":"Emlak Endeksini kullanmak i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"dask-sigortasi-teklifi-al":"DASK teklifi almak i\u00e7in \u00dcye Giri\u015fi yap\u0131n","konut-sigortasi-teklifi-al":"Konut sigortas\u0131 teklifi almak i\u00e7in \u00dcye Giri\u015fi yap\u0131n",fromDamageInquiry:"Ara\u00e7 Hasar Sorgulama yapmak i\u00e7in \u00fcye giri\u015fi yap\u0131n","oto360/hasar-sorgulama":"Ara\u00e7 Hasar Sorgulama yapmak i\u00e7in \u00fcye giri\u015fi yap\u0131n","trafik-sigortasi-teklifi-al":"Ara\u00e7 Sigorta Teklifi almak i\u00e7in \u00fcye giri\u015fi yap\u0131n",
"oto360/arac-degerleme":"Ara\u00e7 De\u011ferleme yapabilmek i\u00e7in \u00fcye giri\u015fi yap\u0131n","ekspertiz-satin-al":"Oto Ekspertiz hizmeti almak i\u00e7in \u00fcye giri\u015fi yap\u0131n","oto360/oto-ekspertiz/ekspertiz-firmalari-ve-paketleri":"Oto Ekspertiz hizmeti almak i\u00e7in \u00fcye giri\u015fi yap\u0131n","favori-ilan-fiyat-taricesi":"\u0130lan fiyat tarih\u00e7esini g\u00f6r\u00fcnt\u00fclemek i\u00e7in \u00fcye giri\u015fi yap\u0131n","ekspertiz-odeme":"Oto Ekspertiz hizmeti almak i\u00e7in \u00fcye giri\u015fi yap\u0131n"};responsiveApp.controller("LoginCtrl",["$rootScope","$scope","$window","CommonService",function(g,a,e,b){var f=navigator.userAgent,h=function(k){a.loginForm.captchaValue.$$setModelValue(k);a.submitForm(a.loginForm)},d=function(a,c){b.traceLoginFunnel(a).finally(function(){c&&(window.location=c)})},c={usernameOrEmail:null,page:"LoginForm",errorText:null,action:"LoginFormView"};d(c);a.addForgotPasswordCookie=function(a,b){b&&(b.preventDefault(),b=b.target.href,c.usernameOrEmail=a,c.action="LoginFormForgotPasswordClick",
d(c,b));a&&cookieUtils.setStorage("forgotPasswordUser",btoa(a),36E5)};g.goBack=function(){e.history.back()};a.PASSWORD_VISIBLE=!1;a.PASSWORD_TYPE="password";a.togglePasswordVisibility=function(b){a.PASSWORD_VISIBLE?(a.PASSWORD_TYPE="password",c.action="LoginFormHidePasswordClick"):(a.PASSWORD_TYPE="text",c.action="LoginFormShowPasswordClick");a.PASSWORD_VISIBLE=!a.PASSWORD_VISIBLE;c.usernameOrEmail=b;d(c)};a.returnUrlMsg=function(a){var b=document.getElementById("forceLoginPageMessage");if(null!=
b&&0<b.value.length)return b.value;if(a)for(var c in returnUrlWarnings)if(-1!==decodeURIComponent(a).indexOf(c))return returnUrlWarnings[c]}(null!==document.getElementById("returnUrl")?document.getElementById("returnUrl").value:null);a.isNativeAdLogin=0<window.location.href.indexOf("s-reklam");a.mobile={isMobile:/(android|iphone|ipod|ipad)/i.test(f),isIos:/(iphone|ipod|ipad)/i.test(f),isAndroid:/android/i.test(f),androidUrl:"https://play.google.com/store/apps/details?id\x3dcom.sahibinden",iosUrl:"https://itunes.apple.com/tr/app/sahibinden.com-mobil/id418535251?mt\x3d8"};
a.checkForm=function(b){b.$valid?a.captchaShow?grecaptcha.execute():a.submitForm(b):(a.captchaShow&&grecaptcha.reset(),c.usernameOrEmail=b.username.$viewValue,c.action="LoginFormLoginAndContinueClick",b.username.$viewValue?b.password.$viewValue||(c.errorText="passwordRequired"):c.errorText="usernameRequired",d(c))};a.submitForm=function(b){a.btnDisabled=!0;b.$$element[0].submit();a.addForgotPasswordCookie(b.username.$viewValue)};a.captchaOnloadCallback=function(){a.captchaShow&&grecaptcha.render("recaptcha",
{sitekey:a.recaptchaSiteKey,callback:h,size:"invisible"})};angular.element(document).ready(function(){a.captchaShow&&a.captchaOnloadCallback()});screenUtils.setDeviceProperties()}]);responsiveApp.directive("autofill",["$timeout",function(g){return{require:"ngModel",link:function(a,e){var b=a.$watch(function(){return e.val()},function(f,e){f!==e&&g(function(){a.autoFilled=!0;b()},1E3)})}}}]);