1"use strict";var cfhandleAuth=!1,onloadCallbackAuth=function(){if("function"==typeof onloadCallback&&onloadCallback(),1==CAPTCHA_TYPE)BgbCaptchaLazy.register((function(t,a){a.closest("form").find('[name="CaptchaToken"]').val(t),a.closest("form").submit()}),{trigger:"#auth-modal .g-recaptcha-auth"});else{if(cfhandleAuth)return;cfhandleAuth=!0,$(document).on("click","#auth-modal .cf-turnstile-auth",(function(t){t.preventDefault(),$(this).prop("disabled",!0);var a=this,e=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")?(e=$(this).prev(),turnstile.reset($(e).data("id"))):(e=$('<div class="cf-widget">',{"data-sitekey":$(a).data("sitekey"),"data-theme":$(a).data("theme")}),i?i.html(e):$(this).before(e),$(e).data("id",turnstile.render(e[0],{sitekey:a.getAttribute("data-sitekey"),theme:$(a).data("theme"),callback:function(t){$(a).closest("form").find('[name="CaptchaToken"]').val(t),$(a).prop("disabled",!1),$(a).closest("form").submit()}})))}))}},BgbAuthModal=function(){var t=$("#auth-form"),a=(a=null)=>{var i=t.find('[type="submit"]');if(!i.prop("disabled")&&!i.hasClass("disabled")){var o=$(t).find("input[name='email']").val(),n=$(t).find("input[name='password']").val(),r=$(t).find('[name="CaptchaToken"]').val(),d=i.find("i").detach();i.addClass("disabled"),i.prop("disabled",!0),i.prepend('<i class="fa fa-spinner fa-spin"></i>'),ajaxRequest("POST",API_URL_BASE+"/Login/Customer",{email:o,password:n,otpcode:a,CaptchaToken:r},!1,(function(t){if(1==t.success){var a=t.data;ajaxRequest("POST","/giris",{_token:csrf_token,token:a},!1,(function(t){if(t.success){var o=JSON.parse(localStorage.getItem("basket"))||[];0!==o.length&&($.each(o,(function(t,e){var i=JSON.stringify({customerStoreProductID:parseInt(e.customerStoreProductID),quantity:parseInt(e.quantity),requireData:e.requireData});ajaxRequestToken("PUT",API_URL_BASE+"/basket",i,a,(function(t){}))})),localStorage.removeItem("basket")),$("#otp-modal").modal("hide"),t?.ReturnUrl&&t.ReturnUrl.length>1?window.location="/"+t.ReturnUrl:window.location.reload()}else i.removeClass("disabled"),i.prop("disabled",!1),i.find("i").remove(),i.prepend(d),e(t.message)}))}else{if(i.removeClass("disabled"),i.prop("disabled",!1),i.find("i").remove(),i.prepend(d),void 0!==t.data){var o=new Date;if(o.setMinutes(o.getMinutes()+10),"restriction"==t.data){var n=JSON.parse(t.message);return void e(n.RestrictionReason,n.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",o),$("#otp-modal").data("otpSource","auth"),$("#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.")))}$(i).prop("disabled",!1),e(t.message)}}))}},e=(t,a="")=>{Swal.fire({...""!=a?{title:a}:{},text:t,icon:"error",buttonsStyling:!1,confirmButtonText:__("Tamam"),customClass:{confirmButton:"btn btn-primary"}})};return{init:function(){t.on("submit",(function(t){t.preventDefault(),a()})),$("#otp-form").on("submit",(function(t){if(t.preventDefault(),"auth"===$("#otp-modal").data("otpSource")){var i=$("#auth-code").val();6==i.length?a(i):e("Lütfen geçerli bir doÄrulama kodu girin.")}}))}}}();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){BgbAuthModal.init()})):BgbAuthModal.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.