1!function(e){"use strict";var n=pluginData.currentUserStatus,i=pluginData.allowGuestCheckout,t=pluginData.homeURL,o=pluginData.currentURL,l=pluginData.needsShipingAdreess,c=new URL(t),a=o.replace(c.href,""),_=e("#billing_company_invoice_checkbox_field").detach();function u(){var n=e("#billing_company_invoice_checkbox"),i=e(".woocommerce-billing-fields .form-row");if(1==l)var t=e("#billing_custom_field_uic_field,\n #billing_custom_field_mrp_field,\n #billing_country_field,\n #billing_address_1_field,\n #billing_company_field");else t=e("#billing_custom_field_uic_field,\n #billing_custom_field_mrp_field,\n #billing_company_field,\n #billing_country_field,\n #billing_address_1_field,\n #billing_city_field");if(n.is(":checked")){if(i.show(),1==l){e("#woocommerce_eu_vat_number_field").removeClass("d-no-important");var o=e("#billing_company_field").detach();e("#billing_email_field").after(o)}else{e("#billing_address_1_field, #billing_country_field, #billing_city_field, #woocommerce_eu_vat_number_field").removeClass("d-no-important"),o=e("#billing_company_field").detach();var c=e("#billing_country_field").detach(),a=e("#billing_address_1_field").detach(),_=e("#billing_city_field").detach();e("#billing_email_field").after(c),e("#billing_country_field").after(a),e("#billing_address_1_field").after(_),e("#billing_city_field").after(o)}t.each((function(){e(this).removeClass("woocommerce-validated"),e(this).addClass("validate-required")}))}else i.hide(),1==l?e("#woocommerce_eu_vat_number_field").addClass("d-no-important"):e("#billing_address_1_field, #billing_country_field, #billing_city_field, #woocommerce_eu_vat_number_field").addClass("d-no-important"),e("#billing_first_name_field,\n\t\t\t\t#billing_last_name_field,\n\t\t\t\t#billing_company_invoice_checkbox_field,\n\t\t\t\t#billing_city_field,\n #billing_postcode_field,\n\t\t\t\t#billing_address_1_field,\n\t\t\t\t#billing_country_field,\n\t\t\t\t#billing_email_field,\n\t\t\t\t#billing_phone_field").show(),t.each((function(){e(this).removeClass("validate-required")}))}function d(){var n=e(".input-text.qty.text"),i=e('button[name="update_cart"]');n.length>0&&i.length>0&&n.on("change",(function(){i.click()}))}e("#billing_first_name_field").before(_),e("form.checkout #billing_company_invoice_checkbox, #ship-to-different-address-checkbox").prop("checked",!1),u(),e(document).ready((function(e){if(1!=l&&(e("#billing_country").val()&&e("#billing_country").val(""),e("#billing_address_1").val()&&e("#billing_address_1").val(""),e("#billing_city").val()&&e("#billing_city").val(""),e("#billing_postcode").val()&&e("#billing_postcode").val("")),"undefined"===e("#billing_address_1").val()&&e("#billing_address_1").val(""),"undefined"===e("#billing_city").val()&&e("#billing_city").val(""),"undefined"===e("#billing_postcode").val()&&e("#billing_postcode").val(""),"undefined"===e("#shipping_address_1").val()&&e("#shipping_address_1").val(""),"undefined"===e("#shipping_city").val()&&e("#shipping_city").val(""),"undefined"===e("#shipping_postcode").val()&&e("#shipping_postcode").val(""),e("#woocommerce_eu_vat_number_field .optional").text("(ако има ÑегиÑÑÑаÑÐ¸Ñ Ð¿Ð¾ ÐÐС)"),e("#billing_company_invoice_checkbox").change(u),e("#billing_company_invoice_checkbox").on("change",(function(){e(this).prop("checked")})),e("body").on("click",".checkout-button, .checkout-button button",(function(e){if(this.onclick&&(this.onclick=null),e.preventDefault(),e.stopPropagation(),n||i)window.location.href="/store/checkout";else{var t=encodeURIComponent(a);window.location.href="/login?redirect_url="+t}})),new URLSearchParams(window.location.search).get("redirect_url")){var t=e('<div class="woocommerce-notices-wrapper"><ul class="woocommerce-error login-page-notice" role="alert"><li>ÐдÑавейÑе, за да напÑавиÑе покÑпка в онлайн магазина на Forbes, влезÑе в пÑоÑила Ñи или Ñе ÑегиÑÑÑиÑайÑе.</li></ul></div>'),o=e("#page-18935");t.insertBefore(o)}function c(n){e('input[name="'+n+'"]').attr("required","required"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&/^[A-Za-zа-ÑÐ-Я-' ]+$/i.test(e)}(e('input[name="'+n+'"]').val())?(e('input[name="'.concat(n,'"]')).removeClass("invalid-field"),e('input[name="'.concat(n,'"]')).addClass("val
1id-field")):(e('input[name="'.concat(n,'"]')).addClass("invalid-field"),e('input[name="'.concat(n,'"]')).removeClass("valid-field"))}function _(n){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(e)}(e('input[name="'+n+'"]').val())?(e('input[name="'.concat(n,'"]')).addClass("invalid-field"),e('input[name="'.concat(n,'"]')).removeClass("valid-field")):(e('input[name="'.concat(n,'"]')).removeClass("invalid-field"),e('input[name="'.concat(n,'"]')).addClass("valid-field"))}function d(n){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?/^(\+\d{1,2}\s?)?(\(\d{3}\)|\d{3})([-.\s]?)\d{3}([-.\s]?)\d{4}$/.test(e):(e.length,!1)}(e('input[name="'+n+'"]').val())?(e('input[name="'.concat(n,'"]')).addClass("invalid-field"),e('input[name="'.concat(n,'"]')).removeClass("valid-field")):(e('input[name="'.concat(n,'"]')).removeClass("invalid-field"),e('input[name="'.concat(n,'"]')).addClass("valid-field"))}function r(n){""==e('select[name="'+n+'"]').val()?(e('select[name="'.concat(n,'"]')).addClass("invalid-field"),e('select[name="'.concat(n,'"]')).removeClass("valid-field")):(e('select[name="'.concat(n,'"]')).removeClass("invalid-field"),e('select[name="'.concat(n,'"]')).addClass("valid-field"))}function s(n){""==e('input[name="'+n+'"]').val()?(e('input[name="'.concat(n,'"]')).addClass("invalid-field"),e('input[name="'.concat(n,'"]')).removeClass("valid-field")):(e('input[name="'.concat(n,'"]')).removeClass("invalid-field"),e('input[name="'.concat(n,'"]')).addClass("valid-field"))}e(document).on("change",".ticket-field-input.input-checbox",(function(){e(this).prop("checked")&&e(".ticket-field-input.input-checbox").not(this).prop("checked",!1)})),e(document).on("input change blur",'input[name="reg_fname"]',(function(){c("reg_fname")})),e(document).on("input change blur",'input[name="reg_lname"]',(function(){c("reg_lname")})),e(document).on("input change blur",'input[name="email"]',(function(){_("email")})),e(document).on("input change blur",'input[name="reg_phone"]',(function(){d("reg_phone")})),e(document).on("input change blur",'input[name="reg_company"]',(function(){s("reg_company")})),e(document).on("input change blur",'input[name="reg_position"]',(function(){s("reg_position")})),e(document).on("change blur",'select[name="reg_title"]',(function(){r("reg_title")})),e(document).on("change blur",'select[name="reg_company_role"]',(function(){r("reg_company_role")})),e(document).on("change blur",'select[name="reg_company_unit"]',(function(){r("reg_company_unit")})),e(document).on("change blur",'select[name="reg_employees_in_bulgaria"]',(function(){r("reg_employees_in_bulgaria")})),e(document).on("change blur",'select[name="reg_industry"]',(function(){r("reg_industry")})),e(document).on("change blur",'select[name="reg_scope"]',(function(){r("reg_scope")})),e(document).on("change blur",'select[name="birth_year"]',(function(){r("birth_year")})),e(document).on("click",".woocommerce-form-register__submit",(function(n){e.each(["reg_fname","reg_lname","email","reg_phone","reg_company","reg_position","reg_title","reg_company_role","reg_company_unit","reg_employees_in_bulgaria","reg_industry","reg_scope","birth_year"],(function(e,n){"reg_phone"===n?d(n):"email"===n?_(n):"reg_fname"===n||"reg_lname"===n?c(n):"reg_company"===n||"reg_position"===n?s(n):r(n)}));var i=e(".invalid-field:first");i.length>0&&(n.preventDefault(),e("html, body").animate({scrollTop:i.offset().top-150},500))})),e(document).on("input change blur",'input[name="account_first_name"]',(function(){c("account_first_name")})),e(document).on("input change blur",'input[name="account_last_name"]',(function(){c("account_last_name")})),e(document).on("input change blur",'input[name="account_email"]',(function(){_("account_email")})),e(document).on("input change blur",'input[name="custom_user_phone"]',(function(){d("custom_user_phone")})),e(document).on("input change blur",'input[name="custom_user_company"]',(function(){s("custom_user_company")})),e(document).on("input change blur",'input[name="custom_user_position"]',(function(){s("custom_user_position")})),e(document).on("change blur",'select[name="custom_user_title"]',(function(){r("custom_user_title")})),e(document).on("change blur",'select[name="custom_company_role"]',(function(){r("custom_company_role")})),e(document).on("change blur",'select[name="custom_company_unit"]',(function(){r("custom_company_unit")})),e(document).on("change blur",'select[name="custom_employees_in_bulgaria"]',(function(){r("custom_employees_in_bulgaria")})),e(document).on("change blur",'select[name="custom_industry"]',(function(){r("custom_industry")})),e(document).on("change blur",'select[name="custom_scope"]',(function(){r("custom_scope")})),e(document).on("change blur",'select[name="custom_birth_year"]',(function(){r("custom_birth_year")})),e(document).on("click",".woocommerce-Button.button.wp-element-button",(function(n){e.each(["custom_user_title","custom_user_phone","custom_user_company","custom_user_position","custom_company_role","custom_company_unit","custom_employees_in_bulgaria","custom_industry","custom_scope","custom_birth_year","account_first_name","account_last_name","account_email"],(function(e,n){"custom_user_phone"===n?d(n):"account_email"===n?_(n):"account_first_name"===n||"account_last_name"===n?c(n):"custom_user_company"===n||"custom_user_position"===n?s(n):r(n)}));
1var i=e(".invalid-field:first");i.length>0&&(n.preventDefault(),e("html, body").animate({scrollTop:i.offset().top-150},500))})),e(".single_add_to_cart_button").click((function(n){e("p.form-row").each((function(){var i=e(this).children("label.required-field"),t=e(this).find('select[id^="field_"], input[id^="field_"]');if(1===i.length&&1===t.length&&""===t.val().trim()){t.addClass("invalid-field"),t.removeClass("valid-field");var o=e(".invalid-field:first");o.length>0&&(n.preventDefault(),e("html, body").animate({scrollTop:o.offset().top-150},300))}else t.removeClass("invalid-field"),t.addClass("valid-field")}))}));var m=0,f=setInterval((function(){document.getElementsByClassName("wc-box-office-ticket-form").length>0&&1==n&&e.ajax({type:"POST",url:params.ajaxurl,data:"action=dx_get_current_user_post_meta",dataType:"json",success:function(n){n?(!1!==n.title_value&&e("#field_"+n.title_field+"_0").val(n.title_value),!1!==n.fname_value&&e("#field_"+n.fname_field+"_0").val(n.fname_value),!1!==n.lname_value&&e("#field_"+n.lname_field+"_0").val(n.lname_value),!1!==n.email_value&&e("#field_"+n.email_field+"_0").val(n.email_value),!1!==n.phone_value&&e("#field_"+n.phone_field+"_0").val(n.phone_value),!1!==n.company_value&&e("#field_"+n.company_field+"_0").val(n.company_value),!1!==n.position_value&&e("#field_"+n.position_field+"_0").val(n.position_value),!1!==n.company_role_value&&e("#field_"+n.company_role_field+"_0").val(n.company_role_value),!1!==n.company_unit_value&&e("#field_"+n.company_unit_field+"_0").val(n.company_unit_value),!1!==n.company_employees_value&&e("#field_"+n.company_employees_field+"_0").val(n.company_employees_value),!1!==n.company_industry_value&&e("#field_"+n.company_industry_field+"_0").val(n.company_industry_value),!1!==n.birth_year_value&&e("#field_"+n.birth_year_field+"_0").val(n.birth_year_value),!1!==n.scope_value&&e("#field_"+n.scope_field+"_0").val(n.scope_value)):console.error("Error fetching user post meta:",n.message)}}),1==++m&&e('.wc-box-office-ticket-fields-body .form-row input[type="checkbox"]').click((function(){var n=e(this),i=n.closest(".wc-box-office-ticket-fields-body");if(!0===n.prop("checked")){var t=e('<div class="confirmation-popup"></div>'),o=e('<div class="confirmation-content"><p>СигÑÑни ли ÑÑе, Ñе иÑкаÑе да запазиÑе Ñези данни в пÑоÑила Ñи?</p></div>'),l=e('<button class="confirm-button confirm-yes">Ðа</button>'),c=e('<button class="confirm-button confirm-no">Ðе</button>');o.append(l).append(c),t.append(o),i.append(t),n.prop("disabled",!0),l.on("click",(function(){n.prop("checked",!0),n.prop("disabled",!1),t.remove()})),c.on("click",(function(){n.prop("checked",!1),n.prop("disabled",!1),t.remove()}))}}))}),200);setTimeout((function(){clearInterval(f)}),2e3)})),e(document.body).on("wc_fragments_refreshed",(function(){d()})),d();var r=e(".woocommerce-customer-details address");function s(){e("#billing_custom_field_uic").val(""),e("#billing_custom_field_mrp").val(""),e("#billing_company").val(""),e("#woocommerce_eu_vat_number").val("")}e("#billing_custom_field_uic").length>0&&r.append("ÐÐÐ: "+e("#billing_custom_field_uic").text()+"<br>"),e("#billing_custom_field_mrp").length>0&&r.append("ÐÐÐ: "+e("#billing_custom_field_mrp").text()),e(".back-to-store").on("click",(function(e){e.preventDefault(),window.location.href=t+"/store/"})),e(".wc-item-meta").each((function(){e(this).find(".order-item-meta-ticket.custom-ticket-fields").each((function(n){e(this).text("ÐÐ¸Ð»ÐµÑ #"+(n+1))}))})),e("#billing_company_invoice_checkbox").is(":checked")||s(),e("#billing_company_invoice_checkbox").on("change",(function(){e(this).is(":checked")||s()})),e(document).ready((function(){setTimeout((function(){e("#password_current").val(""),e("fieldset").insertAfter(".woocommerce-form-row.woocommerce-form-row--wide.form-row.form-row-wide.dx-forbes-store-full-width:last"),e(".woocommerce-EditAccountForm.edit-account fieldset").css("display","block")}),2100)})),e(document).ready((function(e){e("input.input-text.qty.text").each((function(){"hidden"===e(this).attr("type")&&e(this).closest("td.product-quantity").addClass("hidden-quantity")}))}
1))}(jQuery);
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.