Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ var __webpack_exports__={};jQuery((function(t){t(document).ajaxSuccess((function(a,e,i){if("string"==typeof i.data){var o=wpAjax.unserialize(i.data);void 0!==o.action&&"post_lang_choice"===o.action&&void 0!==o.post_type&&"product"===o.post_type&&void 0!==o.lang&&void 0!==(o.post_id&&void 0!==o._pll_nonce)&&function(a,e,i){var o=new Array;if(t('input[name*="attribute_names"]').each((function(){var a=t(this).attr("name");n=a.substring(16,a.length-1),o[n]=t(this).val()})),o.length){var s={action:"product_lang_choice",lang:e,post_id:a,attributes:o,_pll_nonce:i};t.post(ajaxurl,s,(function(a){var n=wpAjax.parseAjaxResponse(a,"pll-ajax-response");t.each(n.responses,(function(){if("attributes"===this.what)t.each(this.supplemental,(function(a,n){t('select[name="attribute_values['+a.substring(6)+'][]"]').html(n).trigger("change")}))}))}))}}(o.post_id,o.lang,o._pll_nonce)}}))}));