1"use strict";var cfhandle=!1,onloadCallback=function(){if(1==CAPTCHA_TYPE)BgbCaptchaLazy.register((function(t,e){e.closest("form").find('[name="CaptchaToken"]').val(t),e.closest("form").submit()}));else{if(cfhandle)return;cfhandle=!0,$(document).on("click",".cf-turnstile",(function(t){t.preventDefault(),$(this).prop("disabled",!0);var e=this,a=null,i=$(this).data("wtarget");$(this).data("wtarget")?i=$($(this).data("wtarget")):0!==$(".cf-wrapper").length&&(i=$(".cf-wrapper")),i&&0===i.length&&(i=null),$(this).prev().hasClass("cf-widget")?(a=$(this).prev(),turnstile.reset($(a).data("id"))):(a=$('<div class="cf-widget">',{"data-sitekey":$(e).data("sitekey"),"data-theme":$(e).data("theme")}),i?i.html(a):$(this).before(a),$(a).data("id",turnstile.render(a[0],{sitekey:e.getAttribute("data-sitekey"),theme:$(e).data("theme"),callback:function(t){var a=$(e).closest("form");$(a).find('[name="CaptchaToken"]').val(t),$(e).prop("disabled",!1),$(a).submit()}})))}))}},BgbLogin=function(){var t=$("#loginForm"),e=($("#sign-in-button"),(e,i=null)=>{var n=$(e).find('[type="submit"]');if(!n.prop("disabled")&&!n.hasClass("disabled")){var o=$(t).find("input[name='email']"),r=o.val(),d=$(t).find("input[name='password']").val(),s=$(e).find("input[name='CaptchaToken']").val();if(!BgbAppMain.isValidEmail(r))return o.focus(),void Swal.fire({text:__("Geçerli bir e-posta adresi giriniz."),icon:"error",buttonsStyling:!1,confirmButtonText:__("Tamam"),customClass:{confirmButton:"btn btn-primary"}});var l=n.find("i").detach();n.addClass("disabled"),n.prop("disabled",!0),n.prepend('<i class="fa fa-spinner fa-spin"></i>'),ajaxRequest("POST",API_URL_BASE+"/Login/Customer",{email:r,password:d,otpcode:i,CaptchaToken:s},!1,(function(t){if(1==t.success){var e=t.data;if("undefined"!=typeof payment_redirect)return void(window.location=`/hizli-ode/${payment_redirect}?token=${e}`);const i=new URLSearchParams(window.location.search).get("ReturnUrl");ajaxRequest("POST","/giris",{_token:csrf_token,token:e,ReturnUrl:i},!1,(function(t){if(t.success){var i=JSON.parse(localStorage.getItem("basket"))||[];0!==i.length&&($.each(i,(function(t,a){var i=JSON.stringify({customerStoreProductID:parseInt(a.customerStoreProductID),quantity:parseInt(a.quantity),requireData:a.requireData});ajaxRequestToken("PUT",API_URL_BASE+"/basket",i,e,(function(t){}))})),localStorage.removeItem("basket")),$("#otp-modal").modal("hide"),$('input[name="email"]').val(""),$('input[name="password"]').val(""),window.location="/"+t.ReturnUrl}else n.removeClass("disabled"),n.prop("disabled",!1),n.find("i").remove(),n.prepend(l),a(t.message)}))}else{if(n.removeClass("disabled"),n.prop("disabled",!1),n.find("i").remove(),n.prepend(l),void 0!==t.data){var i=new Date;if(i.setMinutes(i.getMinutes()+10),"restriction"==t.data){var o=JSON.parse(t.message);return void a(o.RestrictionReason,o.RestrictionName)}if(t.data.startsWith("OTP_"))return t.data.startsWith("OTP_IP")?$("#otp-modal .modal-title").text(__("Yeni giriÅ tespit edildi")):$("#otp-modal .modal-title").text(__("İki aÅamalı doÄrulama")),$("#otp-modal .timer").attr("data-expire",i),$("#otp-modal").data("otpSource","login"),$("#otp-modal").modal("show"),BgbAppMain.timerCountdown($("#otp-modal")),void(t.data.endsWith("_SMS")?$("#otp-modal .verify-modal-body label").text(__("Lütfen telefon numaranıza kısa mesaj olarak gönderilen doÄrulama kodunu girin.")):t.data.endsWith("_EMAIL")?$("#otp-modal .verify-modal-body label").text(__("Lütfen e-posta adresinize gönderilen doÄrulama kodunu girin.")):t.data.endsWith("_AUTHENTICATOR")&&$("#otp-modal .verify-modal-body label").text(__("Lütfen authenticator uygulamanızdaki doÄrulama kodunu girin.")))}a(t.message)}}))}}),a=(t,e="")=>{Swal.fire({...""!=e?{title:e}:{},text:__(t),icon:"error",buttonsStyling:!1,confirmButtonText:__("Tamam"),customClass:{confirmButton:"btn btn-primary"}})};return{init:function(){t.on("submit",(function(a){a.preventDefault(),e(t)})),$("#otp-form").on("submit",(function(t){if(t.preventDefault(),"login"===$("#otp-modal").data("otpSource")){var i=$("#auth-code").val();6==i.length?e(this,i):a("Lütfen geçerli bir doÄrulama kodu girin.")}}))}}}();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){BgbLogin.init()})):BgbLogin.init();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.