jQuery(document).ready(function(e){e(document).on("click","#dina-test-sms-submit",function(t){var a=e(this);a.find(".fal").removeClass("fa-envelope").addClass("fa-spinner-third fa-spin"),e(".dina-test-sms-sending-result").slideUp().text(""),e.ajax({type:"POST",dataType:"json",url:admin_ajax_test_sms_object.ajaxurl,data:{action:"dina_otp_test_action",phonenumber:e("#dina-test-sms-number").val(),userid:a.data("user-id"),security:e("#dina_otp_test_nonce").val()},success:function(t){a.find(".fal").removeClass("fa-spinner-third fa-spin").addClass("fa-envelope"),e(".dina-test-sms-sending-result").slideDown().text(t.message)}})}),e("#dina-test-sms-number").keydown(function(t){if("Enter"==t.key)return t.preventDefault(),e("#dina-test-sms-submit").click(),!1}),"undefined"!=typeof jalaliDatepicker&&"function"==typeof jalaliDatepicker.startWatch&&jalaliDatepicker.startWatch({selector:".dina-jalali-date-picker input[type=text]",dayRendering:function(e,t){const{year:a,month:n,day:i}=e,s={1404:{1:[1,2,3,4,11,12,13],2:[4],3:[14,15,16,24],4:[14,15],5:[23,31],6:[2,10,19],9:[3],10:[13,27],11:[15,22],12:[20,29]},1405:{1:[1,2,3,4,12,13,25],3:[7,14,15],4:[4,5],5:[13,21,23,31],6:[9],8:[23],10:[2,16],11:[4,22],12:[10,19,20,29]}},r=s[a]&&s[a][n]&&s[a][n].includes(i)||!1;return{isHollyDay:r}}}),"undefined"!=typeof gregorianDatepicker&&"function"==typeof gregorianDatepicker.startWatch&&window.gregorianDatepicker.startWatch({selector:".dina-gregorian-date-picker input[type=text]"})});