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M,CAACoJ,QAAP,CAAgBwG,MAAhB;AACH,WAJD,MAIO;AACHnQ,YAAAA,IAAI,CAAC,mBAAD,CAAJ,CAA0BiG,IAA1B,CAA+B,oCAAkCrC,QAAQ,CAACG,OAA3C,GAAmD,MAAlF;AACH;;AACDmC,UAAAA,UAAU,CAAC,YAAY;AACpBlG,YAAAA,IAAI,CAAC,mBAAD,CAAJ,CAA0BmC,QAA1B,CAAmC,WAAnC;AACF,WAFS,EAER,IAFQ,CAAV;AAGZ;AAnBW,OAAV;AAqBA;AACJ,GA5BD;;AA8BA,MAAK5B,MAAM,CAAC0T,OAAP,CAAeC,YAApB,EAAmC;AACrC3T,IAAAA,MAAM,CAAC0T,OAAP,CAAeC,YAAf,CAA6B,IAA7B,EAAmC,IAAnC,EAAyC3T,MAAM,CAACoJ,QAAP,CAAgBC,IAAzD;AACA;AAED,CA1vDG,CAAJ,C","sources":["webpack://wk-woocommerce-marketplace/./assets/front/build/js/front.js"],"sourcesContent":["/**\n * Front End JS file.\n */\n\n\"use strict\";\nvar wkmp = jQuery.noConflict();\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n\tif (wkmp('.wkmp-select2').length) {\n\t\twkmp('.wkmp-select2').select2();\n\t}\n\tif (wkmp(\"#mp_seller_product_categories\").length) {\n\t\twkmp(\"#mp_seller_product_categories\").select2();\n\t\twkmp('.wc-product-search').select2();\n\t}\n\n\tif (wkmp('#new_zone_locations').length) {\n\t\twkmp('#new_zone_locations').select2()\n }\n});\n\nwkmp(window).on('load', function () {\n\twkmp('.add-product-form .select2-container').css('width', '100%');\n\twkmp('.wkmp_nav_tabs a').css('text-decoration', 'none');\n wkmp('.woocommerce-pagination a').css('text-decoration', 'none');\n\n //Allowing media upload on by seller.\n if (wp.hasOwnProperty('media')) {\n wp.media.model.settings.post.id = 0;\n }\n\n //Remove link from separate dashboard link.\n if (wkmp('.woocommerce-MyAccount-navigation-link--separate-dashboard').length > 0) {\n wkmp('.woocommerce-MyAccount-navigation-link--separate-dashboard a').attr('href','javascript:void(0);');\n }\n\n\twkmp(document).on('click', '#wk_stock_management', function () {\n\t\tif (wkmp(this).is(':checked')) {\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-qty').parent('.wkmp_profile_input').css('display', 'block');\n\t\t\twkmp('.wkmp_profile_input #_backorders').parent('.wkmp_profile_input').css('display', 'block');\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-threshold').parent('.wkmp_profile_input').css('display', 'block');\n\t\t} else {\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-qty').parent('.wkmp_profile_input').css('display', 'none');\n\t\t\twkmp('.wkmp_profile_input #_backorders').parent('.wkmp_profile_input').css('display', 'none');\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-threshold').parent('.wkmp_profile_input').css('display', 'none');\n\t\t}\n\t});\n\n\t// Seller review box.\n wkmp('.mp-avg-rating-box-link').on('click', function (event) {\n event.stopPropagation();\n\t\tif (wkmp(event.target).hasClass('mp-avg-rating-box-link')) {\n\t\t\twkmp('.mp-avg-rating-box').toggle();\n\t\t\twkmp(this).toggleClass('open')\n\t\t}\n });\n\n wkmp('body').on('click', function (event) {\n if (wkmp('.mp-avg-rating-box-link').hasClass('open')) {\n wkmp('.mp-avg-rating-box-link').removeClass('open');\n wkmp('.mp-avg-rating-box').toggle();\n }\n });\n\n\twkmp('body').on('click', '.mp-seller-review-form p.mp-star-rating a', function () {\n\t\tvar feedType = wkmp(this).data('type');\n\t\tvar $star = wkmp(this),\n\t\t\t$rating = wkmp(this).closest('.mp-star-rating').siblings('#feed-' + feedType + '-rating'),\n\t\t\t$container = wkmp(this).closest('.mp-star-rating');\n\n\t\t$rating.val($star.data('rate'));\n\t\t$star.siblings('a').removeClass('active');\n\t\t$star.addClass('active');\n\t\t$container.addClass('selected');\n\n\t\treturn false\n\t});\n});\n\nwkmp(function () {\n\tif (wkmp('.wkmp-role-selector').length) {\n\t\twkmp('.wkmp-role-selector li').on('click', function (e) {\n\t\t\tlet thisElm = wkmp(this);\n thisElm.addClass('active').siblings().removeClass('active');\n thisElm.children('input[type=radio]').prop('checked',true);\n\t\t\tif (1 == thisElm.data('target')) {\n\t\t\t\twkmp('.wkmp-show-fields-if-seller').slideDown();\n\t\t\t\twkmp('.wkmp-show-fields-if-seller').find(':input').removeAttr('disabled');\n\t\t\t} else {\n\t\t\t\twkmp('.wkmp-show-fields-if-seller').find(':input').attr('disabled', 'disabled');\n\t\t\t\twkmp('.wkmp-show-fields-if-seller').slideUp();\n\t\t\t}\n\t\t});\n\t}\n\n\tif (wkmp('#wkmp-shopname').length) {\n\t\twkmp('#wkmp-shopname').on('focusout', function (e) {\n\t\t\twkmp(this).next('.wkmp-error').remove();\n\t\t\tlet value = wkmp(this).val().toLowerCase().replace(/-+/g, '').replace(/\\s+/g, '-').replace(/[^a-z0-9-]/g, '');\n\t\t\twkmp('#wkmp-shopurl').val(value);\n\t\t});\n\n\t\twkmp('#wkmp-shopurl').on('focusout', function () {\n\t\t\tlet self = wkmp(this);\n wkmp(self).next('.wkmp-error').remove();\n let shop_slug = self.val();\n if ('' === shop_slug){\n return false;\n }\n\n\t\t\twkmp.ajax({\n\t\t\t\ttype: 'POST',\n\t\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\t\tdata: {\n\t\t\t\t\taction: \"wkmp_check_shop_url\",\n\t\t\t\t\tshop_slug: shop_slug,\n\t\t\t\t\twkmp_nonce: wkmpObj.ajax.ajaxNonce,\n\t\t\t\t},\n\t\t\t\tsuccess: function (response) {\n\t\t\t\t\tif (false === response.error) {\n\t\t\t\t\t\twkmp('#wkmp-shop-url-availability').removeClass('wkmp-text-danger').addClass('wkmp-text-success').text(response.message);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twkmp('#wkmp-shop-url-availability').removeClass('wkmp-text-success').addClass('wkmp-text-danger').text(response.message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tif (wkmp('.woocommerce-form-register').length) {\n\t\twkmp('form.woocommerce-form-register').on('submit', function (e) {\n\t\t\twkmp('.wkmp-error').remove();\n\t\t\tlet role = wkmp('input[name=role]:checked').val();\n\n\t\t\tif ('seller' === role) {\n\t\t\t\tlet form = wkmp(this).find('input');\n\t\t\t\tlet errorDiv = wp.template('wkmp_field_empty');\n\n\t\t\t\twkmp.each(form, function (i, elm) {\n\t\t\t\t\tif ('' === wkmp(elm).val() && false === wkmp(elm).parents().hasClass('w3eden')) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\twkmp(wkmp(elm)[0]).after(errorDiv());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Js for tabs\n\t */\n\twkmp('.wkmp_nav_tabs li a:not(:first)').addClass('inactive');\n\twkmp('.wkmp_tab_content .wkmp_tab_pane:not(:first)').addClass('wkmp_hide');\n\n\twkmp('.wkmp_nav_tabs li a').on('click', function () {\n\n\t\twkmp('.wkmp_nav_tabs li a').removeClass('active').addClass('inactive');\n\t\twkmp(this).removeClass('inactive').addClass('active');\n\n\t\tlet id = wkmp(this).data('id');\n\n\t\twkmp('.wkmp_tab_content .wkmp_tab_pane').removeClass('wkmp_show').addClass('wkmp_hide');\n\t\twkmp(`.wkmp_tab_content ${id}`).removeClass('wkmp_hide').addClass('wkmp_show');\n\n\t});\n\n\n\t// variation attribute.\n\twkmp(document).on('click', '#mp_var_attribute_call', function (event) {\n\t\tevent.preventDefault();\n\t\tvar pid = wkmp('#sell_pr_id').val();\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\taction: \"wkmp_marketplace_attributes_variation\",\n\t\t\t\tproduct: pid,\n\t\t\t\twkmp_nonce: wkmpObj.ajax.ajaxNonce,\n\t\t\t},\n\t\t\tbeforeSend: function () {\n\t\t\t\twkmp('#mp-loader').css('display', 'block');\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\twkmp('#mp-loader').css('display', 'none');\n\t\t\t\twkmp('#mp_attribute_variations').append(data);\n\t\t\t}\n\t\t});\n\t});\n\t// Add product related code end here\n\n\t/**\n\t * Open the modal for seller ask query\n\t */\n\twkmp('body').on('click', '#wkmp-ask-query', function () {\n\t\tlet id = wkmp(this).data('modal_src');\n\t\twkmp(id).css('display', 'block');\n\t});\n\n\t/**\n\t * Close modal\n\t */\n\twkmp('body').on('click', '.wkmp-popup-modal .modal-footer .close-modal', function () {\n\t\twkmp(this).parents('.wkmp-popup-modal').css('display', 'none');\n\t});\n\n\t// Seller profile Page related code start here\n\twkmp('body').on('click', '#wkmp-upload-profile-image', function () {\n\t\twkmp('#seller_avatar_file').trigger('click');\n\t});\n\n\twkmp('body').on('change', '#seller_avatar_file', function () {\n\t\tvar reader = new FileReader();\n\t\treader.onload = function (e) {\n\t\t\twkmp('.wkmp_profile_img #wkmp-thumb-image img').attr('src', e.target.result);\n\t\t};\n\t\treader.readAsDataURL(this.files[0]);\n\t});\n\n\twkmp('body').on('click', '.wkmp_profile_img .wkmp-remove-profile-image', function () {\n\t\tlet img = wkmp(this).parents('.wkmp_profile_img').find('#wkmp-thumb-image img').data('placeholder-url');\n\t\twkmp(this).parents('.wkmp_profile_img').find('#wkmp-thumb-image img').attr('src', img);\n\t\twkmp(this).parents('.wkmp_profile_img').find('#thumbnail_id_avatar').val('');\n\t});\n\n\twkmp('body').on('click', '#wkmp-upload-shop-logo', function () {\n\t\twkmp('#seller_shop_logo_file').trigger('click');\n\t});\n\n\twkmp('body').on('change', '#seller_shop_logo_file', function () {\n\t\tvar reader = new FileReader();\n\t\treader.onload = function (e) {\n\t\t\twkmp('.wkmp_profile_logo #wkmp-thumb-image img').attr('src', e.target.result);\n\t\t};\n\t\treader.readAsDataURL(this.files[0]);\n\t});\n\n\twkmp('body').on('click', '.wkmp_profile_logo .wkmp-remove-shop-logo', function () {\n\t\tlet img = wkmp(this).parents('.wkmp_profile_logo').find('#wkmp-thumb-image img').data('placeholder-url');\n\t\twkmp(this).parents('.wkmp_profile_logo').find('#wkmp-thumb-image img').attr('src', img);\n\t\twkmp(this).parents('.wkmp_profile_logo').find('#thumbnail_id_company_logo').val('');\n\t});\n\n\twkmp('body').on('click', '#wkmp-upload-seller-banner', function () {\n\t\twkmp('#wk_mp_shop_banner').trigger('click');\n\t});\n\n\twkmp('body').on('change', '#wk_mp_shop_banner', function () {\n\t\tvar reader = new FileReader();\n\t\treader.onload = function (e) {\n\t\t\twkmp('.wkmp_shop_banner img').attr('src', e.target.result);\n\t\t};\n\t\treader.readAsDataURL(this.files[0]);\n\t});\n\n\twkmp('body').on('click', '.wkmp_shop_banner #wkmp-remove-seller-banner', function () {\n\t\tlet img = wkmp(this).parents('.wkmp_shop_banner').find('#wk_seller_banner img').data('placeholder-url');\n\t\twkmp(this).parents('.wkmp_shop_banner').find('#wk_seller_banner img').attr('src', img);\n\t\twkmp(this).parents('.wkmp_shop_banner').find('#thumbnail_id_shop_banner').val('');\n\t});\n\t// Seller profile Page related code end here.\n\n\t/**\n\t * Checked all list on click all checked\n\t */\n\twkmp('body').on('click', '#wkmp-checked-all', function () {\n\t\tif (true == wkmp(this).prop(\"checked\")) {\n\t\t\twkmp('input[name*=\\'selected\\']').prop('checked', true);\n\t\t} else {\n\t\t\twkmp('input[name*=\\'selected\\']').prop('checked', false);\n\t\t}\n\t});\n\n //Bulk deleting favorite seller from customer my-account page.\n\twkmp('body').on('click', '.wkmp-bulk-delete', function () {\n\t\tlet form_id = wkmp(this).data('form_id');\n\t\tlet flag = false;\n\t\twkmp(`${form_id} input[type=\\'checkbox\\']`).each(function () {\n\t\t\tif (wkmp(this).is(':checked')) {\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t});\n\t\tif (flag) {\n\t\t\tconfirm('Are you sure..?') ? wkmp(form_id).submit() : false;\n\t\t} else {\n\t\t\talert('Please select first');\n\t\t}\n });\n\n // Deleting a single favorite seller from customer my-account page.\n wkmp('body').on('click', '#wkmp_delete_single_fav_seller', function () {\n\t\tif (confirm('Are you sure..?')) {\n wkmp(this).closest('tr').children('td:first').find('input[type=checkbox]').prop('checked', true);\n wkmp(this).closest('form').submit();\n }\n });\n\n\twkmp('body').on('click', '#wkmp-send-notification', function () {\n\t\tlet customer_ids = [];\n\n\t\twkmp(`#wkmp-followers-list input[type=\\'checkbox\\']`).each(function () {\n\t\t\tif (wkmp(this).is(':checked')) {\n\t\t\t\tcustomer_ids.push(wkmp(this).val());\n\t\t\t}\n\t\t});\n\n\t\tif ('on' === customer_ids[0]) {\n\t\t\tcustomer_ids.shift();\n\t\t}\n\n\t\tif (customer_ids.length >= 1) {\n\t\t\tfor (var i = 0; i < customer_ids.length; i++) {\n\t\t\t\twkmp('#wkmp-seller-send-notification #wkmp-seller-sendmail-form').append(``);\n\t\t\t}\n\t\t\twkmp('#wkmp-seller-send-notification').css('display', 'block');\n\n\t\t} else {\n\t\t\talert('Please select first');\n\t\t}\n\n\t});\n\n\twkmp('body').on('click', '#wkmp-add-seller-as-favourite', function () {\n\t\tlet seller_id = wkmp(this).find('input[name=\"wkmp_seller_id\"]').val();\n let customer_id = wkmp(this).find('input[name=\"wkmp_customer_id\"]').val();\n\n wkmp('.wkmp-spin-loader').removeClass('wkmp_hide');\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\taction: \"wkmp_add_favourite_seller\",\n\t\t\t\tseller_id: seller_id,\n\t\t\t\tcustomer_id: customer_id,\n\t\t\t\twkmp_nonce: wkmpObj.ajax.ajaxNonce,\n\t\t\t},\n success: function (json) {\n wkmp('.wkmp-spin-loader').addClass('wkmp_hide');\n\t\t\t\tif ('added' === json['success']) {\n wkmp('#wkmp-add-seller-as-favourite .dashicons-heart').css('color', '#96588a');\n\t\t\t\t}\n\t\t\t\tif ('removed' === json['success']) {\n\t\t\t\t\twkmp('#wkmp-add-seller-as-favourite .dashicons-heart').css('color', 'unset');\n }\n wkmp('.woocommerce .wkmp-confirmation-msg').html(json.message).css('display','block');\n setTimeout(function () {\n wkmp('.woocommerce .wkmp-confirmation-msg').css('display','none');\n },3000);\n\t\t\t}\n\t\t});\n\t});\n\n\twkmp('body').on('click', '.mp-rating-input .stars a', function () {\n\t\tlet curr_obj = wkmp(this).parents('.mp-rating-input');\n\t\tlet rate = wkmp(this).text();\n\t\tcurr_obj.find('.stars').find('a').removeClass('active');\n\t\tcurr_obj.find('.stars').addClass('selected');\n\t\tcurr_obj.find('.stars').find(`.star-${rate}`).addClass('active');\n\t\tlet id = curr_obj.data('id');\n\t\twkmp(`${id} option:selected`).removeAttr(\"selected\");\n\t\twkmp(`${id} option:eq(${rate})`).attr(\"selected\", \"selected\");\n\t});\n\n\twkmp('#mp-update-sale-order').on('change', function (evt) {\n\t\tevt.preventDefault();\n\t\twkmp(window).scrollTop(0);\n\t\twkmp('body').append('
');\n\t\twkmp('.wk-mp-loader').css('display', 'inline-block');\n\t\twkmp('body').css('overflow', 'hidden');\n\t\tsetTimeout(function () {\n\t\t\twkmp('body').css('overflow', 'auto');\n\t\t\twkmp('.wk-mp-loader').remove()\n\t\t}, 1500)\n\t});\n\n\twkmp('#wkmp-seller-profile #billing-country').on('change', function (evt) {\n let code = wkmp(this).val();\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\taction: \"wkmp_get_state_by_country_code\",\n\t\t\t\tcountry_code: code,\n\t\t\t\twkmp_nonce: wkmpObj.ajax.ajaxNonce,\n\t\t\t},\n\t\t\tsuccess: function (json) {\n\t\t\t\tif (json['success']) {\n\t\t\t\t\twkmp('#wkmp-seller-profile #billing-state').replaceWith(json['html']);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n\n\t/* product status downloadable file */\n\tvar file_path_field;\n\n\twkmp('.wk-mp-side-body').on(\"click\", '.upload_downloadable_file', function (event) {\n\t\tvar file_frame;\n\t\tvar $el = wkmp(this);\n\t\tfile_path_field = $el.closest('tr').find('td.file_url input');\n\t\tevent.preventDefault();\n\n\t\t// If the media frame already exists, reopen it.\n\t\tif (file_frame) {\n\t\t\tfile_frame.open();\n\t\t\treturn;\n\t\t}\n\n\t\t// Create the media frame.\n\t\tfile_frame = wp.media.frames.file_frame = wp.media({\n\t\t\ttitle: $el.data('choose'),\n\t\t\tbutton: {\n\t\t\t\ttext: $el.data('update')\n\t\t\t},\n\t\t\tmultiple: false // Set to true to allow multiple files to be selected.\n\t\t});\n\n\t\t// When frame is open, select existing image attachments from custom field.\n\t\tfile_frame.on('open', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t});\n\n\t\tvar query = wp.media.query();\n\n\t\tquery.filterWithIds = function (ids) {\n\t\t\treturn _(this.models.filter(function (c) {\n\t\t\t\treturn _.contains(ids, c.id);\n\t\t\t}));\n\t\t};\n\n\t\tvar res = query.filterWithIds([3]); // change these to your IDs.\n\n\t\tres.each(function (v) {\n\t\t\tconsole.log(v.toJSON());\n\t\t});\n\n\t\t// When images are selected, place IDs in hidden custom field and show thumbnails.\n\n\t\tfile_frame.on('select', function () {\n\t\t\tvar file_path = '';\n\t\t\tvar selection = file_frame.state().get('selection');\n\n\t\t\t// Place IDs in custom field.\n\n\t\t\tvar attachment_ids = selection.map(function (attachment) {\n\t\t\t\tattachment = attachment.toJSON();\n\t\t\t\tif (attachment.url) {\n\t\t\t\t\tfile_path = attachment.url;\n\t\t\t\t}\n\t\t\t\tfile_path_field.val(file_path).change();\n\t\t\t\treturn attachment.id;\n\t\t\t});\n\t\t});\n\n\t\t// Finally, open the modal\n\n\t\tfile_frame.open();\n\t});\n\n\twkmp(\".select-group .dropdown-togle\").on(\"click\", function () {\n\t\twkmp(this).parent().toggleClass(\"open\");\n\t});\n\n\twkmp('.wkmp-order-refund-button').on('click', (e) => {\n\t\twkmp('.wkmp-order-refund').toggle();\n\t\tif ('table-cell' === wkmp('.wkmp-order-refund').css('display')) {\n\t\t\twkmp(e.target).text('Cancel');\n\t\t} else {\n\t\t\twkmp(e.target).text('Refund');\n\t\t}\n\t});\n\n\tif (wkmp('.refund_line_total')) {\n\t\twkmp('.refund_line_total').on('change', (e) => {\n\t\t\tlet refundTotal = 0;\n\t\t\tdocument.querySelectorAll('.refund_line_total').forEach((input) => {\n\t\t\t\tlet qty = 0;\n\t\t\t\tif (input.type === 'checkbox' && input.checked) {\n\t\t\t\t\tqty = input.value;\n\t\t\t\t} else if (input.type !== 'checkbox') {\n\t\t\t\t\tqty = input.value;\n\t\t\t\t}\n\t\t\t\trefundTotal += qty * input.previousElementSibling.value;\n\t\t\t});\n\t\t\tdocument.querySelector('#refund-amount').value = Math.round(refundTotal * 100) / 100;\n\t\t});\n\t}\n\n\t//Add product start here.\n\twkmp(document).on('click', '#wk_stock_management', function () {\n\t\tif (wkmp(this).is(':checked')) {\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-qty').parent('.wkmp_profile_input').css('display', 'block')\n\t\t\twkmp('.wkmp_profile_input #_backorders').parent('.wkmp_profile_input').css('display', 'block')\n\t\t\twkmp('.wkmp_profile_input #_stock_status').parent('.wkmp_profile_input').css('display', 'none')\n\t\t} else {\n\t\t\twkmp('.wkmp_profile_input #wk-mp-stock-qty').parent('.wkmp_profile_input').css('display', 'none')\n\t\t\twkmp('.wkmp_profile_input #_backorders').parent('.wkmp_profile_input').css('display', 'none')\n\t\t\twkmp('.wkmp_profile_input #_stock_status').parent('.wkmp_profile_input').css('display', 'block')\n\t\t}\n\t});\n\n\twkmp('.mp-toggle-sider-edit,.mp-toggle-save').on('click', function () {\n\t\tvar status = wkmp('#product_post_status').val();\n\t\tif ('publish' === status) {\n\t\t\twkmp('.mp-toggle-selected-display').html(wkmpObj.mkt_tr.mkt28);\n\t\t} else {\n\t\t\twkmp('.mp-toggle-selected-display').html(status);\n\t\t}\n\t\twkmp('.wkmp-toggle-select-container').toggle()\n\t});\n\n\twkmp('a.mp-toggle-cancel').on('click', function () {\n\t\twkmp('.wkmp-toggle-select-container').hide();\n\t});\n\n\t// Product type sidebar.\n\tvar product_type = wkmp('#product_type').val();\n\n\tvar var_type = wkmp('#var_variation_display').val();\n\tif ('variable' === product_type && 'yes' === var_type) {\n\t\twkmp(\"#edit_product_tab li\").eq(6).show();\n\t}\n\n\tif ('external' === product_type) {\n\t\twkmp(\"#edit_product_tab li\").eq(5).show();\n\t}\n\n\twkmp(document).on('change', 'body #product_type', function () {\n\t\tvar product_type = wkmp('#product_type').val();\n\t\tvar var_type = wkmp('#var_variation_display').val();\n\n\t\tif ('variable' === product_type && 'yes' === var_type) {\n\t\t\twkmp(\"#edit_product_tab li\").eq(6).show();\n\t\t} else {\n\t\t\twkmp(\"#edit_product_tab li\").eq(6).hide();\n\t\t}\n\n\t\tif ('simple' === product_type) {\n\t\t\twkmp('#regularPrice').show();\n\t\t\twkmp('#salePrice').show();\n\t\t} else {\n\t\t\twkmp('#regularPrice').hide();\n\t\t\twkmp('#salePrice').hide();\n\t\t}\n\n\t\tif ('external' === product_type) {\n\t\t\twkmp(\"#edit_product_tab li\").eq(5).show();\n\t\t} else {\n\t\t\twkmp(\"#edit_product_tab li\").eq(5).hide();\n\t\t}\n\t});\n\n\twkmp('a.mp-toggle-type-cancel').on('click', function () {\n\t\twkmp('.mp-toggle-select-type-container').css('display', 'none');\n\t});\n\n\twkmp('.mp_value_asc').change(function () {\n\t\tvar str = wkmp(this).val();\n\t\tvar newUrl = window.location.href + '&' + str;\n\t\twindow.location = newUrl;\n\t});\n\n\t//downloadable check\n\twkmp('#_ckdownloadable').change(function () {\n\t\twkmp('.wk-mp-side-body').slideToggle(\"slow\");\n\t});\n\n\twkmp('#_ckvirtual').change(function () {\n\t\tif ('none' !== wkmp(\"#edit_product_tab li\").eq(2).css('display')) {\n\t\t\twkmp(\"#edit_product_tab li\").eq(2).css('display', 'none');\n\t\t} else {\n\t\t\twkmp(\"#edit_product_tab li\").eq(2).css('display', 'block');\n\t\t}\n\t});\n\n\t/***********Seller multiple downloadable files starts***********/\n\n\twkmp('.wk-mp-side-body').on('click', '.downloadable_files a.insert', function () {\n\t\twkmp(this).closest('.downloadable_files').find('tbody').append(wkmp(this).data('row'));\n\t\treturn false;\n\t});\n\n\twkmp('.wk-mp-side-body').on('click', '.downloadable_files a.delete', function () {\n\t\twkmp(this).closest('tr').remove();\n\t\treturn false;\n\t});\n\n\t/***********Seller multiple downloadable files ends***********/\n\n\twkmp(document).on('change', '.checkbox_is_virtual', function () {\n\t\twkmp(this).parents('tbody').children('tr').eq(0).find('.virtual').slideToggle('fast');\n\t});\n\n\twkmp(document).on('change', '.checkbox_is_downloadable', function () {\n\t\twkmp(this).parents('tbody').children('tr').eq(0).find('.downloadable').slideToggle('fast');\n\t});\n\twkmp(document).on('change', '.checkbox_manage_stock', function () {\n\t\twkmp(this).parents('tbody').children('tr').eq(0).find('.wkmp_stock_status').slideToggle('fast');\n\t});\n\t// upload file name handler\n\n\t//upload button for product image file\n\twkmp('.add-mp-product-images').on('click', function (event) {\n\t\tvar file_frame;\n\t\tvar image_id = wkmp(this).attr('id');\n\t\tvar image_id_field = wkmp('#product_image_Galary_ids').val();\n\t\tvar galary_ids = '';\n\t\tvar typeError = 0;\n\n\t\twkmp('#wk-mp-product-images').find('.error-class').remove();\n\n\t\tif ('' === image_id_field) {\n\t\t\tgalary_ids = '';\n\t\t} else {\n\t\t\tgalary_ids = image_id_field + ',';\n\t\t}\n\n\t\tevent.preventDefault();\n\t\t// If the media frame already exists, reopen it.\n\t\tif (file_frame) {\n\t\t\tfile_frame.open();\n\t\t\treturn;\n\t\t}\n\n\t\t// Create the media frame.\n\t\tfile_frame = wp.media.frames.file_frame = wp.media({\n\t\t\ttitle: wkmp(this).data('uploader_title'),\n\t\t\tbutton: {text: wkmp(this).data('uploader_button_text')},\n\t\t\tmultiple: true // Set to true to allow multiple files to be selected\n\t\t});\n\n\t\t// When frame is open, select existing image attachments from custom field\n\t\tfile_frame.on('open', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t});\n\n\t\tvar query = wp.media.query();\n\n\t\tquery.filterWithIds = function (ids) {\n\t\t\treturn _(this.models.filter(function (c) {\n\t\t\t\treturn _.contains(ids, c.id);\n\t\t\t}));\n\t\t};\n\n\t\t// When images are selected, place IDs in hidden custom field and show thumbnails.\n\t\tfile_frame.on('select', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t\t// Place IDs in custom field\n\t\t\tvar attachment_ids = selection.map(function (attachment) {\n\t\t\t\tattachment = attachment.toJSON();\n\n\t\t\t\tif (undefined !== attachment.sizes) {\n\t\t\t\t\tgalary_ids = galary_ids + attachment.id + ',';\n\t\t\t\t\twkmp('#handleFileSelectgalaray').append(\"\");\n\t\t\t\t\treturn attachment.id;\n\t\t\t\t} else {\n\t\t\t\t\ttypeError = 1;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (typeError) {\n\t\t\t\twkmp('#wk-mp-product-images').append(\"

\" + wkmp(\".mp_product_thumb_image.button\").data('type-error') + \"

\");\n\t\t\t}\n\n\t\t\tgalary_ids = galary_ids.replace(/,\\s*$/, \"\");\n\t\t\twkmp('#product_image_Galary_ids').val(galary_ids);\n\n\t\t});\n\n\t\t// Finally, open the modal\n\t\tfile_frame.open();\n\t});\n\n\t/* mp thumb image */\n\twkmp('.mp_product_thumb_image').on('click', function (event) {\n\t\tvar file_frame;\n\n\t\tevent.preventDefault();\n\n\t\tif (file_frame) {\n\t\t\tfile_frame.open();\n\t\t\treturn;\n\t\t}\n\n\t\t// Create the media frame.\n\t\tfile_frame = wp.media.frames.file_frame = wp.media({\n\t\t\ttitle: wkmp(this).data('uploader_title'),\n\t\t\tbutton: {text: wkmp(this).data('uploader_button_text')},\n\t\t\tmultiple: false // Set to true to allow multiple files to be selected\n\t\t});\n\n\t\t// When frame is open, select existing image attachments from custom field\n\t\tfile_frame.on('open', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t});\n\n\t\tvar query = wp.media.query();\n\n\t\tquery.filterWithIds = function (ids) {\n\t\t\treturn _(this.models.filter(function (c) {\n\t\t\t\treturn _.contains(ids, c.id);\n\t\t\t}));\n\t\t};\n\n\t\t// When images are selected, place IDs in hidden custom field and show thumbnails.\n\t\tfile_frame.on('select', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t\t// Place IDs in custom field\n\t\t\tvar attachment_ids = selection.map(function (attachment) {\n\t\t\t\tattachment = attachment.toJSON();\n\t\t\t\twkmp(\".mp_product_thumb_image.button\").siblings('.error-class').remove();\n\n\t\t\t\tif (undefined !== attachment.sizes) {\n\t\t\t\t\twkmp('#product_thumb_image_mp').val(attachment.id);\n\t\t\t\t\twkmp('#mp-product-thumb-img-div').find(\"img\").attr('src', attachment.sizes.thumbnail.url);\n\n\t\t\t\t\tif (wkmp('#mp-product-thumb-img-div').find(\"span\").length <= 0) {\n\t\t\t\t\t\twkmp('#mp-product-thumb-img-div').append('x');\n\t\t\t\t\t}\n\n\t\t\t\t\treturn attachment.id;\n\t\t\t\t} else {\n\t\t\t\t\twkmp(\".mp_product_thumb_image.button\").parent().append(\"

\" + wkmp(\".mp_product_thumb_image.button\").data('type-error') + \"

\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t});\n\n\t\t// Finally, open the modal\n\t\tfile_frame.open();\n\t});\n\n\t/* mp thumb image end */\n\n\t/* remove thumb image product */\n\twkmp('#mp-product-thumb-img-div').on('click', '.mp-image-remove-icon', function () {\n\t\twkmp('#product_thumb_image_mp').val('');\n\t\twkmp(this).siblings('img').attr('src', wkmp(this).siblings('img').data('placeholder-url'));\n\t\twkmp(this).remove();\n\t});\n\n\t// tabs on edit product page\n\twkmp('#edit_product_tab li a:not(:first)').addClass('inactive');\n\n\tif (!wkmp('#edit_notification_tab li a').length) {\n\t\twkmp('.wkmp_container').hide();\n\t\twkmp('.wkmp_container:first').show();\n\t}\n\n\tvar activeproducttab = wkmp('#active_product_tab');\n\tif (activeproducttab.val()) {\n\t\tvar activeproducttabvalue = activeproducttab.val();\n\t\tif (wkmp('#' + activeproducttabvalue).hasClass('inactive')) {\n\t\t\twkmp('#edit_product_tab li a').addClass('inactive');\n\t\t\twkmp('#' + activeproducttabvalue).removeClass('inactive');\n\n\t\t\twkmp('.wkmp_container').hide();\n\t\t\twkmp('#' + wkmp('#' + activeproducttabvalue).attr('id') + 'wk').fadeIn('slow');\n\t\t}\n\t}\n\n\twkmp('#edit_product_tab li a').click(function () {\n\t\tvar t = wkmp(this).attr('id');\n\t\tactiveproducttab.val(t);\n\t\tif (wkmp(this).hasClass('inactive')) { //this is the start of our condition\n\t\t\twkmp('#edit_product_tab li a').addClass('inactive');\n\t\t\twkmp(this).removeClass('inactive');\n\n\t\t\twkmp('.wkmp_container').hide();\n\t\t\twkmp('#' + t + 'wk').fadeIn('slow');\n\t\t}\n\t});\n\n\twkmp('#edit_notification_tab li a').click(function () {\n\t\tvar t = wkmp(this).attr('id');\n\t\tif (wkmp(this).hasClass('inactive')) { //this is the start of our condition\n\t\t\twkmp('#edit_notification_tab li a').addClass('inactive');\n\t\t\twkmp(this).removeClass('inactive');\n\n\t\t\twkmp('.wkmp_container').hide();\n\t\t\twkmp('#' + t + 'wk').fadeIn('slow');\n\t\t}\n\t});\n\t//attribute dynamic fields\n\tvar wrapper = wkmp(\".wk_marketplace_attributes\");\n\tvar add_button = wkmp(\".add-variant-attribute\");\n\tvar attribute_no = wkmp(\"div.wk_marketplace_attributes > div.wkmp_attributes\").length;\n\tvar x = attribute_no;\n\n\twkmp(document).on('click', '.add-variant-attribute', function (e) {\n\t\te.preventDefault();\n\t\tvar type = wkmp('#sell_pr_type').val();\n\t\tif ('variable' === type) {\n\t\t\tvar html = '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\twkmp(wrapper).append(html);\n\t\t} else {\n\t\t\tvar html = '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '';\n\t\t\thtml += '';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\thtml += '
';\n\t\t\twkmp(wrapper).append(html);\n\t\t}\n\t\tx++;\n\t});\n\n\twkmp(\".wk_marketplace_attributes\").on(\"click\", \".mp_attribute_remove\", function (e) { //user click on remove text\n\t\te.preventDefault();\n\t\twkmp(this).parent().parent().parent().remove();\n\t});\n\n\twkmp('#mp_attribute_variations').on(\"click\", \".mp_attribute_remove\", function (e) { //user click on remove text\n\t\te.preventDefault();\n\t\twkmp(this).parent().parent().remove();\n\t\tvar var_att_id = wkmp(this).data('var_id');\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\"action\": \"wkmp_attributes_variation_remove\", \"var_id\": var_att_id, \"wkmp_nonce\": wkmpObj.ajax.ajaxNonce},\n\t\t\tsuccess: function (data) {\n\t\t\t\twkmp('#wkmp_remove_notice_wrap').removeClass('wkmp_hide').html(data.msg);\n\t\t\t\tif (!data.success) {\n\t\t\t\t\twkmp('#wkmp_remove_notice_wrap').addClass('woocommerce-error');\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n\n\twkmp('.wkmp_variation_downloadable_file').on(\"click\", '.mp_var_del', function () {\n\t\tvar del_id = wkmp(this).attr('id');\n\t\twkmp('#' + del_id).parent().parent().remove();\n\t});\n\n\twkmp('#mp_attribute_variations').on(\"click\", \".upload_image_button\", function () {\n\t\tvar file_type_id = wkmp(this).attr('id') + 'upload';\n\t\twkmp('#' + file_type_id).trigger('click');\n\t});\n\n\twkmp(document).on(\"click\", '#mp_attribute_variations div.wkmp_variation_downloadable_file .wkmp_downloadable_upload_file', function (event) {\n\t\tevent.preventDefault();\n\t\tvar trigger_id = wkmp(this).attr('id');\n\t\t// var up_id=trigger_id.split('_');\n\t\tvar text_box_file_url = 'downloadable_upload_file_url_' + trigger_id;\n\t\tvar file_frame;\n\t\t// If the media frame already exists, reopen it.\n\t\tif (file_frame) {\n\t\t\tfile_frame.open();\n\t\t\treturn;\n\t\t}\n\n\t\t// Create the media frame.\n\t\tfile_frame = wp.media.frames.file_frame = wp.media({\n\t\t\ttitle: wkmp(this).data('uploader_title'),\n\t\t\tbutton: {text: wkmp(this).data('uploader_button_text')},\n\t\t\tmultiple: false // Set to true to allow multiple files to be selected\n\t\t});\n\n\t\t// When frame is open, select existing image attachments from custom field\n\t\tfile_frame.on('open', function () {\n\t\t\tvar selection = file_frame.state().get('selection');\n\t\t});\n\t\tvar query = wp.media.query();\n\n\t\tquery.filterWithIds = function (ids) {\n\t\t\treturn _(this.models.filter(function (c) {\n\t\t\t\treturn _.contains(ids, c.id);\n\t\t\t}));\n\t\t};\n\n\t\tvar res = query.filterWithIds([3]); // change these to your IDs\n\n\t\tres.each(function (v) {\n\t\t\tconsole.log(v.toJSON());\n\t\t});\n\n\t\t// When images are selected, place IDs in hidden custom field and show thumbnails.\n\t\tfile_frame.on('select', function () {\n\n\t\t\tvar selection = file_frame.state().get('selection');\n\n\t\t\t// Place IDs in custom field\n\t\t\tvar attachment_ids = selection.map(function (attachment) {\n\t\t\t\tattachment = attachment.toJSON();\n\t\t\t\twkmp('#' + text_box_file_url).val(attachment.url);\n\t\t\t\treturn attachment.id;\n\t\t\t});\n\t\t});\n\n\t\t// Finally, open the modal\n\t\tfile_frame.open();\n\t});\n\n\t// variation attribute\n\n\n\t// multiple thumb image upload and view\n\tfunction handleFileSelect(evt) {\n\t\twkmp('#product_image').empty();\n\t\tvar files = evt.target.files; // FileList object\n\t\t// Loop through the FileList and render image files as thumbnails.\n\t\tfor (var i = 0, f; f = files[i]; i++) {\n\t\t\t// Only process image files.\n\t\t\tif (!f.type.match('image.*')) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information.\n\t\t\treader.onload = (function (theFile) {\n\t\t\t\treturn function (e) {\n\t\t\t\t\t// Render thumbnail.\n\t\t\t\t\tvar div = document.createElement('div');\n\t\t\t\t\t//wkmp(div).attr({class:'ingdiv'});\n\t\t\t\t\tdiv.innerHTML = [''].join('');\n\t\t\t\t\tdocument.getElementById('product_image').insertBefore(div, null);\n\t\t\t\t\twkmp('#product_image div').attr({class: 'imgdiv'});\n\t\t\t\t\twk_imgview();\n\t\t\t\t};\n\t\t\t})(f);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(f);\n\t\t}\n\n\t\tfunction wk_imgview() {\n\t\t\twkmp('div.imgdiv').mouseover(function (event) {\n\t\t\t\t//alert('Hello div');\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").css({display: \"block\"});\n\t\t\t\twkmp(this).find(\"img\").css(\"opacity\", \"0.4\");\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").on('click', function () {\n\t\t\t\t\twkmp(this).parent(\"div\").remove();\n\t\t\t\t});\n\t\t\t});\n\n\t\t\twkmp(\"div.imgdiv\").mouseout(function (event) {\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").css({display: \"none\"});\n\t\t\t\twkmp(this).find(\"img\").css(\"opacity\", \"1\");\n\t\t\t});\n\t\t}\n\t}\n\n\t// multiple galary image upload and view\n\tfunction handleFilegalaray(evt) {\n\t\twkmp('#handleFileSelectgalaray').empty();\n\t\tvar files = evt.target.files; // FileList object\n\t\t// Loop through the FileList and render image files as thumbnails.\n\t\tfor (var i = 0, f; f = files[i]; i++) {\n\t\t\t// Only process image files.\n\t\t\tif (!f.type.match('image.*')) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information.\n\t\t\treader.onload = (function (theFile) {\n\t\t\t\treturn function (e) {\n\t\t\t\t\t// Render thumbnail.\n\t\t\t\t\tvar div = document.createElement('div');\n\t\t\t\t\tdiv.innerHTML = [''].join('');\n\t\t\t\t\tdocument.getElementById('handleFileSelectgalaray').insertBefore(div, null);\n\t\t\t\t\twkmp('#handleFileSelectgalaray div').attr({class: 'imgdiv'});\n\t\t\t\t\twk_imgview();\n\t\t\t\t};\n\t\t\t})(f);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(f);\n\t\t}\n\n\t\tfunction wk_imgview() {\n\t\t\twkmp('div.imgdiv').mouseover(function (event) {\n\t\t\t\t//alert('Hello div');\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").css({display: \"block\"});\n\t\t\t\twkmp(this).find(\"img\").css({\"opacity\": \"0.4\"});\n\t\t\t\t// For Delete the image Div at Click on Cross Icon\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").on('click', function () {\n\t\t\t\t\twkmp(this).parent(\"div\").remove();\n\t\t\t\t});\n\n\t\t\t});\n\n\t\t\twkmp(\"div.imgdiv\").mouseout(function (event) {\n\t\t\t\twkmp(this).find(\".wkmp_image_over\").css({display: \"none\"});\n\t\t\t\twkmp(this).find(\"img\").css({\"opacity\": \"1\"});\n\t\t\t});\n\n\t\t}\n\t}\n\n\t// deleting image\n\twkmp('a.mp-img-delete_gal').click(function () {\n\t\twkmp('#' + this.id).parent().remove();\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_productgallary_image_delete\",\n\t\t\t\t\"img_id\": this.id,\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\twkmp('#product_image_Galary_ids').val(data);\n\t\t\t}\n\t\t});\n\t});\n\n\twkmp('#mp_attribute_variations').on(\"click\", \".mp_varnew_file\", function () {\n\t\tvar var_did = wkmp(this).attr('id');\n\t\tvar variation_count = wkmp(\"div#variation_downloadable_file_\" + var_did + \" > div\").length;\n\t\tvar wrapper = '#variation_downloadable_file_' + var_did;\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_downloadable_file_add\",\n\t\t\t\t\"var_id\": var_did,\n\t\t\t\t\"eleme_no\": variation_count,\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\twkmp(data).appendTo(wrapper);\n\t\t\t}\n\t\t});\n\t});\n\n\t//Product validation.\n\twkmp('#add_product_sub').click(function (e) {\n\t\tif ('submit' === wkmp(this).attr('type')) {\n\t\t\tvar product_name = wkmp('#product_name').val();\n\t\t\tproduct_name = trim_wkmp_value(product_name);\n\t\t\tvar product_sku = wkmp('#product_sku').val();\n var regu_price = wkmp('#regu_price').val();\n\n\t\t\tvar error = 0;\n\t\t\tif (0 === product_name.length) {\n\t\t\t\twkmp('#pro_name_error').html(wkmpObj.mkt_tr.mkt2);\n\t\t\t\terror++;\n\t\t\t}\n\n\t\t\tif ( 'undefined' !== typeof (product_sku) && '' !== product_sku && product_sku.length < 3) {\n\t\t\t\twkmp('#pro_sku_error').css('color', 'red');\n\t\t\t\twkmp('#pro_sku_error').html(wkmpObj.mkt_tr.mkt3);\n\t\t\t\terror++;\n\t\t\t}\n\n\t\t\tvar pro_type = wkmp('input[name=\"product_type\"]').val();\n\n\t\t\tif ('' === pro_type || 'undefined' === typeof pro_type) {\n\t\t\t\tpro_type = wkmp('#product_type').val();\n\t\t\t}\n\n if ('variable' !== pro_type && 'grouped' !== pro_type){\n\t\t\t\tif (!wkmp_validate_price(regu_price)) {\n\t\t\t\t\twkmp('#regl_pr_error').html(wkmpObj.mkt_tr.mkt6);\n\t\t\t\t\terror++;\n\t\t\t\t} else {\n\t\t\t\t\twkmp('#regl_pr_error').html('');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar sale_price = wkmp('#sale_price').val();\n\t\t\tvar regular = parseFloat(wkmp('#regu_price').val());\n\t\t\tvar sale = parseFloat(wkmp('#sale_price').val());\n\t\t\tif (wkmp('#sale_price').val()) {\n\t\t\t\tif (!wkmp_validate_price(sale_price)) {\n\t\t\t\t\twkmp('#sale_pr_error').html(wkmpObj.mkt_tr.mkt6);\n\t\t\t\t\terror++;\n\t\t\t\t} else if (sale > regular) {\n\t\t\t\t\twkmp('#sale_pr_error').html(wkmpObj.mkt_tr.mkt5);\n\t\t\t\t\terror++;\n\t\t\t\t} else {\n\t\t\t\t\twkmp('#sale_pr_error').html('');\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar product_sku = wkmp('#product_sku').val();\n\t\t\twkmp('.wkmp_variable_sku').each(function () {\n\t\t\t\tvar wkmp_variable_sku = wkmp(this).val();\n\t\t\t\tvar this_sel = this;\n\t\t\t});\n\n\t\t\tif (error) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t});\n\n\tfunction trim_wkmp_value(item) {\n\t\titem = wkmp.trim(item);\n\t\treturn item;\n\t}\n\n\t//SKU validation.\n\tlet ps = wkmp('#product_sku').val();\n\n\twkmp('#product_sku').blur(function () {\n let product_sku = wkmp('#product_sku').val();\n\t\twkmp('#pro_sku_error').html('');\n\n if (product_sku !== ps) {\n\t\t\tproduct_sku_validation(product_sku);\n\t\t}\n\t});\n\n\tfunction product_sku_validation(argument) {\n\t\tvar product_sku = argument;\n\t\tvar reg_sku = /^[a-z0-9A-Z_-]{1,20}$/;\n\t\twkmp('#pro_sku_error').css('color', 'red');\n\n if ('' !== product_sku) {\n\n if (!reg_sku.test(product_sku)) {\n wkmp('#pro_sku_error').html('Special character and spaces are not allowed');\n return false;\n } else if ( product_sku.length < 3) {\n wkmp('#pro_sku_error').css('color', 'red');\n wkmp('#pro_sku_error').html(wkmpObj.mkt_tr.mkt3);\n return false;\n } else {\n wkmp('#pro_sku_error').html('');\n }\n\n wkmp('#add_product_sub').attr('disabled', 'disabled');\n wkmp.ajax({\n type: 'POST',\n url: wkmpObj.ajax.ajaxUrl,\n dataType: \"json\",\n data: {\n \"action\": \"wkmp_product_sku_validation\",\n \"psku\": product_sku,\n \"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n },\n success: function (data) {\n if (data && data.success === true) {\n wkmp('#pro_sku_error').css('color', 'green');\n wkmp('#pro_sku_error').html(data.message);\n wkmp('#add_product_sub').removeAttr('disabled');\n } else {\n wkmp('#pro_sku_error').css('color', 'red');\n wkmp('#pro_sku_error').html(data.message);\n }\n }\n });\n }\n\t}\n\n\t// Variation sku validation.\n\twkmp(document).on('blur', '.wkmp_variable_sku', function () {\n\t\tvar wkmp_variable_sku = wkmp(this).val();\n\t\tvar this_sel = this;\n\t\twkmp(this).siblings('.wk_variable_sku_err').html('');\n\t\tif (wkmp(this).val() !== wkmp(this).attr('placeholder')) {\n\t\t\tvariation_sku_validation(wkmp_variable_sku, this_sel);\n\t\t}\n\t});\n\n\tfunction variation_sku_validation(argument1, argument2) {\n\t\tvar wkmp_variable_sku = argument1;\n\t\tvar reg_sku = /^[a-z0-9A-Z]{1,20}$/;\n\t\tvar this_sel = argument2;\n\t\twkmp(this_sel).siblings('.wk_variable_sku_err').css('color', 'red');\n\t\tif ('' === wkmp_variable_sku) {\n\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').html(wkmpObj.mkt_tr.mkt4);\n\t\t\treturn false;\n\t\t} else if (!reg_sku.test(wkmp_variable_sku)) {\n\t\t\t// wkmp(this_sel).siblings('.wk_variable_sku_err').html('special character and space are not allowed');\n\t\t\t// return false;\n\t\t} else {\n\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').html('');\n\t\t}\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdataType: \"json\",\n\t\t\tdata: {\"action\": \"wkmp_product_sku_validation\", \"psku\": wkmp_variable_sku, \"wkmp_nonce\": wkmpObj.ajax.ajaxNonce},\n\t\t\tsuccess: function (data) {\n\t\t\t\tif (data && data.success === true) {\n\t\t\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').css('color', 'green');\n\t\t\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').html(data.message);\n\t\t\t\t} else {\n\t\t\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').css('color', 'red');\n\t\t\t\t\twkmp(this_sel).siblings('.wk_variable_sku_err').html(data.message);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\t// Variation regular price validation\n\twkmp(document).on('blur', '.wc_input_price', function () {\n var no = wkmp(this).val();\n\t\twkmp(this).next('.error-class').remove()\n\t\tif (no && !wkmp.isNumeric(no)) {\n\t\t\twkmp(this).after('' + wkmpObj.mkt_tr.mkt6 + '')\n\t\t}\n\t});\n\n\t// variation weight price validation\n\twkmp(document).on('blur', '.wc_input_decimal, #wk-mp-stock-qty', function () {\n\t\tvar no = wkmp(this).val();\n\t\twkmp(this).parent('.wrap').children('.error-class').remove()\n\t\tif (no && !wkmp.isNumeric(no)) {\n\t\t\twkmp(this).parent('.wrap').append('' + wkmpObj.mkt_tr.mkt7 + '')\n\t\t}\n\t});\n\n\t// stock\n\twkmp(document).on('blur', '._weight_field .wc_input_decimal, #wk-mp-stock-qty', function () {\n\t\tvar no = wkmp(this).val();\n\t\twkmp(this).next('.error-class').remove()\n\t\tif (no && !wkmp.isNumeric(no)) {\n\t\t\twkmp(this).after('' + wkmpObj.mkt_tr.mkt7 + '')\n\t\t}\n\t});\n\t// variation weight price validation\n\twkmp(document).on('keyup', '.wkmp_variable_stock', function () {\n\t\tvar no = wkmp(this).val();\n\t\tvar no_int = no;\n\t\tvar stock = /^\\d+(\\.\\d{1,2})?$/;\n\t\ta = no_int;\n\t\tif (no == no_int) {\n\t\t\ta = no_int;\n\t\t}\n\t\tif ('' !== wkmp(this).val() && stock.test(a)) {\n\t\t\twkmp(this).val(a);\n\t\t} else {\n\t\t\twkmp(this).val('');\n\t\t\ta = 0;\n\t\t}\n\t});\n\t//product name validation.\n\twkmp('#product_name').blur(function () {\n\t\tvar product_name = wkmp('#product_name').val();\n\t\tvar ck_name = /^[A-Za-z0-9 _-]{1,40}$/;\n\t\tif ('' === product_name) {\n\t\t\twkmp('#pro_name_error').html(wkmpObj.mkt_tr.mkt8);\n\t\t\treturn false;\n\t\t} else {\n\t\t\twkmp('#pro_name_error').html('');\n\t\t}\n\t});\n\t//product regular price validation\n\twkmp('#regu_price').blur(function () {\n\t\tvar regu_price = wkmp('#regu_price').val();\n\t\tvar pro_type = wkmp('#product_type');\n\n\t\tif (!product_type) {\n\t\t\tpro_type = wkmp('#product-form').find('input[name=\"product_type\"]').val()\n }\n\n\t\tif ('variable' !== pro_type && 'grouped' !== pro_type && !wkmp_validate_price(regu_price)) {\n\t\t\twkmp('#regl_pr_error').html(wkmpObj.mkt_tr.mkt6);\n\t\t\treturn false;\n\t\t} else {\n\t\t\twkmp('#regl_pr_error').html('');\n\t\t}\n\t});\n\n\t//product sale price validation\n\twkmp('#sale_price').blur(function () {\n\n\t\tvar sale_price = wkmp('#sale_price').val();\n\t\tvar regular = parseFloat(wkmp('#regu_price').val());\n\t\tvar sale = parseFloat(wkmp('#sale_price').val());\n\t\tvar pro_type = wkmp('#product_type');\n\n\t\tif (!product_type) {\n\t\t\tpro_type = wkmp('#product-form').find('input[name=\"product_type\"]').val()\n\t\t}\n\n\t\tif ('' !== wkmp('#sale_price').val() && 'variable' !== pro_type && 'grouped' !== pro_type) {\n\t\t\tif (!wkmp_validate_price(sale_price)) {\n\t\t\t\twkmp('#sale_pr_error').html(wkmpObj.mkt_tr.mkt6);\n\t\t\t\treturn false;\n\t\t\t} else if (sale >= regular) {\n\t\t\t\twkmp('#sale_pr_error').html(wkmpObj.mkt_tr.mkt5);\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\twkmp('#sale_pr_error').html('');\n\t\t\t}\n\t\t}\n\t});\n\n\twkmp(document).on('blur', '.wkmp_variable_sale_price', function () {\n\t\tvar sale_price = wkmp(this).val();\n\t\tvar regular = parseFloat(wkmp(this).parent().siblings().children('.wkmp_variable_regular_price').val());\n\t\tvar sale = parseFloat(wkmp(this).val());\n\t\tif ('' !== wkmp(this).val()) {\n\t\t\tif (!wkmp_validate_price(sale_price)) {\n\t\t\t\twkmp(this).siblings('.sale_pr_error').html(wkmpObj.mkt_tr.mkt6);\n\t\t\t\treturn false;\n\t\t\t} else if (sale >= regular) {\n\t\t\t\twkmp(this).siblings('.sale_pr_error').html(wkmpObj.mkt_tr.mkt5);\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\twkmp('#sale_pr_error').html('');\n\t\t\t}\n\t\t}\n\t});\n\t// product validation end\n\n\twkmp('.woocommerce-MyAccount-navigation-link--separate-dashboard a').on('click', function (eve) {\n\t\teve.preventDefault();\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_change_frontend_seller_dashboard\",\n\t\t\t\t\"change_to\": 'backend_dashboard',\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\tif (data) {\n\t\t\t\t\twindow.location.href = data.redirect;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t});\n\n\t// Shipping related code start here\n\n\twkmp(\".wc-shipping-class-add\").on(\"click\", function (evt) {\n\t\tlet rand_no = '';\n\t\tlet html = '';\n\t\twkmp(\".wc-shipping-class-save\").removeAttr(\"disabled\");\n\t\trand_no = Math.floor((Math.random() * 10000000) + 1);\n\n\t\thtml += '';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '
';\n\t\thtml += 'Edit |';\n\t\thtml += '' + wkmpObj.mkt_tr.ship1 + '';\n\t\thtml += '
';\n\t\thtml += '
';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '' + wkmpObj.mkt_tr.ship3 + '';\n\t\thtml += '
';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '
';\n\t\thtml += '';\n\t\thtml += '';\n\t\thtml += '';\n\t\twkmp(\"table.wc-shipping-classes tbody.wc-shipping-class-rows\").append(html);\n\t\tevt.preventDefault();\n\t});\n\n\twkmp(\".wc-shipping-classes\").on(\"click\", \".wc-shipping-class-name .wc-shipping-class-edit\", function (evt) {\n\n\t\twkmp(\".wc-shipping-class-save\").removeAttr(\"disabled\");\n\t\twkmp(this).closest(\"tr\").find(\".view\").hide();\n\t\twkmp(this).closest(\"tr\").find(\".edit\").show();\n\n\t\tevt.preventDefault();\n\t});\n\n\twkmp(\".wc-shipping-classes\").on(\"click\", \".wc-shipping-class-cancel-edit\", function (evt) {\n\t\twkmp(this).closest(\"tr\").remove();\n\t\tevt.preventDefault();\n\t});\n\n wkmp(\"#ship_data\").submit(function (evt) {\n wkmp('.wkmp-spin-loader').removeClass('wkmp_hide');\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_add_shipping_class\",\n\t\t\t\t\"data\": wkmp(\"#ship_data\").serialize(),\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n success: function (resp) {\n wkmp('.wkmp-spin-loader').addClass('wkmp_hide');\n\t\t\t\twindow.location.href = resp.redirect;\n\t\t\t}\n\t\t});\n\n\t\tevt.preventDefault();\n\t});\n\n\twkmp(\".btn-save-cost\").on(\"click\", function (evt) {\n\t\tlet shipping_cost = wkmp(this).closest(\".shipping-method-add-cost\").find(\"input,select\").serialize();\n let instance_id = wkmp(this).prev().val();\n wkmp('.wkmp-spin-loader').show();\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_save_shipping_cost\",\n\t\t\t\t\"ship_cost\": shipping_cost,\n\t\t\t\t\"instance_id\": instance_id,\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n success: function (data) {\n wkmp('.wkmp-spin-loader').hide();\n\t\t\t\twindow.location.reload();\n\t\t\t}\n\t\t});\n\t\tevt.preventDefault();\n\t});\n\n\t// Delete shipping class.\n\twkmp(\".wk_del_ship_class\").on(\"click\", function (evt) {\n let term_id = wkmp(this).data('term');\n wkmp('.wkmp-spin-loader').removeClass('wkmp_hide');\n\t\twkmp.ajax({\n\t\t\ttype: 'POST',\n\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\tdata: {\n\t\t\t\t\"action\": \"wkmp_delete_shipping_class\",\n\t\t\t\t\"get-term\": term_id,\n\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t},\n success: function (resp) {\n wkmp('.wkmp-spin-loader').removeClass('wkmp_hide');\n window.location.href = resp.redirect;\n\t\t\t}\n\t\t});\n\t\tevt.preventDefault();\n\t});\n\n\twkmp(\".wc-shipping-zones\").on(\"click\", \".wc-shipping-zone-cancel-edit\", function (evt) {\n\t\tvar dynElm = wkmp(this).closest(\"tr.editing\");\n\t\tdynElm.remove();\n\t\tevt.preventDefault();\n\t});\n\n\twkmp(\".wc-shipping-zones\").on(\"click\", \".wc-shipping-zone-postcodes-toggle\", function (evt) {\n\t\twkmp(this).hide();\n\t\twkmp(this).next(\".wc-shipping-zone-postcodes\").css('display', 'block');\n\t\tevt.preventDefault();\n\t});\n\n\t// Show list of countries and states on focus input box\n\twkmp(document).on(\"focusin\", \"#unused_elm\", function () {\n\t\twkmp(this).siblings(\".live-search-list\").slideDown();\n\t});\n\n\t// On click to country or state show it on input box and save it on input type hidden\n\twkmp(document).on(\"click\", \".live-search-list li\", function () {\n\t\twkmp(this).parent(\".live-search-list\").slideUp();\n\t\tvar currentVal = wkmp(this).text().trim();\n\t\tvar searched_term = wkmp(this).data(\"search-term\");\n\t\ttag = wkmp('
' + currentVal + 'x
');\n\t\tif ('' === wkmp(this).parent().prev(\"#mp_set_zone_location\").val()) {\n\t\t\twkmp(this).parent().prev(\"#mp_set_zone_location\").val(wkmp(this).parent().prev(\"#mp_set_zone_location\").val() + searched_term);\n\t\t} else {\n\t\t\twkmp(this).parent().prev(\"#mp_set_zone_location\").val(wkmp(this).parent().prev(\"#mp_set_zone_location\").val() + ',' + searched_term);\n\t\t}\n\n\t\ttag.insertBefore(wkmp(this).parent().siblings(\"#unused_elm\"), wkmp(this).parent().siblings(\"#unused_elm\"));\n\t\twkmp(this).parent().siblings(\"#unused_elm\").val('');\n\t});\n\n\twkmp(document).on('click', '.mp_del_tag', function () {\n\t\tvar searched_term = wkmp(this).parent().data(\"value\");\n\t\tif (searched_term) {\n\t\t\tvar nowReq = wkmp(this).parent().siblings(\"#mp_set_zone_location\").val();\n\t\t\tvar new_term_1 = searched_term + ',';\n\t\t\tvar new_term_2 = ',' + searched_term;\n\t\t\tif (nowReq.indexOf(new_term_1) !== -1) {\n\t\t\t\tvar splitReq = nowReq.replace(searched_term + ',', \"\");\n\t\t\t} else if (nowReq.indexOf(new_term_2) !== -1) {\n\t\t\t\tvar splitReq = nowReq.replace(',' + searched_term, \"\");\n\t\t\t} else {\n\t\t\t\tvar splitReq = nowReq.replace(searched_term, \"\");\n\t\t\t}\n\t\t\twkmp(this).parent().siblings(\"#mp_set_zone_location\").val(splitReq);\n\t\t\twkmp(this).parent().remove();\n\t\t}\n\t});\n\n\t// Limit search country or state result on every charater input\n\twkmp(document).on('keyup', \".live-search-box\", function () {\n\t\tvar searchTerm = wkmp(this).val();\n\t\tvar str = searchTerm.toLowerCase().replace(/\\b[a-z]/g, function (letter) {\n\t\t\treturn letter.toUpperCase();\n\t\t});\n\t\twkmp(this).siblings('.live-search-list').find(\"li\").each(function () {\n\t\t\tif (wkmp(this).is(\":contains(\" + str + \")\") || str.length < 1) {\n\t\t\t\twkmp(this).show();\n\t\t\t} else {\n\t\t\t\twkmp(this).hide();\n\t\t\t}\n\t\t});\n\t});\n\n\t// Add Shipping Method\n\twkmp(\".add-ship-method\").on(\"click\", function () {\n\t\tlet selectedZoneId = '';\n\t\tlet selected_Shipmethod = '';\n\t\tselectedZoneId = wkmp(\"#add_method_id\").data('get-zone');\n\t\tselected_Shipmethod = wkmp(\"#add_method_id\").val();\n\n if (selected_Shipmethod && selectedZoneId) {\n wkmp('.shipping-method-modal .wkmp-spin-loader').show();\n wkmp(this).attr('disabled', 'disabled');\n\t\t\twkmp.ajax({\n\t\t\t\ttype: 'POST',\n\t\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\t\tdata: {\n\t\t\t\t\t\"action\": \"wkmp_add_shipping_method\",\n\t\t\t\t\t\"zone-id\": selectedZoneId,\n\t\t\t\t\t\"ship-method\": selected_Shipmethod,\n\t\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t\t},\n success: function (data) {\n wkmp('.shipping-method-modal .wkmp-spin-loader').hide();\n\t\t\t\t\tif (data) {\n\t\t\t\t\t\tlocation.reload();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\n\t// Delete shipping method_disable\n\twkmp(\".del-ship-method\").on(\"click\", function (ext) {\n\t\tlet meth_id = '';\n\t\tlet zone_id = '';\n\t\tlet instance_id = '';\n\t\tmeth_id = wkmp(this).data('methid');\n\t\tmeth_id = meth_id.split('-');\n\t\tzone_id = meth_id[0];\n\t\tinstance_id = meth_id[1];\n\t\tif (zone_id && instance_id) {\n\t\t\twkmp.ajax({\n\t\t\t\ttype: 'POST',\n\t\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\t\tdata: {\n\t\t\t\t\t\"action\": \"wkmp_delete_shipping_method\",\n\t\t\t\t\t\"zone-id\": zone_id,\n\t\t\t\t\t\"instance-id\": instance_id,\n\t\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t\t},\n\t\t\t\tsuccess: function (data) {\n\t\t\t\t\tif (data) {\n\t\t\t\t\t\text.target.closest('li').remove();\n\t\t\t\t\t}\n\t\t\t\t\t//location.reload();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\n\t// Delete shipping Zones\n\twkmp(\".wc-shipping-zone-delete\").on(\"click\", function (evt) {\n\t\tlet ret_val = '';\n\t\tlet getElm = '';\n\t\tlet del_zone = '';\n\t\tret_val = confirm(wkmpObj.mkt_tr.ship6);\n\t\tif (ret_val) {\n\t\t\tgetElm = wkmp(this);\n\t\t\tif (typeof getElm.data(\"zone-id\") !== 'undefined') {\n\t\t\t\tdel_zone = getElm.data('zone-id');\n if (del_zone) {\n wkmp('.wkmp-spin-loader').removeClass('wkmp_hide');\n\t\t\t\t\twkmp.ajax({\n\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\turl: wkmpObj.ajax.ajaxUrl,\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\"action\": \"wkmp_del_zone\",\n\t\t\t\t\t\t\t\"zone-id\": del_zone,\n\t\t\t\t\t\t\t\"wkmp_nonce\": wkmpObj.ajax.ajaxNonce\n\t\t\t\t\t\t},\n success: function (resp) {\n wkmp('.wkmp-spin-loader').addClass('wkmp_hide');\n window.location.href = resp.redirect;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tevt.preventDefault();\n\t\t}\n\t});\n\t// Shipping related code end here\n\n\twkmp(\"#wkmp-submit-ask-form\").on('click', function (event) {\n\t\tevent.preventDefault();\n\n\t\twkmp('#wkmp-subject-error').text('');\n\t\twkmp('#wkmp-message-error').text('');\n\n\t\tlet subject = '';\n\t\tlet message = '';\n\t\tlet status = true;\n\n\t\tsubject = wkmp('#wkmp-subject').val();\n\t\tmessage = wkmp('#wkmp-message').val();\n\n\t\tif (subject.length < 3 || subject.length > 50) {\n\t\t\tstatus = false;\n\t\t\twkmp('#wkmp-subject-error').text(wkmpObj.mkt_tr.mkt40);\n\t\t}\n\n\t\tif (message.length < 5 || message.length > 255) {\n\t\t\tstatus = false;\n\t\t\twkmp('#wkmp-message-error').text(wkmpObj.mkt_tr.mkt41);\n\t\t}\n\n\t\tif (status) {\n\t\t\tif (wkmp('#wkmp-seller-sendmail-form').length > 0) {\n\t\t\t\twkmp('#wkmp-seller-sendmail-form').submit();\n\t\t\t}\n\n\t\t\tif (wkmp('#wkmp-seller-query-form').length > 0) {\n\t\t\t\twkmp('#wkmp-seller-query-form').submit();\n\t\t\t}\n\t\t}\n\n\t});\n\n\twkmp(document).on('click', 'a.upload_var_image_button', function (event) {\n\t\tvar file_frame;\n\t\tvar image_id = wkmp(this).attr('id');\n\t\tvar image_val_id = 'upload_' + image_id;\n\t\tvar image_url_set_id = 'wkmp_variation_product_' + image_id;\n\t\tevent.preventDefault(); // If the media frame already exists, reopen it.\n\n\t\tif (file_frame) {\n\t\t\tfile_frame.open();\n\t\t\treturn;\n\t\t} // Create the media frame.\n\n\t\tlet selection = '';\n\n\n\t\tfile_frame = wp.media.frames.file_frame = wp.media({\n\t\t\ttitle: wkmp(this).data('uploader_title'),\n\t\t\tbutton: {\n\t\t\t\ttext: wkmp(this).data('uploader_button_text')\n\t\t\t},\n\t\t\tmultiple: false // Set to true to allow multiple files to be selected\n\n\t\t}); // When frame is open, select existing image attachments from custom field\n\n\t\tfile_frame.on('open', function () {\n\t\t\tselection = file_frame.state().get('selection');\n\t\t});\n\t\tvar query = wp.media.query();\n\n\t\tquery.filterWithIds = function (ids) {\n\t\t\treturn _(this.models.filter(function (c) {\n\t\t\t\treturn _.contains(ids, c.id);\n\t\t\t}));\n\t\t}; // When images are selected, place IDs in hidden custom field and show thumbnails.\n\n\n\t\tfile_frame.on('select', function () {\n\t\t\tselection = file_frame.state().get('selection'); // Place IDs in custom field\n\n\t\t\tvar attachment_ids = selection.map(function (attachment) {\n\t\t\t\tattachment = attachment.toJSON();\n\t\t\t\twkmp('#' + image_val_id).val(attachment.id);\n\t\t\t\twkmp('#' + image_url_set_id).attr(\"src\", attachment.sizes.thumbnail.url);\n\t\t\t\treturn attachment.id;\n\t\t\t});\n\t\t}); // Finally, open the modal\n\n\t\tfile_frame.open();\n\t});\n\n\t//Woodmart theme compatibility to remove anti-spam field from woocommerce my-account page registration field.\n\twkmp(document).ready(function (event) {\n\t\tif (wkmp('.wd-login-title').length > 0 && wkmp('.nav.wkmp-role-selector').length > 0) {\n\t\t\twkmp('input[name=email_2][id=trap]').parent().empty();\n\t\t}\n\t});\n\n\t/* Show sale schedule */\n\twkmp(document).on(\"click\", '.mp_sale_schedule', function () {\n\t\twkmp(this).css('display', 'none');\n\t\twkmp(this).siblings('.mp_cancel_sale_schedule').css('display', 'inline-block');\n\t\twkmp(this).parents('tr').siblings('.mp_sale_price_dates_fields').css('display', 'table-row');\n\t});\n\twkmp(document).on(\"click\", '.mp_cancel_sale_schedule', function () {\n\t\twkmp(this).css('display', 'none');\n\t\twkmp(this).siblings('.mp_sale_schedule').css('display', 'inline-block');\n\t\twkmp(this).parents('tr').siblings('.mp_sale_price_dates_fields').css('display', 'none');\n\t});\n\n\t//Minimum order setting popup from seller front end.\n\twkmp('body').on('click', '#wkmp_product_misc_settings', function () {\n\t\twkmp('#wkmp_minimum_order_model').css('display', 'block');\n\t});\n\n\t/** Submitting minimum order form. **/\n\twkmp(\"#wkmp-submit-min-order-amount-update\").on('click', function (event) {\n\t\tevent.preventDefault();\n\n\t\tlet status = true;\n\t\tlet amount_input = wkmp('input[name=_wkmp_minimum_order_amount]');\n\t\tlet amount = wkmp(amount_input).val().trim();\n\t\tlet empty_amount_allow = parseInt(wkmp(amount_input).attr('data-empty_allow'));\n\n\t\tif (empty_amount_allow < 1 && (isNaN(amount) || (!isNaN(amount) && !(amount > 0)))) {\n\t\t\tstatus = false;\n\t\t\twkmp('#wkmp-amount-error').text(wkmpObj.mkt_tr.mkt42);\n\t\t}\n\n\t\tlet qty_input = wkmp('input[name=_wkmp_max_product_qty_limit]');\n\t\tlet qty = wkmp(qty_input).val();\n\t\tlet empty_qty_allow = parseInt(wkmp(qty_input).attr('data-empty_allow'));\n\n\t\tif (empty_qty_allow < 1 && (isNaN(qty) || (!isNaN(qty) && !(qty > 0) || (!isNaN(qty) && !(isNormalInteger(qty)))))) {\n\t\t\tstatus = false;\n\t\t\twkmp('#wkmp-max-qty-limit-error').text(wkmpObj.mkt_tr.mkt47);\n\t\t}\n\n\t\tif (status) {\n\t\t\twkmp('#wkmp-amount-error').text('');\n\t\t\twkmp('#wkmp-max-qty-limit-error').text('');\n\t\t\twkmp('form#wkmp-seller-min-order-amount-form').submit();\n\t\t}\n\t});\n\n\tfunction isNormalInteger(str) {\n\t\tstr = str.trim();\n\t\tif (!str) {\n\t\t\treturn false;\n\t\t}\n\t\tstr = str.replace(/^0+/, \"\") || \"0\";\n\t\tvar n = Math.floor(Number(str));\n\t\treturn n !== Infinity && String(n) === str && n >= 0;\n }\n\n function wkmp_validate_price(price) {\n let valid = false;\n\n if ('' !== price) {\n let separator = wkmpObj.mkt_tr.decimal_separator;\n let regex = new RegExp('[^\\-0-9\\%\\\\' + separator + ']+', 'gi');\n let decimalRegex = new RegExp('[^\\\\' + separator + ']', 'gi');\n\n var new_price = price.replace(regex, '');\n\n // Check if new value have more than one decimal point.\n\t\t\tif ( 1 < new_price.replace( decimalRegex, '' ).length ) {\n\t\t\t\tnew_price = new_price.replace( decimalRegex, '' );\n }\n\n if (price === new_price) {\n valid = true;\n }\n }\n return valid;\n }\n\n\t// Clearing min order amount from seller miscellaneous settings click.\n\twkmp('#wkmp_clear_min_order_amount').on('click', function () {\n\t\tlet amount_input = wkmp('input[name=_wkmp_minimum_order_amount]');\n\t\tlet data_empty_allow = parseInt(wkmp(amount_input).attr('data-empty_allow'));\n\t\tif (data_empty_allow > 0) {\n\t\t\twkmp(amount_input).attr('data-empty_allow', 0).attr('readOnly', false).attr('placeholder', wkmpObj.mkt_tr.mkt43);\n\t\t\twkmp(this).text(wkmpObj.mkt_tr.mkt44);\n\t\t} else {\n\t\t\twkmp(amount_input).attr('data-empty_allow', 1).val('').attr('readOnly', true).attr('placeholder', wkmpObj.mkt_tr.mkt45);\n\t\t\twkmp(this).text(wkmpObj.mkt_tr.mkt46);\n\t\t\twkmp('#wkmp-amount-error').text('');\n\t\t}\n\t});\n\n\t// Clearing maximum quantity from seller miscellaneous settings click.\n\twkmp('#wkmp_clear_max_qty_limit').on('click', function () {\n\t\tlet qty_input = wkmp('input[name=_wkmp_max_product_qty_limit]');\n\t\tlet empty_qty_allow = parseInt(wkmp(qty_input).attr('data-empty_allow'));\n\t\tif (empty_qty_allow > 0) {\n\t\t\twkmp(qty_input).attr('data-empty_allow', 0).attr('readOnly', false).attr('placeholder', wkmpObj.mkt_tr.mkt48);\n\t\t\twkmp(this).text(wkmpObj.mkt_tr.mkt44);\n\t\t} else {\n\t\t\twkmp(qty_input).attr('data-empty_allow', 1).val('').attr('readOnly', true).attr('placeholder', wkmpObj.mkt_tr.mkt45);\n\t\t\twkmp(this).text(wkmpObj.mkt_tr.mkt46);\n\t\t\twkmp('#wkmp-max-qty-limit-error').text('');\n\t\t}\n\t});\n\n\t/** Hiding max purchasable quantity if sold individually is enabled. **/\n\twkmp('#wk_sold_individual').on('click', function () {\n\t\tif (wkmp(this).is(':checked')) {\n\t\t\twkmp('.wkmp-max-product-qty-limit').hide();\n\t\t} else {\n\t\t\twkmp('.wkmp-max-product-qty-limit').show();\n\t\t}\n });\n\n //Delete seller product - 5.2.0(21-12-28)\n wkmp('.wkmp_delete_seller_product').on('click', function () {\n let del_confirm_val = confirm(wkmpObj.mkt_tr.fajax0);\n if (del_confirm_val) {\n let del_link = wkmp(this);\n let product_id = del_link.data('product_id');\n wkmp('.wkmp-ajax-loader').removeClass('wkmp_hide');\n \twkmp.ajax({\n \t\t\ttype: 'POST',\n \t\t\turl: wkmpObj.ajax.ajaxUrl,\n \t\t\tdata: {\n \t\t\t\taction: \"wkmp_delete_seller_product\",\n \t\t\t\tproduct_id: product_id,\n \t\t\t\twkmp_nonce: wkmpObj.ajax.ajaxNonce,\n \t\t\t},\n success: function (response) {\n if (true === response.success) {\n wkmp(del_link).closest('tr').remove();\n wkmp('.wkmp-ajax-loader').html('

' + response.message + '

');\n window.location.reload();\n } else {\n wkmp('.wkmp-ajax-loader').html('

'+response.message+'

');\n }\n setTimeout(function () {\n wkmp('.wkmp-ajax-loader').addClass('wkmp_hide');\n },2000);\n \t\t\t}\n \t\t});\n }\n });\n\n if ( window.history.replaceState ) {\n\t\twindow.history.replaceState( null, null, window.location.href );\n\t}\n\n});\n"],"names":["wkmp","jQuery","noConflict","document","addEventListener","length","select2","window","on","css","wp","hasOwnProperty","media","model","settings","post","id","attr","is","parent","event","stopPropagation","target","hasClass","toggle","toggleClass","removeClass","feedType","data","$star","$rating","closest","siblings","$container","val","addClass","e","thisElm","children","prop","slideDown","find","removeAttr","slideUp","next","remove","value","toLowerCase","replace","self","shop_slug","ajax","type","url","wkmpObj","ajaxUrl","action","wkmp_nonce","ajaxNonce","success","response","error","text","message","role","form","errorDiv","template","each","i","elm","parents","preventDefault","after","pid","product","beforeSend","append","trigger","reader","FileReader","onload","result","readAsDataURL","files","img","form_id","flag","confirm","submit","alert","customer_ids","push","shift","seller_id","customer_id","json","html","setTimeout","curr_obj","rate","evt","scrollTop","code","country_code","replaceWith","file_path_field","file_frame","$el","open","frames","title","button","multiple","selection","state","get","query","filterWithIds","ids","_","models","filter","c","contains","res","v","console","log","toJSON","file_path","attachment_ids","map","attachment","change","refundTotal","querySelectorAll","forEach","input","qty","checked","previousElementSibling","querySelector","Math","round","status","mkt_tr","mkt28","hide","product_type","var_type","eq","show","str","newUrl","location","href","slideToggle","image_id","image_id_field","galary_ids","typeError","undefined","sizes","thumbnail","activeproducttab","activeproducttabvalue","fadeIn","click","t","wrapper","add_button","attribute_no","x","mkt29","mkt30","mkt31","mkt32","mkt33","mkt34","var_att_id","msg","del_id","file_type_id","trigger_id","text_box_file_url","handleFileSelect","empty","f","match","theFile","div","createElement","innerHTML","escape","name","join","getElementById","insertBefore","wk_imgview","mouseover","display","mouseout","handleFilegalaray","var_did","variation_count","appendTo","product_name","trim_wkmp_value","product_sku","regu_price","mkt2","mkt3","pro_type","wkmp_validate_price","mkt6","sale_price","regular","parseFloat","sale","mkt5","wkmp_variable_sku","this_sel","item","trim","ps","blur","product_sku_validation","argument","reg_sku","test","dataType","variation_sku_validation","argument1","argument2","mkt4","no","isNumeric","mkt7","no_int","stock","a","ck_name","mkt8","eve","redirect","rand_no","floor","random","ship1","ship2","ship3","ship4","ship5","serialize","resp","shipping_cost","instance_id","prev","reload","term_id","dynElm","currentVal","searched_term","tag","nowReq","new_term_1","new_term_2","indexOf","splitReq","searchTerm","letter","toUpperCase","selectedZoneId","selected_Shipmethod","ext","meth_id","zone_id","split","ret_val","getElm","del_zone","ship6","subject","mkt40","mkt41","image_val_id","image_url_set_id","ready","amount_input","amount","empty_amount_allow","parseInt","isNaN","mkt42","qty_input","empty_qty_allow","isNormalInteger","mkt47","n","Number","Infinity","String","price","valid","separator","decimal_separator","regex","RegExp","decimalRegex","new_price","data_empty_allow","mkt43","mkt44","mkt45","mkt46","mkt48","del_confirm_val","fajax0","del_link","product_id","history","replaceState"],"sourceRoot":""}