diff --git a/assets/js/accounting/accounting.min.js b/assets/js/accounting/accounting.min.js index 168a2796e54..3067cfb5e5e 100644 --- a/assets/js/accounting/accounting.min.js +++ b/assets/js/accounting/accounting.min.js @@ -8,4 +8,4 @@ * Full details and documentation: * http://openexchangerates.github.io/accounting.js/ */ -!function(a,b){function c(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function d(a){return l?l(a):"[object Array]"===m.call(a)}function e(a){return a&&"[object Object]"===m.call(a)}function f(a,b){var c;a=a||{},b=b||{};for(c in b)b.hasOwnProperty(c)&&null==a[c]&&(a[c]=b[c]);return a}function g(a,b,c){var d,e,f=[];if(!a)return f;if(k&&a.map===k)return a.map(b,c);for(d=0,e=a.length;e>d;d++)f[d]=b.call(c,a[d],d,a);return f}function h(a,b){return a=Math.round(Math.abs(a)),isNaN(a)?b:a}function i(a){var b=j.settings.currency.format;return"function"==typeof a&&(a=a()),c(a)&&a.match("%v")?{pos:a,neg:a.replace("-","").replace("%v","-%v"),zero:a}:a&&a.pos&&a.pos.match("%v")?a:c(b)?j.settings.currency.format={pos:b,neg:b.replace("%v","-%v"),zero:b}:b}var j={};j.version="0.4.1",j.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var k=Array.prototype.map,l=Array.isArray,m=Object.prototype.toString,n=j.unformat=j.parse=function(a,b){if(d(a))return g(a,function(a){return n(a,b)});if(a=a||0,"number"==typeof a)return a;b=b||j.settings.number.decimal;var c=new RegExp("[^0-9-"+b+"]",["g"]),e=parseFloat((""+a).replace(/\((.*)\)/,"-$1").replace(c,"").replace(b,"."));return isNaN(e)?0:e},o=j.toFixed=function(a,b){b=h(b,j.settings.number.precision);var c=Math.pow(10,b);return(Math.round(j.unformat(a)*c)/c).toFixed(b)},p=j.formatNumber=j.format=function(a,b,c,i){if(d(a))return g(a,function(a){return p(a,b,c,i)});a=n(a);var k=f(e(b)?b:{precision:b,thousand:c,decimal:i},j.settings.number),l=h(k.precision),m=0>a?"-":"",q=parseInt(o(Math.abs(a||0),l),10)+"",r=q.length>3?q.length%3:0;return m+(r?q.substr(0,r)+k.thousand:"")+q.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+k.thousand)+(l?k.decimal+o(Math.abs(a),l).split(".")[1]:"")},q=j.formatMoney=function(a,b,c,k,l,m){if(d(a))return g(a,function(a){return q(a,b,c,k,l,m)});a=n(a);var o=f(e(b)?b:{symbol:b,precision:c,thousand:k,decimal:l,format:m},j.settings.currency),r=i(o.format),s=a>0?r.pos:0>a?r.neg:r.zero;return s.replace("%s",o.symbol).replace("%v",p(Math.abs(a),h(o.precision),o.thousand,o.decimal))};j.formatColumn=function(a,b,k,l,m,o){if(!a)return[];var q=f(e(b)?b:{symbol:b,precision:k,thousand:l,decimal:m,format:o},j.settings.currency),r=i(q.format),s=r.pos.indexOf("%s")0?r.pos:0>a?r.neg:r.zero,e=c.replace("%s",q.symbol).replace("%v",p(Math.abs(a),h(q.precision),q.thousand,q.decimal));return e.length>t&&(t=e.length),e});return g(u,function(a,b){return c(a)&&a.length3?q.length%3:0;return m+(r?q.substr(0,r)+k.thousand:"")+q.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+k.thousand)+(l?k.decimal+o(Math.abs(a),l).split(".")[1]:"")},q=j.formatMoney=function(a,b,c,k,l,m){if(d(a))return g(a,function(a){return q(a,b,c,k,l,m)});a=n(a);var o=f(e(b)?b:{symbol:b,precision:c,thousand:k,decimal:l,format:m},j.settings.currency),r=i(o.format),s=a>0?r.pos:a<0?r.neg:r.zero;return s.replace("%s",o.symbol).replace("%v",p(Math.abs(a),h(o.precision),o.thousand,o.decimal))};j.formatColumn=function(a,b,k,l,m,o){if(!a)return[];var q=f(e(b)?b:{symbol:b,precision:k,thousand:l,decimal:m,format:o},j.settings.currency),r=i(q.format),s=r.pos.indexOf("%s")0?r.pos:a<0?r.neg:r.zero,e=c.replace("%s",q.symbol).replace("%v",p(Math.abs(a),h(q.precision),q.thousand,q.decimal));return e.length>t&&(t=e.length),e});return g(u,function(a,b){return c(a)&&a.length');else{var m=a(''),n=b.states[f];m.append(a('")),a.each(n,function(b){m.append(a('"))}),m.val(k),g.replaceWith(m),m.show().select2().hide().change()}a(document.body).trigger("contry-change.woocommerce",[f,a(this).closest("div")]),a(document.body).trigger("country-change.woocommerce",[f,a(this).closest("div")])}},change_state:function(){var b=a(this),c=b.val(),d=b.parents("div.edit_address").find(":input.js_field-country"),e=d.val();d.data("woocommerce.stickState-"+e,c)},init_tiptip:function(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})},edit_address:function(b){b.preventDefault(),a(this).hide(),a(this).parent().find("a:not(.edit_address)").show(),a(this).closest(".order_data_column").find("div.address").hide(),a(this).closest(".order_data_column").find("div.edit_address").show()},change_customer_user:function(){a("#_billing_country").val()||(a("a.edit_address").click(),b.load_billing(!0),b.load_shipping(!0))},load_billing:function(b){if(!0===b||window.confirm(woocommerce_admin_meta_boxes.load_billing)){var c=a("#customer_user").val();if(!c)return window.alert(woocommerce_admin_meta_boxes.no_customer_selected),!1;var d={user_id:c,type_to_load:"billing",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};a(this).closest("div.edit_address").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(b){b&&a.each(b,function(b,c){a(":input#_"+b).val(c).change()}),a("div.edit_address").unblock()}})}return!1},load_shipping:function(b){if(!0===b||window.confirm(woocommerce_admin_meta_boxes.load_shipping)){var c=a("#customer_user").val();if(!c)return window.alert(woocommerce_admin_meta_boxes.no_customer_selected),!1;var d={user_id:c,type_to_load:"shipping",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};a(this).closest("div.edit_address").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(b){b&&a.each(b,function(b,c){a(":input#_"+b).val(c).change()}),a("div.edit_address").unblock()}})}return!1},copy_billing_to_shipping:function(){return window.confirm(woocommerce_admin_meta_boxes.copy_billing)&&a('.order_data_column :input[name^="_billing_"]').each(function(){var b=a(this).attr("name");b=b.replace("_billing_","_shipping_"),a(":input#"+b).val(a(this).val()).change()}),!1}},c={init:function(){this.stupidtable.init(),a("#woocommerce-order-items").on("click","button.add-line-item",this.add_line_item).on("click","button.refund-items",this.refund_items).on("click",".cancel-action",this.cancel).on("click","button.add-order-item",this.add_item).on("click","button.add-order-fee",this.add_fee).on("click","button.add-order-shipping",this.add_shipping).on("click","button.add-order-tax",this.add_tax).on("click","button.calculate-action",this.calculate_totals).on("click","button.save-action",this.save_line_items).on("click","a.delete-order-tax",this.delete_tax).on("click","button.calculate-tax-action",this.calculate_tax).on("click","a.edit-order-item",this.edit_item).on("click","a.delete-order-item",this.delete_item).on("click","tr.item, tr.fee, tr.shipping, tr.refund",this.select_row).on("click","tr.item :input, tr.fee :input, tr.shipping :input, tr.refund :input, tr.item a, tr.fee a, tr.shipping a, tr.refund a",this.select_row_child).on("click","button.bulk-delete-items",this.bulk_actions.do_delete).on("click","button.bulk-increase-stock",this.bulk_actions.do_increase_stock).on("click","button.bulk-decrease-stock",this.bulk_actions.do_reduce_stock).on("click",".delete_refund",this.refunds.delete_refund).on("click","button.do-api-refund, button.do-manual-refund",this.refunds.do_refund).on("change",".refund input.refund_line_total, .refund input.refund_line_tax",this.refunds.input_changed).on("change keyup",".wc-order-refund-items #refund_amount",this.refunds.amount_changed).on("change","input.refund_order_item_qty",this.refunds.refund_quantity_changed).on("change","input.quantity",this.quantity_changed).on("keyup change",".split-input :input",function(){var b=a(this).parent().prev().find(":input");b&&(""===b.val()||b.is(".match-total"))&&b.val(a(this).val()).addClass("match-total")}).on("keyup",".split-input :input",function(){a(this).removeClass("match-total")}).on("click","button.add_order_item_meta",this.item_meta.add).on("click","button.remove_order_item_meta",this.item_meta.remove),a(document.body).on("wc_backbone_modal_loaded",this.backbone.init).on("wc_backbone_modal_response",this.backbone.response)},block:function(){a("#woocommerce-order-items").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a("#woocommerce-order-items").unblock()},reload_items:function(){var d={order_id:woocommerce_admin_meta_boxes.post_id,action:"woocommerce_load_order_items",security:woocommerce_admin_meta_boxes.order_item_nonce};c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})},quantity_changed:function(){var b=a(this).closest("tr.item"),c=a(this).val(),d=a(this).attr("data-qty"),e=a("input.line_total",b),f=a("input.line_subtotal",b),g=accounting.unformat(e.attr("data-total"),woocommerce_admin.mon_decimal_point)/d;e.val(parseFloat(accounting.formatNumber(g*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point));var h=accounting.unformat(f.attr("data-subtotal"),woocommerce_admin.mon_decimal_point)/d;f.val(parseFloat(accounting.formatNumber(h*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point)),a("input.line_tax",b).each(function(){var e=a(this),f=e.data("tax_id"),g=accounting.unformat(e.attr("data-total_tax"),woocommerce_admin.mon_decimal_point)/d,h=a('input.line_subtotal_tax[data-tax_id="'+f+'"]',b),i=accounting.unformat(h.attr("data-subtotal_tax"),woocommerce_admin.mon_decimal_point)/d;g>0&&e.val(parseFloat(accounting.formatNumber(g*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point)),i>0&&h.val(parseFloat(accounting.formatNumber(i*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point))}),a(this).trigger("quantity_changed")},add_line_item:function(){return a("div.wc-order-add-item").slideDown(),a("div.wc-order-data-row-toggle").not("div.wc-order-add-item").slideUp(),!1},refund_items:function(){return a("div.wc-order-refund-items").slideDown(),a("div.wc-order-data-row-toggle").not("div.wc-order-refund-items").slideUp(),a("div.wc-order-totals-items").slideUp(),a("#woocommerce-order-items").find("div.refund").show(),a(".wc-order-edit-line-item .wc-order-edit-line-item-actions").hide(),!1},cancel:function(){return a("div.wc-order-data-row-toggle").not("div.wc-order-bulk-actions").slideUp(),a("div.wc-order-bulk-actions").slideDown(),a("div.wc-order-totals-items").slideDown(),a("#woocommerce-order-items").find("div.refund").hide(),a(".wc-order-edit-line-item .wc-order-edit-line-item-actions").show(),"true"===a(this).attr("data-reload")&&c.reload_items(),!1},add_item:function(){return a(this).WCBackboneModal({template:"wc-modal-add-products"}),!1},add_fee:function(){c.block();var b={action:"woocommerce_add_order_fee",order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("table.woocommerce_order_items tbody#order_fee_line_items").append(b),c.unblock()}),!1},add_shipping:function(){c.block();var b={action:"woocommerce_add_order_shipping",order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("table.woocommerce_order_items tbody#order_shipping_line_items").append(b),c.unblock()}),!1},add_tax:function(){return a(this).WCBackboneModal({template:"wc-modal-add-tax"}),!1},edit_item:function(){return a(this).closest("tr").find(".view").hide(),a(this).closest("tr").find(".edit").show(),a(this).hide(),a("button.add-line-item").click(),a("button.cancel-action").attr("data-reload",!0),!1},delete_item:function(){var b=window.confirm(woocommerce_admin_meta_boxes.remove_item_notice);if(b){var d=a(this).closest("tr.item, tr.fee, tr.shipping"),e=d.attr("data-order_item_id");c.block();var f={order_item_ids:e,action:"woocommerce_remove_order_item",security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:f,type:"POST",success:function(){d.remove(),c.unblock()}})}return!1},delete_tax:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_delete_tax)){c.block();var d={action:"woocommerce_remove_order_tax",rate_id:a(this).attr("data-rate_id"),order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})}return!1},calculate_tax:function(){if(window.confirm(woocommerce_admin_meta_boxes.calc_line_taxes)){c.block();var d="",e="",f="",g="";"shipping"===woocommerce_admin_meta_boxes.tax_based_on&&(d=a("#_shipping_country").val(),e=a("#_shipping_state").val(),f=a("#_shipping_postcode").val(),g=a("#_shipping_city").val()),"billing"!==woocommerce_admin_meta_boxes.tax_based_on&&d||(d=a("#_billing_country").val(),e=a("#_billing_state").val(),f=a("#_billing_postcode").val(),g=a("#_billing_city").val());var h={action:"woocommerce_calc_line_taxes",order_id:woocommerce_admin_meta_boxes.post_id,items:a("table.woocommerce_order_items :input[name], .wc-order-totals-items :input[name]").serialize(),country:d,state:e,postcode:f,city:g,security:woocommerce_admin_meta_boxes.calc_totals_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:h,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})}return!1},calculate_totals:function(){if(window.confirm(woocommerce_admin_meta_boxes.calc_totals)){c.block();var b=0,d=0,e=0;a(".woocommerce_order_items tr.shipping input.line_total").each(function(){var b=a(this).val()||"0";b=accounting.unformat(b,woocommerce_admin.mon_decimal_point),e+=parseFloat(b)}),a(".woocommerce_order_items input.line_tax").each(function(){var b=a(this).val()||"0";b=accounting.unformat(b,woocommerce_admin.mon_decimal_point),d+=parseFloat(b)}),a(".woocommerce_order_items tr.item, .woocommerce_order_items tr.fee").each(function(){var c=a(this).find("input.line_total").val()||"0";b+=accounting.unformat(c.replace(",","."))}),"yes"===woocommerce_admin_meta_boxes.round_at_subtotal&&(d=parseFloat(accounting.toFixed(d,woocommerce_admin_meta_boxes.rounding_precision))),a("#_order_total").val(accounting.formatNumber(b+d+e,woocommerce_admin_meta_boxes.currency_format_num_decimals,"",woocommerce_admin.mon_decimal_point)).change(),a("button.save-action").click()}return!1},save_line_items:function(){var d={order_id:woocommerce_admin_meta_boxes.post_id,items:a("table.woocommerce_order_items :input[name], .wc-order-totals-items :input[name]").serialize(),action:"woocommerce_save_order_items",security:woocommerce_admin_meta_boxes.order_item_nonce};return c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}}),a(this).trigger("items_saved"),!1},refunds:{do_refund:function(){if(c.block(),window.confirm(woocommerce_admin_meta_boxes.i18n_do_refund)){var b=a("input#refund_amount").val(),d=a("input#refund_reason").val(),e={},f={},g={};a(".refund input.refund_order_item_qty").each(function(b,c){a(c).closest("tr").data("order_item_id")&&c.value&&(e[a(c).closest("tr").data("order_item_id")]=c.value)}),a(".refund input.refund_line_total").each(function(b,c){a(c).closest("tr").data("order_item_id")&&(f[a(c).closest("tr").data("order_item_id")]=accounting.unformat(c.value,woocommerce_admin.mon_decimal_point))}),a(".refund input.refund_line_tax").each(function(b,c){if(a(c).closest("tr").data("order_item_id")){var d=a(c).data("tax_id");g[a(c).closest("tr").data("order_item_id")]||(g[a(c).closest("tr").data("order_item_id")]={}),g[a(c).closest("tr").data("order_item_id")][d]=accounting.unformat(c.value,woocommerce_admin.mon_decimal_point)}});var h={action:"woocommerce_refund_line_items",order_id:woocommerce_admin_meta_boxes.post_id,refund_amount:b,refund_reason:d,line_item_qtys:JSON.stringify(e,null,""),line_item_totals:JSON.stringify(f,null,""),line_item_tax_totals:JSON.stringify(g,null,""),api_refund:a(this).is(".do-api-refund"),restock_refunded_items:a("#restock_refunded_items:checked").length?"true":"false",security:woocommerce_admin_meta_boxes.order_item_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,h,function(a){!0===a.success?(c.reload_items(),"fully_refunded"===a.data.status&&(window.location.href=window.location.href)):(window.alert(a.data.error),c.unblock())})}else c.unblock()},delete_refund:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_delete_refund)){var b=a(this).closest("tr.refund"),d=b.attr("data-order_refund_id");c.block();var e={action:"woocommerce_delete_refund",refund_id:d,security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:e,type:"POST",success:function(){c.reload_items()}})}return!1},input_changed:function(){var b=0,c=a(".woocommerce_order_items").find("tr.item, tr.fee, tr.shipping");c.each(function(){var c=a(this),d=c.find(".refund input:not(.refund_order_item_qty)");d.each(function(c,d){b+=parseFloat(accounting.unformat(a(d).val()||0,woocommerce_admin.mon_decimal_point))})}),a("#refund_amount").val(accounting.formatNumber(b,woocommerce_admin_meta_boxes.currency_format_num_decimals,"",woocommerce_admin.mon_decimal_point)).change()},amount_changed:function(){var b=accounting.unformat(a(this).val(),woocommerce_admin.mon_decimal_point);a("button .wc-order-refund-amount .amount").text(accounting.formatMoney(b,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format}))},refund_quantity_changed:function(){var b=a(this).closest("tr.item"),c=b.find("input.quantity").val(),d=a(this).val(),e=a("input.line_total",b),f=a("input.refund_line_total",b),g=accounting.unformat(e.attr("data-total"),woocommerce_admin.mon_decimal_point)/c;f.val(parseFloat(accounting.formatNumber(g*d,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point)).change(),a(".refund_line_tax",b).each(function(){var e=a(this),f=e.data("tax_id"),g=a('input.line_tax[data-tax_id="'+f+'"]',b),h=accounting.unformat(g.data("total_tax"),woocommerce_admin.mon_decimal_point)/c;h>0?e.val(parseFloat(accounting.formatNumber(h*d,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point)).change():e.val(0).change()}),d>0?a("#restock_refunded_items").closest("tr").show():(a("#restock_refunded_items").closest("tr").hide(),a(".woocommerce_order_items input.refund_order_item_qty").each(function(){a(this).val()>0&&a("#restock_refunded_items").closest("tr").show()})),a(this).trigger("refund_quantity_changed")}},item_meta:{add:function(){var b=a(this),d=b.closest("tr.item, tr.shipping"),e={order_item_id:d.attr("data-order_item_id"),action:"woocommerce_add_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};return c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:e,type:"POST",success:function(a){d.find("tbody.meta_items").append(a),c.unblock()}}),!1},remove:function(){if(window.confirm(woocommerce_admin_meta_boxes.remove_item_meta)){var b=a(this).closest("tr"),d={meta_id:b.attr("data-meta_id"),action:"woocommerce_remove_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(){b.remove(),c.unblock()}})}return!1}},select_row:function(){var b=!1;b=a(this).is("tr")?a(this):a(this).closest("tr");var c=a(this).closest("table");b.is(".selected")?b.removeClass("selected"):b.addClass("selected");var d=c.find("tr.selected");if(d.length){a("div.wc-order-item-bulk-edit").slideDown();var e=!1;d.each(function(){a(this).is("tr.item")&&(e=!0)}),e?a(".bulk-increase-stock, .bulk-decrease-stock").show():a(".bulk-increase-stock, .bulk-decrease-stock").hide()}else a("div.wc-order-item-bulk-edit").slideUp()},select_row_child:function(a){a.stopPropagation()},bulk_actions:{do_delete:function(b){b.preventDefault();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected");if(e.length&&window.confirm(woocommerce_admin_meta_boxes.remove_item_notice)){c.block();var f=[],g=[],h=[];a.map(e,function(b){var c=a(b);c.is(".refund")?g.push(parseInt(a(c).data("order_refund_id"),10)):f.push(parseInt(a(c).data("order_item_id"),10))}),f.length&&h.push(a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:{order_item_ids:f,action:"woocommerce_remove_order_item",security:woocommerce_admin_meta_boxes.order_item_nonce},type:"POST"})),g.length&&h.push(a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:{action:"woocommerce_delete_refund",refund_id:g,security:woocommerce_admin_meta_boxes.order_item_nonce},type:"POST"})),h?a.when.apply(a,h).done(function(){c.reload_items(),c.unblock()}):c.unblock()}},do_increase_stock:function(b){b.preventDefault(),c.block();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected"),f={},g=a.map(e,function(b){return parseInt(a(b).data("order_item_id"),10)});e.each(function(){a(this).find("input.quantity").length&&(f[a(this).attr("data-order_item_id")]=a(this).find("input.quantity").val())});var h={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:g,order_item_qty:f,action:"woocommerce_increase_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:h,type:"POST",success:function(a){window.alert(a),c.unblock()}})},do_reduce_stock:function(b){b.preventDefault(),c.block();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected"),f={},g=a.map(e,function(b){return parseInt(a(b).data("order_item_id"),10)});e.each(function(){a(this).find("input.quantity").length&&(f[a(this).attr("data-order_item_id")]=a(this).find("input.quantity").val())});var h={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:g,order_item_qty:f,action:"woocommerce_reduce_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:h,type:"POST",success:function(a){window.alert(a),c.unblock()}})}},backbone:{init:function(b,c){"wc-modal-add-products"===c&&a(document.body).trigger("wc-enhanced-select-init")},response:function(a,b,d){if("wc-modal-add-tax"===b){var e=d.add_order_tax,f="";d.manual_tax_rate_id&&(f=d.manual_tax_rate_id),c.backbone.add_tax(e,f)}"wc-modal-add-products"===b&&c.backbone.add_item(d.add_order_items)},add_item:function(d){if(d=d.split(",")){var e=d.length;c.block(),a.each(d,function(d,f){var g={action:"woocommerce_add_order_item",item_to_add:f,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,g,function(d){a("table.woocommerce_order_items tbody#order_line_items").append(d),--e||(b.init_tiptip(),c.unblock())})})}},add_tax:function(d,e){if(e&&(d=e),!d)return!1;var f=a(".order-tax-id").map(function(){return a(this).val()}).get();if(-1===a.inArray(d,f)){c.block();var g={action:"woocommerce_add_order_tax",rate_id:d,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:g,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})}else window.alert(woocommerce_admin_meta_boxes.i18n_tax_rate_already_exists)}},stupidtable:{init:function(){a(".woocommerce_order_items").stupidtable(),a(".woocommerce_order_items").on("aftertablesort",this.add_arrows)},add_arrows:function(b,c){var d=a(this).find("th"),e="asc"===c.direction?"↑":"↓",f=c.column;d.find(".wc-arrow").remove(),d.eq(f).append(''+e+"")}}},d={init:function(){a("#woocommerce-order-notes").on("click","a.add_note",this.add_order_note).on("click","a.delete_note",this.delete_order_note)},add_order_note:function(){if(a("textarea#add_order_note").val()){a("#woocommerce-order-notes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b={action:"woocommerce_add_order_note",post_id:woocommerce_admin_meta_boxes.post_id,note:a("textarea#add_order_note").val(),note_type:a("select#order_note_type").val(),security:woocommerce_admin_meta_boxes.add_order_note_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("ul.order_notes").prepend(b),a("#woocommerce-order-notes").unblock(),a("#add_order_note").val("")}),!1}},delete_order_note:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_delete_note)){var b=a(this).closest("li.note");a(b).block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={action:"woocommerce_delete_order_note",note_id:a(b).attr("rel"),security:woocommerce_admin_meta_boxes.delete_order_note_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,c,function(){a(b).remove()})}return!1}},e={init:function(){a(".order_download_permissions").on("click","button.grant_access",this.grant_access).on("click","button.revoke_access",this.revoke_access)},grant_access:function(){var b=a("#grant_access_id").val();if(b){a(".order_download_permissions").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={action:"woocommerce_grant_access_to_download",product_ids:b,loop:a(".order_download_permissions .wc-metabox").length,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.grant_access_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,c,function(b){b?a(".order_download_permissions .wc-metaboxes").append(b):window.alert(woocommerce_admin_meta_boxes.i18n_download_permission_fail),a(document.body).trigger("wc-init-datepickers"),a("#grant_access_id").val("").change(),a(".order_download_permissions").unblock()}),!1}},revoke_access:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_permission_revoke)){var b=a(this).parent().parent(),c=a(this).attr("rel").split(",")[0],d=a(this).attr("rel").split(",")[1];if(c>0){a(b).block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e={action:"woocommerce_revoke_access_to_download",product_id:c,download_id:d,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.revoke_access_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,e,function(){a(b).fadeOut("300",function(){a(b).remove()})})}else a(b).fadeOut("300",function(){a(b).remove()})}return!1}};b.init(),c.init(),d.init(),e.init()}); \ No newline at end of file +jQuery(function(a){var b={states:null,init:function(){"undefined"!=typeof woocommerce_admin_meta_boxes_order&&"undefined"!=typeof woocommerce_admin_meta_boxes_order.countries&&(this.states=a.parseJSON(woocommerce_admin_meta_boxes_order.countries.replace(/"/g,'"'))),a(".js_field-country").select2().change(this.change_country),a(".js_field-country").trigger("change",[!0]),a(document.body).on("change","select.js_field-state",this.change_state),a("#woocommerce-order-actions input, #woocommerce-order-actions a").click(function(){window.onbeforeunload=""}),a("a.edit_address").click(this.edit_address),a("a.billing-same-as-shipping").on("click",this.copy_billing_to_shipping),a("a.load_customer_billing").on("click",this.load_billing),a("a.load_customer_shipping").on("click",this.load_shipping),a("#customer_user").on("change",this.change_customer_user)},change_country:function(c,d){if("undefined"==typeof d&&(d=!1),null!==b.states){var e=a(this),f=e.val(),g=e.parents("div.edit_address").find(":input.js_field-state"),h=g.parent(),i=g.attr("name"),j=g.attr("id"),k=e.data("woocommerce.stickState-"+f)?e.data("woocommerce.stickState-"+f):g.val(),l=g.attr("placeholder");if(d&&e.data("woocommerce.stickState-"+f,k),h.show().find(".select2-container").remove(),a.isEmptyObject(b.states[f]))g.replaceWith('');else{var m=a(''),n=b.states[f];m.append(a('")),a.each(n,function(b){m.append(a('"))}),m.val(k),g.replaceWith(m),m.show().select2().hide().change()}a(document.body).trigger("contry-change.woocommerce",[f,a(this).closest("div")]),a(document.body).trigger("country-change.woocommerce",[f,a(this).closest("div")])}},change_state:function(){var b=a(this),c=b.val(),d=b.parents("div.edit_address").find(":input.js_field-country"),e=d.val();d.data("woocommerce.stickState-"+e,c)},init_tiptip:function(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})},edit_address:function(b){b.preventDefault(),a(this).hide(),a(this).parent().find("a:not(.edit_address)").show(),a(this).closest(".order_data_column").find("div.address").hide(),a(this).closest(".order_data_column").find("div.edit_address").show()},change_customer_user:function(){a("#_billing_country").val()||(a("a.edit_address").click(),b.load_billing(!0),b.load_shipping(!0))},load_billing:function(b){if(!0===b||window.confirm(woocommerce_admin_meta_boxes.load_billing)){var c=a("#customer_user").val();if(!c)return window.alert(woocommerce_admin_meta_boxes.no_customer_selected),!1;var d={user_id:c,type_to_load:"billing",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};a(this).closest("div.edit_address").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(b){b&&a.each(b,function(b,c){a(":input#_"+b).val(c).change()}),a("div.edit_address").unblock()}})}return!1},load_shipping:function(b){if(!0===b||window.confirm(woocommerce_admin_meta_boxes.load_shipping)){var c=a("#customer_user").val();if(!c)return window.alert(woocommerce_admin_meta_boxes.no_customer_selected),!1;var d={user_id:c,type_to_load:"shipping",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};a(this).closest("div.edit_address").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(b){b&&a.each(b,function(b,c){a(":input#_"+b).val(c).change()}),a("div.edit_address").unblock()}})}return!1},copy_billing_to_shipping:function(){return window.confirm(woocommerce_admin_meta_boxes.copy_billing)&&a('.order_data_column :input[name^="_billing_"]').each(function(){var b=a(this).attr("name");b=b.replace("_billing_","_shipping_"),a(":input#"+b).val(a(this).val()).change()}),!1}},c={init:function(){this.stupidtable.init(),a("#woocommerce-order-items").on("click","button.add-line-item",this.add_line_item).on("click","button.refund-items",this.refund_items).on("click",".cancel-action",this.cancel).on("click","button.add-order-item",this.add_item).on("click","button.add-order-fee",this.add_fee).on("click","button.add-order-shipping",this.add_shipping).on("click","button.add-order-tax",this.add_tax).on("click","button.calculate-action",this.calculate_totals).on("click","button.save-action",this.save_line_items).on("click","a.delete-order-tax",this.delete_tax).on("click","button.calculate-tax-action",this.calculate_tax).on("click","a.edit-order-item",this.edit_item).on("click","a.delete-order-item",this.delete_item).on("click","tr.item, tr.fee, tr.shipping, tr.refund",this.select_row).on("click","tr.item :input, tr.fee :input, tr.shipping :input, tr.refund :input, tr.item a, tr.fee a, tr.shipping a, tr.refund a",this.select_row_child).on("click","button.bulk-delete-items",this.bulk_actions.do_delete).on("click","button.bulk-increase-stock",this.bulk_actions.do_increase_stock).on("click","button.bulk-decrease-stock",this.bulk_actions.do_reduce_stock).on("click",".delete_refund",this.refunds.delete_refund).on("click","button.do-api-refund, button.do-manual-refund",this.refunds.do_refund).on("change",".refund input.refund_line_total, .refund input.refund_line_tax",this.refunds.input_changed).on("change keyup",".wc-order-refund-items #refund_amount",this.refunds.amount_changed).on("change","input.refund_order_item_qty",this.refunds.refund_quantity_changed).on("change","input.quantity",this.quantity_changed).on("keyup change",".split-input :input",function(){var b=a(this).parent().prev().find(":input");b&&(""===b.val()||b.is(".match-total"))&&b.val(a(this).val()).addClass("match-total")}).on("keyup",".split-input :input",function(){a(this).removeClass("match-total")}).on("click","button.add_order_item_meta",this.item_meta.add).on("click","button.remove_order_item_meta",this.item_meta.remove),a(document.body).on("wc_backbone_modal_loaded",this.backbone.init).on("wc_backbone_modal_response",this.backbone.response)},block:function(){a("#woocommerce-order-items").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a("#woocommerce-order-items").unblock()},reload_items:function(){var d={order_id:woocommerce_admin_meta_boxes.post_id,action:"woocommerce_load_order_items",security:woocommerce_admin_meta_boxes.order_item_nonce};c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})},quantity_changed:function(){var b=a(this).closest("tr.item"),c=a(this).val(),d=a(this).attr("data-qty"),e=a("input.line_total",b),f=a("input.line_subtotal",b),g=accounting.unformat(e.attr("data-total"),woocommerce_admin.mon_decimal_point)/d;e.val(parseFloat(accounting.formatNumber(g*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point));var h=accounting.unformat(f.attr("data-subtotal"),woocommerce_admin.mon_decimal_point)/d;f.val(parseFloat(accounting.formatNumber(h*c,woocommerce_admin_meta_boxes.rounding_precision,"")).toString().replace(".",woocommerce_admin.mon_decimal_point)),a("input.line_tax",b).each(function(){var e=a(this),f=e.data("tax_id"),g=accounting.unformat(e.attr("data-total_tax"),woocommerce_admin.mon_decimal_point)/d,h=a('input.line_subtotal_tax[data-tax_id="'+f+'"]',b),i=accounting.unformat(h.attr("data-subtotal_tax"),woocommerce_admin.mon_decimal_point)/d;00?a("#restock_refunded_items").closest("tr").show():(a("#restock_refunded_items").closest("tr").hide(),a(".woocommerce_order_items input.refund_order_item_qty").each(function(){a(this).val()>0&&a("#restock_refunded_items").closest("tr").show()})),a(this).trigger("refund_quantity_changed")}},item_meta:{add:function(){var b=a(this),d=b.closest("tr.item, tr.shipping"),e={order_item_id:d.attr("data-order_item_id"),action:"woocommerce_add_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};return c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:e,type:"POST",success:function(a){d.find("tbody.meta_items").append(a),c.unblock()}}),!1},remove:function(){if(window.confirm(woocommerce_admin_meta_boxes.remove_item_meta)){var b=a(this).closest("tr"),d={meta_id:b.attr("data-meta_id"),action:"woocommerce_remove_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};c.block(),a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:d,type:"POST",success:function(){b.remove(),c.unblock()}})}return!1}},select_row:function(){var b=!1;b=a(this).is("tr")?a(this):a(this).closest("tr");var c=a(this).closest("table");b.is(".selected")?b.removeClass("selected"):b.addClass("selected");var d=c.find("tr.selected");if(d.length){a("div.wc-order-item-bulk-edit").slideDown();var e=!1;d.each(function(){a(this).is("tr.item")&&(e=!0)}),e?a(".bulk-increase-stock, .bulk-decrease-stock").show():a(".bulk-increase-stock, .bulk-decrease-stock").hide()}else a("div.wc-order-item-bulk-edit").slideUp()},select_row_child:function(a){a.stopPropagation()},bulk_actions:{do_delete:function(b){b.preventDefault();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected");if(e.length&&window.confirm(woocommerce_admin_meta_boxes.remove_item_notice)){c.block();var f=[],g=[],h=[];a.map(e,function(b){var c=a(b);c.is(".refund")?g.push(parseInt(a(c).data("order_refund_id"),10)):f.push(parseInt(a(c).data("order_item_id"),10))}),f.length&&h.push(a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:{order_item_ids:f,action:"woocommerce_remove_order_item",security:woocommerce_admin_meta_boxes.order_item_nonce},type:"POST"})),g.length&&h.push(a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:{action:"woocommerce_delete_refund",refund_id:g,security:woocommerce_admin_meta_boxes.order_item_nonce},type:"POST"})),h?a.when.apply(a,h).done(function(){c.reload_items(),c.unblock()}):c.unblock()}},do_increase_stock:function(b){b.preventDefault(),c.block();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected"),f={},g=a.map(e,function(b){return parseInt(a(b).data("order_item_id"),10)});e.each(function(){a(this).find("input.quantity").length&&(f[a(this).attr("data-order_item_id")]=a(this).find("input.quantity").val())});var h={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:g,order_item_qty:f,action:"woocommerce_increase_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:h,type:"POST",success:function(a){window.alert(a),c.unblock()}})},do_reduce_stock:function(b){b.preventDefault(),c.block();var d=a("table.woocommerce_order_items"),e=d.find("tr.selected"),f={},g=a.map(e,function(b){return parseInt(a(b).data("order_item_id"),10)});e.each(function(){a(this).find("input.quantity").length&&(f[a(this).attr("data-order_item_id")]=a(this).find("input.quantity").val())});var h={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:g,order_item_qty:f,action:"woocommerce_reduce_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:h,type:"POST",success:function(a){window.alert(a),c.unblock()}})}},backbone:{init:function(b,c){"wc-modal-add-products"===c&&a(document.body).trigger("wc-enhanced-select-init")},response:function(a,b,d){if("wc-modal-add-tax"===b){var e=d.add_order_tax,f="";d.manual_tax_rate_id&&(f=d.manual_tax_rate_id),c.backbone.add_tax(e,f)}"wc-modal-add-products"===b&&c.backbone.add_item(d.add_order_items)},add_item:function(d){if(d=d.split(",")){var e=d.length;c.block(),a.each(d,function(d,f){var g={action:"woocommerce_add_order_item",item_to_add:f,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,g,function(d){a("table.woocommerce_order_items tbody#order_line_items").append(d),--e||(b.init_tiptip(),c.unblock())})})}},add_tax:function(d,e){if(e&&(d=e),!d)return!1;var f=a(".order-tax-id").map(function(){return a(this).val()}).get();if(-1===a.inArray(d,f)){c.block();var g={action:"woocommerce_add_order_tax",rate_id:d,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};a.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:g,type:"POST",success:function(d){a("#woocommerce-order-items").find(".inside").empty(),a("#woocommerce-order-items").find(".inside").append(d),b.init_tiptip(),c.unblock(),c.stupidtable.init()}})}else window.alert(woocommerce_admin_meta_boxes.i18n_tax_rate_already_exists)}},stupidtable:{init:function(){a(".woocommerce_order_items").stupidtable(),a(".woocommerce_order_items").on("aftertablesort",this.add_arrows)},add_arrows:function(b,c){var d=a(this).find("th"),e="asc"===c.direction?"↑":"↓",f=c.column;d.find(".wc-arrow").remove(),d.eq(f).append(''+e+"")}}},d={init:function(){a("#woocommerce-order-notes").on("click","a.add_note",this.add_order_note).on("click","a.delete_note",this.delete_order_note)},add_order_note:function(){if(a("textarea#add_order_note").val()){a("#woocommerce-order-notes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b={action:"woocommerce_add_order_note",post_id:woocommerce_admin_meta_boxes.post_id,note:a("textarea#add_order_note").val(),note_type:a("select#order_note_type").val(),security:woocommerce_admin_meta_boxes.add_order_note_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("ul.order_notes").prepend(b),a("#woocommerce-order-notes").unblock(),a("#add_order_note").val("")}),!1}},delete_order_note:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_delete_note)){var b=a(this).closest("li.note");a(b).block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={action:"woocommerce_delete_order_note",note_id:a(b).attr("rel"),security:woocommerce_admin_meta_boxes.delete_order_note_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,c,function(){a(b).remove()})}return!1}},e={init:function(){a(".order_download_permissions").on("click","button.grant_access",this.grant_access).on("click","button.revoke_access",this.revoke_access)},grant_access:function(){var b=a("#grant_access_id").val();if(b){a(".order_download_permissions").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={action:"woocommerce_grant_access_to_download",product_ids:b,loop:a(".order_download_permissions .wc-metabox").length,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.grant_access_nonce};return a.post(woocommerce_admin_meta_boxes.ajax_url,c,function(b){b?a(".order_download_permissions .wc-metaboxes").append(b):window.alert(woocommerce_admin_meta_boxes.i18n_download_permission_fail),a(document.body).trigger("wc-init-datepickers"),a("#grant_access_id").val("").change(),a(".order_download_permissions").unblock()}),!1}},revoke_access:function(){if(window.confirm(woocommerce_admin_meta_boxes.i18n_permission_revoke)){var b=a(this).parent().parent(),c=a(this).attr("rel").split(",")[0],d=a(this).attr("rel").split(",")[1];if(c>0){a(b).block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e={action:"woocommerce_revoke_access_to_download",product_id:c,download_id:d,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.revoke_access_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,e,function(){a(b).fadeOut("300",function(){a(b).remove()})})}else a(b).fadeOut("300",function(){a(b).remove()})}return!1}};b.init(),c.init(),d.init(),e.init()}); \ No newline at end of file diff --git a/assets/js/admin/meta-boxes-product-variation.min.js b/assets/js/admin/meta-boxes-product-variation.min.js index 9161bcea599..9adcd7cdfa4 100644 --- a/assets/js/admin/meta-boxes-product-variation.min.js +++ b/assets/js/admin/meta-boxes-product-variation.min.js @@ -1 +1 @@ -jQuery(function(a){var b={init:function(){a("#variable_product_options").on("change","input.variable_is_downloadable",this.variable_is_downloadable).on("change","input.variable_is_virtual",this.variable_is_virtual).on("change","input.variable_manage_stock",this.variable_manage_stock).on("click","button.notice-dismiss",this.notice_dismiss).on("click","h3 .sort",this.set_menu_order).on("reload",this.reload),a("input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock").change(),a("#woocommerce-product-data").on("woocommerce_variations_loaded",this.variations_loaded),a(document.body).on("woocommerce_variations_added",this.variation_added)},reload:function(){d.load_variations(1)},variable_is_downloadable:function(){a(this).closest(".woocommerce_variation").find(".show_if_variation_downloadable").hide(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".show_if_variation_downloadable").show()},variable_is_virtual:function(){a(this).closest(".woocommerce_variation").find(".hide_if_variation_virtual").show(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".hide_if_variation_virtual").hide()},variable_manage_stock:function(){a(this).closest(".woocommerce_variation").find(".show_if_variation_manage_stock").hide(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".show_if_variation_manage_stock").show()},notice_dismiss:function(){a(this).closest("div.notice").remove()},variations_loaded:function(c,d){d=d||!1;var e=a("#woocommerce-product-data");d||(a("input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock",e).change(),a(".woocommerce_variation",e).each(function(b,c){var d=a(c),e=a(".sale_price_dates_from",d).val(),f=a(".sale_price_dates_to",d).val();""===e&&""===f||a("a.sale_schedule",d).click()}),a(".woocommerce_variations .variation-needs-update",e).removeClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes",e).attr("disabled","disabled")),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".woocommerce_variations .tips, .woocommerce_variations .help_tip, .woocommerce_variations .woocommerce-help-tip",e).tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),a(".sale_price_dates_fields",e).each(function(){var b=a(this).find("input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,onSelect:function(c){var d=a(this).is(".sale_price_dates_from")?"minDate":"maxDate",e=a(this).data("datepicker"),f=a.datepicker.parseDate(e.settings.dateFormat||a.datepicker._defaults.dateFormat,c,e.settings);b.not(this).datepicker("option",d,f),a(this).change()}})}),a(".woocommerce_variations",e).sortable({items:".woocommerce_variation",cursor:"move",axis:"y",handle:".sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,stop:function(){b.variation_row_indexes()}}),a(document.body).trigger("wc-enhanced-select-init")},variation_added:function(a,c){1===c&&b.variations_loaded(null,!0)},set_menu_order:function(b){b.preventDefault();var c=a(this).closest(".woocommerce_variation").find(".variation_menu_order"),e=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_menu_order,c.val());null!=e&&(c.val(parseInt(e,10)).change(),d.save_variations())},variation_row_indexes:function(){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-page"),10),d=parseInt((c-1)*woocommerce_admin_meta_boxes_variations.variations_per_page,10);a(".woocommerce_variations .woocommerce_variation").each(function(b,c){a(".variation_menu_order",c).val(parseInt(a(c).index(".woocommerce_variations .woocommerce_variation"),10)+1+d).change()})}},c={variable_image_frame:null,setting_variation_image_id:null,setting_variation_image:null,wp_media_post_id:wp.media.model.settings.post.id,init:function(){a("#variable_product_options").on("click",".upload_image_button",this.add_image),a("a.add_media").on("click",this.restore_wp_media_post_id)},add_image:function(b){var d=a(this),e=d.attr("rel"),f=d.closest(".upload_image");if(c.setting_variation_image=f,c.setting_variation_image_id=e,b.preventDefault(),d.is(".remove"))a(".upload_image_id",c.setting_variation_image).val("").change(),c.setting_variation_image.find("img").eq(0).attr("src",woocommerce_admin_meta_boxes_variations.woocommerce_placeholder_img_src),c.setting_variation_image.find(".upload_image_button").removeClass("remove");else{if(c.variable_image_frame)return c.variable_image_frame.uploader.uploader.param("post_id",c.setting_variation_image_id),void c.variable_image_frame.open();wp.media.model.settings.post.id=c.setting_variation_image_id,c.variable_image_frame=wp.media.frames.variable_image=wp.media({title:woocommerce_admin_meta_boxes_variations.i18n_choose_image,button:{text:woocommerce_admin_meta_boxes_variations.i18n_set_image},states:[new wp.media.controller.Library({title:woocommerce_admin_meta_boxes_variations.i18n_choose_image,filterable:"all"})]}),c.variable_image_frame.on("select",function(){var b=c.variable_image_frame.state().get("selection").first().toJSON(),d=b.sizes&&b.sizes.thumbnail?b.sizes.thumbnail.url:b.url;a(".upload_image_id",c.setting_variation_image).val(b.id).change(),c.setting_variation_image.find(".upload_image_button").addClass("remove"),c.setting_variation_image.find("img").eq(0).attr("src",d),wp.media.model.settings.post.id=c.wp_media_post_id}),c.variable_image_frame.open()}},restore_wp_media_post_id:function(){wp.media.model.settings.post.id=c.wp_media_post_id}},d={init:function(){a("li.variations_tab a").on("click",this.initial_load),a("#variable_product_options").on("click","button.save-variation-changes",this.save_variations).on("click","button.cancel-variation-changes",this.cancel_variations).on("click",".remove_variation",this.remove_variation),a(document.body).on("change","#variable_product_options .woocommerce_variations :input",this.input_changed).on("change",".variations-defaults select",this.defaults_changed),a("form#post").on("submit",this.save_on_submit),a(".wc-metaboxes-wrapper").on("click","a.do_variation_action",this.do_variation_action)},check_for_changes:function(){var b=a("#variable_product_options").find(".woocommerce_variations .variation-needs-update");if(00?(c.push(b),f.variation_ids=c,f.security=woocommerce_admin_meta_boxes_variations.delete_variations_nonce,a.post(woocommerce_admin_meta_boxes_variations.ajax_url,f,function(){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-page"),10),d=Math.ceil((parseInt(b.attr("data-total"),10)-1)/woocommerce_admin_meta_boxes_variations.variations_per_page),f=1;a("#woocommerce-product-data").trigger("woocommerce_variations_removed"),c===d||d>=c?f=c:c>d&&0!==d&&(f=d),e.go_to_page(f,-1)})):d.unblock()}return!1},link_all_variations:function(){if(d.check_for_changes(),window.confirm(woocommerce_admin_meta_boxes_variations.i18n_link_all_variations)){d.block();var b={action:"woocommerce_link_all_variations",post_id:woocommerce_admin_meta_boxes_variations.post_id,security:woocommerce_admin_meta_boxes_variations.link_variation_nonce};a.post(woocommerce_admin_meta_boxes_variations.ajax_url,b,function(b){var c=parseInt(b,10);1===c?window.alert(c+" "+woocommerce_admin_meta_boxes_variations.i18n_variation_added):0===c||c>1?window.alert(c+" "+woocommerce_admin_meta_boxes_variations.i18n_variations_added):window.alert(woocommerce_admin_meta_boxes_variations.i18n_no_variations_added),c>0?(e.go_to_page(1,c),a("#variable_product_options").trigger("woocommerce_variations_added",c)):d.unblock()})}return!1},input_changed:function(){a(this).closest(".woocommerce_variation").addClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes").removeAttr("disabled"),a("#variable_product_options").trigger("woocommerce_variations_input_changed")},defaults_changed:function(){a(this).closest("#variable_product_options").find(".woocommerce_variation:first").addClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes").removeAttr("disabled"),a("#variable_product_options").trigger("woocommerce_variations_defaults_changed")},do_variation_action:function(){var b,c=a("select.variation_actions").val(),f={},g=0;switch(c){case"add_variation":return void d.add_variation();case"link_all_variations":return void d.link_all_variations();case"delete_all":window.confirm(woocommerce_admin_meta_boxes_variations.i18n_delete_all_variations)&&window.confirm(woocommerce_admin_meta_boxes_variations.i18n_last_warning)&&(f.allowed=!0,g=-1*parseInt(a("#variable_product_options").find(".woocommerce_variations").attr("data-total"),10));break;case"variable_regular_price_increase":case"variable_regular_price_decrease":case"variable_sale_price_increase":case"variable_sale_price_decrease":b=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_a_value_fixed_or_percent),null!=b&&(b.indexOf("%")>=0?f.value=accounting.unformat(b.replace(/\%/,""),woocommerce_admin.mon_decimal_point)+"%":f.value=accounting.unformat(b,woocommerce_admin.mon_decimal_point));break;case"variable_regular_price":case"variable_sale_price":case"variable_stock":case"variable_weight":case"variable_length":case"variable_width":case"variable_height":case"variable_download_limit":case"variable_download_expiry":b=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_a_value),null!=b&&(f.value=b);break;case"variable_sale_schedule":f.date_from=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_scheduled_sale_start),f.date_to=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_scheduled_sale_end),null===f.date_from&&(f.date_from=!1),null===f.date_to&&(f.date_to=!1);break;default:a("select.variation_actions").trigger(c),f=a("select.variation_actions").triggerHandler(c+"_ajax_data",f)}"delete_all"===c&&f.allowed?a("#variable_product_options").find(".variation-needs-update").removeClass("variation-needs-update"):d.check_for_changes(),d.block(),a.ajax({url:woocommerce_admin_meta_boxes_variations.ajax_url,data:{action:"woocommerce_bulk_edit_variations",security:woocommerce_admin_meta_boxes_variations.bulk_edit_variations_nonce,product_id:woocommerce_admin_meta_boxes_variations.post_id,product_type:a("#product-type").val(),bulk_action:c,data:f},type:"POST",success:function(){e.go_to_page(1,g)}})}},e={init:function(){a(document.body).on("woocommerce_variations_added",this.update_single_quantity).on("change",".variations-pagenav .page-selector",this.page_selector).on("click",".variations-pagenav .first-page",this.first_page).on("click",".variations-pagenav .prev-page",this.prev_page).on("click",".variations-pagenav .next-page",this.next_page).on("click",".variations-pagenav .last-page",this.last_page)},update_variations_count:function(b){var c=a("#variable_product_options").find(".woocommerce_variations"),d=parseInt(c.attr("data-total"),10)+b,e=a(".variations-pagenav .displaying-num");return c.attr("data-total",d),1===d?e.text(woocommerce_admin_meta_boxes_variations.i18n_variation_count_single.replace("%qty%",d)):e.text(woocommerce_admin_meta_boxes_variations.i18n_variation_count_plural.replace("%qty%",d)),d},update_single_quantity:function(b,c){if(1===c){var d=a(".variations-pagenav");e.update_variations_count(c),d.is(":hidden")&&(a("option, optgroup",".variation_actions").show(),a(".variation_actions").val("add_variation"),a("#variable_product_options").find(".toolbar").show(),d.show(),a(".pagination-links",d).hide())}},set_paginav:function(b){var c=a("#variable_product_options").find(".woocommerce_variations"),d=e.update_variations_count(b),f=a("#variable_product_options").find(".toolbar"),g=a(".variation_actions"),h=a(".variations-pagenav"),i=a(".pagination-links",h),j=Math.ceil(d/woocommerce_admin_meta_boxes_variations.variations_per_page),k="";c.attr("data-total_pages",j),a(".total-pages",h).text(j);for(var l=1;j>=l;l++)k+='";a(".page-selector",h).empty().html(k),0===d?(f.not(".toolbar-top, .toolbar-buttons").hide(),h.hide(),a("option, optgroup",g).hide(),a(".variation_actions").val("add_variation"),a('option[data-global="true"]',g).show()):(f.show(),h.show(),a("option, optgroup",g).show(),a(".variation_actions").val("add_variation"),1===j?i.hide():i.show())},check_is_enabled:function(b){return!a(b).hasClass("disabled")},change_classes:function(b,c){var d=a(".variations-pagenav .first-page"),e=a(".variations-pagenav .prev-page"),f=a(".variations-pagenav .next-page"),g=a(".variations-pagenav .last-page");1===b?(d.addClass("disabled"),e.addClass("disabled")):(d.removeClass("disabled"),e.removeClass("disabled")),c===b?(f.addClass("disabled"),g.addClass("disabled")):(f.removeClass("disabled"),g.removeClass("disabled"))},set_page:function(b){a(".variations-pagenav .page-selector").val(b).first().change()},go_to_page:function(a,b){a=a||1,b=b||0,e.set_paginav(b),e.set_page(a)},page_selector:function(){var b=parseInt(a(this).val(),10),c=a("#variable_product_options").find(".woocommerce_variations");a(".variations-pagenav .page-selector").val(b),d.check_for_changes(),e.change_classes(b,parseInt(c.attr("data-total_pages"),10)),d.load_variations(b)},first_page:function(){return e.check_is_enabled(this)&&e.set_page(1),!1},prev_page:function(){if(e.check_is_enabled(this)){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-page"),10)-1,d=c>0?c:1;e.set_page(d)}return!1},next_page:function(){if(e.check_is_enabled(this)){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-total_pages"),10),d=parseInt(b.attr("data-page"),10)+1,f=c>=d?d:c;e.set_page(f)}return!1},last_page:function(){if(e.check_is_enabled(this)){var b=a("#variable_product_options").find(".woocommerce_variations").attr("data-total_pages");e.set_page(b)}return!1}};b.init(),c.init(),d.init(),e.init()}); \ No newline at end of file +jQuery(function(a){var b={init:function(){a("#variable_product_options").on("change","input.variable_is_downloadable",this.variable_is_downloadable).on("change","input.variable_is_virtual",this.variable_is_virtual).on("change","input.variable_manage_stock",this.variable_manage_stock).on("click","button.notice-dismiss",this.notice_dismiss).on("click","h3 .sort",this.set_menu_order).on("reload",this.reload),a("input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock").change(),a("#woocommerce-product-data").on("woocommerce_variations_loaded",this.variations_loaded),a(document.body).on("woocommerce_variations_added",this.variation_added)},reload:function(){d.load_variations(1)},variable_is_downloadable:function(){a(this).closest(".woocommerce_variation").find(".show_if_variation_downloadable").hide(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".show_if_variation_downloadable").show()},variable_is_virtual:function(){a(this).closest(".woocommerce_variation").find(".hide_if_variation_virtual").show(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".hide_if_variation_virtual").hide()},variable_manage_stock:function(){a(this).closest(".woocommerce_variation").find(".show_if_variation_manage_stock").hide(),a(this).is(":checked")&&a(this).closest(".woocommerce_variation").find(".show_if_variation_manage_stock").show()},notice_dismiss:function(){a(this).closest("div.notice").remove()},variations_loaded:function(c,d){d=d||!1;var e=a("#woocommerce-product-data");d||(a("input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock",e).change(),a(".woocommerce_variation",e).each(function(b,c){var d=a(c),e=a(".sale_price_dates_from",d).val(),f=a(".sale_price_dates_to",d).val();""===e&&""===f||a("a.sale_schedule",d).click()}),a(".woocommerce_variations .variation-needs-update",e).removeClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes",e).attr("disabled","disabled")),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".woocommerce_variations .tips, .woocommerce_variations .help_tip, .woocommerce_variations .woocommerce-help-tip",e).tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),a(".sale_price_dates_fields",e).each(function(){var b=a(this).find("input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,onSelect:function(c){var d=a(this).is(".sale_price_dates_from")?"minDate":"maxDate",e=a(this).data("datepicker"),f=a.datepicker.parseDate(e.settings.dateFormat||a.datepicker._defaults.dateFormat,c,e.settings);b.not(this).datepicker("option",d,f),a(this).change()}})}),a(".woocommerce_variations",e).sortable({items:".woocommerce_variation",cursor:"move",axis:"y",handle:".sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,stop:function(){b.variation_row_indexes()}}),a(document.body).trigger("wc-enhanced-select-init")},variation_added:function(a,c){1===c&&b.variations_loaded(null,!0)},set_menu_order:function(b){b.preventDefault();var c=a(this).closest(".woocommerce_variation").find(".variation_menu_order"),e=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_menu_order,c.val());null!=e&&(c.val(parseInt(e,10)).change(),d.save_variations())},variation_row_indexes:function(){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-page"),10),d=parseInt((c-1)*woocommerce_admin_meta_boxes_variations.variations_per_page,10);a(".woocommerce_variations .woocommerce_variation").each(function(b,c){a(".variation_menu_order",c).val(parseInt(a(c).index(".woocommerce_variations .woocommerce_variation"),10)+1+d).change()})}},c={variable_image_frame:null,setting_variation_image_id:null,setting_variation_image:null,wp_media_post_id:wp.media.model.settings.post.id,init:function(){a("#variable_product_options").on("click",".upload_image_button",this.add_image),a("a.add_media").on("click",this.restore_wp_media_post_id)},add_image:function(b){var d=a(this),e=d.attr("rel"),f=d.closest(".upload_image");if(c.setting_variation_image=f,c.setting_variation_image_id=e,b.preventDefault(),d.is(".remove"))a(".upload_image_id",c.setting_variation_image).val("").change(),c.setting_variation_image.find("img").eq(0).attr("src",woocommerce_admin_meta_boxes_variations.woocommerce_placeholder_img_src),c.setting_variation_image.find(".upload_image_button").removeClass("remove");else{if(c.variable_image_frame)return c.variable_image_frame.uploader.uploader.param("post_id",c.setting_variation_image_id),void c.variable_image_frame.open();wp.media.model.settings.post.id=c.setting_variation_image_id,c.variable_image_frame=wp.media.frames.variable_image=wp.media({title:woocommerce_admin_meta_boxes_variations.i18n_choose_image,button:{text:woocommerce_admin_meta_boxes_variations.i18n_set_image},states:[new wp.media.controller.Library({title:woocommerce_admin_meta_boxes_variations.i18n_choose_image,filterable:"all"})]}),c.variable_image_frame.on("select",function(){var b=c.variable_image_frame.state().get("selection").first().toJSON(),d=b.sizes&&b.sizes.thumbnail?b.sizes.thumbnail.url:b.url;a(".upload_image_id",c.setting_variation_image).val(b.id).change(),c.setting_variation_image.find(".upload_image_button").addClass("remove"),c.setting_variation_image.find("img").eq(0).attr("src",d),wp.media.model.settings.post.id=c.wp_media_post_id}),c.variable_image_frame.open()}},restore_wp_media_post_id:function(){wp.media.model.settings.post.id=c.wp_media_post_id}},d={init:function(){a("li.variations_tab a").on("click",this.initial_load),a("#variable_product_options").on("click","button.save-variation-changes",this.save_variations).on("click","button.cancel-variation-changes",this.cancel_variations).on("click",".remove_variation",this.remove_variation),a(document.body).on("change","#variable_product_options .woocommerce_variations :input",this.input_changed).on("change",".variations-defaults select",this.defaults_changed),a("form#post").on("submit",this.save_on_submit),a(".wc-metaboxes-wrapper").on("click","a.do_variation_action",this.do_variation_action)},check_for_changes:function(){var b=a("#variable_product_options").find(".woocommerce_variations .variation-needs-update");if(0d&&0!==d&&(f=d),e.go_to_page(f,-1)})):d.unblock()}return!1},link_all_variations:function(){if(d.check_for_changes(),window.confirm(woocommerce_admin_meta_boxes_variations.i18n_link_all_variations)){d.block();var b={action:"woocommerce_link_all_variations",post_id:woocommerce_admin_meta_boxes_variations.post_id,security:woocommerce_admin_meta_boxes_variations.link_variation_nonce};a.post(woocommerce_admin_meta_boxes_variations.ajax_url,b,function(b){var c=parseInt(b,10);1===c?window.alert(c+" "+woocommerce_admin_meta_boxes_variations.i18n_variation_added):0===c||c>1?window.alert(c+" "+woocommerce_admin_meta_boxes_variations.i18n_variations_added):window.alert(woocommerce_admin_meta_boxes_variations.i18n_no_variations_added),c>0?(e.go_to_page(1,c),a("#variable_product_options").trigger("woocommerce_variations_added",c)):d.unblock()})}return!1},input_changed:function(){a(this).closest(".woocommerce_variation").addClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes").removeAttr("disabled"),a("#variable_product_options").trigger("woocommerce_variations_input_changed")},defaults_changed:function(){a(this).closest("#variable_product_options").find(".woocommerce_variation:first").addClass("variation-needs-update"),a("button.cancel-variation-changes, button.save-variation-changes").removeAttr("disabled"),a("#variable_product_options").trigger("woocommerce_variations_defaults_changed")},do_variation_action:function(){var b,c=a("select.variation_actions").val(),f={},g=0;switch(c){case"add_variation":return void d.add_variation();case"link_all_variations":return void d.link_all_variations();case"delete_all":window.confirm(woocommerce_admin_meta_boxes_variations.i18n_delete_all_variations)&&window.confirm(woocommerce_admin_meta_boxes_variations.i18n_last_warning)&&(f.allowed=!0,g=parseInt(a("#variable_product_options").find(".woocommerce_variations").attr("data-total"),10)*-1);break;case"variable_regular_price_increase":case"variable_regular_price_decrease":case"variable_sale_price_increase":case"variable_sale_price_decrease":b=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_a_value_fixed_or_percent),null!=b&&(b.indexOf("%")>=0?f.value=accounting.unformat(b.replace(/\%/,""),woocommerce_admin.mon_decimal_point)+"%":f.value=accounting.unformat(b,woocommerce_admin.mon_decimal_point));break;case"variable_regular_price":case"variable_sale_price":case"variable_stock":case"variable_weight":case"variable_length":case"variable_width":case"variable_height":case"variable_download_limit":case"variable_download_expiry":b=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_enter_a_value),null!=b&&(f.value=b);break;case"variable_sale_schedule":f.date_from=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_scheduled_sale_start),f.date_to=window.prompt(woocommerce_admin_meta_boxes_variations.i18n_scheduled_sale_end),null===f.date_from&&(f.date_from=!1),null===f.date_to&&(f.date_to=!1);break;default:a("select.variation_actions").trigger(c),f=a("select.variation_actions").triggerHandler(c+"_ajax_data",f)}"delete_all"===c&&f.allowed?a("#variable_product_options").find(".variation-needs-update").removeClass("variation-needs-update"):d.check_for_changes(),d.block(),a.ajax({url:woocommerce_admin_meta_boxes_variations.ajax_url,data:{action:"woocommerce_bulk_edit_variations",security:woocommerce_admin_meta_boxes_variations.bulk_edit_variations_nonce,product_id:woocommerce_admin_meta_boxes_variations.post_id,product_type:a("#product-type").val(),bulk_action:c,data:f},type:"POST",success:function(){e.go_to_page(1,g)}})}},e={init:function(){a(document.body).on("woocommerce_variations_added",this.update_single_quantity).on("change",".variations-pagenav .page-selector",this.page_selector).on("click",".variations-pagenav .first-page",this.first_page).on("click",".variations-pagenav .prev-page",this.prev_page).on("click",".variations-pagenav .next-page",this.next_page).on("click",".variations-pagenav .last-page",this.last_page)},update_variations_count:function(b){var c=a("#variable_product_options").find(".woocommerce_variations"),d=parseInt(c.attr("data-total"),10)+b,e=a(".variations-pagenav .displaying-num");return c.attr("data-total",d),1===d?e.text(woocommerce_admin_meta_boxes_variations.i18n_variation_count_single.replace("%qty%",d)):e.text(woocommerce_admin_meta_boxes_variations.i18n_variation_count_plural.replace("%qty%",d)),d},update_single_quantity:function(b,c){if(1===c){var d=a(".variations-pagenav");e.update_variations_count(c),d.is(":hidden")&&(a("option, optgroup",".variation_actions").show(),a(".variation_actions").val("add_variation"),a("#variable_product_options").find(".toolbar").show(),d.show(),a(".pagination-links",d).hide())}},set_paginav:function(b){var c=a("#variable_product_options").find(".woocommerce_variations"),d=e.update_variations_count(b),f=a("#variable_product_options").find(".toolbar"),g=a(".variation_actions"),h=a(".variations-pagenav"),i=a(".pagination-links",h),j=Math.ceil(d/woocommerce_admin_meta_boxes_variations.variations_per_page),k="";c.attr("data-total_pages",j),a(".total-pages",h).text(j);for(var l=1;l<=j;l++)k+='";a(".page-selector",h).empty().html(k),0===d?(f.not(".toolbar-top, .toolbar-buttons").hide(),h.hide(),a("option, optgroup",g).hide(),a(".variation_actions").val("add_variation"),a('option[data-global="true"]',g).show()):(f.show(),h.show(),a("option, optgroup",g).show(),a(".variation_actions").val("add_variation"),1===j?i.hide():i.show())},check_is_enabled:function(b){return!a(b).hasClass("disabled")},change_classes:function(b,c){var d=a(".variations-pagenav .first-page"),e=a(".variations-pagenav .prev-page"),f=a(".variations-pagenav .next-page"),g=a(".variations-pagenav .last-page");1===b?(d.addClass("disabled"),e.addClass("disabled")):(d.removeClass("disabled"),e.removeClass("disabled")),c===b?(f.addClass("disabled"),g.addClass("disabled")):(f.removeClass("disabled"),g.removeClass("disabled"))},set_page:function(b){a(".variations-pagenav .page-selector").val(b).first().change()},go_to_page:function(a,b){a=a||1,b=b||0,e.set_paginav(b),e.set_page(a)},page_selector:function(){var b=parseInt(a(this).val(),10),c=a("#variable_product_options").find(".woocommerce_variations");a(".variations-pagenav .page-selector").val(b),d.check_for_changes(),e.change_classes(b,parseInt(c.attr("data-total_pages"),10)),d.load_variations(b)},first_page:function(){return e.check_is_enabled(this)&&e.set_page(1),!1},prev_page:function(){if(e.check_is_enabled(this)){var b=a("#variable_product_options").find(".woocommerce_variations"),c=parseInt(b.attr("data-page"),10)-1,d=0=d?d:c;e.set_page(f)}return!1},last_page:function(){if(e.check_is_enabled(this)){var b=a("#variable_product_options").find(".woocommerce_variations").attr("data-total_pages");e.set_page(b)}return!1}};b.init(),c.init(),d.init(),e.init()}); \ No newline at end of file diff --git a/assets/js/admin/meta-boxes-product.min.js b/assets/js/admin/meta-boxes-product.min.js index ad859216672..fdd00103fb0 100644 --- a/assets/js/admin/meta-boxes-product.min.js +++ b/assets/js/admin/meta-boxes-product.min.js @@ -1 +1 @@ -jQuery(function(a){function b(){var b=a("select#product-type").val(),c=a("input#_virtual:checked").length,d=a("input#_downloadable:checked").length,e=".hide_if_downloadable, .hide_if_virtual",f=".show_if_downloadable, .show_if_virtual";a.each(woocommerce_admin_meta_boxes.product_types,function(a,b){e=e+", .hide_if_"+b,f=f+", .show_if_"+b}),a(e).show(),a(f).hide(),d&&a(".show_if_downloadable").show(),c&&a(".show_if_virtual").show(),a(".show_if_"+b).show(),d&&a(".hide_if_downloadable").hide(),c&&a(".hide_if_virtual").hide(),a(".hide_if_"+b).hide(),a("input#_manage_stock").change()}function c(){a(".product_attributes .woocommerce_attribute").each(function(b,c){a(".attribute_position",c).val(parseInt(a(c).index(".product_attributes .woocommerce_attribute"),10))})}a(function(){a('[id$="-all"] > ul.categorychecklist').each(function(){var b=a(this),c=b.find(":checked").first();if(c.length){var d=b.find("input").position().top,e=c.position().top;b.closest(".tabs-panel").scrollTop(e-d+5)}})}),a("#upsell_product_data").bind("keypress",function(a){return 13===a.keyCode?!1:void 0}),a(".type_box").appendTo("#woocommerce-product-data .hndle span"),a(function(){a("#woocommerce-product-data").find(".hndle").unbind("click.postboxes"),jQuery("#woocommerce-product-data").on("click",".hndle",function(b){a(b.target).filter("input, option, label, select").length||a("#woocommerce-product-data").toggleClass("closed")})}),a("#catalog-visibility").find(".edit-catalog-visibility").click(function(){return a("#catalog-visibility-select").is(":hidden")&&(a("#catalog-visibility-select").slideDown("fast"),a(this).hide()),!1}),a("#catalog-visibility").find(".save-post-visibility").click(function(){a("#catalog-visibility-select").slideUp("fast"),a("#catalog-visibility").find(".edit-catalog-visibility").show();var b=a("input[name=_visibility]:checked").attr("data-label");return a("input[name=_featured]").is(":checked")&&(b=b+", "+woocommerce_admin_meta_boxes.featured_label,a("input[name=_featured]").attr("checked","checked")),a("#catalog-visibility-display").text(b),!1}),a("#catalog-visibility").find(".cancel-post-visibility").click(function(){a("#catalog-visibility-select").slideUp("fast"),a("#catalog-visibility").find(".edit-catalog-visibility").show();var b=a("#current_visibility").val(),c=a("#current_featured").val();a("input[name=_visibility]").removeAttr("checked"),a("input[name=_visibility][value="+b+"]").attr("checked","checked");var d=a("input[name=_visibility]:checked").attr("data-label");return"yes"===c?(d=d+", "+woocommerce_admin_meta_boxes.featured_label,a("input[name=_featured]").attr("checked","checked")):a("input[name=_featured]").removeAttr("checked"),a("#catalog-visibility-display").text(d),!1}),a("select#product-type").change(function(){var c=a(this).val();"variable"===c?(a("input#_manage_stock").change(),a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")):"grouped"===c?(a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")):"external"===c&&(a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")),b(),a("ul.wc-tabs li:visible").eq(0).find("a").click(),a(document.body).trigger("woocommerce-product-type-change",c,a(this))}).change(),a(document.body).on("woocommerce-product-type-change",function(b,c){"variable"!==c&&0d?-1:d>e?1:0}),a(d).each(function(b,c){a(".product_attributes").append(c)}),a(".product_attributes .woocommerce_attribute").each(function(b,c){"none"!==a(c).css("display")&&a(c).is(".taxonomy")&&a("select.attribute_taxonomy").find('option[value="'+a(c).data("taxonomy")+'"]').attr("disabled","disabled")}),a("button.add_attribute").on("click",function(){var b=a(".product_attributes .woocommerce_attribute").length,d=a("select.attribute_taxonomy").val(),e=a(this).closest("#product_attributes"),f=e.find(".product_attributes"),g=a("select#product-type").val(),h={action:"woocommerce_add_attribute",taxonomy:d,i:b,security:woocommerce_admin_meta_boxes.add_attribute_nonce};return e.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.post(woocommerce_admin_meta_boxes.ajax_url,h,function(b){f.append(b),"variable"!==g&&f.find(".enable_variation").hide(),a(document.body).trigger("wc-enhanced-select-init"),c(),e.unblock(),a(document.body).trigger("woocommerce_added_attribute")}),d&&(a("select.attribute_taxonomy").find('option[value="'+d+'"]').attr("disabled","disabled"),a("select.attribute_taxonomy").val("")),!1}),a(".product_attributes").on("blur","input.attribute_name",function(){a(this).closest(".woocommerce_attribute").find("strong.attribute_name").text(a(this).val())}),a(".product_attributes").on("click","button.select_all_attributes",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").change(),!1}),a(".product_attributes").on("click","button.select_no_attributes",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").change(),!1}),a(".product_attributes").on("click",".remove_row",function(){if(window.confirm(woocommerce_admin_meta_boxes.remove_attribute)){var b=a(this).parent().parent();b.is(".taxonomy")?(b.find("select, input[type=text]").val(""),b.hide(),a("select.attribute_taxonomy").find('option[value="'+b.data("taxonomy")+'"]').removeAttr("disabled")):(b.find("select, input[type=text]").val(""),b.hide(),c())}return!1}),a(".product_attributes").sortable({items:".woocommerce_attribute",cursor:"move",axis:"y",handle:"h3",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style"),c()}}),a(".product_attributes").on("click","button.add_new_attribute",function(){a(".product_attributes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b=a(this).closest(".woocommerce_attribute"),c=b.data("taxonomy"),d=window.prompt(woocommerce_admin_meta_boxes.new_attribute_prompt);if(d){var e={action:"woocommerce_add_new_attribute",taxonomy:c,term:d,security:woocommerce_admin_meta_boxes.add_attribute_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,e,function(c){c.error?window.alert(c.error):c.slug&&(b.find("select.attribute_values").append('"),b.find("select.attribute_values").change()),a(".product_attributes").unblock()})}else a(".product_attributes").unblock();return!1}),a(".save_attributes").on("click",function(){a("#woocommerce-product-data").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b={post_id:woocommerce_admin_meta_boxes.post_id,data:a(".product_attributes").find("input, select, textarea").serialize(),action:"woocommerce_save_attributes",security:woocommerce_admin_meta_boxes.save_attributes_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(){var b=window.location.toString();b=b.replace("post-new.php?","post.php?post="+woocommerce_admin_meta_boxes.post_id+"&action=edit&"),a("#variable_product_options").load(b+" #variable_product_options_inner",function(){a("#variable_product_options").trigger("reload")})})});var e,f;jQuery(document.body).on("click",".upload_file_button",function(b){var c=a(this);if(f=c.closest("tr").find("td.file_url input"),b.preventDefault(),e)return void e.open();var d=[new wp.media.controller.Library({library:wp.media.query(),multiple:!0,title:c.data("choose"),priority:20,filterable:"uploaded"})];e=wp.media.frames.downloadable_file=wp.media({title:c.data("choose"),library:{type:""},button:{text:c.data("update")},multiple:!0,states:d}),e.on("select",function(){var a="",b=e.state().get("selection");b.map(function(b){b=b.toJSON(),b.url&&(a=b.url)}),f.val(a).change()}),e.on("ready",function(){e.uploader.options.uploader.params={type:"downloadable_product"}}),e.open()}),jQuery(".downloadable_files tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65});var g,h=a("#product_image_gallery"),i=a("#product_images_container").find("ul.product_images");jQuery(".add_product_images").on("click","a",function(b){var c=a(this);return b.preventDefault(),g?void g.open():(g=wp.media.frames.product_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]}),g.on("select",function(){var a=g.state().get("selection"),b=h.val();a.map(function(a){if(a=a.toJSON(),a.id){b=b?b+","+a.id:a.id;var d=a.sizes&&a.sizes.thumbnail?a.sizes.thumbnail.url:a.url;i.append('
  • ")}}),h.val(b)}),void g.open())}),i.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(){var b="";a("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var a=jQuery(this).attr("data-attachment_id");b=b+a+","}),h.val(b)}}),a("#product_images_container").on("click","a.delete",function(){a(this).closest("li.image").remove();var b="";return a("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var a=jQuery(this).attr("data-attachment_id");b=b+a+","}),h.val(b),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),!1})}); \ No newline at end of file +jQuery(function(a){function b(){var b=a("select#product-type").val(),c=a("input#_virtual:checked").length,d=a("input#_downloadable:checked").length,e=".hide_if_downloadable, .hide_if_virtual",f=".show_if_downloadable, .show_if_virtual";a.each(woocommerce_admin_meta_boxes.product_types,function(a,b){e=e+", .hide_if_"+b,f=f+", .show_if_"+b}),a(e).show(),a(f).hide(),d&&a(".show_if_downloadable").show(),c&&a(".show_if_virtual").show(),a(".show_if_"+b).show(),d&&a(".hide_if_downloadable").hide(),c&&a(".hide_if_virtual").hide(),a(".hide_if_"+b).hide(),a("input#_manage_stock").change()}function c(){a(".product_attributes .woocommerce_attribute").each(function(b,c){a(".attribute_position",c).val(parseInt(a(c).index(".product_attributes .woocommerce_attribute"),10))})}a(function(){a('[id$="-all"] > ul.categorychecklist').each(function(){var b=a(this),c=b.find(":checked").first();if(c.length){var d=b.find("input").position().top,e=c.position().top;b.closest(".tabs-panel").scrollTop(e-d+5)}})}),a("#upsell_product_data").bind("keypress",function(a){if(13===a.keyCode)return!1}),a(".type_box").appendTo("#woocommerce-product-data .hndle span"),a(function(){a("#woocommerce-product-data").find(".hndle").unbind("click.postboxes"),jQuery("#woocommerce-product-data").on("click",".hndle",function(b){a(b.target).filter("input, option, label, select").length||a("#woocommerce-product-data").toggleClass("closed")})}),a("#catalog-visibility").find(".edit-catalog-visibility").click(function(){return a("#catalog-visibility-select").is(":hidden")&&(a("#catalog-visibility-select").slideDown("fast"),a(this).hide()),!1}),a("#catalog-visibility").find(".save-post-visibility").click(function(){a("#catalog-visibility-select").slideUp("fast"),a("#catalog-visibility").find(".edit-catalog-visibility").show();var b=a("input[name=_visibility]:checked").attr("data-label");return a("input[name=_featured]").is(":checked")&&(b=b+", "+woocommerce_admin_meta_boxes.featured_label,a("input[name=_featured]").attr("checked","checked")),a("#catalog-visibility-display").text(b),!1}),a("#catalog-visibility").find(".cancel-post-visibility").click(function(){a("#catalog-visibility-select").slideUp("fast"),a("#catalog-visibility").find(".edit-catalog-visibility").show();var b=a("#current_visibility").val(),c=a("#current_featured").val();a("input[name=_visibility]").removeAttr("checked"),a("input[name=_visibility][value="+b+"]").attr("checked","checked");var d=a("input[name=_visibility]:checked").attr("data-label");return"yes"===c?(d=d+", "+woocommerce_admin_meta_boxes.featured_label,a("input[name=_featured]").attr("checked","checked")):a("input[name=_featured]").removeAttr("checked"),a("#catalog-visibility-display").text(d),!1}),a("select#product-type").change(function(){var c=a(this).val();"variable"===c?(a("input#_manage_stock").change(),a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")):"grouped"===c?(a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")):"external"===c&&(a("input#_downloadable").prop("checked",!1),a("input#_virtual").removeAttr("checked")),b(),a("ul.wc-tabs li:visible").eq(0).find("a").click(),a(document.body).trigger("woocommerce-product-type-change",c,a(this))}).change(),a(document.body).on("woocommerce-product-type-change",function(b,c){"variable"!==c&&0e?1:0}),a(d).each(function(b,c){a(".product_attributes").append(c)}),a(".product_attributes .woocommerce_attribute").each(function(b,c){"none"!==a(c).css("display")&&a(c).is(".taxonomy")&&a("select.attribute_taxonomy").find('option[value="'+a(c).data("taxonomy")+'"]').attr("disabled","disabled")}),a("button.add_attribute").on("click",function(){var b=a(".product_attributes .woocommerce_attribute").length,d=a("select.attribute_taxonomy").val(),e=a(this).closest("#product_attributes"),f=e.find(".product_attributes"),g=a("select#product-type").val(),h={action:"woocommerce_add_attribute",taxonomy:d,i:b,security:woocommerce_admin_meta_boxes.add_attribute_nonce};return e.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.post(woocommerce_admin_meta_boxes.ajax_url,h,function(b){f.append(b),"variable"!==g&&f.find(".enable_variation").hide(),a(document.body).trigger("wc-enhanced-select-init"),c(),e.unblock(),a(document.body).trigger("woocommerce_added_attribute")}),d&&(a("select.attribute_taxonomy").find('option[value="'+d+'"]').attr("disabled","disabled"),a("select.attribute_taxonomy").val("")),!1}),a(".product_attributes").on("blur","input.attribute_name",function(){a(this).closest(".woocommerce_attribute").find("strong.attribute_name").text(a(this).val())}),a(".product_attributes").on("click","button.select_all_attributes",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").change(),!1}),a(".product_attributes").on("click","button.select_no_attributes",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").change(),!1}),a(".product_attributes").on("click",".remove_row",function(){if(window.confirm(woocommerce_admin_meta_boxes.remove_attribute)){var b=a(this).parent().parent();b.is(".taxonomy")?(b.find("select, input[type=text]").val(""),b.hide(),a("select.attribute_taxonomy").find('option[value="'+b.data("taxonomy")+'"]').removeAttr("disabled")):(b.find("select, input[type=text]").val(""),b.hide(),c())}return!1}),a(".product_attributes").sortable({items:".woocommerce_attribute",cursor:"move",axis:"y",handle:"h3",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style"),c()}}),a(".product_attributes").on("click","button.add_new_attribute",function(){a(".product_attributes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b=a(this).closest(".woocommerce_attribute"),c=b.data("taxonomy"),d=window.prompt(woocommerce_admin_meta_boxes.new_attribute_prompt);if(d){var e={action:"woocommerce_add_new_attribute",taxonomy:c,term:d,security:woocommerce_admin_meta_boxes.add_attribute_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,e,function(c){c.error?window.alert(c.error):c.slug&&(b.find("select.attribute_values").append('"),b.find("select.attribute_values").change()),a(".product_attributes").unblock()})}else a(".product_attributes").unblock();return!1}),a(".save_attributes").on("click",function(){a("#woocommerce-product-data").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b={post_id:woocommerce_admin_meta_boxes.post_id,data:a(".product_attributes").find("input, select, textarea").serialize(),action:"woocommerce_save_attributes",security:woocommerce_admin_meta_boxes.save_attributes_nonce};a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(){var b=window.location.toString();b=b.replace("post-new.php?","post.php?post="+woocommerce_admin_meta_boxes.post_id+"&action=edit&"),a("#variable_product_options").load(b+" #variable_product_options_inner",function(){a("#variable_product_options").trigger("reload")})})});var e,f;jQuery(document.body).on("click",".upload_file_button",function(b){var c=a(this);if(f=c.closest("tr").find("td.file_url input"),b.preventDefault(),e)return void e.open();var d=[new wp.media.controller.Library({library:wp.media.query(),multiple:!0,title:c.data("choose"),priority:20,filterable:"uploaded"})];e=wp.media.frames.downloadable_file=wp.media({title:c.data("choose"),library:{type:""},button:{text:c.data("update")},multiple:!0,states:d}),e.on("select",function(){var a="",b=e.state().get("selection");b.map(function(b){b=b.toJSON(),b.url&&(a=b.url)}),f.val(a).change()}),e.on("ready",function(){e.uploader.options.uploader.params={type:"downloadable_product"}}),e.open()}),jQuery(".downloadable_files tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65});var g,h=a("#product_image_gallery"),i=a("#product_images_container").find("ul.product_images");jQuery(".add_product_images").on("click","a",function(b){var c=a(this);return b.preventDefault(),g?void g.open():(g=wp.media.frames.product_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]}),g.on("select",function(){var a=g.state().get("selection"),b=h.val();a.map(function(a){if(a=a.toJSON(),a.id){b=b?b+","+a.id:a.id;var d=a.sizes&&a.sizes.thumbnail?a.sizes.thumbnail.url:a.url;i.append('
  • ")}}),h.val(b)}),void g.open())}),i.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(){var b="";a("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var a=jQuery(this).attr("data-attachment_id");b=b+a+","}),h.val(b)}}),a("#product_images_container").on("click","a.delete",function(){a(this).closest("li.image").remove();var b="";return a("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var a=jQuery(this).attr("data-attachment_id");b=b+a+","}),h.val(b),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),!1})}); \ No newline at end of file diff --git a/assets/js/admin/meta-boxes.min.js b/assets/js/admin/meta-boxes.min.js index 2c8b16c9a51..69d1ef2aa6e 100644 --- a/assets/js/admin/meta-boxes.min.js +++ b/assets/js/admin/meta-boxes.min.js @@ -1 +1 @@ -jQuery(function(a){function b(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}b(),a("#titlediv").find("#title").keyup(function(b){var c=b.keyCode||b.which;return"9"===c&&a("#woocommerce-coupon-description").length>0?(b.stopPropagation(),a("#woocommerce-coupon-description").focus(),!1):void 0}),a(".wc-metaboxes-wrapper").on("click",".wc-metabox > h3",function(){a(this).parent(".wc-metabox").toggleClass("closed").toggleClass("open")}),a(document.body).on("wc-init-tabbed-panels",function(){a("ul.wc-tabs").show(),a("ul.wc-tabs a").click(function(b){b.preventDefault();var c=a(this).closest("div.panel-wrap");a("ul.wc-tabs li",c).removeClass("active"),a(this).parent().addClass("active"),a("div.panel",c).hide(),a(a(this).attr("href")).show()}),a("div.panel-wrap").each(function(){a(this).find("ul.wc-tabs li").eq(0).find("a").click()})}).trigger("wc-init-tabbed-panels"),a(document.body).on("wc-init-datepickers",function(){a(".date-picker-field, .date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0})}).trigger("wc-init-datepickers"),a(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(b){a(b.target).filter(":input, option, .sort").length||a(this).next(".wc-metabox-content").stop().slideToggle()}).on("click",".expand_all",function(){return a(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").show(),!1}).on("click",".close_all",function(){return a(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").hide(),!1}),a(".wc-metabox.closed").each(function(){a(this).find(".wc-metabox-content").hide()})}); \ No newline at end of file +jQuery(function(a){function b(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}b(),a("#titlediv").find("#title").keyup(function(b){var c=b.keyCode||b.which;if("9"===c&&a("#woocommerce-coupon-description").length>0)return b.stopPropagation(),a("#woocommerce-coupon-description").focus(),!1}),a(".wc-metaboxes-wrapper").on("click",".wc-metabox > h3",function(){a(this).parent(".wc-metabox").toggleClass("closed").toggleClass("open")}),a(document.body).on("wc-init-tabbed-panels",function(){a("ul.wc-tabs").show(),a("ul.wc-tabs a").click(function(b){b.preventDefault();var c=a(this).closest("div.panel-wrap");a("ul.wc-tabs li",c).removeClass("active"),a(this).parent().addClass("active"),a("div.panel",c).hide(),a(a(this).attr("href")).show()}),a("div.panel-wrap").each(function(){a(this).find("ul.wc-tabs li").eq(0).find("a").click()})}).trigger("wc-init-tabbed-panels"),a(document.body).on("wc-init-datepickers",function(){a(".date-picker-field, .date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0})}).trigger("wc-init-datepickers"),a(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(b){a(b.target).filter(":input, option, .sort").length||a(this).next(".wc-metabox-content").stop().slideToggle()}).on("click",".expand_all",function(){return a(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").show(),!1}).on("click",".close_all",function(){return a(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").hide(),!1}),a(".wc-metabox.closed").each(function(){a(this).find(".wc-metabox-content").hide()})}); \ No newline at end of file diff --git a/assets/js/admin/reports.min.js b/assets/js/admin/reports.min.js index 32fa2cac62b..511913e1bce 100644 --- a/assets/js/admin/reports.min.js +++ b/assets/js/admin/reports.min.js @@ -1 +1 @@ -jQuery(function(a){function b(b,c,d){a('
    '+d+"
    ").css({top:c-16,left:b+20}).appendTo("body").fadeIn(200)}var c=null,d=null;a(".chart-placeholder").bind("plothover",function(e,f,g){if(g){if((c!==g.dataIndex||d!==g.seriesIndex)&&(c=g.dataIndex,d=g.seriesIndex,a(".chart-tooltip").remove(),g.series.points.show||g.series.enable_tooltip)){var h=g.series.data[g.dataIndex][1],i="";g.series.prepend_label&&(i=i+g.series.label+": "),g.series.prepend_tooltip&&(i+=g.series.prepend_tooltip),i+=h,g.series.append_tooltip&&(i+=g.series.append_tooltip),g.series.pie.show?b(f.pageX,f.pageY,i):b(g.pageX,g.pageY,i)}}else a(".chart-tooltip").remove(),c=null}),a(".wc_sparkline.bars").each(function(){var b=a(this).data("sparkline"),c={grid:{show:!1}},d=[{data:b,color:a(this).data("color"),bars:{fillColor:a(this).data("color"),fill:!0,show:!0,lineWidth:1,barWidth:a(this).data("barwidth"),align:"center"},shadowSize:0}];a.plot(a(this),d,c)}),a(".wc_sparkline.lines").each(function(){var b=a(this).data("sparkline"),c={grid:{show:!1}},d=[{data:b,color:a(this).data("color"),lines:{fill:!1,show:!0,lineWidth:1,align:"center"},shadowSize:0}];a.plot(a(this),d,c)});var e=a(".range_datepicker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,maxDate:"+0D",showButtonPanel:!0,showOn:"focus",buttonImageOnly:!0,onSelect:function(b){var c=a(this).is(".from")?"minDate":"maxDate",d=a(this).data("datepicker"),f=a.datepicker.parseDate(d.settings.dateFormat||a.datepicker._defaults.dateFormat,b,d.settings);e.not(this).datepicker("option",c,f)}}),f=document.createElement("a");"undefined"==typeof f.download&&a(".export_csv").hide(),a(".export_csv").click(function(){var b=a(this).data("exclude_series")||"";b=b.toString(),b=b.split(",");var c,d,e,f=a(this).data("xaxes"),g=a(this).data("groupby"),h=a(this).data("export"),i="data:application/csv;charset=utf-8,";if("table"===h)a(this).closest("div").find("thead tr,tbody tr").each(function(){a(this).find("th, td").each(function(){var b=a(this).text();b=b.replace("[?]",""),i+='"'+b+'",'}),i=i.substring(0,i.length-1),i+="\n"}),a(this).closest("div").find("tfoot tr").each(function(){a(this).find("th, td").each(function(){var b=a(this).text();if(b=b.replace("[?]",""),i+='"'+b+'",',a(this).attr("colspan")>0)for(m=1;m'+d+"").css({top:c-16,left:b+20}).appendTo("body").fadeIn(200)}var c=null,d=null;a(".chart-placeholder").bind("plothover",function(e,f,g){if(g){if((c!==g.dataIndex||d!==g.seriesIndex)&&(c=g.dataIndex,d=g.seriesIndex,a(".chart-tooltip").remove(),g.series.points.show||g.series.enable_tooltip)){var h=g.series.data[g.dataIndex][1],i="";g.series.prepend_label&&(i=i+g.series.label+": "),g.series.prepend_tooltip&&(i+=g.series.prepend_tooltip),i+=h,g.series.append_tooltip&&(i+=g.series.append_tooltip),g.series.pie.show?b(f.pageX,f.pageY,i):b(g.pageX,g.pageY,i)}}else a(".chart-tooltip").remove(),c=null}),a(".wc_sparkline.bars").each(function(){var b=a(this).data("sparkline"),c={grid:{show:!1}},d=[{data:b,color:a(this).data("color"),bars:{fillColor:a(this).data("color"),fill:!0,show:!0,lineWidth:1,barWidth:a(this).data("barwidth"),align:"center"},shadowSize:0}];a.plot(a(this),d,c)}),a(".wc_sparkline.lines").each(function(){var b=a(this).data("sparkline"),c={grid:{show:!1}},d=[{data:b,color:a(this).data("color"),lines:{fill:!1,show:!0,lineWidth:1,align:"center"},shadowSize:0}];a.plot(a(this),d,c)});var e=a(".range_datepicker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,maxDate:"+0D",showButtonPanel:!0,showOn:"focus",buttonImageOnly:!0,onSelect:function(b){var c=a(this).is(".from")?"minDate":"maxDate",d=a(this).data("datepicker"),f=a.datepicker.parseDate(d.settings.dateFormat||a.datepicker._defaults.dateFormat,b,d.settings);e.not(this).datepicker("option",c,f)}}),f=document.createElement("a");"undefined"==typeof f.download&&a(".export_csv").hide(),a(".export_csv").click(function(){var b=a(this).data("exclude_series")||"";b=b.toString(),b=b.split(",");var c,d,e,f=a(this).data("xaxes"),g=a(this).data("groupby"),h=a(this).data("export"),i="data:application/csv;charset=utf-8,";if("table"===h)a(this).offsetParent().find("thead tr,tbody tr").each(function(){a(this).find("th, td").each(function(){var b=a(this).text();b=b.replace("[?]",""),i+='"'+b+'",'}),i=i.substring(0,i.length-1),i+="\n"}),a(this).offsetParent().find("tfoot tr").each(function(){a(this).find("th, td").each(function(){var b=a(this).text();if(b=b.replace("[?]",""),i+='"'+b+'",',a(this).attr("colspan")>0)for(m=1;m0?"&":"?")+"action=woocommerce_tax_rates_save_changes",data:{current_class:b.current_class,wc_tax_nonce:b.wc_tax_nonce,changes:a.changes},success:function(b,c){"success"===c&&(p.set("rates",b.data.rates),p.trigger("change:rates"),p.changes={},p.trigger("saved:rates"),q.render()),a.unblock()}})}}),o=Backbone.View.extend({rowTemplate:e,per_page:b.limit,page:b.page,initialize:function(){var c=Math.ceil(_.toArray(this.model.get("rates")).length/this.per_page);this.qty_pages=0===c?1:c,this.page=this.sanitizePage(b.page),this.listenTo(this.model,"change:rates",this.setUnloadConfirmation),this.listenTo(this.model,"saved:rates",this.clearUnloadConfirmation),i.on("change autocompletechange",":input",{view:this},this.updateModelOnChange),i.on("sortupdate",{view:this},this.updateModelOnSort),l.on("keyup search",{view:this},this.onSearchField),k.on("click","a",{view:this},this.onPageChange),k.on("change","input",{view:this},this.onPageChange),a(window).on("beforeunload",{view:this},this.unloadConfirmation),m.on("click",{view:this},this.onSubmit),j.attr("disabled","disabled"),h.find(".insert").on("click",{view:this},this.onAddNewRow),h.find(".remove_tax_rates").on("click",{view:this},this.onDeleteRow),h.find(".export").on("click",{view:this},this.onExport)},render:function(){var c=this.model.getFilteredRates(),d=_.size(c),e=Math.ceil(d/this.per_page),h=0===d?0:this.per_page*(this.page-1),j=this.per_page*this.page,m=_.toArray(c).slice(h,j),n=this;this.$el.empty(),m.length?a.each(m,function(a,b){n.$el.append(n.rowTemplate(b))}):n.$el.append(f()),this.$el.find("td.country input").autocomplete({source:b.countries,minLength:2}),this.$el.find("td.state input").autocomplete({source:b.states,minLength:3}),this.$el.find("td.postcode input, td.city input").change(function(){a(this).attr("name",a(this).data("name"))}),e>1?k.html(g({qty_rates:d,current_page:this.page,qty_pages:e})):(k.empty(),n.page=1),l.val()?i.sortable("disable"):i.sortable("enable")},updateUrl:function(){if(window.history.replaceState){var a=b.base_url,c=l.val();1e}),g=_.map(f,function(a){return a.tax_rate_order++,l[a.tax_rate_id]=_.extend(l[a.tax_rate_id]||{},{tax_rate_order:a.tax_rate_order}),a})):(n.tax_rate_order=1+_.max(_.pluck(k,"tax_rate_order"),function(a){return parseInt(a,10)}),h.page=h.qty_pages),k[n.tax_rate_id]=n,l[n.tax_rate_id]=n,j.set("rates",k),j.logChanges(l),h.render()},onDeleteRow:function(c){var d,e,f=c.data.view,g=f.model,h=_.indexBy(g.get("rates"),"tax_rate_id"),j={};c.preventDefault(),(d=i.children(".current"))?(d.each(function(){e=a(this).data("id"),delete h[e],j[e]=_.extend(j[e]||{},{deleted:"deleted"})}),g.set("rates",h),g.logChanges(j),f.render()):window.alert(b.strings.no_rows_selected)},onSearchField:function(a){a.data.view.updateUrl(),a.data.view.render()},onPageChange:function(b){var c=a(b.currentTarget);b.preventDefault(),b.data.view.page=c.data("goto")?c.data("goto"):c.val(),b.data.view.render(),b.data.view.updateUrl()},onExport:function(c){var d="data:application/csv;charset=utf-8,"+b.strings.csv_data_cols.join(",")+"\n";return a.each(c.data.view.model.getFilteredRates(),function(a,c){var e="";e+=c.tax_rate_country+",",e+=c.tax_rate_state+",",e+=(c.postcode?c.postcode.join("; "):"")+",",e+=(c.city?c.city.join("; "):"")+",",e+=c.tax_rate+",",e+=c.tax_rate_name+",",e+=c.tax_rate_priority+",",e+=c.tax_rate_compound+",",e+=c.tax_rate_shipping+",",e+=b.current_class,d+=e+"\n"}),a(this).attr("href",encodeURI(d)),!0},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,j.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,j.attr("disabled","disabled")},unloadConfirmation:function(a){return a.data.view.needsUnloadConfirm?(a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg):void 0},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val();"city"!==f&&"postcode"!==f||(g=g.split(";"),g=a.map(g,function(a){return a.trim()})),"tax_rate_compound"!==f&&"tax_rate_shipping"!==f||(g=d.is(":checked")?1:0),c.setRateAttribute(e,f,g)},updateModelOnSort:function(a){var b=a.data.view,c=b.model,d=_.indexBy(c.get("rates"),"tax_rate_id"),e={};_.each(d,function(a){var c=0,d=parseInt(a.tax_rate_order,10);c=h.find('tr[data-id="'+a.tax_rate_id+'"]').length?parseInt(h.find('tr[data-id="'+a.tax_rate_id+'"]').index(),10)+parseInt((b.page-1)*b.per_page,10):d,d!==c&&(e[a.tax_rate_id]=_.extend(e[a.tax_rate_id]||{},{tax_rate_order:c}))}),_.size(e)&&c.logChanges(e)},sanitizePage:function(a){return a=parseInt(a,10),1>a?a=1:a>this.qty_pages&&(a=this.qty_pages),a}}),p=new n({rates:b.rates}),q=new o({model:p,el:"#rates"});q.render()})}(jQuery,htmlSettingsTaxLocalizeScript,wp,ajaxurl); \ No newline at end of file +!function(a,b,c,d){a(function(){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});var e=c.template("wc-tax-table-row"),f=c.template("wc-tax-table-row-empty"),g=c.template("wc-tax-table-pagination"),h=a(".wc_tax_rates"),i=a("#rates"),j=a('input[name="save"]'),k=a("#rates-pagination"),l=a("#rates-search .wc-tax-rates-search-field"),m=a(".submit .button-primary[type=submit]"),n=Backbone.Model.extend({changes:{},setRateAttribute:function(a,b,c){var d=_.indexBy(this.get("rates"),"tax_rate_id"),e={};d[a][b]!==c&&(e[a]={},e[a][b]=c,d[a][b]=c),this.logChanges(e)},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{tax_rate_id:c},a)}),this.changes=b,this.trigger("change:rates")},getFilteredRates:function(){var a=this.get("rates"),b=l.val().toLowerCase();return b.length&&(a=_.filter(a,function(a){var c=_.toArray(a).join(" ").toLowerCase();return-1!==c.indexOf(b)})),a=_.sortBy(a,function(a){return parseInt(a.tax_rate_order,10)})},block:function(){a(".wc_tax_rates").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(".wc_tax_rates").unblock()},save:function(){var a=this;a.block(),Backbone.ajax({method:"POST",dataType:"json",url:d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_tax_rates_save_changes",data:{current_class:b.current_class,wc_tax_nonce:b.wc_tax_nonce,changes:a.changes},success:function(b,c){"success"===c&&(p.set("rates",b.data.rates),p.trigger("change:rates"),p.changes={},p.trigger("saved:rates"),q.render()),a.unblock()}})}}),o=Backbone.View.extend({rowTemplate:e,per_page:b.limit,page:b.page,initialize:function(){var c=Math.ceil(_.toArray(this.model.get("rates")).length/this.per_page);this.qty_pages=0===c?1:c,this.page=this.sanitizePage(b.page),this.listenTo(this.model,"change:rates",this.setUnloadConfirmation),this.listenTo(this.model,"saved:rates",this.clearUnloadConfirmation),i.on("change autocompletechange",":input",{view:this},this.updateModelOnChange),i.on("sortupdate",{view:this},this.updateModelOnSort),l.on("keyup search",{view:this},this.onSearchField),k.on("click","a",{view:this},this.onPageChange),k.on("change","input",{view:this},this.onPageChange),a(window).on("beforeunload",{view:this},this.unloadConfirmation),m.on("click",{view:this},this.onSubmit),j.attr("disabled","disabled"),h.find(".insert").on("click",{view:this},this.onAddNewRow),h.find(".remove_tax_rates").on("click",{view:this},this.onDeleteRow),h.find(".export").on("click",{view:this},this.onExport)},render:function(){var c=this.model.getFilteredRates(),d=_.size(c),e=Math.ceil(d/this.per_page),h=0===d?0:this.per_page*(this.page-1),j=this.per_page*this.page,m=_.toArray(c).slice(h,j),n=this;this.$el.empty(),m.length?a.each(m,function(a,b){n.$el.append(n.rowTemplate(b))}):n.$el.append(f()),this.$el.find("td.country input").autocomplete({source:b.countries,minLength:2}),this.$el.find("td.state input").autocomplete({source:b.states,minLength:3}),this.$el.find("td.postcode input, td.city input").change(function(){a(this).attr("name",a(this).data("name"))}),e>1?k.html(g({qty_rates:d,current_page:this.page,qty_pages:e})):(k.empty(),n.page=1),l.val()?i.sortable("disable"):i.sortable("enable")},updateUrl:function(){if(window.history.replaceState){var a=b.base_url,c=l.val();1e}),g=_.map(f,function(a){return a.tax_rate_order++,l[a.tax_rate_id]=_.extend(l[a.tax_rate_id]||{},{tax_rate_order:a.tax_rate_order}),a})):(n.tax_rate_order=1+_.max(_.pluck(k,"tax_rate_order"),function(a){return parseInt(a,10)}),h.page=h.qty_pages),k[n.tax_rate_id]=n,l[n.tax_rate_id]=n,j.set("rates",k),j.logChanges(l),h.render()},onDeleteRow:function(c){var d,e,f=c.data.view,g=f.model,h=_.indexBy(g.get("rates"),"tax_rate_id"),j={};c.preventDefault(),(d=i.children(".current"))?(d.each(function(){e=a(this).data("id"),delete h[e],j[e]=_.extend(j[e]||{},{deleted:"deleted"})}),g.set("rates",h),g.logChanges(j),f.render()):window.alert(b.strings.no_rows_selected)},onSearchField:function(a){a.data.view.updateUrl(),a.data.view.render()},onPageChange:function(b){var c=a(b.currentTarget);b.preventDefault(),b.data.view.page=c.data("goto")?c.data("goto"):c.val(),b.data.view.render(),b.data.view.updateUrl()},onExport:function(c){var d="data:application/csv;charset=utf-8,"+b.strings.csv_data_cols.join(",")+"\n";return a.each(c.data.view.model.getFilteredRates(),function(a,c){var e="";e+=c.tax_rate_country+",",e+=c.tax_rate_state+",",e+=(c.postcode?c.postcode.join("; "):"")+",",e+=(c.city?c.city.join("; "):"")+",",e+=c.tax_rate+",",e+=c.tax_rate_name+",",e+=c.tax_rate_priority+",",e+=c.tax_rate_compound+",",e+=c.tax_rate_shipping+",",e+=b.current_class,d+=e+"\n"}),a(this).attr("href",encodeURI(d)),!0},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,j.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,j.attr("disabled","disabled")},unloadConfirmation:function(a){if(a.data.view.needsUnloadConfirm)return a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val();"city"!==f&&"postcode"!==f||(g=g.split(";"),g=a.map(g,function(a){return a.trim()})),"tax_rate_compound"!==f&&"tax_rate_shipping"!==f||(g=d.is(":checked")?1:0),c.setRateAttribute(e,f,g)},updateModelOnSort:function(a){var b=a.data.view,c=b.model,d=_.indexBy(c.get("rates"),"tax_rate_id"),e={};_.each(d,function(a){var c=0,d=parseInt(a.tax_rate_order,10);c=h.find('tr[data-id="'+a.tax_rate_id+'"]').length?parseInt(h.find('tr[data-id="'+a.tax_rate_id+'"]').index(),10)+parseInt((b.page-1)*b.per_page,10):d,d!==c&&(e[a.tax_rate_id]=_.extend(e[a.tax_rate_id]||{},{tax_rate_order:c}))}),_.size(e)&&c.logChanges(e)},sanitizePage:function(a){return a=parseInt(a,10),a<1?a=1:a>this.qty_pages&&(a=this.qty_pages),a}}),p=new n({rates:b.rates}),q=new o({model:p,el:"#rates"});q.render()})}(jQuery,htmlSettingsTaxLocalizeScript,wp,ajaxurl); \ No newline at end of file diff --git a/assets/js/admin/wc-shipping-classes.min.js b/assets/js/admin/wc-shipping-classes.min.js index a0e0b09b2d5..d083a48efc5 100644 --- a/assets/js/admin/wc-shipping-classes.min.js +++ b/assets/js/admin/wc-shipping-classes.min.js @@ -1 +1 @@ -!function(a,b,c,d){a(function(){var e=a(".wc-shipping-class-rows"),f=a(".wc-shipping-class-save"),g=c.template("wc-shipping-class-row"),h=c.template("wc-shipping-class-row-blank"),i=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{term_id:c},a)}),this.changes=b,this.trigger("change:classes")},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_classes_save_changes",{wc_shipping_classes_nonce:b.wc_shipping_classes_nonce,changes:this.changes},this.onSaveResponse,"json"):k.trigger("saved:classes")},discardChanges:function(a){var b=this.changes||{};delete b[a],0===_.size(this.changes)&&l.clearUnloadConfirmation()},onSaveResponse:function(a,c){"success"===c&&(a.success?(k.set("classes",a.data.shipping_classes),k.trigger("change:classes"),k.changes={},k.trigger("saved:classes")):a.data?window.alert(a.data):window.alert(b.strings.save_failed)),l.unblock()}}),j=Backbone.View.extend({rowTemplate:g,initialize:function(){this.listenTo(this.model,"change:classes",this.setUnloadConfirmation),this.listenTo(this.model,"saved:classes",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:classes",this.render),e.on("change",{view:this},this.updateModelOnChange),a(window).on("beforeunload",{view:this},this.unloadConfirmation),f.on("click",{view:this},this.onSubmit),a(document.body).on("click",".wc-shipping-class-add",{view:this},this.onAddNewRow),a(document.body).on("click",".wc-shipping-class-save-changes",{view:this},this.onSubmit)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var b=_.indexBy(this.model.get("classes"),"term_id"),c=this;this.$el.empty(),this.unblock(),_.size(b)?(b=_.sortBy(b,function(a){return a.name}),a.each(b,function(a,b){c.renderRow(b)})):c.$el.append(h)},renderRow:function(a){var b=this;b.$el.append(b.rowTemplate(a)),b.initRow(a)},initRow:function(b){var c=this,d=c.$el.find('tr[data-id="'+b.term_id+'"]');d.find("select").each(function(){var c=a(this).data("attribute");a(this).find('option[value="'+b[c]+'"]').prop("selected",!0)}),d.find(".view").show(),d.find(".edit").hide(),d.find(".wc-shipping-class-edit").on("click",{view:this},this.onEditRow),d.find(".wc-shipping-class-delete").on("click",{view:this},this.onDeleteRow),d.find(".editing .wc-shipping-class-edit").trigger("click"),d.find(".wc-shipping-class-cancel-edit").on("click",{view:this},this.onCancelEditRow),!0===b.editing&&(d.addClass("editing"),d.find(".wc-shipping-class-edit").trigger("click"))},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onAddNewRow:function(c){c.preventDefault();var d=c.data.view,e=d.model,f=_.indexBy(e.get("classes"),"term_id"),g={},h=_.size(f),i=_.extend({},b.default_class,{term_id:"new-"+h+"-"+Date.now(),editing:!0,newRow:!0});g[i.term_id]=i,e.logChanges(g),d.renderRow(i),a(".wc-shipping-classes-blank-state").remove()},onEditRow:function(b){b.preventDefault(),a(this).closest("tr").addClass("editing"),a(this).closest("tr").find(".view").hide(),a(this).closest("tr").find(".edit").show(),b.data.view.model.trigger("change:classes")},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("classes"),"term_id"),f={},g=a(this).closest("tr").data("id");b.preventDefault(),e[g]&&(delete e[g],f[g]=_.extend(f[g]||{},{deleted:"deleted"}),d.set("classes",e),d.logChanges(f)),c.render()},onCancelEditRow:function(b){var c=b.data.view,d=c.model,e=a(this).closest("tr"),f=a(this).closest("tr").data("id"),g=_.indexBy(d.get("classes"),"term_id");b.preventDefault(),d.discardChanges(f),g[f]&&(g[f].editing=!1,e.after(c.rowTemplate(g[f])),c.initRow(g[f])),e.remove()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,f.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,f.attr("disabled","disabled")},unloadConfirmation:function(a){return a.data.view.needsUnloadConfirm?(a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg):void 0},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("classes"),"term_id"),i={};h[e]&&h[e][f]===g||(i[e]={},i[e][f]=g),c.logChanges(i)}}),k=new i({classes:b.classes}),l=new j({model:k,el:e});l.render()})}(jQuery,shippingClassesLocalizeScript,wp,ajaxurl); \ No newline at end of file +!function(a,b,c,d){a(function(){var e=a(".wc-shipping-class-rows"),f=a(".wc-shipping-class-save"),g=c.template("wc-shipping-class-row"),h=c.template("wc-shipping-class-row-blank"),i=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{term_id:c},a)}),this.changes=b,this.trigger("change:classes")},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_classes_save_changes",{wc_shipping_classes_nonce:b.wc_shipping_classes_nonce,changes:this.changes},this.onSaveResponse,"json"):k.trigger("saved:classes")},discardChanges:function(a){var b=this.changes||{};delete b[a],0===_.size(this.changes)&&l.clearUnloadConfirmation()},onSaveResponse:function(a,c){"success"===c&&(a.success?(k.set("classes",a.data.shipping_classes),k.trigger("change:classes"),k.changes={},k.trigger("saved:classes")):a.data?window.alert(a.data):window.alert(b.strings.save_failed)),l.unblock()}}),j=Backbone.View.extend({rowTemplate:g,initialize:function(){this.listenTo(this.model,"change:classes",this.setUnloadConfirmation),this.listenTo(this.model,"saved:classes",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:classes",this.render),e.on("change",{view:this},this.updateModelOnChange),a(window).on("beforeunload",{view:this},this.unloadConfirmation),f.on("click",{view:this},this.onSubmit),a(document.body).on("click",".wc-shipping-class-add",{view:this},this.onAddNewRow),a(document.body).on("click",".wc-shipping-class-save-changes",{view:this},this.onSubmit)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var b=_.indexBy(this.model.get("classes"),"term_id"),c=this;this.$el.empty(),this.unblock(),_.size(b)?(b=_.sortBy(b,function(a){return a.name}),a.each(b,function(a,b){c.renderRow(b)})):c.$el.append(h)},renderRow:function(a){var b=this;b.$el.append(b.rowTemplate(a)),b.initRow(a)},initRow:function(b){var c=this,d=c.$el.find('tr[data-id="'+b.term_id+'"]');d.find("select").each(function(){var c=a(this).data("attribute");a(this).find('option[value="'+b[c]+'"]').prop("selected",!0)}),d.find(".view").show(),d.find(".edit").hide(),d.find(".wc-shipping-class-edit").on("click",{view:this},this.onEditRow),d.find(".wc-shipping-class-delete").on("click",{view:this},this.onDeleteRow),d.find(".editing .wc-shipping-class-edit").trigger("click"),d.find(".wc-shipping-class-cancel-edit").on("click",{view:this},this.onCancelEditRow),!0===b.editing&&(d.addClass("editing"),d.find(".wc-shipping-class-edit").trigger("click"))},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onAddNewRow:function(c){c.preventDefault();var d=c.data.view,e=d.model,f=_.indexBy(e.get("classes"),"term_id"),g={},h=_.size(f),i=_.extend({},b.default_class,{term_id:"new-"+h+"-"+Date.now(),editing:!0,newRow:!0});g[i.term_id]=i,e.logChanges(g),d.renderRow(i),a(".wc-shipping-classes-blank-state").remove()},onEditRow:function(b){b.preventDefault(),a(this).closest("tr").addClass("editing"),a(this).closest("tr").find(".view").hide(),a(this).closest("tr").find(".edit").show(),b.data.view.model.trigger("change:classes")},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("classes"),"term_id"),f={},g=a(this).closest("tr").data("id");b.preventDefault(),e[g]&&(delete e[g],f[g]=_.extend(f[g]||{},{deleted:"deleted"}),d.set("classes",e),d.logChanges(f)),c.render()},onCancelEditRow:function(b){var c=b.data.view,d=c.model,e=a(this).closest("tr"),f=a(this).closest("tr").data("id"),g=_.indexBy(d.get("classes"),"term_id");b.preventDefault(),d.discardChanges(f),g[f]&&(g[f].editing=!1,e.after(c.rowTemplate(g[f])),c.initRow(g[f])),e.remove()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,f.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,f.attr("disabled","disabled")},unloadConfirmation:function(a){if(a.data.view.needsUnloadConfirm)return a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("classes"),"term_id"),i={};h[e]&&h[e][f]===g||(i[e]={},i[e][f]=g),c.logChanges(i)}}),k=new i({classes:b.classes}),l=new j({model:k,el:e});l.render()})}(jQuery,shippingClassesLocalizeScript,wp,ajaxurl); \ No newline at end of file diff --git a/assets/js/admin/wc-shipping-zone-methods.min.js b/assets/js/admin/wc-shipping-zone-methods.min.js index 0fcad420067..5c980bfa46d 100644 --- a/assets/js/admin/wc-shipping-zone-methods.min.js +++ b/assets/js/admin/wc-shipping-zone-methods.min.js @@ -1 +1 @@ -!function(a,b,c,d){a(function(){var e=a(".wc-shipping-zone-methods"),f=a(".wc-shipping-zone-method-rows"),g=a(".wc-shipping-zone-method-save"),h=c.template("wc-shipping-zone-method-row"),i=c.template("wc-shipping-zone-method-row-blank"),j=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{instance_id:c},a)}),this.changes=b,this.trigger("change:methods")},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_methods_save_changes",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,changes:this.changes,zone_id:b.zone_id},this.onSaveResponse,"json"):l.trigger("saved:methods")},onSaveResponse:function(a,c){"success"===c&&(a.success?(l.set("methods",a.data.methods),l.trigger("change:methods"),l.changes={},l.trigger("saved:methods")):window.alert(b.strings.save_failed))}}),k=Backbone.View.extend({rowTemplate:h,initialize:function(){this.listenTo(this.model,"change:methods",this.setUnloadConfirmation),this.listenTo(this.model,"saved:methods",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:methods",this.render),f.on("change",{view:this},this.updateModelOnChange),f.on("sortupdate",{view:this},this.updateModelOnSort),a(window).on("beforeunload",{view:this},this.unloadConfirmation),g.on("click",{view:this},this.onSubmit),a(document.body).on("click",".wc-shipping-zone-method-settings",{view:this},this.onConfigureShippingMethod),a(document.body).on("click",".wc-shipping-zone-add-method",{view:this},this.onAddShippingMethod),a(document.body).on("wc_backbone_modal_response",this.onConfigureShippingMethodSubmitted),a(document.body).on("wc_backbone_modal_response",this.onAddShippingMethodSubmitted),a(document.body).on("change",".wc-shipping-zone-method-selector select",this.onChangeShippingMethodSelector)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var c=_.indexBy(this.model.get("methods"),"instance_id"),d=this;this.$el.empty(),this.unblock(),_.size(c)?(c=_.sortBy(c,function(a){return parseInt(a.method_order,10)}),a.each(c,function(a,c){"yes"===c.enabled?c.enabled_icon=''+b.strings.yes+"":c.enabled_icon=''+b.strings.no+"",d.$el.append(d.rowTemplate(c));var e=d.$el.find('tr[data-id="'+c.instance_id+'"]');c.has_settings||(e.find(".wc-shipping-zone-method-title a").replaceWith(e.find(".wc-shipping-zone-method-title").text()),e.find(".wc-shipping-zone-method-settings").remove())}),this.$el.find(".wc-shipping-zone-method-delete").on("click",{view:this},this.onDeleteRow),this.$el.find(".wc-shipping-zone-method-enabled a").on("click",{view:this},this.onToggleEnabled)):d.$el.append(i),this.initTooltips()},initTooltips:function(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:50})},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("methods"),"instance_id"),f={},g=a(this).closest("tr").data("id");b.preventDefault(),delete e[g],f[g]=_.extend(f[g]||{},{deleted:"deleted"}),d.set("methods",e),d.logChanges(f),c.render()},onToggleEnabled:function(b){var c=b.data.view,d=a(b.target),e=c.model,f=_.indexBy(e.get("methods"),"instance_id"),g=d.closest("tr").data("id"),h="yes"===d.closest("tr").data("enabled")?"no":"yes",i={};b.preventDefault(),f[g].enabled=h,i[g]=_.extend(i[g]||{},{enabled:h}),e.set("methods",f),e.logChanges(i),c.render()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,g.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,g.attr("disabled","disabled")},unloadConfirmation:function(a){return a.data.view.needsUnloadConfirm?(a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg):void 0},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("methods"),"instance_id"),i={};h[e][f]!==g&&(i[e]={},i[e][f]=g,h[e][f]=g),c.logChanges(i)},updateModelOnSort:function(a){var b=a.data.view,c=b.model,d=_.indexBy(c.get("methods"),"instance_id"),f={};_.each(d,function(a){var b=parseInt(a.method_order,10),c=parseInt(e.find('tr[data-id="'+a.instance_id+'"]').index()+1,10);b!==c&&(f[a.instance_id]=_.extend(f[a.instance_id]||{},{method_order:c}))}),_.size(f)&&c.logChanges(f)},onConfigureShippingMethod:function(b){var c=a(this).closest("tr").data("id"),d=b.data.view.model,e=_.indexBy(d.get("methods"),"instance_id"),f=e[c];return f.settings_html?(b.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-shipping-method-settings",variable:{instance_id:c,method:f},data:{instance_id:c,method:f}}),void a(document.body).trigger("init_tooltips")):!0},onConfigureShippingMethodSubmitted:function(c,e,f){"wc-modal-shipping-method-settings"===e&&(m.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_methods_save_settings",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,instance_id:f.instance_id,data:f},function(c,d){"success"===d&&c.success?(a("table.wc-shipping-zone-methods").parent().find("#woocommerce_errors").remove(),c.data.errors.length>0&&this.showErrors(c.data.errors),_.size(m.model.changes)?m.model.save():m.model.onSaveResponse(c,d)):(window.alert(b.strings.save_failed),m.unblock())},"json"))},showErrors:function(b){var c='
    ';a(b).each(function(a,b){c=c+"

    "+b+"

    "}),c+="
    ",a("table.wc-shipping-zone-methods").before(c)},onAddShippingMethod:function(c){c.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-add-shipping-method",variable:{zone_id:b.zone_id}}),a(".wc-shipping-zone-method-selector select").change()},onAddShippingMethodSubmitted:function(c,e,f){"wc-modal-add-shipping-method"===e&&(m.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_add_method",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,method_id:f.add_method_id,zone_id:b.zone_id},function(a,b){"success"===b&&a.success&&(_.size(m.model.changes)?m.model.save():(m.model.set("methods",a.data.methods),m.model.trigger("change:methods"),m.model.changes={},m.model.trigger("saved:methods"))),m.unblock()},"json"))},onChangeShippingMethodSelector:function(){var b=a(this).find("option:selected").data("description");a(this).parent().find(".wc-shipping-zone-method-description").remove(),a(this).after('

    '+b+"

    "),a(this).closest("article").height(a(this).parent().height())}}),l=new j({methods:b.methods}),m=new k({model:l,el:f});m.render(),f.sortable({items:"tr",cursor:"move",axis:"y",handle:"td.wc-shipping-zone-method-sort",scrollSensitivity:40})})}(jQuery,shippingZoneMethodsLocalizeScript,wp,ajaxurl); \ No newline at end of file +!function(a,b,c,d){a(function(){var e=a(".wc-shipping-zone-methods"),f=a(".wc-shipping-zone-method-rows"),g=a(".wc-shipping-zone-method-save"),h=c.template("wc-shipping-zone-method-row"),i=c.template("wc-shipping-zone-method-row-blank"),j=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{instance_id:c},a)}),this.changes=b,this.trigger("change:methods")},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_methods_save_changes",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,changes:this.changes,zone_id:b.zone_id},this.onSaveResponse,"json"):l.trigger("saved:methods")},onSaveResponse:function(a,c){"success"===c&&(a.success?(l.set("methods",a.data.methods),l.trigger("change:methods"),l.changes={},l.trigger("saved:methods")):window.alert(b.strings.save_failed))}}),k=Backbone.View.extend({rowTemplate:h,initialize:function(){this.listenTo(this.model,"change:methods",this.setUnloadConfirmation),this.listenTo(this.model,"saved:methods",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:methods",this.render),f.on("change",{view:this},this.updateModelOnChange),f.on("sortupdate",{view:this},this.updateModelOnSort),a(window).on("beforeunload",{view:this},this.unloadConfirmation),g.on("click",{view:this},this.onSubmit),a(document.body).on("click",".wc-shipping-zone-method-settings",{view:this},this.onConfigureShippingMethod),a(document.body).on("click",".wc-shipping-zone-add-method",{view:this},this.onAddShippingMethod),a(document.body).on("wc_backbone_modal_response",this.onConfigureShippingMethodSubmitted),a(document.body).on("wc_backbone_modal_response",this.onAddShippingMethodSubmitted),a(document.body).on("change",".wc-shipping-zone-method-selector select",this.onChangeShippingMethodSelector)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var c=_.indexBy(this.model.get("methods"),"instance_id"),d=this;this.$el.empty(),this.unblock(),_.size(c)?(c=_.sortBy(c,function(a){return parseInt(a.method_order,10)}),a.each(c,function(a,c){"yes"===c.enabled?c.enabled_icon=''+b.strings.yes+"":c.enabled_icon=''+b.strings.no+"",d.$el.append(d.rowTemplate(c));var e=d.$el.find('tr[data-id="'+c.instance_id+'"]');c.has_settings||(e.find(".wc-shipping-zone-method-title a").replaceWith(e.find(".wc-shipping-zone-method-title").text()),e.find(".wc-shipping-zone-method-settings").remove())}),this.$el.find(".wc-shipping-zone-method-delete").on("click",{view:this},this.onDeleteRow),this.$el.find(".wc-shipping-zone-method-enabled a").on("click",{view:this},this.onToggleEnabled)):d.$el.append(i),this.initTooltips()},initTooltips:function(){a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:50})},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("methods"),"instance_id"),f={},g=a(this).closest("tr").data("id");b.preventDefault(),delete e[g],f[g]=_.extend(f[g]||{},{deleted:"deleted"}),d.set("methods",e),d.logChanges(f),c.render()},onToggleEnabled:function(b){var c=b.data.view,d=a(b.target),e=c.model,f=_.indexBy(e.get("methods"),"instance_id"),g=d.closest("tr").data("id"),h="yes"===d.closest("tr").data("enabled")?"no":"yes",i={};b.preventDefault(),f[g].enabled=h,i[g]=_.extend(i[g]||{},{enabled:h}),e.set("methods",f),e.logChanges(i),c.render()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,g.removeAttr("disabled")},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,g.attr("disabled","disabled")},unloadConfirmation:function(a){if(a.data.view.needsUnloadConfirm)return a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("methods"),"instance_id"),i={};h[e][f]!==g&&(i[e]={},i[e][f]=g,h[e][f]=g),c.logChanges(i)},updateModelOnSort:function(a){var b=a.data.view,c=b.model,d=_.indexBy(c.get("methods"),"instance_id"),f={};_.each(d,function(a){var b=parseInt(a.method_order,10),c=parseInt(e.find('tr[data-id="'+a.instance_id+'"]').index()+1,10);b!==c&&(f[a.instance_id]=_.extend(f[a.instance_id]||{},{method_order:c}))}),_.size(f)&&c.logChanges(f)},onConfigureShippingMethod:function(b){var c=a(this).closest("tr").data("id"),d=b.data.view.model,e=_.indexBy(d.get("methods"),"instance_id"),f=e[c];return!f.settings_html||(b.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-shipping-method-settings",variable:{instance_id:c,method:f},data:{instance_id:c,method:f}}),void a(document.body).trigger("init_tooltips"))},onConfigureShippingMethodSubmitted:function(c,e,f){"wc-modal-shipping-method-settings"===e&&(m.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_methods_save_settings",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,instance_id:f.instance_id,data:f},function(c,d){"success"===d&&c.success?(a("table.wc-shipping-zone-methods").parent().find("#woocommerce_errors").remove(),c.data.errors.length>0&&this.showErrors(c.data.errors),_.size(m.model.changes)?m.model.save():m.model.onSaveResponse(c,d)):(window.alert(b.strings.save_failed),m.unblock())},"json"))},showErrors:function(b){var c='
    ';a(b).each(function(a,b){c=c+"

    "+b+"

    "}),c+="
    ",a("table.wc-shipping-zone-methods").before(c)},onAddShippingMethod:function(c){c.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-add-shipping-method",variable:{zone_id:b.zone_id}}),a(".wc-shipping-zone-method-selector select").change()},onAddShippingMethodSubmitted:function(c,e,f){"wc-modal-add-shipping-method"===e&&(m.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_add_method",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,method_id:f.add_method_id,zone_id:b.zone_id},function(a,b){"success"===b&&a.success&&(_.size(m.model.changes)?m.model.save():(m.model.set("methods",a.data.methods),m.model.trigger("change:methods"),m.model.changes={},m.model.trigger("saved:methods"))),m.unblock()},"json"))},onChangeShippingMethodSelector:function(){var b=a(this).find("option:selected").data("description");a(this).parent().find(".wc-shipping-zone-method-description").remove(),a(this).after('

    '+b+"

    "),a(this).closest("article").height(a(this).parent().height())}}),l=new j({methods:b.methods}),m=new k({model:l,el:f});m.render(),f.sortable({items:"tr",cursor:"move",axis:"y",handle:"td.wc-shipping-zone-method-sort",scrollSensitivity:40})})}(jQuery,shippingZoneMethodsLocalizeScript,wp,ajaxurl); \ No newline at end of file diff --git a/assets/js/admin/wc-shipping-zones.min.js b/assets/js/admin/wc-shipping-zones.min.js index c98edd47462..048cf4d44ec 100644 --- a/assets/js/admin/wc-shipping-zones.min.js +++ b/assets/js/admin/wc-shipping-zones.min.js @@ -1 +1 @@ -!function(a,b,c,d){a(function(){function e(){var a={formatMatches:function(a){return 1===a?wc_enhanced_select_params.i18n_matches_1:wc_enhanced_select_params.i18n_matches_n.replace("%qty%",a)},formatNoMatches:function(){return wc_enhanced_select_params.i18n_no_matches},formatAjaxError:function(){return wc_enhanced_select_params.i18n_ajax_error},formatInputTooShort:function(a,b){var c=b-a.length;return 1===c?wc_enhanced_select_params.i18n_input_too_short_1:wc_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",c)},formatInputTooLong:function(a,b){var c=a.length-b;return 1===c?wc_enhanced_select_params.i18n_input_too_long_1:wc_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",c)},formatSelectionTooBig:function(a){return 1===a?wc_enhanced_select_params.i18n_selection_too_long_1:wc_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",a)},formatLoadMore:function(){return wc_enhanced_select_params.i18n_load_more},formatSearching:function(){return wc_enhanced_select_params.i18n_searching}};return a}var f=a(".wc-shipping-zones"),g=a(".wc-shipping-zone-rows"),h=a(".wc-shipping-zone-save"),i=c.template("wc-shipping-zone-row"),j=c.template("wc-shipping-zone-row-blank"),k=a.extend({minimumResultsForSearch:10,allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),matcher:function(a,b,c){return b.toUpperCase().indexOf(a.toUpperCase())>=0||c.attr("alt").toUpperCase().indexOf(a.toUpperCase())>=0}},e()),l=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{zone_id:c},a)}),this.changes=b,this.trigger("change:zones")},discardChanges:function(a){var b=this.changes||{},c=null,d=_.indexBy(this.get("zones"),"zone_id");b[a]&&void 0!==b[a].zone_order&&(c=b[a].zone_order),delete b[a],null!==c&&d[a]&&d[a].zone_order!==c&&(b[a]=_.extend(b[a]||{},{zone_id:a,zone_order:c})),this.changes=b,0===_.size(this.changes)&&o.clearUnloadConfirmation()},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zones_save_changes",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,changes:this.changes},this.onSaveResponse,"json"):n.trigger("saved:zones")},onSaveResponse:function(a,c){"success"===c&&(a.success?(n.set("zones",a.data.zones),n.trigger("change:zones"),n.changes={},n.trigger("saved:zones")):window.alert(b.strings.save_failed))}}),m=Backbone.View.extend({rowTemplate:i,initialize:function(){this.listenTo(this.model,"change:zones",this.setUnloadConfirmation),this.listenTo(this.model,"saved:zones",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:zones",this.render),g.on("change",{view:this},this.updateModelOnChange),g.on("sortupdate",{view:this},this.updateModelOnSort),a(window).on("beforeunload",{view:this},this.unloadConfirmation),h.on("click",{view:this},this.onSubmit),a(document.body).on("click",".add_shipping_method:not(.disabled)",{view:this},this.onAddShippingMethod),a(document.body).on("click",".wc-shipping-zone-add",{view:this},this.onAddNewRow),a(document.body).on("wc_backbone_modal_response",this.onAddShippingMethodSubmitted),a(document.body).on("change",".wc-shipping-zone-method-selector select",this.onChangeShippingMethodSelector)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var b=_.indexBy(this.model.get("zones"),"zone_id"),c=this;c.$el.empty(),c.unblock(),_.size(b)?(b=_.sortBy(b,function(a){return parseInt(a.zone_order,10)}),a.each(b,function(a,b){c.renderRow(b)})):c.$el.append(j),c.initRows()},renderRow:function(a){var b=this;b.$el.append(b.rowTemplate(a)),b.initRow(a)},initRow:function(a){var b=this,c=b.$el.find('tr[data-id="'+a.zone_id+'"]');_.each(a.zone_locations,function(a){if("string"===jQuery.type(a))c.find('option[value="'+a+'"]').prop("selected",!0);else if("postcode"===a.type){var b=c.find(".wc-shipping-zone-postcodes :input");b.val()?b.val(b.val()+"\n"+a.code):b.val(a.code),c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()}else c.find('option[value="'+a.type+":"+a.code+'"]').prop("selected",!0)}),a.zone_postcodes&&_.each(a.zone_postcodes,function(a){var b=c.find(".wc-shipping-zone-postcodes :input");b.val()?b.val(b.val()+"\n"+a.code):b.val(a.code),c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()}),b.renderShippingMethods(a.zone_id,a.shipping_methods),c.find(".view").show(),c.find(".edit").hide(),c.find(".wc-shipping-zone-edit").on("click",{view:this},this.onEditRow),c.find(".wc-shipping-zone-cancel-edit").on("click",{view:this},this.onCancelEditRow),c.find(".wc-shipping-zone-delete").on("click",{view:this},this.onDeleteRow),c.find(".wc-shipping-zone-postcodes-toggle").on("click",{view:this},this.onTogglePostcodes),!0===a.editing&&(c.addClass("editing"),c.find(".wc-shipping-zone-edit").trigger("click"))},initRows:function(){0===a("tbody.wc-shipping-zone-rows tr").length%2?f.find("tbody.wc-shipping-zone-rows").next("tbody").find("tr").addClass("odd"):f.find("tbody.wc-shipping-zone-rows").next("tbody").find("tr").removeClass("odd"),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:50})},renderShippingMethods:function(c,d){var e=a('.wc-shipping-zones tr[data-id="'+c+'"]'),f=e.find(".wc-shipping-zone-methods ul");f.find(".wc-shipping-zone-method").remove(),_.size(d)?_.each(d,function(a,b){var c="method_disabled";"yes"===a.enabled&&(c="method_enabled"),f.prepend('
  • '+a.title+"
  • ")}):f.prepend('
  • '+b.strings.no_shipping_methods_offered+"
  • ")},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onAddNewRow:function(c){c.preventDefault();var d=c.data.view,e=d.model,f=_.indexBy(e.get("zones"),"zone_id"),g={},h=_.size(f),i=_.extend({},b.default_zone,{zone_id:"new-"+h+"-"+Date.now(),editing:!0});a(".wc-shipping-zones-blank-state").closest("tr").remove(),i.zone_order=1+_.max(_.pluck(f,"zone_order"),function(a){return parseInt(a,10)}),g[i.zone_id]=i,e.logChanges(g),d.renderRow(i),d.initRows()},onTogglePostcodes:function(b){b.preventDefault();var c=a(this).closest("tr");c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()},onEditRow:function(b){b.preventDefault(),b.data.view.model.trigger("change:zones"),a(this).closest("tr").addClass("editing"),a(this).closest("tr").find(".view").hide(),a(this).closest("tr").find(".edit").show(),a(".wc-shipping-zone-region-select:not(.enhanced)").select2(k),a(".wc-shipping-zone-region-select:not(.enhanced)").addClass("enhanced");var c=a(this).closest("tr").find(".add_shipping_method");c.addClass("disabled"),c.tipTip({attribute:"data-disabled-tip",fadeIn:50,fadeOut:50,delay:50})},onCancelEditRow:function(b){var c=b.data.view,d=c.model,e=a(this).closest("tr"),f=e.data("id"),g=_.indexBy(d.get("zones"),"zone_id");b.preventDefault(),d.discardChanges(f),g[f]&&(g[f].editing=!1,e.after(c.rowTemplate(g[f])),c.initRow(g[f])),e.remove(),c.initRows()},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("zones"),"zone_id"),f={},g=a(this).closest("tr"),h=a(this).closest("tr").data("id");b.preventDefault(),e[h]&&(delete e[h],f[h]=_.extend(f[h]||{},{deleted:"deleted"}),d.set("zones",e),d.logChanges(f)),g.remove(),c.initRows()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,h.prop("disabled",!1)},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,h.prop("disabled",!0)},unloadConfirmation:function(a){return a.data.view.needsUnloadConfirm?(a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg):void 0},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("zones"),"zone_id"),i={};h[e]&&h[e][f]===g||(i[e]={},i[e][f]=g),c.logChanges(i)},updateModelOnSort:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("zones"),"zone_id"),f=a("tbody.wc-shipping-zone-rows tr"),g={};_.each(f,function(b){var c=a(b).data("id"),d=null,f=parseInt(a(b).index(),10);e[c]&&(d=parseInt(e[c].zone_order,10)),d!==f&&(g[c]=_.extend(g[c]||{},{zone_order:f}))}),_.size(g)&&d.logChanges(g)},onAddShippingMethod:function(b){var c=a(this).closest("tr").data("id");b.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-add-shipping-method",variable:{zone_id:c}}),a(".wc-shipping-zone-method-selector select").change()},onAddShippingMethodSubmitted:function(c,e,f){"wc-modal-add-shipping-method"===e&&(o.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_add_method",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,method_id:f.add_method_id,zone_id:f.zone_id},function(a,b){"success"===b&&a.success&&o.renderShippingMethods(f.zone_id,a.data.methods),o.unblock()},"json"))},onChangeShippingMethodSelector:function(){var b=a(this).find("option:selected").data("description");a(this).parent().find(".wc-shipping-zone-method-description").remove(),a(this).after('

    '+b+"

    "),a(this).closest("article").height(a(this).parent().height())}}),n=new l({zones:b.zones}),o=new m({model:n,el:g});o.render(),g.sortable({items:"tr",cursor:"move",axis:"y",handle:"td.wc-shipping-zone-sort",scrollSensitivity:40})})}(jQuery,shippingZonesLocalizeScript,wp,ajaxurl); \ No newline at end of file +!function(a,b,c,d){a(function(){function e(){var a={formatMatches:function(a){return 1===a?wc_enhanced_select_params.i18n_matches_1:wc_enhanced_select_params.i18n_matches_n.replace("%qty%",a)},formatNoMatches:function(){return wc_enhanced_select_params.i18n_no_matches},formatAjaxError:function(){return wc_enhanced_select_params.i18n_ajax_error},formatInputTooShort:function(a,b){var c=b-a.length;return 1===c?wc_enhanced_select_params.i18n_input_too_short_1:wc_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",c)},formatInputTooLong:function(a,b){var c=a.length-b;return 1===c?wc_enhanced_select_params.i18n_input_too_long_1:wc_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",c)},formatSelectionTooBig:function(a){return 1===a?wc_enhanced_select_params.i18n_selection_too_long_1:wc_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",a)},formatLoadMore:function(){return wc_enhanced_select_params.i18n_load_more},formatSearching:function(){return wc_enhanced_select_params.i18n_searching}};return a}var f=a(".wc-shipping-zones"),g=a(".wc-shipping-zone-rows"),h=a(".wc-shipping-zone-save"),i=c.template("wc-shipping-zone-row"),j=c.template("wc-shipping-zone-row-blank"),k=a.extend({minimumResultsForSearch:10,allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),matcher:function(a,b,c){return b.toUpperCase().indexOf(a.toUpperCase())>=0||c.attr("alt").toUpperCase().indexOf(a.toUpperCase())>=0}},e()),l=Backbone.Model.extend({changes:{},logChanges:function(a){var b=this.changes||{};_.each(a,function(a,c){b[c]=_.extend(b[c]||{zone_id:c},a)}),this.changes=b,this.trigger("change:zones")},discardChanges:function(a){var b=this.changes||{},c=null,d=_.indexBy(this.get("zones"),"zone_id");b[a]&&void 0!==b[a].zone_order&&(c=b[a].zone_order),delete b[a],null!==c&&d[a]&&d[a].zone_order!==c&&(b[a]=_.extend(b[a]||{},{zone_id:a,zone_order:c})),this.changes=b,0===_.size(this.changes)&&o.clearUnloadConfirmation()},save:function(){_.size(this.changes)?a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zones_save_changes",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,changes:this.changes},this.onSaveResponse,"json"):n.trigger("saved:zones")},onSaveResponse:function(a,c){"success"===c&&(a.success?(n.set("zones",a.data.zones),n.trigger("change:zones"),n.changes={},n.trigger("saved:zones")):window.alert(b.strings.save_failed))}}),m=Backbone.View.extend({rowTemplate:i,initialize:function(){this.listenTo(this.model,"change:zones",this.setUnloadConfirmation),this.listenTo(this.model,"saved:zones",this.clearUnloadConfirmation),this.listenTo(this.model,"saved:zones",this.render),g.on("change",{view:this},this.updateModelOnChange),g.on("sortupdate",{view:this},this.updateModelOnSort),a(window).on("beforeunload",{view:this},this.unloadConfirmation),h.on("click",{view:this},this.onSubmit),a(document.body).on("click",".add_shipping_method:not(.disabled)",{view:this},this.onAddShippingMethod),a(document.body).on("click",".wc-shipping-zone-add",{view:this},this.onAddNewRow),a(document.body).on("wc_backbone_modal_response",this.onAddShippingMethodSubmitted),a(document.body).on("change",".wc-shipping-zone-method-selector select",this.onChangeShippingMethodSelector)},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},render:function(){var b=_.indexBy(this.model.get("zones"),"zone_id"),c=this;c.$el.empty(),c.unblock(),_.size(b)?(b=_.sortBy(b,function(a){return parseInt(a.zone_order,10)}),a.each(b,function(a,b){c.renderRow(b)})):c.$el.append(j),c.initRows()},renderRow:function(a){var b=this;b.$el.append(b.rowTemplate(a)),b.initRow(a)},initRow:function(a){var b=this,c=b.$el.find('tr[data-id="'+a.zone_id+'"]');_.each(a.zone_locations,function(a){if("string"===jQuery.type(a))c.find('option[value="'+a+'"]').prop("selected",!0);else if("postcode"===a.type){var b=c.find(".wc-shipping-zone-postcodes :input");b.val()?b.val(b.val()+"\n"+a.code):b.val(a.code),c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()}else c.find('option[value="'+a.type+":"+a.code+'"]').prop("selected",!0)}),a.zone_postcodes&&_.each(a.zone_postcodes,function(a){var b=c.find(".wc-shipping-zone-postcodes :input");b.val()?b.val(b.val()+"\n"+a.code):b.val(a.code),c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()}),b.renderShippingMethods(a.zone_id,a.shipping_methods),c.find(".view").show(),c.find(".edit").hide(),c.find(".wc-shipping-zone-edit").on("click",{view:this},this.onEditRow),c.find(".wc-shipping-zone-cancel-edit").on("click",{view:this},this.onCancelEditRow),c.find(".wc-shipping-zone-delete").on("click",{view:this},this.onDeleteRow),c.find(".wc-shipping-zone-postcodes-toggle").on("click",{view:this},this.onTogglePostcodes),!0===a.editing&&(c.addClass("editing"),c.find(".wc-shipping-zone-edit").trigger("click"))},initRows:function(){0===a("tbody.wc-shipping-zone-rows tr").length%2?f.find("tbody.wc-shipping-zone-rows").next("tbody").find("tr").addClass("odd"):f.find("tbody.wc-shipping-zone-rows").next("tbody").find("tr").removeClass("odd"),a("#tiptip_holder").removeAttr("style"),a("#tiptip_arrow").removeAttr("style"),a(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:50})},renderShippingMethods:function(c,d){var e=a('.wc-shipping-zones tr[data-id="'+c+'"]'),f=e.find(".wc-shipping-zone-methods ul");f.find(".wc-shipping-zone-method").remove(),_.size(d)?_.each(d,function(a,b){var c="method_disabled";"yes"===a.enabled&&(c="method_enabled"),f.prepend('
  • '+a.title+"
  • ")}):f.prepend('
  • '+b.strings.no_shipping_methods_offered+"
  • ")},onSubmit:function(a){a.data.view.block(),a.data.view.model.save(),a.preventDefault()},onAddNewRow:function(c){c.preventDefault();var d=c.data.view,e=d.model,f=_.indexBy(e.get("zones"),"zone_id"),g={},h=_.size(f),i=_.extend({},b.default_zone,{zone_id:"new-"+h+"-"+Date.now(),editing:!0});a(".wc-shipping-zones-blank-state").closest("tr").remove(),i.zone_order=1+_.max(_.pluck(f,"zone_order"),function(a){return parseInt(a,10)}),g[i.zone_id]=i,e.logChanges(g),d.renderRow(i),d.initRows()},onTogglePostcodes:function(b){b.preventDefault();var c=a(this).closest("tr");c.find(".wc-shipping-zone-postcodes").show(),c.find(".wc-shipping-zone-postcodes-toggle").hide()},onEditRow:function(b){b.preventDefault(),b.data.view.model.trigger("change:zones"),a(this).closest("tr").addClass("editing"),a(this).closest("tr").find(".view").hide(),a(this).closest("tr").find(".edit").show(),a(".wc-shipping-zone-region-select:not(.enhanced)").select2(k),a(".wc-shipping-zone-region-select:not(.enhanced)").addClass("enhanced");var c=a(this).closest("tr").find(".add_shipping_method");c.addClass("disabled"),c.tipTip({attribute:"data-disabled-tip",fadeIn:50,fadeOut:50,delay:50})},onCancelEditRow:function(b){var c=b.data.view,d=c.model,e=a(this).closest("tr"),f=e.data("id"),g=_.indexBy(d.get("zones"),"zone_id");b.preventDefault(),d.discardChanges(f),g[f]&&(g[f].editing=!1,e.after(c.rowTemplate(g[f])),c.initRow(g[f])),e.remove(),c.initRows()},onDeleteRow:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("zones"),"zone_id"),f={},g=a(this).closest("tr"),h=a(this).closest("tr").data("id");b.preventDefault(),e[h]&&(delete e[h],f[h]=_.extend(f[h]||{},{deleted:"deleted"}),d.set("zones",e),d.logChanges(f)),g.remove(),c.initRows()},setUnloadConfirmation:function(){this.needsUnloadConfirm=!0,h.prop("disabled",!1)},clearUnloadConfirmation:function(){this.needsUnloadConfirm=!1,h.prop("disabled",!0)},unloadConfirmation:function(a){if(a.data.view.needsUnloadConfirm)return a.returnValue=b.strings.unload_confirmation_msg,window.event.returnValue=b.strings.unload_confirmation_msg,b.strings.unload_confirmation_msg},updateModelOnChange:function(b){var c=b.data.view.model,d=a(b.target),e=d.closest("tr").data("id"),f=d.data("attribute"),g=d.val(),h=_.indexBy(c.get("zones"),"zone_id"),i={};h[e]&&h[e][f]===g||(i[e]={},i[e][f]=g),c.logChanges(i)},updateModelOnSort:function(b){var c=b.data.view,d=c.model,e=_.indexBy(d.get("zones"),"zone_id"),f=a("tbody.wc-shipping-zone-rows tr"),g={};_.each(f,function(b){var c=a(b).data("id"),d=null,f=parseInt(a(b).index(),10);e[c]&&(d=parseInt(e[c].zone_order,10)),d!==f&&(g[c]=_.extend(g[c]||{},{zone_order:f}))}),_.size(g)&&d.logChanges(g)},onAddShippingMethod:function(b){var c=a(this).closest("tr").data("id");b.preventDefault(),a(this).WCBackboneModal({template:"wc-modal-add-shipping-method",variable:{zone_id:c}}),a(".wc-shipping-zone-method-selector select").change()},onAddShippingMethodSubmitted:function(c,e,f){"wc-modal-add-shipping-method"===e&&(o.block(),a.post(d+(d.indexOf("?")>0?"&":"?")+"action=woocommerce_shipping_zone_add_method",{wc_shipping_zones_nonce:b.wc_shipping_zones_nonce,method_id:f.add_method_id,zone_id:f.zone_id},function(a,b){"success"===b&&a.success&&o.renderShippingMethods(f.zone_id,a.data.methods),o.unblock()},"json"))},onChangeShippingMethodSelector:function(){var b=a(this).find("option:selected").data("description");a(this).parent().find(".wc-shipping-zone-method-description").remove(),a(this).after('

    '+b+"

    "),a(this).closest("article").height(a(this).parent().height())}}),n=new l({zones:b.zones}),o=new m({model:n,el:g});o.render(),g.sortable({items:"tr",cursor:"move",axis:"y",handle:"td.wc-shipping-zone-sort",scrollSensitivity:40})})}(jQuery,shippingZonesLocalizeScript,wp,ajaxurl); \ No newline at end of file diff --git a/assets/js/admin/woocommerce_admin.min.js b/assets/js/admin/woocommerce_admin.min.js index 10ffe17373d..aadf5f85787 100644 --- a/assets/js/admin/woocommerce_admin.min.js +++ b/assets/js/admin/woocommerce_admin.min.js @@ -1 +1 @@ -jQuery(function(a){a(document.body).on("wc_add_error_tip",function(b,c,d){var e=c.position();0===c.parent().find(".wc_error_tip").length&&(c.after('
    '+woocommerce_admin[d]+"
    "),c.parent().find(".wc_error_tip").css("left",e.left+c.width()-c.width()/2-a(".wc_error_tip").width()/2).css("top",e.top+c.height()).fadeIn("100"))}).on("wc_remove_error_tip",function(b,c,d){c.parent().find(".wc_error_tip."+d).fadeOut("100",function(){a(this).remove()})}).on("click",function(){a(".wc_error_tip").fadeOut("100",function(){a(this).remove()})}).on("blur",".wc_input_decimal[type=text], .wc_input_price[type=text], .wc_input_country_iso[type=text]",function(){a(".wc_error_tip").fadeOut("100",function(){a(this).remove()})}).on("change",".wc_input_price[type=text], .wc_input_decimal[type=text], .wc-order-totals #refund_amount[type=text]",function(){var b;b=a(this).is(".wc_input_price")||a(this).is("#refund_amount")?new RegExp("[^-0-9%\\"+woocommerce_admin.mon_decimal_point+"]+","gi"):new RegExp("[^-0-9%\\"+woocommerce_admin.decimal_point+"]+","gi");var c=a(this).val(),d=c.replace(b,"");c!==d&&a(this).val(d)}).on("keyup",".wc_input_price[type=text], .wc_input_decimal[type=text], .wc_input_country_iso[type=text], .wc-order-totals #refund_amount[type=text]",function(){var b,c;a(this).is(".wc_input_price")||a(this).is("#refund_amount")?(b=new RegExp("[^-0-9%\\"+woocommerce_admin.mon_decimal_point+"]+","gi"),c="i18n_mon_decimal_error"):a(this).is(".wc_input_country_iso")?(b=new RegExp("([^A-Z])+|(.){3,}","im"),c="i18n_country_iso_error"):(b=new RegExp("[^-0-9%\\"+woocommerce_admin.decimal_point+"]+","gi"),c="i18n_decimal_error");var d=a(this).val(),e=d.replace(b,"");d!==e?a(document.body).triggerHandler("wc_add_error_tip",[a(this),c]):a(document.body).triggerHandler("wc_remove_error_tip",[a(this),c])}).on("change","#_sale_price.wc_input_price[type=text], .wc_input_price[name^=variable_sale_price]",function(){var b,c=a(this);b=-1!==c.attr("name").indexOf("variable")?c.parents(".variable_pricing").find(".wc_input_price[name^=variable_regular_price]"):a("#_regular_price");var d=parseFloat(window.accounting.unformat(c.val(),woocommerce_admin.mon_decimal_point)),e=parseFloat(window.accounting.unformat(b.val(),woocommerce_admin.mon_decimal_point));d>=e&&a(this).val("")}).on("keyup","#_sale_price.wc_input_price[type=text], .wc_input_price[name^=variable_sale_price]",function(){var b,c=a(this);b=-1!==c.attr("name").indexOf("variable")?c.parents(".variable_pricing").find(".wc_input_price[name^=variable_regular_price]"):a("#_regular_price");var d=parseFloat(window.accounting.unformat(c.val(),woocommerce_admin.mon_decimal_point)),e=parseFloat(window.accounting.unformat(b.val(),woocommerce_admin.mon_decimal_point));d>=e?a(document.body).triggerHandler("wc_add_error_tip",[a(this),"i18_sale_less_than_regular_error"]):a(document.body).triggerHandler("wc_remove_error_tip",[a(this),"i18_sale_less_than_regular_error"])}).on("init_tooltips",function(){var b={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200};a(".tips, .help_tip, .woocommerce-help-tip").tipTip(b),a(".parent-tips").each(function(){a(this).closest("a, th").attr("data-tip",a(this).data("tip")).tipTip(b).css("cursor","help")})}),a(document.body).trigger("init_tooltips"),a(".wc_input_table.sortable tbody").sortable({items:"tr",cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")}}),a(".wc_input_table .remove_rows").click(function(){var b=a(this).closest(".wc_input_table").find("tbody");if(b.find("tr.current").length>0){var c=b.find("tr.current");c.each(function(){a(this).remove()})}return!1});var b=!1,c=!1,d=!1;a(document.body).bind("keyup keydown",function(a){c=a.shiftKey,b=a.ctrlKey||a.metaKey}),a(".wc_input_table").on("focus click","input",function(e){var f=a(this).closest("table, tbody"),g=a(this).closest("tr");("focus"===e.type&&d!==g.index()||"click"===e.type&&a(this).is(":focus"))&&(d=g.index(),c||b?c?(a("tr",f).removeClass("current"),g.addClass("selected_now").addClass("current"),a("tr.last_selected",f).length>0&&(g.index()>a("tr.last_selected",f).index()?a("tr",f).slice(a("tr.last_selected",f).index(),g.index()).addClass("current"):a("tr",f).slice(g.index(),a("tr.last_selected",f).index()+1).addClass("current")),a("tr",f).removeClass("last_selected"),g.addClass("last_selected")):(a("tr",f).removeClass("last_selected"),b&&a(this).closest("tr").is(".current")?g.removeClass("current"):g.addClass("current").addClass("last_selected")):(a("tr",f).removeClass("current").removeClass("last_selected"),g.addClass("current").addClass("last_selected")),a("tr",f).removeClass("selected_now"))}).on("blur","input",function(){d=!1}),a(".woocommerce_page_wc-settings .shippingrows tbody tr:even, table.attributes-table tbody tr:nth-child(odd)").addClass("alternate"),a(document.body).on("click",".show_order_items",function(){return a(this).closest("td").find("table").toggle(),!1}),a("select.availability").change(function(){"all"===a(this).val()?a(this).closest("tr").next("tr").hide():a(this).closest("tr").next("tr").show()}).change(),a(".hide_options_if_checked").each(function(){a(this).find("input:eq(0)").change(function(){a(this).is(":checked")?a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").hide():a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").show()}).change()}),a(".show_options_if_checked").each(function(){a(this).find("input:eq(0)").change(function(){a(this).is(":checked")?a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").show():a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").hide()}).change()}),a("input#woocommerce_demo_store").change(function(){a(this).is(":checked")?a("#woocommerce_demo_store_notice").closest("tr").show():a("#woocommerce_demo_store_notice").closest("tr").hide()}).change(),a("table.attributes-table tbody tr:nth-child(odd)").addClass("alternate"),a("#contextual-help-link").on("click",function(){var b=a("#tab-panel-woocommerce_101_tab iframe");b.attr("src",b.data("src"))})}); \ No newline at end of file +jQuery(function(a){a(document.body).on("wc_add_error_tip",function(b,c,d){var e=c.position();0===c.parent().find(".wc_error_tip").length&&(c.after('
    '+woocommerce_admin[d]+"
    "),c.parent().find(".wc_error_tip").css("left",e.left+c.width()-c.width()/2-a(".wc_error_tip").width()/2).css("top",e.top+c.height()).fadeIn("100"))}).on("wc_remove_error_tip",function(b,c,d){c.parent().find(".wc_error_tip."+d).fadeOut("100",function(){a(this).remove()})}).on("click",function(){a(".wc_error_tip").fadeOut("100",function(){a(this).remove()})}).on("blur",".wc_input_decimal[type=text], .wc_input_price[type=text], .wc_input_country_iso[type=text]",function(){a(".wc_error_tip").fadeOut("100",function(){a(this).remove()})}).on("change",".wc_input_price[type=text], .wc_input_decimal[type=text], .wc-order-totals #refund_amount[type=text]",function(){var b;b=a(this).is(".wc_input_price")||a(this).is("#refund_amount")?new RegExp("[^-0-9%\\"+woocommerce_admin.mon_decimal_point+"]+","gi"):new RegExp("[^-0-9%\\"+woocommerce_admin.decimal_point+"]+","gi");var c=a(this).val(),d=c.replace(b,"");c!==d&&a(this).val(d)}).on("keyup",".wc_input_price[type=text], .wc_input_decimal[type=text], .wc_input_country_iso[type=text], .wc-order-totals #refund_amount[type=text]",function(){var b,c;a(this).is(".wc_input_price")||a(this).is("#refund_amount")?(b=new RegExp("[^-0-9%\\"+woocommerce_admin.mon_decimal_point+"]+","gi"),c="i18n_mon_decimal_error"):a(this).is(".wc_input_country_iso")?(b=new RegExp("([^A-Z])+|(.){3,}","im"),c="i18n_country_iso_error"):(b=new RegExp("[^-0-9%\\"+woocommerce_admin.decimal_point+"]+","gi"),c="i18n_decimal_error");var d=a(this).val(),e=d.replace(b,"");d!==e?a(document.body).triggerHandler("wc_add_error_tip",[a(this),c]):a(document.body).triggerHandler("wc_remove_error_tip",[a(this),c])}).on("change","#_sale_price.wc_input_price[type=text], .wc_input_price[name^=variable_sale_price]",function(){var b,c=a(this);b=c.attr("name").indexOf("variable")!==-1?c.parents(".variable_pricing").find(".wc_input_price[name^=variable_regular_price]"):a("#_regular_price");var d=parseFloat(window.accounting.unformat(c.val(),woocommerce_admin.mon_decimal_point)),e=parseFloat(window.accounting.unformat(b.val(),woocommerce_admin.mon_decimal_point));d>=e&&a(this).val("")}).on("keyup","#_sale_price.wc_input_price[type=text], .wc_input_price[name^=variable_sale_price]",function(){var b,c=a(this);b=c.attr("name").indexOf("variable")!==-1?c.parents(".variable_pricing").find(".wc_input_price[name^=variable_regular_price]"):a("#_regular_price");var d=parseFloat(window.accounting.unformat(c.val(),woocommerce_admin.mon_decimal_point)),e=parseFloat(window.accounting.unformat(b.val(),woocommerce_admin.mon_decimal_point));d>=e?a(document.body).triggerHandler("wc_add_error_tip",[a(this),"i18_sale_less_than_regular_error"]):a(document.body).triggerHandler("wc_remove_error_tip",[a(this),"i18_sale_less_than_regular_error"])}).on("init_tooltips",function(){var b={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200};a(".tips, .help_tip, .woocommerce-help-tip").tipTip(b),a(".parent-tips").each(function(){a(this).closest("a, th").attr("data-tip",a(this).data("tip")).tipTip(b).css("cursor","help")})}),a(document.body).trigger("init_tooltips"),a(".wc_input_table.sortable tbody").sortable({items:"tr",cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")}}),a(".wc_input_table .remove_rows").click(function(){var b=a(this).closest(".wc_input_table").find("tbody");if(b.find("tr.current").length>0){var c=b.find("tr.current");c.each(function(){a(this).remove()})}return!1});var b=!1,c=!1,d=!1;a(document.body).bind("keyup keydown",function(a){c=a.shiftKey,b=a.ctrlKey||a.metaKey}),a(".wc_input_table").on("focus click","input",function(e){var f=a(this).closest("table, tbody"),g=a(this).closest("tr");("focus"===e.type&&d!==g.index()||"click"===e.type&&a(this).is(":focus"))&&(d=g.index(),c||b?c?(a("tr",f).removeClass("current"),g.addClass("selected_now").addClass("current"),a("tr.last_selected",f).length>0&&(g.index()>a("tr.last_selected",f).index()?a("tr",f).slice(a("tr.last_selected",f).index(),g.index()).addClass("current"):a("tr",f).slice(g.index(),a("tr.last_selected",f).index()+1).addClass("current")),a("tr",f).removeClass("last_selected"),g.addClass("last_selected")):(a("tr",f).removeClass("last_selected"),b&&a(this).closest("tr").is(".current")?g.removeClass("current"):g.addClass("current").addClass("last_selected")):(a("tr",f).removeClass("current").removeClass("last_selected"),g.addClass("current").addClass("last_selected")),a("tr",f).removeClass("selected_now"))}).on("blur","input",function(){d=!1}),a(".woocommerce_page_wc-settings .shippingrows tbody tr:even, table.attributes-table tbody tr:nth-child(odd)").addClass("alternate"),a(document.body).on("click",".show_order_items",function(){return a(this).closest("td").find("table").toggle(),!1}),a("select.availability").change(function(){"all"===a(this).val()?a(this).closest("tr").next("tr").hide():a(this).closest("tr").next("tr").show()}).change(),a(".hide_options_if_checked").each(function(){a(this).find("input:eq(0)").change(function(){a(this).is(":checked")?a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").hide():a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").show()}).change()}),a(".show_options_if_checked").each(function(){a(this).find("input:eq(0)").change(function(){a(this).is(":checked")?a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").show():a(this).closest("fieldset, tr").nextUntil(".hide_options_if_checked, .show_options_if_checked",".hidden_option").hide()}).change()}),a("input#woocommerce_demo_store").change(function(){a(this).is(":checked")?a("#woocommerce_demo_store_notice").closest("tr").show():a("#woocommerce_demo_store_notice").closest("tr").hide()}).change(),a("table.attributes-table tbody tr:nth-child(odd)").addClass("alternate"),a("#contextual-help-link").on("click",function(){var b=a("#tab-panel-woocommerce_101_tab iframe");b.attr("src",b.data("src"))})}); \ No newline at end of file diff --git a/assets/js/frontend/add-payment-method.min.js b/assets/js/frontend/add-payment-method.min.js index 0cb8d8de885..b77e5d7b04b 100644 --- a/assets/js/frontend/add-payment-method.min.js +++ b/assets/js/frontend/add-payment-method.min.js @@ -1 +1 @@ -jQuery(function(a){return"undefined"==typeof woocommerce_params?!1:(a("#add_payment_method").on("click init_add_payment_method",".payment_methods input.input-radio",function(){if(a(".payment_methods input.input-radio").length>1){var b=a("div.payment_box."+a(this).attr("ID"));a(this).is(":checked")&&!b.is(":visible")&&(a("div.payment_box").filter(":visible").slideUp(250),a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250))}else a("div.payment_box").show()}).find("input[name=payment_method]:checked").click(),a("#add_payment_method").submit(function(){a("#add_payment_method").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}),void a(document.body).trigger("init_add_payment_method"))}); \ No newline at end of file +jQuery(function(a){return"undefined"!=typeof woocommerce_params&&(a("#add_payment_method").on("click init_add_payment_method",".payment_methods input.input-radio",function(){if(a(".payment_methods input.input-radio").length>1){var b=a("div.payment_box."+a(this).attr("ID"));a(this).is(":checked")&&!b.is(":visible")&&(a("div.payment_box").filter(":visible").slideUp(250),a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250))}else a("div.payment_box").show()}).find("input[name=payment_method]:checked").click(),a("#add_payment_method").submit(function(){a("#add_payment_method").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}),void a(document.body).trigger("init_add_payment_method"))}); \ No newline at end of file diff --git a/assets/js/frontend/add-to-cart.min.js b/assets/js/frontend/add-to-cart.min.js index 521046305b0..74c565f30c7 100644 --- a/assets/js/frontend/add-to-cart.min.js +++ b/assets/js/frontend/add-to-cart.min.js @@ -1,4 +1,4 @@ /*! * WooCommerce Add to Cart JS */ -jQuery(function(a){return"undefined"==typeof wc_add_to_cart_params?!1:void a(document).on("click",".add_to_cart_button",function(){var b=a(this);if(b.is(".ajax_add_to_cart")){if(!b.attr("data-product_id"))return!0;b.removeClass("added"),b.addClass("loading");var c={};return a.each(b.data(),function(a,b){c[a]=b}),a(document.body).trigger("adding_to_cart",[b,c]),a.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),c,function(c){if(c){var d=window.location.toString();if(d=d.replace("add-to-cart","added-to-cart"),c.error&&c.product_url)return void(window.location=c.product_url);if("yes"===wc_add_to_cart_params.cart_redirect_after_add)return void(window.location=wc_add_to_cart_params.cart_url);b.removeClass("loading");var e=c.fragments,f=c.cart_hash;e&&a.each(e,function(b){a(b).addClass("updating")}),a(".shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}}),b.addClass("added"),wc_add_to_cart_params.is_cart||0!==b.parent().find(".added_to_cart").length||b.after(' '+wc_add_to_cart_params.i18n_view_cart+""),e&&a.each(e,function(b,c){a(b).replaceWith(c)}),a(".widget_shopping_cart, .updating").stop(!0).css("opacity","1").unblock(),a(".shop_table.cart").load(d+" .shop_table.cart:eq(0) > *",function(){a(".shop_table.cart").stop(!0).css("opacity","1").unblock(),a(document.body).trigger("cart_page_refreshed")}),a(".cart_totals").load(d+" .cart_totals:eq(0) > *",function(){a(".cart_totals").stop(!0).css("opacity","1").unblock()}),a(document.body).trigger("added_to_cart",[e,f,b])}}),!1}return!0})}); \ No newline at end of file +jQuery(function(a){return"undefined"!=typeof wc_add_to_cart_params&&void a(document).on("click",".add_to_cart_button",function(){var b=a(this);if(b.is(".ajax_add_to_cart")){if(!b.attr("data-product_id"))return!0;b.removeClass("added"),b.addClass("loading");var c={};return a.each(b.data(),function(a,b){c[a]=b}),a(document.body).trigger("adding_to_cart",[b,c]),a.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),c,function(c){if(c){var d=window.location.toString();if(d=d.replace("add-to-cart","added-to-cart"),c.error&&c.product_url)return void(window.location=c.product_url);if("yes"===wc_add_to_cart_params.cart_redirect_after_add)return void(window.location=wc_add_to_cart_params.cart_url);b.removeClass("loading");var e=c.fragments,f=c.cart_hash;e&&a.each(e,function(b){a(b).addClass("updating")}),a(".shop_table.cart, .updating, .cart_totals").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}}),b.addClass("added"),wc_add_to_cart_params.is_cart||0!==b.parent().find(".added_to_cart").length||b.after(' '+wc_add_to_cart_params.i18n_view_cart+""),e&&a.each(e,function(b,c){a(b).replaceWith(c)}),a(".widget_shopping_cart, .updating").stop(!0).css("opacity","1").unblock(),a(".shop_table.cart").load(d+" .shop_table.cart:eq(0) > *",function(){a(".shop_table.cart").stop(!0).css("opacity","1").unblock(),a(document.body).trigger("cart_page_refreshed")}),a(".cart_totals").load(d+" .cart_totals:eq(0) > *",function(){a(".cart_totals").stop(!0).css("opacity","1").unblock()}),a(document.body).trigger("added_to_cart",[e,f,b])}}),!1}return!0})}); \ No newline at end of file diff --git a/assets/js/frontend/cart-fragments.min.js b/assets/js/frontend/cart-fragments.min.js index 745b88e995a..9610e92e8fe 100644 --- a/assets/js/frontend/cart-fragments.min.js +++ b/assets/js/frontend/cart-fragments.min.js @@ -1 +1 @@ -jQuery(function(a){function b(){e&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function c(a){e&&(localStorage.setItem(f,a),sessionStorage.setItem(f,a))}function d(){a.ajax(h)}if("undefined"==typeof wc_cart_fragments_params)return!1;var e,f=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash";try{e="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(g){e=!1}var h={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",success:function(d){d&&d.fragments&&(a.each(d.fragments,function(b,c){a(b).replaceWith(c)}),e&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(d.fragments)),c(d.cart_hash),d.cart_hash&&b()),a(document.body).trigger("wc_fragments_refreshed"))}};if(e){var i=null,j=864e5;a(document.body).bind("wc_fragment_refresh updated_wc_div",function(){d()}),a(document.body).bind("added_to_cart",function(a,d,e){var g=sessionStorage.getItem(f);null!==g&&void 0!==g&&""!==g||b(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(d)),c(e)}),a(document.body).bind("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(d,j)}),a(window).on("storage onstorage",function(a){f===a.originalEvent.key&&localStorage.getItem(f)!==sessionStorage.getItem(f)&&d()});try{var k=a.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),l=sessionStorage.getItem(f),m=a.cookie("woocommerce_cart_hash"),n=sessionStorage.getItem("wc_cart_created");if(null!==l&&void 0!==l&&""!==l||(l=""),null!==m&&void 0!==m&&""!==m||(m=""),l&&(null===n||void 0===n||""===n))throw"No cart_created";if(n){var o=1*n+j,p=(new Date).getTime();if(p>o)throw"Fragment expired";i=setTimeout(d,o-p)}if(!k||!k["div.widget_shopping_cart_content"]||l!==m)throw"No fragment";a.each(k,function(b,c){a(b).replaceWith(c)}),a(document.body).trigger("wc_fragments_loaded")}catch(g){d()}}else d();a.cookie("woocommerce_items_in_cart")>0?a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),a(document.body).bind("adding_to_cart",function(){a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()})}); \ No newline at end of file +jQuery(function(a){function b(){e&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function c(a){e&&(localStorage.setItem(f,a),sessionStorage.setItem(f,a))}function d(){a.ajax(h)}if("undefined"==typeof wc_cart_fragments_params)return!1;var e,f=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash";try{e="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(g){e=!1}var h={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",success:function(d){d&&d.fragments&&(a.each(d.fragments,function(b,c){a(b).replaceWith(c)}),e&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(d.fragments)),c(d.cart_hash),d.cart_hash&&b()),a(document.body).trigger("wc_fragments_refreshed"))}};if(e){var i=null,j=864e5;a(document.body).bind("wc_fragment_refresh updated_wc_div",function(){d()}),a(document.body).bind("added_to_cart",function(a,d,e){var g=sessionStorage.getItem(f);null!==g&&void 0!==g&&""!==g||b(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(d)),c(e)}),a(document.body).bind("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(d,j)}),a(window).on("storage onstorage",function(a){f===a.originalEvent.key&&localStorage.getItem(f)!==sessionStorage.getItem(f)&&d()});try{var k=a.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),l=sessionStorage.getItem(f),m=a.cookie("woocommerce_cart_hash"),n=sessionStorage.getItem("wc_cart_created");if(null!==l&&void 0!==l&&""!==l||(l=""),null!==m&&void 0!==m&&""!==m||(m=""),l&&(null===n||void 0===n||""===n))throw"No cart_created";if(n){var o=1*n+j,p=(new Date).getTime();if(o0?a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),a(document.body).bind("adding_to_cart",function(){a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()})}); \ No newline at end of file diff --git a/assets/js/frontend/checkout.min.js b/assets/js/frontend/checkout.min.js index a883c8f23c4..05611a64260 100644 --- a/assets/js/frontend/checkout.min.js +++ b/assets/js/frontend/checkout.min.js @@ -1 +1 @@ -jQuery(function(a){if("undefined"==typeof wc_checkout_params)return!1;a.blockUI.defaults.overlayCSS.cursor="default";var b={updateTimer:!1,dirtyInput:!1,xhr:!1,$order_review:a("#order_review"),$checkout_form:a("form.checkout"),init:function(){a(document.body).bind("update_checkout",this.update_checkout),a(document.body).bind("init_checkout",this.init_checkout),this.$checkout_form.on("click",'input[name="payment_method"]',this.payment_method_selected),a(document.body).hasClass("woocommerce-order-pay")&&this.$order_review.on("click",'input[name="payment_method"]',this.payment_method_selected),this.$checkout_form.on("submit",this.submit),this.$checkout_form.on("blur change",".input-text, select",this.validate_field),this.$checkout_form.on("update",this.trigger_update_checkout),this.$checkout_form.on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"]',this.trigger_update_checkout),this.$checkout_form.on("change",".address-field select",this.input_changed),this.$checkout_form.on("change",".address-field input.input-text, .update_totals_on_change input.input-text",this.maybe_input_changed),this.$checkout_form.on("change keydown",".address-field input.input-text, .update_totals_on_change input.input-text",this.queue_update_checkout),this.$checkout_form.on("change","#ship-to-different-address input",this.ship_to_different_address),this.$checkout_form.find("#ship-to-different-address input").change(),this.init_payment_methods(),"1"===wc_checkout_params.is_checkout&&a(document.body).trigger("init_checkout"),"yes"===wc_checkout_params.option_guest_checkout&&a("input#createaccount").change(this.toggle_create_account).change()},init_payment_methods:function(){var b=a(".woocommerce-checkout").find('input[name="payment_method"]');1===b.length&&b.eq(0).hide(),0===b.filter(":checked").length&&b.eq(0).prop("checked",!0),b.filter(":checked").eq(0).trigger("click")},get_payment_method:function(){return b.$order_review.find('input[name="payment_method"]:checked').val()},payment_method_selected:function(){if(a(".payment_methods input.input-radio").length>1){var b=a("div.payment_box."+a(this).attr("ID"));a(this).is(":checked")&&!b.is(":visible")&&(a("div.payment_box").filter(":visible").slideUp(250),a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250))}else a("div.payment_box").show();a(this).data("order_button_text")?a("#place_order").val(a(this).data("order_button_text")):a("#place_order").val(a("#place_order").data("value"))},toggle_create_account:function(){a("div.create-account").hide(),a(this).is(":checked")&&a("div.create-account").slideDown()},init_checkout:function(){a("#billing_country, #shipping_country, .country_to_state").change(),a(document.body).trigger("update_checkout")},maybe_input_changed:function(a){b.dirtyInput&&b.input_changed(a)},input_changed:function(a){b.dirtyInput=a.target,b.maybe_update_checkout()},queue_update_checkout:function(a){var c=a.keyCode||a.which||0;return 9===c?!0:(b.dirtyInput=this,b.reset_update_checkout_timer(),void(b.updateTimer=setTimeout(b.maybe_update_checkout,"1000")))},trigger_update_checkout:function(){b.reset_update_checkout_timer(),b.dirtyInput=!1,a(document.body).trigger("update_checkout")},maybe_update_checkout:function(){var c=!0;if(a(b.dirtyInput).length){var d=a(b.dirtyInput).closest("div").find(".address-field.validate-required");d.length&&d.each(function(){""===a(this).find("input.input-text").val()&&(c=!1)})}c&&b.trigger_update_checkout()},ship_to_different_address:function(){a("div.shipping_address").hide(),a(this).is(":checked")&&a("div.shipping_address").slideDown()},reset_update_checkout_timer:function(){clearTimeout(b.updateTimer)},validate_field:function(){var b=a(this),c=b.closest(".form-row"),d=!0;if(c.is(".validate-required")&&("checkbox"!==b.attr("type")||b.is(":checked")?""===b.val()&&(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),d=!1):(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),d=!1)),c.is(".validate-email")&&b.val()){var e=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);e.test(b.val())||(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-email"),d=!1)}d&&c.removeClass("woocommerce-invalid woocommerce-invalid-required-field").addClass("woocommerce-validated")},update_checkout:function(a,c){b.reset_update_checkout_timer(),b.updateTimer=setTimeout(b.update_checkout_action,"5",c)},update_checkout_action:function(c){if(b.xhr&&b.xhr.abort(),0!==a("form.checkout").length){c="undefined"!=typeof c?c:{update_shipping_method:!0};var d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val(),g=a("#billing_city").val(),h=a("input#billing_address_1").val(),i=a("input#billing_address_2").val(),j=d,k=e,l=f,m=g,n=h,o=i;a("#ship-to-different-address").find("input").is(":checked")&&(j=a("#shipping_country").val(),k=a("#shipping_state").val(),l=a("input#shipping_postcode").val(),m=a("#shipping_city").val(),n=a("input#shipping_address_1").val(),o=a("input#shipping_address_2").val());var p={security:wc_checkout_params.update_order_review_nonce,payment_method:b.get_payment_method(),country:d,state:e,postcode:f,city:g,address:h,address_2:i,s_country:j,s_state:k,s_postcode:l,s_city:m,s_address:n,s_address_2:o,post_data:a("form.checkout").serialize()};if(!1!==c.update_shipping_method){var q={};a('select.shipping_method, input[name^="shipping_method"][type="radio"]:checked, input[name^="shipping_method"][type="hidden"]').each(function(){q[a(this).data("index")]=a(this).val()}),p.shipping_method=q}a(".woocommerce-checkout-payment, .woocommerce-checkout-review-order-table").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),b.xhr=a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","update_order_review"),data:p,success:function(c){if("true"===c.reload)return void window.location.reload();var d=a("#terms").prop("checked");if(c&&c.fragments&&a.each(c.fragments,function(b,c){a(b).replaceWith(c),a(b).unblock()}),d&&a("#terms").prop("checked",!0),"failure"===c.result){var e=a("form.checkout");a(".woocommerce-error, .woocommerce-message").remove(),c.messages?e.prepend(c.messages):e.prepend(c),e.find(".input-text, select").blur(),a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}b.init_payment_methods(),a(document.body).trigger("updated_checkout")}})}},submit:function(){b.reset_update_checkout_timer();var c=a(this);if(c.is(".processing"))return!1;if(c.triggerHandler("checkout_place_order")!==!1&&c.triggerHandler("checkout_place_order_"+b.get_payment_method())!==!1){c.addClass("processing");var d=c.data();1!==d["blockUI.isBlocked"]&&c.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajaxSetup({dataFilter:function(b,c){if("json"!==c)return b;try{var d=a.parseJSON(b);if(d&&"object"==typeof d)return b}catch(e){var f=b.match(/{"result.*"}/);null===f?console.log("Unable to fix malformed JSON"):(console.log("Fixed malformed JSON. Original:"),console.log(b),b=f[0])}return b}}),a.ajax({type:"POST",url:wc_checkout_params.checkout_url,data:c.serialize(),dataType:"json",success:function(c){try{if("success"!==c.result)throw"failure"===c.result?"Result failure":"Invalid response";-1===c.redirect.indexOf("https://")||-1===c.redirect.indexOf("http://")?window.location=c.redirect:window.location=decodeURI(c.redirect)}catch(d){if("true"===c.reload)return void window.location.reload();"true"===c.refresh&&a(document.body).trigger("update_checkout"),c.messages?b.submit_error(c.messages):b.submit_error('
    '+wc_checkout_params.i18n_checkout_error+"
    ")}},error:function(a,c,d){b.submit_error('
    '+d+"
    ")}})}return!1},submit_error:function(c){a(".woocommerce-error, .woocommerce-message").remove(),b.$checkout_form.prepend(c),b.$checkout_form.removeClass("processing").unblock(),b.$checkout_form.find(".input-text, select").blur(),a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3),a(document.body).trigger("checkout_error")}},c={init:function(){a(document.body).on("click","a.showcoupon",this.show_coupon_form),a(document.body).on("click",".woocommerce-remove-coupon",this.remove_coupon),a("form.checkout_coupon").hide().submit(this.submit)},show_coupon_form:function(){return a(".checkout_coupon").slideToggle(400,function(){a(".checkout_coupon").find(":input:eq(0)").focus()}),!1},submit:function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={security:wc_checkout_params.apply_coupon_nonce,coupon_code:b.find('input[name="coupon_code"]').val()};return a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:c,success:function(c){a(".woocommerce-error, .woocommerce-message").remove(),b.removeClass("processing").unblock(),c&&(b.before(c),b.slideUp(),a(document.body).trigger("update_checkout",{update_shipping_method:!1}))},dataType:"html"}),!1},remove_coupon:function(b){b.preventDefault();var c=a(this).parents(".woocommerce-checkout-review-order"),d=a(this).data("coupon");c.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e={security:wc_checkout_params.remove_coupon_nonce,coupon:d};a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_coupon"),data:e,success:function(b){a(".woocommerce-error, .woocommerce-message").remove(),c.removeClass("processing").unblock(),b&&(a("form.woocommerce-checkout").before(b),a(document.body).trigger("update_checkout",{update_shipping_method:!1}),a("form.checkout_coupon").find('input[name="coupon_code"]').val(""))},error:function(a){wc_checkout_params.debug_mode&&console.log(a.responseText)},dataType:"html"})}},d={init:function(){a(document.body).on("click","a.showlogin",this.show_login_form)},show_login_form:function(){return a("form.login").slideToggle(),!1}};b.init(),c.init(),d.init()}); \ No newline at end of file +jQuery(function(a){if("undefined"==typeof wc_checkout_params)return!1;a.blockUI.defaults.overlayCSS.cursor="default";var b={updateTimer:!1,dirtyInput:!1,xhr:!1,$order_review:a("#order_review"),$checkout_form:a("form.checkout"),init:function(){a(document.body).bind("update_checkout",this.update_checkout),a(document.body).bind("init_checkout",this.init_checkout),this.$checkout_form.on("click",'input[name="payment_method"]',this.payment_method_selected),a(document.body).hasClass("woocommerce-order-pay")&&this.$order_review.on("click",'input[name="payment_method"]',this.payment_method_selected),this.$checkout_form.on("submit",this.submit),this.$checkout_form.on("blur change",".input-text, select",this.validate_field),this.$checkout_form.on("update",this.trigger_update_checkout),this.$checkout_form.on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"]',this.trigger_update_checkout),this.$checkout_form.on("change",".address-field select",this.input_changed),this.$checkout_form.on("change",".address-field input.input-text, .update_totals_on_change input.input-text",this.maybe_input_changed),this.$checkout_form.on("change keydown",".address-field input.input-text, .update_totals_on_change input.input-text",this.queue_update_checkout),this.$checkout_form.on("change","#ship-to-different-address input",this.ship_to_different_address),this.$checkout_form.find("#ship-to-different-address input").change(),this.init_payment_methods(),"1"===wc_checkout_params.is_checkout&&a(document.body).trigger("init_checkout"),"yes"===wc_checkout_params.option_guest_checkout&&a("input#createaccount").change(this.toggle_create_account).change()},init_payment_methods:function(){var b=a(".woocommerce-checkout").find('input[name="payment_method"]');1===b.length&&b.eq(0).hide(),0===b.filter(":checked").length&&b.eq(0).prop("checked",!0),b.filter(":checked").eq(0).trigger("click")},get_payment_method:function(){return b.$order_review.find('input[name="payment_method"]:checked').val()},payment_method_selected:function(){if(a(".payment_methods input.input-radio").length>1){var b=a("div.payment_box."+a(this).attr("ID"));a(this).is(":checked")&&!b.is(":visible")&&(a("div.payment_box").filter(":visible").slideUp(250),a(this).is(":checked")&&a("div.payment_box."+a(this).attr("ID")).slideDown(250))}else a("div.payment_box").show();a(this).data("order_button_text")?a("#place_order").val(a(this).data("order_button_text")):a("#place_order").val(a("#place_order").data("value"))},toggle_create_account:function(){a("div.create-account").hide(),a(this).is(":checked")&&a("div.create-account").slideDown()},init_checkout:function(){a("#billing_country, #shipping_country, .country_to_state").change(),a(document.body).trigger("update_checkout")},maybe_input_changed:function(a){b.dirtyInput&&b.input_changed(a)},input_changed:function(a){b.dirtyInput=a.target,b.maybe_update_checkout()},queue_update_checkout:function(a){var c=a.keyCode||a.which||0;return 9===c||(b.dirtyInput=this,b.reset_update_checkout_timer(),void(b.updateTimer=setTimeout(b.maybe_update_checkout,"1000")))},trigger_update_checkout:function(){b.reset_update_checkout_timer(),b.dirtyInput=!1,a(document.body).trigger("update_checkout")},maybe_update_checkout:function(){var c=!0;if(a(b.dirtyInput).length){var d=a(b.dirtyInput).closest("div").find(".address-field.validate-required");d.length&&d.each(function(){""===a(this).find("input.input-text").val()&&(c=!1)})}c&&b.trigger_update_checkout()},ship_to_different_address:function(){a("div.shipping_address").hide(),a(this).is(":checked")&&a("div.shipping_address").slideDown()},reset_update_checkout_timer:function(){clearTimeout(b.updateTimer)},validate_field:function(){var b=a(this),c=b.closest(".form-row"),d=!0;if(c.is(".validate-required")&&("checkbox"!==b.attr("type")||b.is(":checked")?""===b.val()&&(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),d=!1):(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),d=!1)),c.is(".validate-email")&&b.val()){var e=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);e.test(b.val())||(c.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-email"),d=!1)}d&&c.removeClass("woocommerce-invalid woocommerce-invalid-required-field").addClass("woocommerce-validated")},update_checkout:function(a,c){b.reset_update_checkout_timer(),b.updateTimer=setTimeout(b.update_checkout_action,"5",c)},update_checkout_action:function(c){if(b.xhr&&b.xhr.abort(),0!==a("form.checkout").length){c="undefined"!=typeof c?c:{update_shipping_method:!0};var d=a("#billing_country").val(),e=a("#billing_state").val(),f=a("input#billing_postcode").val(),g=a("#billing_city").val(),h=a("input#billing_address_1").val(),i=a("input#billing_address_2").val(),j=d,k=e,l=f,m=g,n=h,o=i;a("#ship-to-different-address").find("input").is(":checked")&&(j=a("#shipping_country").val(),k=a("#shipping_state").val(),l=a("input#shipping_postcode").val(),m=a("#shipping_city").val(),n=a("input#shipping_address_1").val(),o=a("input#shipping_address_2").val());var p={security:wc_checkout_params.update_order_review_nonce,payment_method:b.get_payment_method(),country:d,state:e,postcode:f,city:g,address:h,address_2:i,s_country:j,s_state:k,s_postcode:l,s_city:m,s_address:n,s_address_2:o,post_data:a("form.checkout").serialize()};if(!1!==c.update_shipping_method){var q={};a('select.shipping_method, input[name^="shipping_method"][type="radio"]:checked, input[name^="shipping_method"][type="hidden"]').each(function(){q[a(this).data("index")]=a(this).val()}),p.shipping_method=q}a(".woocommerce-checkout-payment, .woocommerce-checkout-review-order-table").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),b.xhr=a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","update_order_review"),data:p,success:function(c){if("true"===c.reload)return void window.location.reload();var d=a("#terms").prop("checked");if(c&&c.fragments&&a.each(c.fragments,function(b,c){a(b).replaceWith(c),a(b).unblock()}),d&&a("#terms").prop("checked",!0),"failure"===c.result){var e=a("form.checkout");a(".woocommerce-error, .woocommerce-message").remove(),c.messages?e.prepend(c.messages):e.prepend(c),e.find(".input-text, select").blur(),a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3)}b.init_payment_methods(),a(document.body).trigger("updated_checkout")}})}},submit:function(){b.reset_update_checkout_timer();var c=a(this);if(c.is(".processing"))return!1;if(c.triggerHandler("checkout_place_order")!==!1&&c.triggerHandler("checkout_place_order_"+b.get_payment_method())!==!1){c.addClass("processing");var d=c.data();1!==d["blockUI.isBlocked"]&&c.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.ajaxSetup({dataFilter:function(b,c){if("json"!==c)return b;try{var d=a.parseJSON(b);if(d&&"object"==typeof d)return b}catch(e){var f=b.match(/{"result.*"}/);null===f?console.log("Unable to fix malformed JSON"):(console.log("Fixed malformed JSON. Original:"),console.log(b),b=f[0])}return b}}),a.ajax({type:"POST",url:wc_checkout_params.checkout_url,data:c.serialize(),dataType:"json",success:function(c){try{if("success"!==c.result)throw"failure"===c.result?"Result failure":"Invalid response";-1===c.redirect.indexOf("https://")||-1===c.redirect.indexOf("http://")?window.location=c.redirect:window.location=decodeURI(c.redirect)}catch(d){if("true"===c.reload)return void window.location.reload();"true"===c.refresh&&a(document.body).trigger("update_checkout"),c.messages?b.submit_error(c.messages):b.submit_error('
    '+wc_checkout_params.i18n_checkout_error+"
    ")}},error:function(a,c,d){b.submit_error('
    '+d+"
    ")}})}return!1},submit_error:function(c){a(".woocommerce-error, .woocommerce-message").remove(),b.$checkout_form.prepend(c),b.$checkout_form.removeClass("processing").unblock(),b.$checkout_form.find(".input-text, select").blur(),a("html, body").animate({scrollTop:a("form.checkout").offset().top-100},1e3),a(document.body).trigger("checkout_error")}},c={init:function(){a(document.body).on("click","a.showcoupon",this.show_coupon_form),a(document.body).on("click",".woocommerce-remove-coupon",this.remove_coupon),a("form.checkout_coupon").hide().submit(this.submit)},show_coupon_form:function(){return a(".checkout_coupon").slideToggle(400,function(){a(".checkout_coupon").find(":input:eq(0)").focus()}),!1},submit:function(){var b=a(this);if(b.is(".processing"))return!1;b.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={security:wc_checkout_params.apply_coupon_nonce,coupon_code:b.find('input[name="coupon_code"]').val()};return a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:c,success:function(c){a(".woocommerce-error, .woocommerce-message").remove(),b.removeClass("processing").unblock(),c&&(b.before(c),b.slideUp(),a(document.body).trigger("update_checkout",{update_shipping_method:!1}))},dataType:"html"}),!1},remove_coupon:function(b){b.preventDefault();var c=a(this).parents(".woocommerce-checkout-review-order"),d=a(this).data("coupon");c.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e={security:wc_checkout_params.remove_coupon_nonce,coupon:d};a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_coupon"),data:e,success:function(b){a(".woocommerce-error, .woocommerce-message").remove(),c.removeClass("processing").unblock(),b&&(a("form.woocommerce-checkout").before(b),a(document.body).trigger("update_checkout",{update_shipping_method:!1}),a("form.checkout_coupon").find('input[name="coupon_code"]').val(""))},error:function(a){wc_checkout_params.debug_mode&&console.log(a.responseText)},dataType:"html"})}},d={init:function(){a(document.body).on("click","a.showlogin",this.show_login_form)},show_login_form:function(){return a("form.login").slideToggle(),!1}};b.init(),c.init(),d.init()}); \ No newline at end of file diff --git a/assets/js/frontend/single-product.min.js b/assets/js/frontend/single-product.min.js index 7f9cce13f12..0ad5ff1f4e8 100644 --- a/assets/js/frontend/single-product.min.js +++ b/assets/js/frontend/single-product.min.js @@ -1 +1 @@ -jQuery(function(a){return"undefined"==typeof wc_single_product_params?!1:(a("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){a(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var b=window.location.hash,c=window.location.href,d=a(this).find(".wc-tabs, ul.tabs").first();b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b?d.find("li.reviews_tab a").click():c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0?d.find("li.reviews_tab a").click():d.find("li:first a").click()}).on("click",".wc-tabs li a, ul.tabs li a",function(b){b.preventDefault();var c=a(this),d=c.closest(".wc-tabs-wrapper, .woocommerce-tabs"),e=d.find(".wc-tabs, ul.tabs");e.find("li").removeClass("active"),d.find(".wc-tab, .panel:not(.panel .panel)").hide(),c.closest("li").addClass("active"),d.find(c.attr("href")).show()}).on("click","a.woocommerce-review-link",function(){return a(".reviews_tab a").click(),!0}).on("init","#rating",function(){a("#rating").hide().before('

    12345

    ')}).on("click","#respond p.stars a",function(){var b=a(this),c=a(this).closest("#respond").find("#rating"),d=a(this).closest(".stars");return c.val(b.text()),b.siblings("a").removeClass("active"),b.addClass("active"),d.addClass("selected"),!1}).on("click","#respond #submit",function(){var b=a(this).closest("#respond").find("#rating"),c=b.val();return b.length>0&&!c&&"yes"===wc_single_product_params.review_rating_required?(window.alert(wc_single_product_params.i18n_required_rating_text),!1):void 0}),void a(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"))}); \ No newline at end of file +jQuery(function(a){return"undefined"!=typeof wc_single_product_params&&(a("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){a(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var b=window.location.hash,c=window.location.href,d=a(this).find(".wc-tabs, ul.tabs").first();b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b?d.find("li.reviews_tab a").click():c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0?d.find("li.reviews_tab a").click():d.find("li:first a").click()}).on("click",".wc-tabs li a, ul.tabs li a",function(b){b.preventDefault();var c=a(this),d=c.closest(".wc-tabs-wrapper, .woocommerce-tabs"),e=d.find(".wc-tabs, ul.tabs");e.find("li").removeClass("active"),d.find(".wc-tab, .panel:not(.panel .panel)").hide(),c.closest("li").addClass("active"),d.find(c.attr("href")).show()}).on("click","a.woocommerce-review-link",function(){return a(".reviews_tab a").click(),!0}).on("init","#rating",function(){a("#rating").hide().before('

    12345

    ')}).on("click","#respond p.stars a",function(){var b=a(this),c=a(this).closest("#respond").find("#rating"),d=a(this).closest(".stars");return c.val(b.text()),b.siblings("a").removeClass("active"),b.addClass("active"),d.addClass("selected"),!1}).on("click","#respond #submit",function(){var b=a(this).closest("#respond").find("#rating"),c=b.val();if(b.length>0&&!c&&"yes"===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),void a(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"))}); \ No newline at end of file diff --git a/assets/js/frontend/tokenization-form.js b/assets/js/frontend/tokenization-form.js index 6fbd4d82f23..912e18ae90e 100644 --- a/assets/js/frontend/tokenization-form.js +++ b/assets/js/frontend/tokenization-form.js @@ -37,6 +37,13 @@ // Trigger change event $( ':input.woocommerce-SavedPaymentMethods-tokenInput:checked', $target ).trigger( 'change' ); + + // Hide "save card" if "Create Account" is not checked. + // Check that the field is shown in the form - some plugins and force create account remove it + if ( $( 'input#createaccount' ).length && ! $('input#createaccount').is( ':checked' ) ) { + $wcTokenizationForm.hideSaveNewCheckbox(); + } + }; this.hideForm = function() { diff --git a/assets/js/frontend/tokenization-form.min.js b/assets/js/frontend/tokenization-form.min.js index 90714d8f4d0..23c938d1141 100644 --- a/assets/js/frontend/tokenization-form.min.js +++ b/assets/js/frontend/tokenization-form.min.js @@ -1 +1 @@ -!function(a){a(function(){var b=function(){function b(b){var c=a(b),d=c.closest(".payment_box"),e=this;this.onTokenChange=function(){"new"===a(this).val()?(e.showForm(),e.showSaveNewCheckbox()):(e.hideForm(),e.hideSaveNewCheckbox())},this.onCreateAccountChange=function(){a(this).is(":checked")?e.showSaveNewCheckbox():e.hideSaveNewCheckbox()},this.onDisplay=function(){0===a(":input.woocommerce-SavedPaymentMethods-tokenInput:checked",c).length&&a(":input.woocommerce-SavedPaymentMethods-tokenInput:last",c).prop("checked",!0),0===c.data("count")&&a(".woocommerce-SavedPaymentMethods-new",c).hide(),a(":input.woocommerce-SavedPaymentMethods-tokenInput:checked",c).trigger("change")},this.hideForm=function(){a(".wc-payment-form",d).hide()},this.showForm=function(){a(".wc-payment-form",d).show()},this.showSaveNewCheckbox=function(){a(".woocommerce-SavedPaymentMethods-saveNew",d).show()},this.hideSaveNewCheckbox=function(){a(".woocommerce-SavedPaymentMethods-saveNew",d).hide()},a(":input.woocommerce-SavedPaymentMethods-tokenInput",c).change(this.onTokenChange),a("input#createaccount").change(this.onCreateAccountChange),this.onDisplay()}return b}();a(document.body).on("updated_checkout",function(){var c=a("ul.woocommerce-SavedPaymentMethods");c.each(function(){new b(this)})})})}(jQuery); \ No newline at end of file +!function(a){a(function(){var b=function(){function b(b){var c=a(b),d=c.closest(".payment_box"),e=this;this.onTokenChange=function(){"new"===a(this).val()?(e.showForm(),e.showSaveNewCheckbox()):(e.hideForm(),e.hideSaveNewCheckbox())},this.onCreateAccountChange=function(){a(this).is(":checked")?e.showSaveNewCheckbox():e.hideSaveNewCheckbox()},this.onDisplay=function(){0===a(":input.woocommerce-SavedPaymentMethods-tokenInput:checked",c).length&&a(":input.woocommerce-SavedPaymentMethods-tokenInput:last",c).prop("checked",!0),0===c.data("count")&&a(".woocommerce-SavedPaymentMethods-new",c).hide(),a(":input.woocommerce-SavedPaymentMethods-tokenInput:checked",c).trigger("change"),a("input#createaccount").length&&!a("input#createaccount").is(":checked")&&e.hideSaveNewCheckbox()},this.hideForm=function(){a(".wc-payment-form",d).hide()},this.showForm=function(){a(".wc-payment-form",d).show()},this.showSaveNewCheckbox=function(){a(".woocommerce-SavedPaymentMethods-saveNew",d).show()},this.hideSaveNewCheckbox=function(){a(".woocommerce-SavedPaymentMethods-saveNew",d).hide()},a(":input.woocommerce-SavedPaymentMethods-tokenInput",c).change(this.onTokenChange),a("input#createaccount").change(this.onCreateAccountChange),this.onDisplay()}return b}();a(document.body).on("updated_checkout",function(){var c=a("ul.woocommerce-SavedPaymentMethods");c.each(function(){new b(this)})})})}(jQuery); \ No newline at end of file diff --git a/assets/js/jquery-blockui/jquery.blockUI.min.js b/assets/js/jquery-blockui/jquery.blockUI.min.js index 0571d56cf2c..36dab7dd11b 100644 --- a/assets/js/jquery-blockui/jquery.blockUI.min.js +++ b/assets/js/jquery-blockui/jquery.blockUI.min.js @@ -11,4 +11,4 @@ * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ -!function(){"use strict";function a(a){function b(b,d){var f,p,q=b==window,r=d&&void 0!==d.message?d.message:void 0;if(d=a.extend({},a.blockUI.defaults,d||{}),!d.ignoreIfBlocked||!a(b).data("blockUI.isBlocked")){if(d.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,d.overlayCSS||{}),f=a.extend({},a.blockUI.defaults.css,d.css||{}),d.onOverlayClick&&(d.overlayCSS.cursor="pointer"),p=a.extend({},a.blockUI.defaults.themedCSS,d.themedCSS||{}),r=void 0===r?d.message:r,q&&n&&c(window,{fadeOut:0}),r&&"string"!=typeof r&&(r.parentNode||r.jquery)){var s=r.jquery?r[0]:r,t={};a(b).data("blockUI.history",t),t.el=s,t.parent=s.parentNode,t.display=s.style.display,t.position=s.style.position,t.parent&&t.parent.removeChild(s)}a(b).data("blockUI.onUnblock",d.onUnblock);var u,v,w,x,y=d.baseZ;u=a(k||d.forceIframe?'':''),v=a(d.theme?'':''),d.theme&&q?(x='"):d.theme?(x='"):x=q?'':'',w=a(x),r&&(d.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(f)),d.theme||v.css(d.overlayCSS),v.css("position",q?"fixed":"absolute"),(k||d.forceIframe)&&u.css("opacity",0);var z=[u,v,w],A=a(q?"body":b);a.each(z,function(){this.appendTo(A)}),d.theme&&d.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var B=m&&(!a.support.boxModel||a("object,embed",q?null:b).length>0);if(l||B){if(q&&d.allowBodyStretch&&a.support.boxModel&&a("html,body").css("height","100%"),(l||!a.support.boxModel)&&!q)var C=i(b,"borderTopWidth"),D=i(b,"borderLeftWidth"),E=C?"(0 - "+C+")":0,F=D?"(0 - "+D+")":0;a.each(z,function(a,b){var c=b[0].style;if(c.position="absolute",2>a)q?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+d.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"'),q?c.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"'),F&&c.setExpression("left",F),E&&c.setExpression("top",E);else if(d.centerY)q&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),c.marginTop=0;else if(!d.centerY&&q){var e=d.css&&d.css.top?parseInt(d.css.top,10):0,f="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+e+') + "px"';c.setExpression("top",f)}})}if(r&&(d.theme?w.find(".ui-widget-content").append(r):w.append(r),(r.jquery||r.nodeType)&&a(r).show()),(k||d.forceIframe)&&d.showOverlay&&u.show(),d.fadeIn){var G=d.onBlock?d.onBlock:j,H=d.showOverlay&&!r?G:j,I=r?G:j;d.showOverlay&&v._fadeIn(d.fadeIn,H),r&&w._fadeIn(d.fadeIn,I)}else d.showOverlay&&v.show(),r&&w.show(),d.onBlock&&d.onBlock.bind(w)();if(e(1,b,d),q?(n=w[0],o=a(d.focusableElements,n),d.focusInput&&setTimeout(g,20)):h(w[0],d.centerX,d.centerY),d.timeout){var J=setTimeout(function(){q?a.unblockUI(d):a(b).unblock(d)},d.timeout);a(b).data("blockUI.timeout",J)}}}function c(b,c){var f,g=b==window,h=a(b),i=h.data("blockUI.history"),j=h.data("blockUI.timeout");j&&(clearTimeout(j),h.removeData("blockUI.timeout")),c=a.extend({},a.blockUI.defaults,c||{}),e(0,b,c),null===c.onUnblock&&(c.onUnblock=h.data("blockUI.onUnblock"),h.removeData("blockUI.onUnblock"));var k;k=g?a(document.body).children().filter(".blockUI").add("body > .blockUI"):h.find(">.blockUI"),c.cursorReset&&(k.length>1&&(k[1].style.cursor=c.cursorReset),k.length>2&&(k[2].style.cursor=c.cursorReset)),g&&(n=o=null),c.fadeOut?(f=k.length,k.stop().fadeOut(c.fadeOut,function(){0===--f&&d(k,i,c,b)})):d(k,i,c,b)}function d(b,c,d,e){var f=a(e);if(!f.data("blockUI.isBlocked")){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)}),c&&c.el&&(c.el.style.display=c.display,c.el.style.position=c.position,c.el.style.cursor="default",c.parent&&c.parent.appendChild(c.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),"function"==typeof d.onUnblock&&d.onUnblock(e,d);var g=a(document.body),h=g.width(),i=g[0].style.width;g.width(h-1).width(h),g[0].style.width=i}}function e(b,c,d){var e=c==window,g=a(c);if((b||(!e||n)&&(e||g.data("blockUI.isBlocked")))&&(g.data("blockUI.isBlocked",b),e&&d.bindEvents&&(!b||d.showOverlay))){var h="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";b?a(document).bind(h,d,f):a(document).unbind(h,f)}}function f(b){if("keydown"===b.type&&b.keyCode&&9==b.keyCode&&n&&b.data.constrainTabKey){var c=o,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e)return setTimeout(function(){g(e)},10),!1}var f=b.data,h=a(b.target);return h.hasClass("blockOverlay")&&f.onOverlayClick&&f.onOverlayClick(b),h.parents("div."+f.blockMsgClass).length>0?!0:0===h.parents().children().filter("div.blockUI").length}function g(a){if(o){var b=o[a===!0?o.length-1:0];b&&b.focus()}}function h(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-i(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-i(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0"),c&&(e.top=g>0?g+"px":"0")}function i(b,c){return parseInt(a.css(b,c),10)||0}a.fn._fadeIn=a.fn.fadeIn;var j=a.noop||function(){},k=/MSIE/.test(navigator.userAgent),l=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),m=(document.documentMode||0,a.isFunction(document.createElement("div").style.setExpression));a.blockUI=function(a){b(window,a)},a.unblockUI=function(a){c(window,a)},a.growlUI=function(b,c,d,e){var f=a('
    ');b&&f.append("

    "+b+"

    "),c&&f.append("

    "+c+"

    "),void 0===d&&(d=3e3);var g=function(b){b=b||{},a.blockUI({message:f,fadeIn:"undefined"!=typeof b.fadeIn?b.fadeIn:700,fadeOut:"undefined"!=typeof b.fadeOut?b.fadeOut:1e3,timeout:"undefined"!=typeof b.timeout?b.timeout:d,centerY:!1,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};g();f.css("opacity");f.mouseover(function(){g({fadeIn:0,timeout:3e4});var b=a(".blockMsg");b.stop(),b.fadeTo(300,1)}).mouseout(function(){a(".blockMsg").fadeOut(1e3)})},a.fn.block=function(c){if(this[0]===window)return a.blockUI(c),this;var d=a.extend({},a.blockUI.defaults,c||{});return this.each(function(){var b=a(this);d.ignoreIfBlocked&&b.data("blockUI.isBlocked")||b.unblock({fadeOut:0})}),this.each(function(){"static"==a.css(this,"position")&&(this.style.position="relative",a(this).data("blockUI.static",!0)),this.style.zoom=1,b(this,c)})},a.fn.unblock=function(b){return this[0]===window?(a.unblockUI(b),this):this.each(function(){c(this,b)})},a.blockUI.version=2.7,a.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var n=null,o=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}(); \ No newline at end of file +!function(){"use strict";function a(a){function b(b,d){var f,p,q=b==window,r=d&&void 0!==d.message?d.message:void 0;if(d=a.extend({},a.blockUI.defaults,d||{}),!d.ignoreIfBlocked||!a(b).data("blockUI.isBlocked")){if(d.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,d.overlayCSS||{}),f=a.extend({},a.blockUI.defaults.css,d.css||{}),d.onOverlayClick&&(d.overlayCSS.cursor="pointer"),p=a.extend({},a.blockUI.defaults.themedCSS,d.themedCSS||{}),r=void 0===r?d.message:r,q&&n&&c(window,{fadeOut:0}),r&&"string"!=typeof r&&(r.parentNode||r.jquery)){var s=r.jquery?r[0]:r,t={};a(b).data("blockUI.history",t),t.el=s,t.parent=s.parentNode,t.display=s.style.display,t.position=s.style.position,t.parent&&t.parent.removeChild(s)}a(b).data("blockUI.onUnblock",d.onUnblock);var u,v,w,x,y=d.baseZ;u=a(k||d.forceIframe?'':''),v=a(d.theme?'':''),d.theme&&q?(x='"):d.theme?(x='"):x=q?'':'',w=a(x),r&&(d.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(f)),d.theme||v.css(d.overlayCSS),v.css("position",q?"fixed":"absolute"),(k||d.forceIframe)&&u.css("opacity",0);var z=[u,v,w],A=a(q?"body":b);a.each(z,function(){this.appendTo(A)}),d.theme&&d.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var B=m&&(!a.support.boxModel||a("object,embed",q?null:b).length>0);if(l||B){if(q&&d.allowBodyStretch&&a.support.boxModel&&a("html,body").css("height","100%"),(l||!a.support.boxModel)&&!q)var C=i(b,"borderTopWidth"),D=i(b,"borderLeftWidth"),E=C?"(0 - "+C+")":0,F=D?"(0 - "+D+")":0;a.each(z,function(a,b){var c=b[0].style;if(c.position="absolute",a<2)q?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+d.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"'),q?c.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"'),F&&c.setExpression("left",F),E&&c.setExpression("top",E);else if(d.centerY)q&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),c.marginTop=0;else if(!d.centerY&&q){var e=d.css&&d.css.top?parseInt(d.css.top,10):0,f="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+e+') + "px"';c.setExpression("top",f)}})}if(r&&(d.theme?w.find(".ui-widget-content").append(r):w.append(r),(r.jquery||r.nodeType)&&a(r).show()),(k||d.forceIframe)&&d.showOverlay&&u.show(),d.fadeIn){var G=d.onBlock?d.onBlock:j,H=d.showOverlay&&!r?G:j,I=r?G:j;d.showOverlay&&v._fadeIn(d.fadeIn,H),r&&w._fadeIn(d.fadeIn,I)}else d.showOverlay&&v.show(),r&&w.show(),d.onBlock&&d.onBlock.bind(w)();if(e(1,b,d),q?(n=w[0],o=a(d.focusableElements,n),d.focusInput&&setTimeout(g,20)):h(w[0],d.centerX,d.centerY),d.timeout){var J=setTimeout(function(){q?a.unblockUI(d):a(b).unblock(d)},d.timeout);a(b).data("blockUI.timeout",J)}}}function c(b,c){var f,g=b==window,h=a(b),i=h.data("blockUI.history"),j=h.data("blockUI.timeout");j&&(clearTimeout(j),h.removeData("blockUI.timeout")),c=a.extend({},a.blockUI.defaults,c||{}),e(0,b,c),null===c.onUnblock&&(c.onUnblock=h.data("blockUI.onUnblock"),h.removeData("blockUI.onUnblock"));var k;k=g?a(document.body).children().filter(".blockUI").add("body > .blockUI"):h.find(">.blockUI"),c.cursorReset&&(k.length>1&&(k[1].style.cursor=c.cursorReset),k.length>2&&(k[2].style.cursor=c.cursorReset)),g&&(n=o=null),c.fadeOut?(f=k.length,k.stop().fadeOut(c.fadeOut,function(){0===--f&&d(k,i,c,b)})):d(k,i,c,b)}function d(b,c,d,e){var f=a(e);if(!f.data("blockUI.isBlocked")){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)}),c&&c.el&&(c.el.style.display=c.display,c.el.style.position=c.position,c.el.style.cursor="default",c.parent&&c.parent.appendChild(c.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),"function"==typeof d.onUnblock&&d.onUnblock(e,d);var g=a(document.body),h=g.width(),i=g[0].style.width;g.width(h-1).width(h),g[0].style.width=i}}function e(b,c,d){var e=c==window,g=a(c);if((b||(!e||n)&&(e||g.data("blockUI.isBlocked")))&&(g.data("blockUI.isBlocked",b),e&&d.bindEvents&&(!b||d.showOverlay))){var h="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";b?a(document).bind(h,d,f):a(document).unbind(h,f)}}function f(b){if("keydown"===b.type&&b.keyCode&&9==b.keyCode&&n&&b.data.constrainTabKey){var c=o,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e)return setTimeout(function(){g(e)},10),!1}var f=b.data,h=a(b.target);return h.hasClass("blockOverlay")&&f.onOverlayClick&&f.onOverlayClick(b),h.parents("div."+f.blockMsgClass).length>0||0===h.parents().children().filter("div.blockUI").length}function g(a){if(o){var b=o[a===!0?o.length-1:0];b&&b.focus()}}function h(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-i(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-i(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0"),c&&(e.top=g>0?g+"px":"0")}function i(b,c){return parseInt(a.css(b,c),10)||0}a.fn._fadeIn=a.fn.fadeIn;var j=a.noop||function(){},k=/MSIE/.test(navigator.userAgent),l=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),m=(document.documentMode||0,a.isFunction(document.createElement("div").style.setExpression));a.blockUI=function(a){b(window,a)},a.unblockUI=function(a){c(window,a)},a.growlUI=function(b,c,d,e){var f=a('
    ');b&&f.append("

    "+b+"

    "),c&&f.append("

    "+c+"

    "),void 0===d&&(d=3e3);var g=function(b){b=b||{},a.blockUI({message:f,fadeIn:"undefined"!=typeof b.fadeIn?b.fadeIn:700,fadeOut:"undefined"!=typeof b.fadeOut?b.fadeOut:1e3,timeout:"undefined"!=typeof b.timeout?b.timeout:d,centerY:!1,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};g();f.css("opacity");f.mouseover(function(){g({fadeIn:0,timeout:3e4});var b=a(".blockMsg");b.stop(),b.fadeTo(300,1)}).mouseout(function(){a(".blockMsg").fadeOut(1e3)})},a.fn.block=function(c){if(this[0]===window)return a.blockUI(c),this;var d=a.extend({},a.blockUI.defaults,c||{});return this.each(function(){var b=a(this);d.ignoreIfBlocked&&b.data("blockUI.isBlocked")||b.unblock({fadeOut:0})}),this.each(function(){"static"==a.css(this,"position")&&(this.style.position="relative",a(this).data("blockUI.static",!0)),this.style.zoom=1,b(this,c)})},a.fn.unblock=function(b){return this[0]===window?(a.unblockUI(b),this):this.each(function(){c(this,b)})},a.blockUI.version=2.7,a.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var n=null,o=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}(); \ No newline at end of file diff --git a/assets/js/jquery-cookie/jquery.cookie.min.js b/assets/js/jquery-cookie/jquery.cookie.min.js index 5be813ad400..bdf1c502623 100644 --- a/assets/js/jquery-cookie/jquery.cookie.min.js +++ b/assets/js/jquery-cookie/jquery.cookie.min.js @@ -5,4 +5,4 @@ * Copyright 2013 Klaus Hartl * Released under the MIT license */ -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;n=1?"rgb("+[f.r,f.g,f.b].join(",")+")":"rgba("+[f.r,f.g,f.b,f.a].join(",")+")"},f.normalize=function(){function a(a,b,c){return a>b?a:b>c?c:b}return f.r=a(0,parseInt(f.r),255),f.g=a(0,parseInt(f.g),255),f.b=a(0,parseInt(f.b),255),f.a=a(0,f.a,1),f},f.clone=function(){return a.color.make(f.r,f.b,f.g,f.a)},f.normalize()},a.color.extract=function(b,c){var d;do{if(d=b.css(c).toLowerCase(),""!=d&&"transparent"!=d)break;b=b.parent()}while(!a.nodeName(b.get(0),"body"));return"rgba(0, 0, 0, 0)"==d&&(d="transparent"),a.color.parse(d)},a.color.parse=function(c){var d,e=a.color.make;if(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return e(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10));if(d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c))return e(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10),parseFloat(d[4]));if(d=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return e(2.55*parseFloat(d[1]),2.55*parseFloat(d[2]),2.55*parseFloat(d[3]));if(d=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c))return e(2.55*parseFloat(d[1]),2.55*parseFloat(d[2]),2.55*parseFloat(d[3]),parseFloat(d[4]));if(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return e(parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16));if(d=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return e(parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16));var f=a.trim(c).toLowerCase();return"transparent"==f?e(255,255,255,0):(d=b[f]||[0,0,0],e(d[0],d[1],d[2]))};var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(a){function b(b,c){var d=c.children("."+b)[0];if(null==d&&(d=document.createElement("canvas"),d.className=b,a(d).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(c),!d.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");d=window.G_vmlCanvasManager.initElement(d)}this.element=d;var e=this.context=d.getContext("2d"),f=window.devicePixelRatio||1,g=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;this.pixelRatio=f/g,this.resize(c.width(),c.height()),this.textContainer=null,this.text={},this._textCache={}}function c(c,e,f,g){function h(a,b){b=[qa].concat(b);for(var c=0;cd;++d)e=ea.xaxes[d],e&&!e.tickColor&&(e.tickColor=e.color),e=a.extend(!0,{},ea.xaxis,e),ea.xaxes[d]=e,e.font&&(e.font=a.extend({},g,e.font),e.font.color||(e.font.color=e.color));for(f=ea.yaxes.length||1,d=0;f>d;++d)e=ea.yaxes[d],e&&!e.tickColor&&(e.tickColor=e.color),e=a.extend(!0,{},ea.yaxis,e),ea.yaxes[d]=e,e.font&&(e.font=a.extend({},g,e.font),e.font.color||(e.font.color=e.color));for(ea.xaxis.noTicks&&null==ea.xaxis.ticks&&(ea.xaxis.ticks=ea.xaxis.noTicks),ea.yaxis.noTicks&&null==ea.yaxis.ticks&&(ea.yaxis.ticks=ea.yaxis.noTicks),ea.x2axis&&(ea.xaxes[1]=a.extend(!0,{},ea.xaxis,ea.x2axis),ea.xaxes[1].position="top"),ea.y2axis&&(ea.yaxes[1]=a.extend(!0,{},ea.yaxis,ea.y2axis),ea.yaxes[1].position="right"),ea.grid.coloredAreas&&(ea.grid.markings=ea.grid.coloredAreas),ea.grid.coloredAreasColor&&(ea.grid.markingsColor=ea.grid.coloredAreasColor),ea.lines&&a.extend(!0,ea.series.lines,ea.lines),ea.points&&a.extend(!0,ea.series.points,ea.points),ea.bars&&a.extend(!0,ea.series.bars,ea.bars),null!=ea.shadowSize&&(ea.series.shadowSize=ea.shadowSize),null!=ea.highlightColor&&(ea.series.highlightColor=ea.highlightColor),d=0;dd&&(d=e))}d>=c&&(c=d+1);var f,g=[],h=ea.colors,i=h.length,j=0;for(b=0;c>b;b++)f=a.color.parse(h[b%i]||"#666"),b%i==0&&b&&(j=j>=0?.5>j?-j-.2:0:-j),g[b]=f.scale("rgb",1+j);var k,l=0;for(b=0;ba.datamax&&c!=s&&(a.datamax=c)}var c,d,e,f,g,i,j,k,l,m,o,p,q=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,s=Number.MAX_VALUE;for(a.each(n(),function(a,b){b.datamin=q,b.datamax=r,b.used=!1}),c=0;cf;++f)k=m[f],l=p[f],l&&(l.number&&null!=k&&(k=+k,isNaN(k)?k=null:k==1/0?k=s:k==-(1/0)&&(k=-s)),null==k&&(l.required&&(v=!0),null!=l.defaultValue&&(k=l.defaultValue))),i[e+f]=k;if(v)for(f=0;j>f;++f)k=i[e+f],null!=k&&(l=p[f],l.autoscale&&(l.x&&b(g.xaxis,k,k),l.y&&b(g.yaxis,k,k))),i[e+f]=null;else if(u&&e>0&&null!=i[e-j]&&i[e-j]!=i[e]&&i[e-j+1]!=i[e+1]){for(f=0;j>f;++f)i[e+j+f]=i[e+f];i[e+1]=i[e-j+1],e+=j}}}}for(c=0;cf;++f)k=i[d+f],l=p[f],l&&l.autoscale!==!1&&k!=s&&k!=-s&&(l.x&&(w>k&&(w=k),k>y&&(y=k)),l.y&&(x>k&&(x=k),k>z&&(z=k)));if(g.bars.show){var A;switch(g.bars.align){case"left":A=0;break;case"right":A=-g.bars.barWidth;break;case"center":A=-g.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+g.bars.align)}g.bars.horizontal?(x+=A,z+=A+g.bars.barWidth):(w+=A,y+=A+g.bars.barWidth)}b(g.xaxis,w,y),b(g.yaxis,x,z)}a.each(n(),function(a,b){b.datamin==q&&(b.datamin=null),b.datamax==r&&(b.datamax=null)})}function t(){c.css("padding",0).children(":not(.flot-base,.flot-overlay)").remove(),"static"==c.css("position")&&c.css("position","relative"),fa=new b("flot-base",c),ga=new b("flot-overlay",c),ia=fa.context,ja=ga.context,ha=a(ga.element).unbind();var d=c.data("plot");d&&(d.shutdown(),ga.clear()),c.data("plot",qa)}function u(){ea.grid.hoverable&&(ha.mousemove(T),ha.bind("mouseleave",U)),ea.grid.clickable&&ha.click(V),h(pa.bindEvents,[ha])}function v(){sa&&clearTimeout(sa),ha.unbind("mousemove",T),ha.unbind("mouseleave",U),ha.unbind("click",V),h(pa.shutdown,[ha])}function w(a){function b(a){return a}var c,d,e=a.options.transform||b,f=a.options.inverseTransform;"x"==a.direction?(c=a.scale=na/Math.abs(e(a.max)-e(a.min)),d=Math.min(e(a.max),e(a.min))):(c=a.scale=oa/Math.abs(e(a.max)-e(a.min)),c=-c,d=Math.max(e(a.max),e(a.min))),e==b?a.p2c=function(a){return(a-d)*c}:a.p2c=function(a){return(e(a)-d)*c},f?a.c2p=function(a){return f(d+a/c)}:a.c2p=function(a){return d+a/c}}function x(a){var b=a.options,c=a.ticks||[],d=b.labelWidth||0,e=b.labelHeight||0,f=d||"x"==a.direction?Math.floor(fa.width/(c.length||1)):null;legacyStyles=a.direction+"Axis "+a.direction+a.n+"Axis",layer="flot-"+a.direction+"-axis flot-"+a.direction+a.n+"-axis "+legacyStyles,font=b.font||"flot-tick-label tickLabel";for(var g=0;g=0;--b)y(g[b]);A(),a.each(g,function(a,b){z(b)})}na=fa.width-ma.left-ma.right,oa=fa.height-ma.bottom-ma.top,a.each(c,function(a,b){w(b)}),d&&K(),R()}function C(a){var b=a.options,c=+(null!=b.min?b.min:a.datamin),d=+(null!=b.max?b.max:a.datamax),e=d-c;if(0==e){var f=0==d?1:.01;null==b.min&&(c-=f),null!=b.max&&null==b.min||(d+=f)}else{var g=b.autoscaleMargin;null!=g&&(null==b.min&&(c-=e*g,0>c&&null!=a.datamin&&a.datamin>=0&&(c=0)),null==b.max&&(d+=e*g,d>0&&null!=a.datamax&&a.datamax<=0&&(d=0)))}a.min=c,a.max=d}function D(b){var c,e=b.options;c="number"==typeof e.ticks&&e.ticks>0?e.ticks:.3*Math.sqrt("x"==b.direction?fa.width:fa.height);var f=(b.max-b.min)/c,g=-Math.floor(Math.log(f)/Math.LN10),h=e.tickDecimals;null!=h&&g>h&&(g=h);var i,j=Math.pow(10,-g),k=f/j;if(1.5>k?i=1:3>k?(i=2,k>2.25&&(null==h||h>=g+1)&&(i=2.5,++g)):i=7.5>k?5:10,i*=j,null!=e.minTickSize&&i0&&(null==e.min&&(b.min=Math.min(b.min,m[0])),null==e.max&&m.length>1&&(b.max=Math.max(b.max,m[m.length-1]))),b.tickGenerator=function(a){var b,c,d=[];for(c=0;c1&&/\..*0$/.test((o[1]-o[0]).toFixed(n))||(b.tickDecimals=n)}}}}function E(b){var c=b.options.ticks,d=[];null==c||"number"==typeof c&&c>0?d=b.tickGenerator(b):c&&(d=a.isFunction(c)?c(b):c);var e,f;for(b.ticks=[],e=0;e1&&(g=h[1])):f=+h,null==g&&(g=b.tickFormatter(f,b)),isNaN(f)||b.ticks.push({v:f,label:g})}}function F(a,b){a.options.autoscaleMargin&&b.length>0&&(null==a.options.min&&(a.min=Math.min(a.min,b[0].v)),null==a.options.max&&b.length>1&&(a.max=Math.max(a.max,b[b.length-1].v)))}function G(){fa.clear(),h(pa.drawBackground,[ia]);var a=ea.grid;a.show&&a.backgroundColor&&I(),a.show&&!a.aboveData&&J();for(var b=0;be){var i=d;d=e,e=i}return{from:d,to:e,axis:c}}function I(){ia.save(),ia.translate(ma.left,ma.top),ia.fillStyle=ca(ea.grid.backgroundColor,oa,0,"rgba(255, 255, 255, 0)"),ia.fillRect(0,0,na,oa),ia.restore()}function J(){var b,c,d,e;ia.save(),ia.translate(ma.left,ma.top);var f=ea.grid.markings;if(f)for(a.isFunction(f)&&(c=qa.getAxes(),c.xmin=c.xaxis.min,c.xmax=c.xaxis.max,c.ymin=c.yaxis.min,c.ymax=c.yaxis.max,f=f(c)),b=0;bh.axis.max||i.toi.axis.max||(h.from=Math.max(h.from,h.axis.min),h.to=Math.min(h.to,h.axis.max),i.from=Math.max(i.from,i.axis.min),i.to=Math.min(i.to,i.axis.max),h.from==h.to&&i.from==i.to||(h.from=h.axis.p2c(h.from),h.to=h.axis.p2c(h.to),i.from=i.axis.p2c(i.from),i.to=i.axis.p2c(i.to),h.from==h.to||i.from==i.to?(ia.beginPath(),ia.strokeStyle=g.color||ea.grid.markingsColor,ia.lineWidth=g.lineWidth||ea.grid.markingsLineWidth,ia.moveTo(h.from,i.from),ia.lineTo(h.to,i.to),ia.stroke()):(ia.fillStyle=g.color||ea.grid.markingsColor,ia.fillRect(h.from,i.to,h.to-h.from,i.from-i.to))))}c=n(),d=ea.grid.borderWidth;for(var j=0;jp.max||"full"==r&&("object"==typeof d&&d[p.position]>0||d>0)&&(s==p.min||s==p.max)||("x"==p.direction?(k=p.p2c(s),o="full"==r?-oa:r,"top"==p.position&&(o=-o)):(l=p.p2c(s),m="full"==r?-na:r,"left"==p.position&&(m=-m)),1==ia.lineWidth&&("x"==p.direction?k=Math.floor(k)+.5:l=Math.floor(l)+.5),ia.moveTo(k,l),ia.lineTo(k+m,l+o))}ia.stroke()}}d&&(e=ea.grid.borderColor,"object"==typeof d||"object"==typeof e?("object"!=typeof d&&(d={top:d,right:d,bottom:d,left:d}),"object"!=typeof e&&(e={top:e,right:e,bottom:e,left:e}),d.top>0&&(ia.strokeStyle=e.top,ia.lineWidth=d.top,ia.beginPath(),ia.moveTo(0-d.left,0-d.top/2),ia.lineTo(na,0-d.top/2),ia.stroke()),d.right>0&&(ia.strokeStyle=e.right,ia.lineWidth=d.right,ia.beginPath(),ia.moveTo(na+d.right/2,0-d.top),ia.lineTo(na+d.right/2,oa),ia.stroke()),d.bottom>0&&(ia.strokeStyle=e.bottom,ia.lineWidth=d.bottom,ia.beginPath(),ia.moveTo(na+d.right,oa+d.bottom/2),ia.lineTo(0,oa+d.bottom/2),ia.stroke()),d.left>0&&(ia.strokeStyle=e.left,ia.lineWidth=d.left,ia.beginPath(),ia.moveTo(0-d.left/2,oa+d.bottom),ia.lineTo(0-d.left/2,0),ia.stroke())):(ia.lineWidth=d,ia.strokeStyle=ea.grid.borderColor,ia.strokeRect(-d/2,-d/2,na+d,oa+d))),ia.restore()}function K(){a.each(n(),function(a,b){if(b.show&&0!=b.ticks.length){var c,d,e,f,g,h=b.box,i=b.direction+"Axis "+b.direction+b.n+"Axis",j="flot-"+b.direction+"-axis flot-"+b.direction+b.n+"-axis "+i,k=b.options.font||"flot-tick-label tickLabel";fa.removeText(j);for(var l=0;lb.max||("x"==b.direction?(f="center",d=ma.left+b.p2c(c.v),"bottom"==b.position?e=h.top+h.padding:(e=h.top+h.height-h.padding,g="bottom")):(g="middle",e=ma.top+b.p2c(c.v),"left"==b.position?(d=h.left+h.width-h.padding,f="right"):d=h.left+h.padding),fa.addText(j,d,e,c.label,k,null,null,f,g))}})}function L(a){a.lines.show&&M(a),a.bars.show&&P(a),a.points.show&&N(a)}function M(a){function b(a,b,c,d,e){var f=a.points,g=a.pointsize,h=null,i=null;ia.beginPath();for(var j=g;j=l&&l=n&&n=n&&l>e.max){if(n>e.max)continue;k=(e.max-l)/(n-l)*(m-k)+k,l=e.max}else if(n>=l&&n>e.max){if(l>e.max)continue;m=(e.max-l)/(n-l)*(m-k)+k,n=e.max}if(m>=k&&k=m&&m=m&&k>d.max){if(m>d.max)continue;l=(d.max-k)/(m-k)*(n-l)+l,k=d.max}else if(m>=k&&m>d.max){if(k>d.max)continue;n=(d.max-k)/(m-k)*(n-l)+l,m=d.max}k==h&&l==i||ia.moveTo(d.p2c(k)+b,e.p2c(l)+c),h=m,i=n,ia.lineTo(d.p2c(m)+b,e.p2c(n)+c)}}ia.stroke()}function c(a,b,c){for(var d=a.points,e=a.pointsize,f=Math.min(Math.max(0,c.min),c.max),g=0,h=!1,i=1,j=0,k=0;;){if(e>0&&g>d.length+e)break;g+=e;var l=d[g-e],m=d[g-e+i],n=d[g],o=d[g+i];if(h){if(e>0&&null!=l&&null==n){k=g,e=-e,i=2;continue}if(0>e&&g==j+e){ia.fill(),h=!1,e=-e,i=1,g=j=k+e;continue}}if(null!=l&&null!=n){if(n>=l&&l=n&&n=n&&l>b.max){if(n>b.max)continue;m=(b.max-l)/(n-l)*(o-m)+m,l=b.max}else if(n>=l&&n>b.max){if(l>b.max)continue;o=(b.max-l)/(n-l)*(o-m)+m,n=b.max}if(h||(ia.beginPath(),ia.moveTo(b.p2c(l),c.p2c(f)),h=!0),m>=c.max&&o>=c.max)ia.lineTo(b.p2c(l),c.p2c(c.max)),ia.lineTo(b.p2c(n),c.p2c(c.max));else if(m<=c.min&&o<=c.min)ia.lineTo(b.p2c(l),c.p2c(c.min)),ia.lineTo(b.p2c(n),c.p2c(c.min));else{var p=l,q=n;o>=m&&m=c.min?(l=(c.min-m)/(o-m)*(n-l)+l,m=c.min):m>=o&&o=c.min&&(n=(c.min-m)/(o-m)*(n-l)+l,o=c.min),m>=o&&m>c.max&&o<=c.max?(l=(c.max-m)/(o-m)*(n-l)+l,m=c.max):o>=m&&o>c.max&&m<=c.max&&(n=(c.max-m)/(o-m)*(n-l)+l,o=c.max),l!=p&&ia.lineTo(b.p2c(p),c.p2c(m)),ia.lineTo(b.p2c(l),c.p2c(m)),ia.lineTo(b.p2c(n),c.p2c(o)),n!=q&&(ia.lineTo(b.p2c(n),c.p2c(o)),ia.lineTo(b.p2c(q),c.p2c(o)))}}}}ia.save(),ia.translate(ma.left,ma.top),ia.lineJoin="round";var d=a.lines.lineWidth,e=a.shadowSize;if(d>0&&e>0){ia.lineWidth=e,ia.strokeStyle="rgba(0,0,0,0.1)";var f=Math.PI/18;b(a.datapoints,Math.sin(f)*(d/2+e/2),Math.cos(f)*(d/2+e/2),a.xaxis,a.yaxis),ia.lineWidth=e/2,b(a.datapoints,Math.sin(f)*(d/2+e/4),Math.cos(f)*(d/2+e/4),a.xaxis,a.yaxis)}ia.lineWidth=d,ia.strokeStyle=a.color;var g=Q(a.lines,a.color,0,oa);g&&(ia.fillStyle=g,c(a.datapoints,a.xaxis,a.yaxis)),d>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis),ia.restore()}function N(a){function b(a,b,c,d,e,f,g,h){for(var i=a.points,j=a.pointsize,k=0;kf.max||mg.max||(ia.beginPath(),l=f.p2c(l),m=g.p2c(m)+d,"circle"==h?ia.arc(l,m,b,0,e?Math.PI:2*Math.PI,!1):h(ia,l,m,b,e),ia.closePath(),c&&(ia.fillStyle=c,ia.fill()),ia.stroke())}}ia.save(),ia.translate(ma.left,ma.top);var c=a.points.lineWidth,d=a.shadowSize,e=a.points.radius,f=a.points.symbol;if(0==c&&(c=1e-4),c>0&&d>0){var g=d/2;ia.lineWidth=g,ia.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,e,null,g+g/2,!0,a.xaxis,a.yaxis,f),ia.strokeStyle="rgba(0,0,0,0.2)",b(a.datapoints,e,null,g/2,!0,a.xaxis,a.yaxis,f)}ia.lineWidth=c,ia.strokeStyle=a.color,b(a.datapoints,e,Q(a.points,a.color),0,!1,a.xaxis,a.yaxis,f),ia.restore()}function O(a,b,c,d,e,f,g,h,i,j,k,l){var m,n,o,p,q,r,s,t,u;k?(t=r=s=!0,q=!1,m=c,n=a,p=b+d,o=b+e,m>n&&(u=n,n=m,m=u,q=!0,r=!1)):(q=r=s=!0,t=!1,m=a+d,n=a+e,o=c,p=b,o>p&&(u=p,p=o,o=u,t=!0,s=!1)),nh.max||pi.max||(mh.max&&(n=h.max,r=!1),oi.max&&(p=i.max,s=!1),m=h.p2c(m),o=i.p2c(o),n=h.p2c(n),p=i.p2c(p),g&&(j.beginPath(),j.moveTo(m,o),j.lineTo(m,p),j.lineTo(n,p),j.lineTo(n,o),j.fillStyle=g(o,p),j.fill()),l>0&&(q||r||s||t)&&(j.beginPath(),j.moveTo(m,o+f),q?j.lineTo(m,p+f):j.moveTo(m,p+f),s?j.lineTo(n,p+f):j.moveTo(n,p+f),r?j.lineTo(n,o+f):j.moveTo(n,o+f),t?j.lineTo(m,o+f):j.moveTo(m,o+f),j.stroke()))}function P(a){function b(b,c,d,e,f,g,h){for(var i=b.points,j=b.pointsize,k=0;k"),e.push(""),g=!0),e.push('
    '+k.label+"")}if(g&&e.push(""),0!=e.length){var l=''+e.join("")+"
    ";if(null!=ea.legend.container)a(ea.legend.container).html(l);else{var m="",n=ea.legend.position,o=ea.legend.margin;null==o[0]&&(o=[o,o]),"n"==n.charAt(0)?m+="top:"+(o[1]+ma.top)+"px;":"s"==n.charAt(0)&&(m+="bottom:"+(o[1]+ma.bottom)+"px;"),"e"==n.charAt(1)?m+="right:"+(o[0]+ma.right)+"px;":"w"==n.charAt(1)&&(m+="left:"+(o[0]+ma.left)+"px;");var p=a('
    '+l.replace('style="','style="position:absolute;'+m+";")+"
    ").appendTo(c);if(0!=ea.legend.backgroundOpacity){var q=ea.legend.backgroundColor;null==q&&(q=ea.grid.backgroundColor,q=q&&"string"==typeof q?a.color.parse(q):a.color.extract(p,"background-color"),q.a=1,q=q.toString());var r=p.children();a('
    ').prependTo(p).css("opacity",ea.legend.backgroundOpacity)}}}}}function S(a,b,c){var d,e,f,g=ea.grid.mouseActiveRadius,h=g*g+1,i=null;for(d=da.length-1;d>=0;--d)if(c(da[d])){var j=da[d],k=j.xaxis,l=j.yaxis,m=j.datapoints.points,n=k.c2p(a),o=l.c2p(b),p=g/k.scale,q=g/l.scale;if(f=j.datapoints.pointsize,k.options.inverseTransform&&(p=Number.MAX_VALUE),l.options.inverseTransform&&(q=Number.MAX_VALUE),j.lines.show||j.points.show)for(e=0;ep||-p>r-n||s-o>q||-q>s-o)){var t=Math.abs(k.p2c(r)-a),u=Math.abs(l.p2c(s)-b),v=t*t+u*u;h>v&&(h=v,i=[d,e/f])}}if(j.bars.show&&!i){var w="left"==j.bars.align?0:-j.bars.barWidth/2,x=w+j.bars.barWidth;for(e=0;e=Math.min(y,r)&&o>=s+w&&s+x>=o:n>=r+w&&r+x>=n&&o>=Math.min(y,s)&&o<=Math.max(y,s))&&(i=[d,e/f])}}}return i?(d=i[0],e=i[1],f=da[d].datapoints.pointsize,{datapoint:da[d].datapoints.points.slice(e*f,(e+1)*f),dataIndex:e,series:da[d],seriesIndex:d}):null}function T(a){ea.grid.hoverable&&W("plothover",a,function(a){return 0!=a.hoverable})}function U(a){ea.grid.hoverable&&W("plothover",a,function(a){return!1})}function V(a){W("plotclick",a,function(a){return 0!=a.clickable})}function W(a,b,d){var e=ha.offset(),f=b.pageX-e.left-ma.left,g=b.pageY-e.top-ma.top,h=o({left:f,top:g});h.pageX=b.pageX,h.pageY=b.pageY;var i=S(f,g,d);if(i&&(i.pageX=parseInt(i.series.xaxis.p2c(i.datapoint[0])+e.left+ma.left,10),i.pageY=parseInt(i.series.yaxis.p2c(i.datapoint[1])+e.top+ma.top,10)),ea.grid.autoHighlight){for(var j=0;jf.max||eg.max)){var i=b.points.radius+b.points.lineWidth/2;ja.lineWidth=i,ja.strokeStyle=h;var j=1.5*i;d=f.p2c(d),e=g.p2c(e),ja.beginPath(),"circle"==b.points.symbol?ja.arc(d,e,j,0,2*Math.PI,!1):b.points.symbol(ja,d,e,j,!1),ja.closePath(),ja.stroke()}}function ba(b,c){var d="string"==typeof b.highlightColor?b.highlightColor:a.color.parse(b.color).scale("a",.5).toString(),e=d,f="left"==b.bars.align?0:-b.bars.barWidth/2;ja.lineWidth=b.bars.lineWidth,ja.strokeStyle=d,O(c[0],c[1],c[2]||0,f,f+b.bars.barWidth,0,function(){return e},b.xaxis,b.yaxis,ja,b.bars.horizontal,b.bars.lineWidth)}function ca(b,c,d,e){if("string"==typeof b)return b;for(var f=ia.createLinearGradient(0,d,0,c),g=0,h=b.colors.length;h>g;++g){var i=b.colors[g];if("string"!=typeof i){var j=a.color.parse(e);null!=i.brightness&&(j=j.scale("rgb",i.brightness)),null!=i.opacity&&(j.a*=i.opacity),i=j.toString()}f.addColorStop(g/(h-1),i)}return f}var da=[],ea={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},fa=null,ga=null,ha=null,ia=null,ja=null,ka=[],la=[],ma={left:0,right:0,top:0,bottom:0},na=0,oa=0,pa={processOptions:[],processRawData:[], -processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},qa=this;qa.setData=k,qa.setupGrid=B,qa.draw=G,qa.getPlaceholder=function(){return c},qa.getCanvas=function(){return fa.element},qa.getPlotOffset=function(){return ma},qa.width=function(){return na},qa.height=function(){return oa},qa.offset=function(){var a=ha.offset();return a.left+=ma.left,a.top+=ma.top,a},qa.getData=function(){return da},qa.getAxes=function(){var b={};return a.each(ka.concat(la),function(a,c){c&&(b[c.direction+(1!=c.n?c.n:"")+"axis"]=c)}),b},qa.getXAxes=function(){return ka},qa.getYAxes=function(){return la},qa.c2p=o,qa.p2c=p,qa.getOptions=function(){return ea},qa.highlight=Z,qa.unhighlight=$,qa.triggerRedrawOverlay=X,qa.pointOffset=function(a){return{left:parseInt(ka[m(a,"x")-1].p2c(+a.x)+ma.left,10),top:parseInt(la[m(a,"y")-1].p2c(+a.y)+ma.top,10)}},qa.shutdown=v,qa.resize=function(){var a=c.width(),b=c.height();fa.resize(a,b),ga.resize(a,b)},qa.hooks=pa,i(qa),j(f),t(),k(e),B(),G(),u();var ra=[],sa=null}function d(a,b){return b*Math.floor(a/b)}var e=Object.prototype.hasOwnProperty;b.prototype.resize=function(a,b){if(0>=a||0>=b)throw new Error("Invalid dimensions for plot, width = "+a+", height = "+b);var c=this.element,d=this.context,e=this.pixelRatio;this.width!=a&&(c.width=a*e,c.style.width=a+"px",this.width=a),this.height!=b&&(c.height=b*e,c.style.height=b+"px",this.height=b),d.restore(),d.save(),d.scale(e,e)},b.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},b.prototype.render=function(){var a=this._textCache;for(var b in a)if(e.call(a,b)){var c=this.getTextLayer(b),d=a[b];c.hide();for(var f in d)if(e.call(d,f)){var g=d[f];for(var h in g)if(e.call(g,h)){for(var i,j=g[h].positions,k=0;i=j[k];k++)i.active?i.rendered||(c.append(i.element),i.rendered=!0):(j.splice(k--,1),i.rendered&&i.element.detach());0==j.length&&delete g[h]}}c.show()}},b.prototype.getTextLayer=function(b){var c=this.text[b];return null==c&&(null==this.textContainer&&(this.textContainer=a("
    ").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),c=this.text[b]=a("
    ").addClass(b).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),c},b.prototype.getTextInfo=function(b,c,d,e,f){var g,h,i,j;if(c=""+c,g="object"==typeof d?d.style+" "+d.variant+" "+d.weight+" "+d.size+"px/"+d.lineHeight+"px "+d.family:d,h=this._textCache[b],null==h&&(h=this._textCache[b]={}),i=h[g],null==i&&(i=h[g]={}),j=i[c],null==j){var k=a("
    ").html(c).css({position:"absolute","max-width":f,top:-9999}).appendTo(this.getTextLayer(b));"object"==typeof d?k.css({font:g,color:d.color}):"string"==typeof d&&k.addClass(d),j=i[c]={width:k.outerWidth(!0),height:k.outerHeight(!0),element:k,positions:[]},k.detach()}return j},b.prototype.addText=function(a,b,c,d,e,f,g,h,i){var j=this.getTextInfo(a,d,e,f,g),k=j.positions;"center"==h?b-=j.width/2:"right"==h&&(b-=j.width),"middle"==i?c-=j.height/2:"bottom"==i&&(c-=j.height);for(var l,m=0;l=k[m];m++)if(l.x==b&&l.y==c)return void(l.active=!0);l={active:!0,rendered:!1,element:k.length?j.element.clone():j.element,x:b,y:c},k.push(l),l.element.css({top:Math.round(c),left:Math.round(b),"text-align":h})},b.prototype.removeText=function(a,b,c,d,f,g){if(null==d){var h=this._textCache[a];if(null!=h)for(var i in h)if(e.call(h,i)){var j=h[i];for(var k in j)if(e.call(j,k))for(var l,m=j[k].positions,n=0;l=m[n];n++)l.active=!1}}else for(var l,m=this.getTextInfo(a,d,f,g).positions,n=0;l=m[n];n++)l.x==b&&l.y==c&&(l.active=!1)},a.plot=function(b,d,e){var f=new c(a(b),d,e,a.plot.plugins);return f},a.plot.version="0.8.1",a.plot.plugins=[],a.fn.plot=function(b,c){return this.each(function(){a.plot(this,b,c)})}}(jQuery); \ No newline at end of file +!function(a){a.color={},a.color.make=function(b,c,d,e){var f={};return f.r=b||0,f.g=c||0,f.b=d||0,f.a=null!=e?e:1,f.add=function(a,b){for(var c=0;c=1?"rgb("+[f.r,f.g,f.b].join(",")+")":"rgba("+[f.r,f.g,f.b,f.a].join(",")+")"},f.normalize=function(){function a(a,b,c){return bc?c:b}return f.r=a(0,parseInt(f.r),255),f.g=a(0,parseInt(f.g),255),f.b=a(0,parseInt(f.b),255),f.a=a(0,f.a,1),f},f.clone=function(){return a.color.make(f.r,f.b,f.g,f.a)},f.normalize()},a.color.extract=function(b,c){var d;do{if(d=b.css(c).toLowerCase(),""!=d&&"transparent"!=d)break;b=b.parent()}while(!a.nodeName(b.get(0),"body"));return"rgba(0, 0, 0, 0)"==d&&(d="transparent"),a.color.parse(d)},a.color.parse=function(c){var d,e=a.color.make;if(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return e(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10));if(d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c))return e(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10),parseFloat(d[4]));if(d=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return e(2.55*parseFloat(d[1]),2.55*parseFloat(d[2]),2.55*parseFloat(d[3]));if(d=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(c))return e(2.55*parseFloat(d[1]),2.55*parseFloat(d[2]),2.55*parseFloat(d[3]),parseFloat(d[4]));if(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return e(parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16));if(d=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return e(parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16));var f=a.trim(c).toLowerCase();return"transparent"==f?e(255,255,255,0):(d=b[f]||[0,0,0],e(d[0],d[1],d[2]))};var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(a){function b(b,c){var d=c.children("."+b)[0];if(null==d&&(d=document.createElement("canvas"),d.className=b,a(d).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(c),!d.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");d=window.G_vmlCanvasManager.initElement(d)}this.element=d;var e=this.context=d.getContext("2d"),f=window.devicePixelRatio||1,g=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;this.pixelRatio=f/g,this.resize(c.width(),c.height()),this.textContainer=null,this.text={},this._textCache={}}function c(c,e,f,g){function h(a,b){b=[qa].concat(b);for(var c=0;cd&&(d=e))}c<=d&&(c=d+1);var f,g=[],h=ea.colors,i=h.length,j=0;for(b=0;b=0?j<.5?-j-.2:0:-j),g[b]=f.scale("rgb",1+j);var k,l=0;for(b=0;ba.datamax&&c!=s&&(a.datamax=c)}var c,d,e,f,g,i,j,k,l,m,o,p,q=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,s=Number.MAX_VALUE;for(a.each(n(),function(a,b){b.datamin=q,b.datamax=r,b.used=!1}),c=0;c0&&null!=i[e-j]&&i[e-j]!=i[e]&&i[e-j+1]!=i[e+1]){for(f=0;fy&&(y=k)),l.y&&(kz&&(z=k)));if(g.bars.show){var A;switch(g.bars.align){case"left":A=0;break;case"right":A=-g.bars.barWidth;break;case"center":A=-g.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+g.bars.align)}g.bars.horizontal?(x+=A,z+=A+g.bars.barWidth):(w+=A,y+=A+g.bars.barWidth)}b(g.xaxis,w,y),b(g.yaxis,x,z)}a.each(n(),function(a,b){b.datamin==q&&(b.datamin=null),b.datamax==r&&(b.datamax=null)})}function t(){c.css("padding",0).children(":not(.flot-base,.flot-overlay)").remove(),"static"==c.css("position")&&c.css("position","relative"),fa=new b("flot-base",c),ga=new b("flot-overlay",c),ia=fa.context,ja=ga.context,ha=a(ga.element).unbind();var d=c.data("plot");d&&(d.shutdown(),ga.clear()),c.data("plot",qa)}function u(){ea.grid.hoverable&&(ha.mousemove(T),ha.bind("mouseleave",U)),ea.grid.clickable&&ha.click(V),h(pa.bindEvents,[ha])}function v(){sa&&clearTimeout(sa),ha.unbind("mousemove",T),ha.unbind("mouseleave",U),ha.unbind("click",V),h(pa.shutdown,[ha])}function w(a){function b(a){return a}var c,d,e=a.options.transform||b,f=a.options.inverseTransform;"x"==a.direction?(c=a.scale=na/Math.abs(e(a.max)-e(a.min)),d=Math.min(e(a.max),e(a.min))):(c=a.scale=oa/Math.abs(e(a.max)-e(a.min)),c=-c,d=Math.max(e(a.max),e(a.min))),e==b?a.p2c=function(a){return(a-d)*c}:a.p2c=function(a){return(e(a)-d)*c},f?a.c2p=function(a){return f(d+a/c)}:a.c2p=function(a){return d+a/c}}function x(a){var b=a.options,c=a.ticks||[],d=b.labelWidth||0,e=b.labelHeight||0,f=d||"x"==a.direction?Math.floor(fa.width/(c.length||1)):null;legacyStyles=a.direction+"Axis "+a.direction+a.n+"Axis",layer="flot-"+a.direction+"-axis flot-"+a.direction+a.n+"-axis "+legacyStyles,font=b.font||"flot-tick-label tickLabel";for(var g=0;g=0;--b)y(g[b]);A(),a.each(g,function(a,b){z(b)})}na=fa.width-ma.left-ma.right,oa=fa.height-ma.bottom-ma.top,a.each(c,function(a,b){w(b)}),d&&K(),R()}function C(a){var b=a.options,c=+(null!=b.min?b.min:a.datamin),d=+(null!=b.max?b.max:a.datamax),e=d-c;if(0==e){var f=0==d?1:.01;null==b.min&&(c-=f),null!=b.max&&null==b.min||(d+=f)}else{var g=b.autoscaleMargin;null!=g&&(null==b.min&&(c-=e*g,c<0&&null!=a.datamin&&a.datamin>=0&&(c=0)),null==b.max&&(d+=e*g,d>0&&null!=a.datamax&&a.datamax<=0&&(d=0)))}a.min=c,a.max=d}function D(b){var c,e=b.options;c="number"==typeof e.ticks&&e.ticks>0?e.ticks:.3*Math.sqrt("x"==b.direction?fa.width:fa.height);var f=(b.max-b.min)/c,g=-Math.floor(Math.log(f)/Math.LN10),h=e.tickDecimals;null!=h&&g>h&&(g=h);var i,j=Math.pow(10,-g),k=f/j;if(k<1.5?i=1:k<3?(i=2,k>2.25&&(null==h||g+1<=h)&&(i=2.5,++g)):i=k<7.5?5:10,i*=j,null!=e.minTickSize&&i0&&(null==e.min&&(b.min=Math.min(b.min,m[0])),null==e.max&&m.length>1&&(b.max=Math.max(b.max,m[m.length-1]))),b.tickGenerator=function(a){var b,c,d=[];for(c=0;c1&&/\..*0$/.test((o[1]-o[0]).toFixed(n))||(b.tickDecimals=n)}}}}function E(b){var c=b.options.ticks,d=[];null==c||"number"==typeof c&&c>0?d=b.tickGenerator(b):c&&(d=a.isFunction(c)?c(b):c);var e,f;for(b.ticks=[],e=0;e1&&(g=h[1])):f=+h,null==g&&(g=b.tickFormatter(f,b)),isNaN(f)||b.ticks.push({v:f,label:g})}}function F(a,b){a.options.autoscaleMargin&&b.length>0&&(null==a.options.min&&(a.min=Math.min(a.min,b[0].v)),null==a.options.max&&b.length>1&&(a.max=Math.max(a.max,b[b.length-1].v)))}function G(){fa.clear(),h(pa.drawBackground,[ia]);var a=ea.grid;a.show&&a.backgroundColor&&I(),a.show&&!a.aboveData&&J();for(var b=0;be){var i=d;d=e,e=i}return{from:d,to:e,axis:c}}function I(){ia.save(),ia.translate(ma.left,ma.top),ia.fillStyle=ca(ea.grid.backgroundColor,oa,0,"rgba(255, 255, 255, 0)"),ia.fillRect(0,0,na,oa),ia.restore()}function J(){var b,c,d,e;ia.save(),ia.translate(ma.left,ma.top);var f=ea.grid.markings;if(f)for(a.isFunction(f)&&(c=qa.getAxes(),c.xmin=c.xaxis.min,c.xmax=c.xaxis.max,c.ymin=c.yaxis.min,c.ymax=c.yaxis.max,f=f(c)),b=0;bh.axis.max||i.toi.axis.max||(h.from=Math.max(h.from,h.axis.min),h.to=Math.min(h.to,h.axis.max),i.from=Math.max(i.from,i.axis.min),i.to=Math.min(i.to,i.axis.max),h.from==h.to&&i.from==i.to||(h.from=h.axis.p2c(h.from),h.to=h.axis.p2c(h.to),i.from=i.axis.p2c(i.from),i.to=i.axis.p2c(i.to),h.from==h.to||i.from==i.to?(ia.beginPath(),ia.strokeStyle=g.color||ea.grid.markingsColor,ia.lineWidth=g.lineWidth||ea.grid.markingsLineWidth,ia.moveTo(h.from,i.from),ia.lineTo(h.to,i.to),ia.stroke()):(ia.fillStyle=g.color||ea.grid.markingsColor,ia.fillRect(h.from,i.to,h.to-h.from,i.from-i.to))))}c=n(),d=ea.grid.borderWidth;for(var j=0;jp.max||"full"==r&&("object"==typeof d&&d[p.position]>0||d>0)&&(s==p.min||s==p.max)||("x"==p.direction?(k=p.p2c(s),o="full"==r?-oa:r,"top"==p.position&&(o=-o)):(l=p.p2c(s),m="full"==r?-na:r,"left"==p.position&&(m=-m)),1==ia.lineWidth&&("x"==p.direction?k=Math.floor(k)+.5:l=Math.floor(l)+.5),ia.moveTo(k,l),ia.lineTo(k+m,l+o))}ia.stroke()}}d&&(e=ea.grid.borderColor,"object"==typeof d||"object"==typeof e?("object"!=typeof d&&(d={top:d,right:d,bottom:d,left:d}),"object"!=typeof e&&(e={top:e,right:e,bottom:e,left:e}),d.top>0&&(ia.strokeStyle=e.top,ia.lineWidth=d.top,ia.beginPath(),ia.moveTo(0-d.left,0-d.top/2),ia.lineTo(na,0-d.top/2),ia.stroke()),d.right>0&&(ia.strokeStyle=e.right,ia.lineWidth=d.right,ia.beginPath(),ia.moveTo(na+d.right/2,0-d.top),ia.lineTo(na+d.right/2,oa),ia.stroke()),d.bottom>0&&(ia.strokeStyle=e.bottom,ia.lineWidth=d.bottom,ia.beginPath(),ia.moveTo(na+d.right,oa+d.bottom/2),ia.lineTo(0,oa+d.bottom/2),ia.stroke()),d.left>0&&(ia.strokeStyle=e.left,ia.lineWidth=d.left,ia.beginPath(),ia.moveTo(0-d.left/2,oa+d.bottom),ia.lineTo(0-d.left/2,0),ia.stroke())):(ia.lineWidth=d,ia.strokeStyle=ea.grid.borderColor,ia.strokeRect(-d/2,-d/2,na+d,oa+d))),ia.restore()}function K(){a.each(n(),function(a,b){if(b.show&&0!=b.ticks.length){var c,d,e,f,g,h=b.box,i=b.direction+"Axis "+b.direction+b.n+"Axis",j="flot-"+b.direction+"-axis flot-"+b.direction+b.n+"-axis "+i,k=b.options.font||"flot-tick-label tickLabel";fa.removeText(j);for(var l=0;lb.max||("x"==b.direction?(f="center",d=ma.left+b.p2c(c.v),"bottom"==b.position?e=h.top+h.padding:(e=h.top+h.height-h.padding,g="bottom")):(g="middle",e=ma.top+b.p2c(c.v),"left"==b.position?(d=h.left+h.width-h.padding,f="right"):d=h.left+h.padding),fa.addText(j,d,e,c.label,k,null,null,f,g))}})}function L(a){a.lines.show&&M(a),a.bars.show&&P(a),a.points.show&&N(a)}function M(a){function b(a,b,c,d,e){var f=a.points,g=a.pointsize,h=null,i=null;ia.beginPath();for(var j=g;j=n&&l>e.max){if(n>e.max)continue;k=(e.max-l)/(n-l)*(m-k)+k,l=e.max}else if(n>=l&&n>e.max){if(l>e.max)continue;m=(e.max-l)/(n-l)*(m-k)+k,n=e.max}if(k<=m&&k=m&&k>d.max){if(m>d.max)continue;l=(d.max-k)/(m-k)*(n-l)+l,k=d.max}else if(m>=k&&m>d.max){if(k>d.max)continue;n=(d.max-k)/(m-k)*(n-l)+l,m=d.max}k==h&&l==i||ia.moveTo(d.p2c(k)+b,e.p2c(l)+c),h=m,i=n,ia.lineTo(d.p2c(m)+b,e.p2c(n)+c)}}ia.stroke()}function c(a,b,c){for(var d=a.points,e=a.pointsize,f=Math.min(Math.max(0,c.min),c.max),g=0,h=!1,i=1,j=0,k=0;;){if(e>0&&g>d.length+e)break;g+=e;var l=d[g-e],m=d[g-e+i],n=d[g],o=d[g+i];if(h){if(e>0&&null!=l&&null==n){k=g,e=-e,i=2;continue}if(e<0&&g==j+e){ia.fill(),h=!1,e=-e,i=1,g=j=k+e;continue}}if(null!=l&&null!=n){if(l<=n&&l=n&&l>b.max){if(n>b.max)continue;m=(b.max-l)/(n-l)*(o-m)+m,l=b.max}else if(n>=l&&n>b.max){if(l>b.max)continue;o=(b.max-l)/(n-l)*(o-m)+m,n=b.max}if(h||(ia.beginPath(),ia.moveTo(b.p2c(l),c.p2c(f)),h=!0),m>=c.max&&o>=c.max)ia.lineTo(b.p2c(l),c.p2c(c.max)),ia.lineTo(b.p2c(n),c.p2c(c.max));else if(m<=c.min&&o<=c.min)ia.lineTo(b.p2c(l),c.p2c(c.min)),ia.lineTo(b.p2c(n),c.p2c(c.min));else{var p=l,q=n;m<=o&&m=c.min?(l=(c.min-m)/(o-m)*(n-l)+l,m=c.min):o<=m&&o=c.min&&(n=(c.min-m)/(o-m)*(n-l)+l,o=c.min),m>=o&&m>c.max&&o<=c.max?(l=(c.max-m)/(o-m)*(n-l)+l,m=c.max):o>=m&&o>c.max&&m<=c.max&&(n=(c.max-m)/(o-m)*(n-l)+l,o=c.max),l!=p&&ia.lineTo(b.p2c(p),c.p2c(m)),ia.lineTo(b.p2c(l),c.p2c(m)),ia.lineTo(b.p2c(n),c.p2c(o)),n!=q&&(ia.lineTo(b.p2c(n),c.p2c(o)),ia.lineTo(b.p2c(q),c.p2c(o)))}}}}ia.save(),ia.translate(ma.left,ma.top),ia.lineJoin="round";var d=a.lines.lineWidth,e=a.shadowSize;if(d>0&&e>0){ia.lineWidth=e,ia.strokeStyle="rgba(0,0,0,0.1)";var f=Math.PI/18;b(a.datapoints,Math.sin(f)*(d/2+e/2),Math.cos(f)*(d/2+e/2),a.xaxis,a.yaxis),ia.lineWidth=e/2,b(a.datapoints,Math.sin(f)*(d/2+e/4),Math.cos(f)*(d/2+e/4),a.xaxis,a.yaxis)}ia.lineWidth=d,ia.strokeStyle=a.color;var g=Q(a.lines,a.color,0,oa);g&&(ia.fillStyle=g,c(a.datapoints,a.xaxis,a.yaxis)),d>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis),ia.restore()}function N(a){function b(a,b,c,d,e,f,g,h){for(var i=a.points,j=a.pointsize,k=0;kf.max||mg.max||(ia.beginPath(),l=f.p2c(l),m=g.p2c(m)+d,"circle"==h?ia.arc(l,m,b,0,e?Math.PI:2*Math.PI,!1):h(ia,l,m,b,e),ia.closePath(),c&&(ia.fillStyle=c,ia.fill()),ia.stroke())}}ia.save(),ia.translate(ma.left,ma.top);var c=a.points.lineWidth,d=a.shadowSize,e=a.points.radius,f=a.points.symbol;if(0==c&&(c=1e-4),c>0&&d>0){var g=d/2;ia.lineWidth=g,ia.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,e,null,g+g/2,!0,a.xaxis,a.yaxis,f),ia.strokeStyle="rgba(0,0,0,0.2)",b(a.datapoints,e,null,g/2,!0,a.xaxis,a.yaxis,f)}ia.lineWidth=c,ia.strokeStyle=a.color,b(a.datapoints,e,Q(a.points,a.color),0,!1,a.xaxis,a.yaxis,f),ia.restore()}function O(a,b,c,d,e,f,g,h,i,j,k,l){var m,n,o,p,q,r,s,t,u;k?(t=r=s=!0,q=!1,m=c,n=a,p=b+d,o=b+e,nh.max||pi.max||(mh.max&&(n=h.max,r=!1),oi.max&&(p=i.max,s=!1),m=h.p2c(m),o=i.p2c(o),n=h.p2c(n),p=i.p2c(p),g&&(j.beginPath(),j.moveTo(m,o),j.lineTo(m,p),j.lineTo(n,p),j.lineTo(n,o),j.fillStyle=g(o,p),j.fill()),l>0&&(q||r||s||t)&&(j.beginPath(),j.moveTo(m,o+f),q?j.lineTo(m,p+f):j.moveTo(m,p+f),s?j.lineTo(n,p+f):j.moveTo(n,p+f),r?j.lineTo(n,o+f):j.moveTo(n,o+f),t?j.lineTo(m,o+f):j.moveTo(m,o+f),j.stroke()))}function P(a){function b(b,c,d,e,f,g,h){for(var i=b.points,j=b.pointsize,k=0;k"),e.push(""),g=!0),e.push('
    '+k.label+"")}if(g&&e.push(""),0!=e.length){var l=''+e.join("")+"
    ";if(null!=ea.legend.container)a(ea.legend.container).html(l);else{var m="",n=ea.legend.position,o=ea.legend.margin;null==o[0]&&(o=[o,o]),"n"==n.charAt(0)?m+="top:"+(o[1]+ma.top)+"px;":"s"==n.charAt(0)&&(m+="bottom:"+(o[1]+ma.bottom)+"px;"),"e"==n.charAt(1)?m+="right:"+(o[0]+ma.right)+"px;":"w"==n.charAt(1)&&(m+="left:"+(o[0]+ma.left)+"px;");var p=a('
    '+l.replace('style="','style="position:absolute;'+m+";")+"
    ").appendTo(c);if(0!=ea.legend.backgroundOpacity){var q=ea.legend.backgroundColor;null==q&&(q=ea.grid.backgroundColor,q=q&&"string"==typeof q?a.color.parse(q):a.color.extract(p,"background-color"),q.a=1,q=q.toString());var r=p.children();a('
    ').prependTo(p).css("opacity",ea.legend.backgroundOpacity)}}}}}function S(a,b,c){var d,e,f,g=ea.grid.mouseActiveRadius,h=g*g+1,i=null;for(d=da.length-1;d>=0;--d)if(c(da[d])){var j=da[d],k=j.xaxis,l=j.yaxis,m=j.datapoints.points,n=k.c2p(a),o=l.c2p(b),p=g/k.scale,q=g/l.scale;if(f=j.datapoints.pointsize,k.options.inverseTransform&&(p=Number.MAX_VALUE),l.options.inverseTransform&&(q=Number.MAX_VALUE),j.lines.show||j.points.show)for(e=0;ep||r-n<-p||s-o>q||s-o<-q)){var t=Math.abs(k.p2c(r)-a),u=Math.abs(l.p2c(s)-b),v=t*t+u*u;v=Math.min(y,r)&&o>=s+w&&o<=s+x:n>=r+w&&n<=r+x&&o>=Math.min(y,s)&&o<=Math.max(y,s))&&(i=[d,e/f])}}}return i?(d=i[0],e=i[1],f=da[d].datapoints.pointsize,{datapoint:da[d].datapoints.points.slice(e*f,(e+1)*f),dataIndex:e,series:da[d],seriesIndex:d}):null}function T(a){ea.grid.hoverable&&W("plothover",a,function(a){return 0!=a.hoverable})}function U(a){ea.grid.hoverable&&W("plothover",a,function(a){return!1})}function V(a){W("plotclick",a,function(a){return 0!=a.clickable})}function W(a,b,d){var e=ha.offset(),f=b.pageX-e.left-ma.left,g=b.pageY-e.top-ma.top,h=o({left:f,top:g});h.pageX=b.pageX,h.pageY=b.pageY;var i=S(f,g,d);if(i&&(i.pageX=parseInt(i.series.xaxis.p2c(i.datapoint[0])+e.left+ma.left,10),i.pageY=parseInt(i.series.yaxis.p2c(i.datapoint[1])+e.top+ma.top,10)),ea.grid.autoHighlight){for(var j=0;jf.max||eg.max)){var i=b.points.radius+b.points.lineWidth/2;ja.lineWidth=i,ja.strokeStyle=h;var j=1.5*i;d=f.p2c(d),e=g.p2c(e),ja.beginPath(),"circle"==b.points.symbol?ja.arc(d,e,j,0,2*Math.PI,!1):b.points.symbol(ja,d,e,j,!1),ja.closePath(),ja.stroke()}}function ba(b,c){var d="string"==typeof b.highlightColor?b.highlightColor:a.color.parse(b.color).scale("a",.5).toString(),e=d,f="left"==b.bars.align?0:-b.bars.barWidth/2;ja.lineWidth=b.bars.lineWidth,ja.strokeStyle=d,O(c[0],c[1],c[2]||0,f,f+b.bars.barWidth,0,function(){return e},b.xaxis,b.yaxis,ja,b.bars.horizontal,b.bars.lineWidth)}function ca(b,c,d,e){if("string"==typeof b)return b;for(var f=ia.createLinearGradient(0,d,0,c),g=0,h=b.colors.length;g").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),c=this.text[b]=a("
    ").addClass(b).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),c},b.prototype.getTextInfo=function(b,c,d,e,f){var g,h,i,j;if(c=""+c,g="object"==typeof d?d.style+" "+d.variant+" "+d.weight+" "+d.size+"px/"+d.lineHeight+"px "+d.family:d,h=this._textCache[b],null==h&&(h=this._textCache[b]={}),i=h[g],null==i&&(i=h[g]={}),j=i[c],null==j){var k=a("
    ").html(c).css({position:"absolute","max-width":f,top:-9999}).appendTo(this.getTextLayer(b));"object"==typeof d?k.css({font:g,color:d.color}):"string"==typeof d&&k.addClass(d),j=i[c]={width:k.outerWidth(!0),height:k.outerHeight(!0),element:k,positions:[]},k.detach()}return j},b.prototype.addText=function(a,b,c,d,e,f,g,h,i){var j=this.getTextInfo(a,d,e,f,g),k=j.positions;"center"==h?b-=j.width/2:"right"==h&&(b-=j.width),"middle"==i?c-=j.height/2:"bottom"==i&&(c-=j.height);for(var l,m=0;l=k[m];m++)if(l.x==b&&l.y==c)return void(l.active=!0);l={active:!0,rendered:!1,element:k.length?j.element.clone():j.element,x:b,y:c},k.push(l),l.element.css({top:Math.round(c),left:Math.round(b),"text-align":h})},b.prototype.removeText=function(a,b,c,d,f,g){if(null==d){var h=this._textCache[a];if(null!=h)for(var i in h)if(e.call(h,i)){var j=h[i];for(var k in j)if(e.call(j,k))for(var l,m=j[k].positions,n=0;l=m[n];n++)l.active=!1}}else for(var l,m=this.getTextInfo(a,d,f,g).positions,n=0;l=m[n];n++)l.x==b&&l.y==c&&(l.active=!1)},a.plot=function(b,d,e){var f=new c(a(b),d,e,a.plot.plugins);return f},a.plot.version="0.8.1",a.plot.plugins=[],a.fn.plot=function(b,c){return this.each(function(){a.plot(this,b,c)})}}(jQuery); \ No newline at end of file diff --git a/assets/js/jquery-flot/jquery.flot.pie.min.js b/assets/js/jquery-flot/jquery.flot.pie.min.js index 2bacbcf63b8..0f661ee9d6d 100644 --- a/assets/js/jquery-flot/jquery.flot.pie.min.js +++ b/assets/js/jquery-flot/jquery.flot.pie.min.js @@ -1 +1 @@ -!function(a){function b(b){function f(b,c,d){x||(x=!0,s=b.getCanvas(),t=a(s).parent(),e=b.getOptions(),b.setData(g(b.getData())))}function g(b){for(var c=0,d=0,f=0,g=e.series.pie.combine.color,h=[],i=0;if||j/c>e.series.pie.combine.threshold)&&h.push({data:[[1,j]],color:b[i].color,label:b[i].label,angle:j*Math.PI*2/c,percent:j/(c/100)})}return f>1&&h.push({data:[[1,d]],color:g,label:e.series.pie.combine.label,angle:d*Math.PI*2/c,percent:d/(c/100)}),h}function h(b,f){function g(){y.clearRect(0,0,k,l),t.children().filter(".pieLabel, .pieLabelBackground").remove()}function h(){var a=e.series.pie.shadow.left,b=e.series.pie.shadow.top,c=10,d=e.series.pie.shadow.alpha,f=e.series.pie.radius>1?e.series.pie.radius:u*e.series.pie.radius;if(!(f>=k/2-a||f*e.series.pie.tilt>=l/2-b||c>=f)){y.save(),y.translate(a,b),y.globalAlpha=d,y.fillStyle="#000",y.translate(v,w),y.scale(1,e.series.pie.tilt);for(var g=1;c>=g;g++)y.beginPath(),y.arc(0,0,f,0,2*Math.PI,!1),y.fill(),f-=g;y.restore()}}function j(){function b(a,b,c){0>=a||isNaN(a)||(c?y.fillStyle=b:(y.strokeStyle=b,y.lineJoin="round"),y.beginPath(),Math.abs(a-2*Math.PI)>1e-9&&y.moveTo(0,0),y.arc(0,0,f,g,g+a/2,!1),y.arc(0,0,f,g+a/2,g+a,!1),y.closePath(),g+=a,c?y.fill():y.stroke())}function c(){function b(b,c,d){if(0==b.data[0][1])return!0;var g,h=e.legend.labelFormatter,i=e.series.pie.label.formatter;g=h?h(b.label,b):b.label,i&&(g=i(g,b));var j=(c+b.angle+c)/2,m=v+Math.round(Math.cos(j)*f),n=w+Math.round(Math.sin(j)*f)*e.series.pie.tilt,o=""+g+"";t.append(o);var p=t.children("#pieLabel"+d),q=n-p.height()/2,r=m-p.width()/2;if(p.css("top",q),p.css("left",r),0-q>0||0-r>0||l-(q+p.height())<0||k-(r+p.width())<0)return!1;if(0!=e.series.pie.label.background.opacity){var s=e.series.pie.label.background.color;null==s&&(s=b.color);var u="top:"+q+"px;left:"+r+"px;";a("
    ").css("opacity",e.series.pie.label.background.opacity).insertBefore(p)}return!0}for(var c=d,f=e.series.pie.label.radius>1?e.series.pie.label.radius:u*e.series.pie.label.radius,g=0;g=100*e.series.pie.label.threshold&&!b(n[g],c,g))return!1;c+=n[g].angle}return!0}var d=Math.PI*e.series.pie.startAngle,f=e.series.pie.radius>1?e.series.pie.radius:u*e.series.pie.radius;y.save(),y.translate(v,w),y.scale(1,e.series.pie.tilt),y.save();for(var g=d,h=0;h0){y.save(),y.lineWidth=e.series.pie.stroke.width,g=d;for(var h=0;hv?v=u:v>k-u&&(v=k-u);var n=b.getData(),o=0;do o>0&&(u*=d),o+=1,g(),e.series.pie.tilt<=.8&&h();while(!j()&&c>o);o>=c&&(g(),t.prepend("
    Could not draw pie with labels contained inside canvas
    ")),b.setSeries&&b.insertLegend&&(b.setSeries(n),b.insertLegend())}}function i(a){if(e.series.pie.innerRadius>0){a.save();var b=e.series.pie.innerRadius>1?e.series.pie.innerRadius:u*e.series.pie.innerRadius;a.globalCompositeOperation="destination-out",a.beginPath(),a.fillStyle=e.series.pie.stroke.color,a.arc(0,0,b,0,2*Math.PI,!1),a.fill(),a.closePath(),a.restore(),a.save(),a.beginPath(),a.strokeStyle=e.series.pie.stroke.color,a.arc(0,0,b,0,2*Math.PI,!1),a.stroke(),a.closePath(),a.restore()}}function j(a,b){for(var c=!1,d=-1,e=a.length,f=e-1;++d1?g.series.pie.radius:u*g.series.pie.radius,i=0;i1e-9&&b.moveTo(0,0),b.arc(0,0,e,a.startAngle,a.startAngle+a.angle/2,!1),b.arc(0,0,e,a.startAngle+a.angle/2,a.startAngle+a.angle,!1),b.closePath(),b.fill())}var d=a.getOptions(),e=d.series.pie.radius>1?d.series.pie.radius:u*d.series.pie.radius;b.save(),b.translate(v,w),b.scale(1,d.series.pie.tilt);for(var f=0;f1?b.series.pie.tilt=1:b.series.pie.tilt<0&&(b.series.pie.tilt=0))}),b.hooks.bindEvents.push(function(a,b){var c=a.getOptions();c.series.pie.show&&(c.grid.hoverable&&b.unbind("mousemove").mousemove(l),c.grid.clickable&&b.unbind("click").click(m))}),b.hooks.processDatapoints.push(function(a,b,c,d){var e=a.getOptions();e.series.pie.show&&f(a,b,c,d)}),b.hooks.drawOverlay.push(function(a,b){var c=a.getOptions();c.series.pie.show&&r(a,b)}),b.hooks.draw.push(function(a,b){var c=a.getOptions();c.series.pie.show&&h(a,b)})}var c=10,d=.95,e={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(a,b){return"
    "+a+"
    "+Math.round(b.percent)+"%
    "},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};a.plot.plugins.push({init:b,options:e,name:"pie",version:"1.1"})}(jQuery); \ No newline at end of file +!function(a){function b(b){function f(b,c,d){x||(x=!0,s=b.getCanvas(),t=a(s).parent(),e=b.getOptions(),b.setData(g(b.getData())))}function g(b){for(var c=0,d=0,f=0,g=e.series.pie.combine.color,h=[],i=0;ie.series.pie.combine.threshold)&&h.push({data:[[1,j]],color:b[i].color,label:b[i].label,angle:j*Math.PI*2/c,percent:j/(c/100)})}return f>1&&h.push({data:[[1,d]],color:g,label:e.series.pie.combine.label,angle:d*Math.PI*2/c,percent:d/(c/100)}),h}function h(b,f){function g(){y.clearRect(0,0,k,l),t.children().filter(".pieLabel, .pieLabelBackground").remove()}function h(){var a=e.series.pie.shadow.left,b=e.series.pie.shadow.top,c=10,d=e.series.pie.shadow.alpha,f=e.series.pie.radius>1?e.series.pie.radius:u*e.series.pie.radius;if(!(f>=k/2-a||f*e.series.pie.tilt>=l/2-b||f<=c)){y.save(),y.translate(a,b),y.globalAlpha=d,y.fillStyle="#000",y.translate(v,w),y.scale(1,e.series.pie.tilt);for(var g=1;g<=c;g++)y.beginPath(),y.arc(0,0,f,0,2*Math.PI,!1),y.fill(),f-=g;y.restore()}}function j(){function b(a,b,c){a<=0||isNaN(a)||(c?y.fillStyle=b:(y.strokeStyle=b,y.lineJoin="round"),y.beginPath(),Math.abs(a-2*Math.PI)>1e-9&&y.moveTo(0,0),y.arc(0,0,f,g,g+a/2,!1),y.arc(0,0,f,g+a/2,g+a,!1),y.closePath(),g+=a,c?y.fill():y.stroke())}function c(){function b(b,c,d){if(0==b.data[0][1])return!0;var g,h=e.legend.labelFormatter,i=e.series.pie.label.formatter;g=h?h(b.label,b):b.label,i&&(g=i(g,b));var j=(c+b.angle+c)/2,m=v+Math.round(Math.cos(j)*f),n=w+Math.round(Math.sin(j)*f)*e.series.pie.tilt,o=""+g+"";t.append(o);var p=t.children("#pieLabel"+d),q=n-p.height()/2,r=m-p.width()/2;if(p.css("top",q),p.css("left",r),0-q>0||0-r>0||l-(q+p.height())<0||k-(r+p.width())<0)return!1;if(0!=e.series.pie.label.background.opacity){var s=e.series.pie.label.background.color;null==s&&(s=b.color);var u="top:"+q+"px;left:"+r+"px;";a("
    ").css("opacity",e.series.pie.label.background.opacity).insertBefore(p)}return!0}for(var c=d,f=e.series.pie.label.radius>1?e.series.pie.label.radius:u*e.series.pie.label.radius,g=0;g=100*e.series.pie.label.threshold&&!b(n[g],c,g))return!1;c+=n[g].angle}return!0}var d=Math.PI*e.series.pie.startAngle,f=e.series.pie.radius>1?e.series.pie.radius:u*e.series.pie.radius;y.save(),y.translate(v,w),y.scale(1,e.series.pie.tilt),y.save();for(var g=d,h=0;h0){y.save(),y.lineWidth=e.series.pie.stroke.width,g=d;for(var h=0;hk-u&&(v=k-u);var n=b.getData(),o=0;do o>0&&(u*=d),o+=1,g(),e.series.pie.tilt<=.8&&h();while(!j()&&o=c&&(g(),t.prepend("
    Could not draw pie with labels contained inside canvas
    ")),b.setSeries&&b.insertLegend&&(b.setSeries(n),b.insertLegend())}}function i(a){if(e.series.pie.innerRadius>0){a.save();var b=e.series.pie.innerRadius>1?e.series.pie.innerRadius:u*e.series.pie.innerRadius;a.globalCompositeOperation="destination-out",a.beginPath(),a.fillStyle=e.series.pie.stroke.color,a.arc(0,0,b,0,2*Math.PI,!1),a.fill(),a.closePath(),a.restore(),a.save(),a.beginPath(),a.strokeStyle=e.series.pie.stroke.color,a.arc(0,0,b,0,2*Math.PI,!1),a.stroke(),a.closePath(),a.restore()}}function j(a,b){for(var c=!1,d=-1,e=a.length,f=e-1;++d1?g.series.pie.radius:u*g.series.pie.radius,i=0;i1e-9&&b.moveTo(0,0),b.arc(0,0,e,a.startAngle,a.startAngle+a.angle/2,!1),b.arc(0,0,e,a.startAngle+a.angle/2,a.startAngle+a.angle,!1),b.closePath(),b.fill())}var d=a.getOptions(),e=d.series.pie.radius>1?d.series.pie.radius:u*d.series.pie.radius;b.save(),b.translate(v,w),b.scale(1,d.series.pie.tilt);for(var f=0;f1?b.series.pie.tilt=1:b.series.pie.tilt<0&&(b.series.pie.tilt=0))}),b.hooks.bindEvents.push(function(a,b){var c=a.getOptions();c.series.pie.show&&(c.grid.hoverable&&b.unbind("mousemove").mousemove(l),c.grid.clickable&&b.unbind("click").click(m))}),b.hooks.processDatapoints.push(function(a,b,c,d){var e=a.getOptions();e.series.pie.show&&f(a,b,c,d)}),b.hooks.drawOverlay.push(function(a,b){var c=a.getOptions();c.series.pie.show&&r(a,b)}),b.hooks.draw.push(function(a,b){var c=a.getOptions();c.series.pie.show&&h(a,b)})}var c=10,d=.95,e={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(a,b){return"
    "+a+"
    "+Math.round(b.percent)+"%
    "},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};a.plot.plugins.push({init:b,options:e,name:"pie",version:"1.1"})}(jQuery); \ No newline at end of file diff --git a/assets/js/jquery-flot/jquery.flot.stack.min.js b/assets/js/jquery-flot/jquery.flot.stack.min.js index e8be501186d..2d8da5be1ae 100644 --- a/assets/js/jquery-flot/jquery.flot.stack.min.js +++ b/assets/js/jquery-flot/jquery.flot.stack.min.js @@ -1 +1 @@ -!function(a){function b(a){function b(a,b){for(var c=null,d=0;d2&&(t?d.format[2].x:d.format[2].y),v=s&&c.lines.steps,w=!0,x=t?1:0,y=t?0:1,z=0,A=0;;){if(z>=o.length)break;if(l=r.length,null==o[z]){for(m=0;n>m;++m)r.push(o[z+m]);z+=n}else if(A>=q.length){if(!s)for(m=0;n>m;++m)r.push(o[z+m]);z+=n}else if(null==q[A]){for(m=0;n>m;++m)r.push(null);w=!0,A+=p}else{if(f=o[z+x],g=o[z+y],i=q[A+x],j=q[A+y],k=0,f==i){for(m=0;n>m;++m)r.push(o[z+m]);r[l+y]+=j,k=j,z+=n,A+=p}else if(f>i){if(s&&z>0&&null!=o[z-n]){for(h=g+(o[z-n+y]-g)*(i-f)/(o[z-n+x]-f),r.push(i),r.push(h+j),m=2;n>m;++m)r.push(o[z+m]);k=j}A+=p}else{if(w&&s){z+=n;continue}for(m=0;n>m;++m)r.push(o[z+m]);s&&A>0&&null!=q[A-p]&&(k=j+(q[A-p+y]-j)*(f-i)/(q[A-p+x]-i)),r[l+y]+=k,z+=n}w=!1,l!=r.length&&u&&(r[l+2]+=k)}if(v&&l!=r.length&&l>0&&null!=r[l]&&r[l]!=r[l-n]&&r[l+1]!=r[l-n+1]){for(m=0;n>m;++m)r[l+n+m]=r[l+m];r[l+1]=r[l-n+1]}}d.points=r}}}a.hooks.processDatapoints.push(c)}var c={series:{stack:null}};a.plot.plugins.push({init:b,options:c,name:"stack",version:"1.2"})}(jQuery); \ No newline at end of file +!function(a){function b(a){function b(a,b){for(var c=null,d=0;d2&&(t?d.format[2].x:d.format[2].y),v=s&&c.lines.steps,w=!0,x=t?1:0,y=t?0:1,z=0,A=0;;){if(z>=o.length)break;if(l=r.length,null==o[z]){for(m=0;m=q.length){if(!s)for(m=0;mi){if(s&&z>0&&null!=o[z-n]){for(h=g+(o[z-n+y]-g)*(i-f)/(o[z-n+x]-f),r.push(i),r.push(h+j),m=2;m0&&null!=q[A-p]&&(k=j+(q[A-p+y]-j)*(f-i)/(q[A-p+x]-i)),r[l+y]+=k,z+=n}w=!1,l!=r.length&&u&&(r[l+2]+=k)}if(v&&l!=r.length&&l>0&&null!=r[l]&&r[l]!=r[l-n]&&r[l+1]!=r[l-n+1]){for(m=0;mh;null==c&&(c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==d&&(d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var j;j=h>12?h-12:0==h?12:h;for(var k=0;k=g);++l);var m=i[l][0],n=i[l][1];if("year"==n){if(null!=f.minTickSize&&"year"==f.minTickSize[1])m=Math.floor(f.minTickSize[0]);else{var o=Math.pow(10,Math.floor(Math.log(a.delta/h.year)/Math.LN10)),p=a.delta/h.year/o;m=1.5>p?1:3>p?2:7.5>p?5:10,m*=o}1>m&&(m=1)}a.tickSize=f.tickSize||[m,n];var q=a.tickSize[0];n=a.tickSize[1];var r=q*h[n];"second"==n?d.setSeconds(b(d.getSeconds(),q)):"minute"==n?d.setMinutes(b(d.getMinutes(),q)):"hour"==n?d.setHours(b(d.getHours(),q)):"month"==n?d.setMonth(b(d.getMonth(),q)):"quarter"==n?d.setMonth(3*b(d.getMonth()/3,q)):"year"==n&&d.setFullYear(b(d.getFullYear(),q)),d.setMilliseconds(0),r>=h.minute&&d.setSeconds(0),r>=h.hour&&d.setMinutes(0),r>=h.day&&d.setHours(0),r>=4*h.day&&d.setDate(1),r>=2*h.month&&d.setMonth(b(d.getMonth(),3)),r>=2*h.quarter&&d.setMonth(b(d.getMonth(),6)),r>=h.year&&d.setMonth(0);var s,t=0,u=Number.NaN;do if(s=u,u=d.getTime(),c.push(u),"month"==n||"quarter"==n)if(1>q){d.setDate(1);var v=d.getTime();d.setMonth(d.getMonth()+("quarter"==n?3:1));var w=d.getTime();d.setTime(u+t*h.hour+(w-v)*q),t=d.getHours(),d.setHours(0)}else d.setMonth(d.getMonth()+q*("quarter"==n?3:1));else"year"==n?d.setFullYear(d.getFullYear()+q):d.setTime(u+r);while(u12?h-12:0==h?12:h;for(var k=0;k=g);++l);var m=i[l][0],n=i[l][1];if("year"==n){if(null!=f.minTickSize&&"year"==f.minTickSize[1])m=Math.floor(f.minTickSize[0]);else{var o=Math.pow(10,Math.floor(Math.log(a.delta/h.year)/Math.LN10)),p=a.delta/h.year/o;m=p<1.5?1:p<3?2:p<7.5?5:10,m*=o}m<1&&(m=1)}a.tickSize=f.tickSize||[m,n];var q=a.tickSize[0];n=a.tickSize[1];var r=q*h[n];"second"==n?d.setSeconds(b(d.getSeconds(),q)):"minute"==n?d.setMinutes(b(d.getMinutes(),q)):"hour"==n?d.setHours(b(d.getHours(),q)):"month"==n?d.setMonth(b(d.getMonth(),q)):"quarter"==n?d.setMonth(3*b(d.getMonth()/3,q)):"year"==n&&d.setFullYear(b(d.getFullYear(),q)),d.setMilliseconds(0),r>=h.minute&&d.setSeconds(0),r>=h.hour&&d.setMinutes(0),r>=h.day&&d.setHours(0),r>=4*h.day&&d.setDate(1),r>=2*h.month&&d.setMonth(b(d.getMonth(),3)),r>=2*h.quarter&&d.setMonth(b(d.getMonth(),6)),r>=h.year&&d.setMonth(0);var s,t=0,u=Number.NaN;do if(s=u,u=d.getTime(),c.push(u),"month"==n||"quarter"==n)if(q<1){d.setDate(1);var v=d.getTime();d.setMonth(d.getMonth()+("quarter"==n?3:1));var w=d.getTime();d.setTime(u+t*h.hour+(w-v)*q),t=d.getHours(),d.setHours(0)}else d.setMonth(d.getMonth()+q*("quarter"==n?3:1));else"year"==n?d.setFullYear(d.getFullYear()+q):d.setTime(u+r);while(ub;b++)if(b in this&&this[b]===a)return b;return-1};a=window.jQuery||window.Zepto||window.$,a.payment={},a.payment.fn={},a.fn.payment=function(){var b,c;return c=arguments[0],b=2<=arguments.length?y.call(arguments,1):[],a.payment.fn[c].apply(this,b)},e=/(\d{1,4})/g,a.payment.cards=d=[{type:"visaelectron",patterns:[4026,417500,4405,4508,4844,4913,4917],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:e,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"elo",patterns:[4011,4312,4389,4514,4573,4576,5041,5066,5067,509,6277,6362,6363,650,6516,6550],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:e,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:e,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:e,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:e,length:[16],cvcLength:[3],luhn:!0}],b=function(a){var b,c,e,f,g,h,i,j;for(a=(a+"").replace(/\D/g,""),f=0,h=d.length;h>f;f++)for(b=d[f],j=b.patterns,g=0,i=j.length;i>g;g++)if(e=j[g],c=e+"",a.substr(0,c.length)===c)return b},c=function(a){var b,c,e;for(c=0,e=d.length;e>c;c++)if(b=d[c],b.type===a)return b},m=function(a){var b,c,d,e,f,g;for(d=!0,e=0,c=(a+"").split("").reverse(),f=0,g=c.length;g>f;f++)b=c[f],b=parseInt(b,10),(d=!d)&&(b*=2),b>9&&(b-=9),e+=b;return e%10===0},l=function(a){var b;return null!=a.prop("selectionStart")&&a.prop("selectionStart")!==a.prop("selectionEnd")?!0:!(null==("undefined"!=typeof document&&null!==document&&null!=(b=document.selection)?b.createRange:void 0)||!document.selection.createRange().text)},w=function(a,b){var c,d,e,f,g,h;try{d=b.prop("selectionStart")}catch(i){f=i,d=null}return g=b.val(),b.val(a),null!==d&&b.is(":focus")?(d===g.length&&(d=a.length),g!==a&&(h=g.slice(d-1,+d+1||9e9),c=a.slice(d-1,+d+1||9e9),e=a[d],/\d/.test(e)&&h===""+e+" "&&c===" "+e&&(d+=1)),b.prop("selectionStart",d),b.prop("selectionEnd",d)):void 0},r=function(a){var b,c,d,e,f,g,h,i;for(null==a&&(a=""),d="0123456789",e="0123456789",g="",b=a.split(""),h=0,i=b.length;i>h;h++)c=b[h],f=d.indexOf(c),f>-1&&(c=e[f]),g+=c;return g},q=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var a;return a=c.val(),a=r(a),a=a.replace(/\D/g,""),w(a,c)})},o=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var b;return b=c.val(),b=r(b),b=a.payment.formatCardNumber(b),w(b,c)})},h=function(c){var d,e,f,g,h,i,j;return f=String.fromCharCode(c.which),!/^\d+$/.test(f)||(d=a(c.currentTarget),j=d.val(),e=b(j+f),g=(j.replace(/\D/g,"")+f).length,i=16,e&&(i=e.length[e.length.length-1]),g>=i||null!=d.prop("selectionStart")&&d.prop("selectionStart")!==j.length)?void 0:(h=e&&"amex"===e.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,h.test(j)?(c.preventDefault(),setTimeout(function(){return d.val(j+" "+f)})):h.test(j+f)?(c.preventDefault(),setTimeout(function(){return d.val(j+f+" ")})):void 0)},f=function(b){var c,d;return c=a(b.currentTarget),d=c.val(),8!==b.which||null!=c.prop("selectionStart")&&c.prop("selectionStart")!==d.length?void 0:/\d\s$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d\s$/,""))})):/\s\d?$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d$/,""))})):void 0},p=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var b;return b=c.val(),b=r(b),b=a.payment.formatExpiry(b),w(b,c)})},i=function(b){var c,d,e;return d=String.fromCharCode(b.which),/^\d+$/.test(d)?(c=a(b.currentTarget),e=c.val()+d,/^\d$/.test(e)&&"0"!==e&&"1"!==e?(b.preventDefault(),setTimeout(function(){return c.val("0"+e+" / ")})):/^\d\d$/.test(e)?(b.preventDefault(),setTimeout(function(){var a,b;return a=parseInt(e[0],10),b=parseInt(e[1],10),b>2&&0!==a?c.val("0"+a+" / "+b):c.val(""+e+" / ")})):void 0):void 0},j=function(b){var c,d,e;return d=String.fromCharCode(b.which),/^\d+$/.test(d)?(c=a(b.currentTarget),e=c.val(),/^\d\d$/.test(e)?c.val(""+e+" / "):void 0):void 0},k=function(b){var c,d,e;return e=String.fromCharCode(b.which),"/"===e||" "===e?(c=a(b.currentTarget),d=c.val(),/^\d$/.test(d)&&"0"!==d?c.val("0"+d+" / "):void 0):void 0},g=function(b){var c,d;return c=a(b.currentTarget),d=c.val(),8!==b.which||null!=c.prop("selectionStart")&&c.prop("selectionStart")!==d.length?void 0:/\d\s\/\s$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d\s\/\s$/,""))})):void 0},n=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var a;return a=c.val(),a=r(a),a=a.replace(/\D/g,"").slice(0,4),w(a,c)})},v=function(a){var b;return a.metaKey||a.ctrlKey?!0:32===a.which?!1:0===a.which?!0:a.which<33?!0:(b=String.fromCharCode(a.which),!!/[\d\s]/.test(b))},t=function(c){var d,e,f,g;return d=a(c.currentTarget),f=String.fromCharCode(c.which),/^\d+$/.test(f)&&!l(d)?(g=(d.val()+f).replace(/\D/g,""),e=b(g),e?g.length<=e.length[e.length.length-1]:g.length<=16):void 0},u=function(b){var c,d,e;return c=a(b.currentTarget),d=String.fromCharCode(b.which),/^\d+$/.test(d)&&!l(c)?(e=c.val()+d,e=e.replace(/\D/g,""),e.length>6?!1:void 0):void 0},s=function(b){var c,d,e;return c=a(b.currentTarget),d=String.fromCharCode(b.which),/^\d+$/.test(d)&&!l(c)?(e=c.val()+d,e.length<=4):void 0},x=function(b){var c,e,f,g,h;return c=a(b.currentTarget),h=c.val(),g=a.payment.cardType(h)||"unknown",c.hasClass(g)?void 0:(e=function(){var a,b,c;for(c=[],a=0,b=d.length;b>a;a++)f=d[a],c.push(f.type);return c}(),c.removeClass("unknown"),c.removeClass(e.join(" ")),c.addClass(g),c.toggleClass("identified","unknown"!==g),c.trigger("payment.cardType",g))},a.payment.fn.formatCardCVC=function(){return this.on("keypress",v),this.on("keypress",s),this.on("paste",n),this.on("change",n),this.on("input",n),this},a.payment.fn.formatCardExpiry=function(){return this.on("keypress",v),this.on("keypress",u),this.on("keypress",i),this.on("keypress",k),this.on("keypress",j),this.on("keydown",g),this.on("change",p),this.on("input",p),this},a.payment.fn.formatCardNumber=function(){return this.on("keypress",v),this.on("keypress",t),this.on("keypress",h),this.on("keydown",f),this.on("keyup",x),this.on("paste",o),this.on("change",o),this.on("input",o),this.on("input",x),this},a.payment.fn.restrictNumeric=function(){return this.on("keypress",v),this.on("paste",q),this.on("change",q),this.on("input",q),this},a.payment.fn.cardExpiryVal=function(){return a.payment.cardExpiryVal(a(this).val())},a.payment.cardExpiryVal=function(a){var b,c,d,e;return e=a.split(/[\s\/]+/,2),b=e[0],d=e[1],2===(null!=d?d.length:void 0)&&/^\d+$/.test(d)&&(c=(new Date).getFullYear(),c=c.toString().slice(0,2),d=c+d),b=parseInt(b,10),d=parseInt(d,10),{month:b,year:d}},a.payment.validateCardNumber=function(a){var c,d;return a=(a+"").replace(/\s+|-/g,""),/^\d+$/.test(a)?(c=b(a),c?(d=a.length,z.call(c.length,d)>=0&&(c.luhn===!1||m(a))):!1):!1},a.payment.validateCardExpiry=function(b,c){var d,e,f;return"object"==typeof b&&"month"in b&&(f=b,b=f.month,c=f.year),b&&c?(b=a.trim(b),c=a.trim(c),/^\d+$/.test(b)&&/^\d+$/.test(c)&&b>=1&&12>=b?(2===c.length&&(c=70>c?"20"+c:"19"+c),4!==c.length?!1:(e=new Date(c,b),d=new Date,e.setMonth(e.getMonth()-1),e.setMonth(e.getMonth()+1,1),e>d)):!1):!1},a.payment.validateCardCVC=function(b,d){var e,f;return b=a.trim(b),/^\d+$/.test(b)?(e=c(d),null!=e?(f=b.length,z.call(e.cvcLength,f)>=0):b.length>=3&&b.length<=4):!1},a.payment.cardType=function(a){var c;return a?(null!=(c=b(a))?c.type:void 0)||null:null},a.payment.formatCardNumber=function(c){var d,e,f,g;return c=c.replace(/\D/g,""),(d=b(c))?(f=d.length[d.length.length-1],c=c.slice(0,f),d.format.global?null!=(g=c.match(d.format))?g.join(" "):void 0:(e=d.format.exec(c),null!=e?(e.shift(),e=a.grep(e,function(a){return a}),e.join(" ")):void 0)):c},a.payment.formatExpiry=function(a){var b,c,d,e;return(c=a.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(b=c[1]||"",d=c[2]||"",e=c[3]||"",e.length>0?d=" / ":" /"===d?(b=b.substring(0,1),d=""):2===b.length||d.length>0?d=" / ":1===b.length&&"0"!==b&&"1"!==b&&(b="0"+b,d=" / "),b+d+e):""}}).call(this)}); \ No newline at end of file +jQuery(function(a){(function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=[].slice,z=[].indexOf||function(a){for(var b=0,c=this.length;b9&&(b-=9),e+=b;return e%10===0},l=function(a){var b;return null!=a.prop("selectionStart")&&a.prop("selectionStart")!==a.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(b=document.selection)?b.createRange:void 0)||!document.selection.createRange().text)},w=function(a,b){var c,d,e,f,g,h;try{d=b.prop("selectionStart")}catch(i){f=i,d=null}if(g=b.val(),b.val(a),null!==d&&b.is(":focus"))return d===g.length&&(d=a.length),g!==a&&(h=g.slice(d-1,+d+1||9e9),c=a.slice(d-1,+d+1||9e9),e=a[d],/\d/.test(e)&&h===""+e+" "&&c===" "+e&&(d+=1)),b.prop("selectionStart",d),b.prop("selectionEnd",d)},r=function(a){var b,c,d,e,f,g,h,i;for(null==a&&(a=""),d="0123456789",e="0123456789",g="",b=a.split(""),h=0,i=b.length;h-1&&(c=e[f]),g+=c;return g},q=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var a;return a=c.val(),a=r(a),a=a.replace(/\D/g,""),w(a,c)})},o=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var b;return b=c.val(),b=r(b),b=a.payment.formatCardNumber(b),w(b,c)})},h=function(c){var d,e,f,g,h,i,j;if(f=String.fromCharCode(c.which),/^\d+$/.test(f)&&(d=a(c.currentTarget),j=d.val(),e=b(j+f),g=(j.replace(/\D/g,"")+f).length,i=16,e&&(i=e.length[e.length.length-1]),!(g>=i||null!=d.prop("selectionStart")&&d.prop("selectionStart")!==j.length)))return h=e&&"amex"===e.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,h.test(j)?(c.preventDefault(),setTimeout(function(){return d.val(j+" "+f)})):h.test(j+f)?(c.preventDefault(),setTimeout(function(){return d.val(j+f+" ")})):void 0},f=function(b){var c,d;if(c=a(b.currentTarget),d=c.val(),8===b.which&&(null==c.prop("selectionStart")||c.prop("selectionStart")===d.length))return/\d\s$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d\s$/,""))})):/\s\d?$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d$/,""))})):void 0},p=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var b;return b=c.val(),b=r(b),b=a.payment.formatExpiry(b),w(b,c)})},i=function(b){var c,d,e;if(d=String.fromCharCode(b.which),/^\d+$/.test(d))return c=a(b.currentTarget),e=c.val()+d,/^\d$/.test(e)&&"0"!==e&&"1"!==e?(b.preventDefault(),setTimeout(function(){return c.val("0"+e+" / ")})):/^\d\d$/.test(e)?(b.preventDefault(),setTimeout(function(){var a,b;return a=parseInt(e[0],10),b=parseInt(e[1],10),b>2&&0!==a?c.val("0"+a+" / "+b):c.val(""+e+" / ")})):void 0},j=function(b){var c,d,e;if(d=String.fromCharCode(b.which),/^\d+$/.test(d))return c=a(b.currentTarget),e=c.val(),/^\d\d$/.test(e)?c.val(""+e+" / "):void 0},k=function(b){var c,d,e;if(e=String.fromCharCode(b.which),"/"===e||" "===e)return c=a(b.currentTarget),d=c.val(),/^\d$/.test(d)&&"0"!==d?c.val("0"+d+" / "):void 0},g=function(b){var c,d;if(c=a(b.currentTarget),d=c.val(),8===b.which&&(null==c.prop("selectionStart")||c.prop("selectionStart")===d.length))return/\d\s\/\s$/.test(d)?(b.preventDefault(),setTimeout(function(){return c.val(d.replace(/\d\s\/\s$/,""))})):void 0},n=function(b){var c;return c=a(b.currentTarget),setTimeout(function(){var a;return a=c.val(),a=r(a),a=a.replace(/\D/g,"").slice(0,4),w(a,c)})},v=function(a){var b;return!(!a.metaKey&&!a.ctrlKey)||32!==a.which&&(0===a.which||(a.which<33||(b=String.fromCharCode(a.which),!!/[\d\s]/.test(b))))},t=function(c){var d,e,f,g;if(d=a(c.currentTarget),f=String.fromCharCode(c.which),/^\d+$/.test(f)&&!l(d))return g=(d.val()+f).replace(/\D/g,""),e=b(g),e?g.length<=e.length[e.length.length-1]:g.length<=16},u=function(b){var c,d,e;if(c=a(b.currentTarget),d=String.fromCharCode(b.which),/^\d+$/.test(d)&&!l(c))return e=c.val()+d,e=e.replace(/\D/g,""),!(e.length>6)&&void 0},s=function(b){var c,d,e;if(c=a(b.currentTarget),d=String.fromCharCode(b.which),/^\d+$/.test(d)&&!l(c))return e=c.val()+d,e.length<=4},x=function(b){var c,e,f,g,h;if(c=a(b.currentTarget),h=c.val(),g=a.payment.cardType(h)||"unknown",!c.hasClass(g))return e=function(){var a,b,c;for(c=[],a=0,b=d.length;a=0&&(c.luhn===!1||m(a))))},a.payment.validateCardExpiry=function(b,c){var d,e,f;return"object"==typeof b&&"month"in b&&(f=b,b=f.month,c=f.year),!(!b||!c)&&(b=a.trim(b),c=a.trim(c),!!/^\d+$/.test(b)&&(!!/^\d+$/.test(c)&&(1<=b&&b<=12&&(2===c.length&&(c=c<70?"20"+c:"19"+c),4===c.length&&(e=new Date(c,b),d=new Date,e.setMonth(e.getMonth()-1),e.setMonth(e.getMonth()+1,1),e>d)))))},a.payment.validateCardCVC=function(b,d){var e,f;return b=a.trim(b),!!/^\d+$/.test(b)&&(e=c(d),null!=e?(f=b.length,z.call(e.cvcLength,f)>=0):b.length>=3&&b.length<=4)},a.payment.cardType=function(a){var c;return a?(null!=(c=b(a))?c.type:void 0)||null:null},a.payment.formatCardNumber=function(c){var d,e,f,g;return c=c.replace(/\D/g,""),(d=b(c))?(f=d.length[d.length.length-1],c=c.slice(0,f),d.format.global?null!=(g=c.match(d.format))?g.join(" "):void 0:(e=d.format.exec(c),null!=e?(e.shift(),e=a.grep(e,function(a){return a}),e.join(" ")):void 0)):c},a.payment.formatExpiry=function(a){var b,c,d,e;return(c=a.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(b=c[1]||"",d=c[2]||"",e=c[3]||"",e.length>0?d=" / ":" /"===d?(b=b.substring(0,1),d=""):2===b.length||d.length>0?d=" / ":1===b.length&&"0"!==b&&"1"!==b&&(b="0"+b,d=" / "),b+d+e):""}}).call(this)}); \ No newline at end of file diff --git a/assets/js/jquery-qrcode/jquery.qrcode.min.js b/assets/js/jquery-qrcode/jquery.qrcode.min.js index 786e42650a0..997f42d1534 100644 --- a/assets/js/jquery-qrcode/jquery.qrcode.min.js +++ b/assets/js/jquery-qrcode/jquery.qrcode.min.js @@ -1 +1 @@ -function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE,this.data=a}function QRCode(a,b){this.typeNumber=a,this.errorCorrectLevel=b,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function QRPolynomial(a,b){if(void 0==a.length)throw new Error(a.length+"/"+b);for(var c=0;ca||this.moduleCount<=a||0>b||this.moduleCount<=b)throw new Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var a=1;for(a=1;40>a;a++){for(var b=QRRSBlock.getRSBlocks(a,this.errorCorrectLevel),c=new QRBitBuffer,d=0,e=0;e=7&&this.setupTypeNumber(a),null==this.dataCache&&(this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,b)},setupPositionProbePattern:function(a,b){for(var c=-1;7>=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(c>=0&&6>=c&&(0==d||6==d)||d>=0&&6>=d&&(0==c||6==c)||c>=2&&4>=c&&d>=2&&4>=d?this.modules[a+c][b+d]=!0:this.modules[a+c][b+d]=!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=QRUtil.getLostPoint(this);(0==c||a>d)&&(a=d,b=c)}return b},createMovieClip:function(a,b,c){var d=a.createEmptyMovieClip(b,c),e=1;this.make();for(var f=0;f=f;f++)for(var g=-2;2>=g;g++)-2==f||2==f||-2==g||2==g||0==f&&0==g?this.modules[d+f][e+g]=!0:this.modules[d+f][e+g]=!1}},setupTypeNumber:function(a){for(var b=QRUtil.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(b>>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(var c=0;18>c;c++){var d=!a&&1==(b>>c&1);this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d}},setupTypeInfo:function(a,b){for(var c=this.errorCorrectLevel<<3|b,d=QRUtil.getBCHTypeInfo(c),e=0;15>e;e++){var f=!a&&1==(d>>e&1);6>e?this.modules[e][8]=f:8>e?this.modules[e+1][8]=f:this.modules[this.moduleCount-15+e][8]=f}for(var e=0;15>e;e++){var f=!a&&1==(d>>e&1);8>e?this.modules[8][this.moduleCount-e-1]=f:9>e?this.modules[8][15-e-1+1]=f:this.modules[8][15-e-1]=f}this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,f=0,g=this.moduleCount-1;g>0;g-=2)for(6==g&&g--;;){for(var h=0;2>h;h++)if(null==this.modules[d][g-h]){var i=!1;f>>e&1));var j=QRUtil.getMask(b,d,g-h);j&&(i=!i),this.modules[d][g-h]=i,e--,-1==e&&(f++,e=7)}if(d+=c,0>d||this.moduleCount<=d){d-=c,c=-c;break}}}},QRCode.PAD0=236,QRCode.PAD1=17,QRCode.createData=function(a,b,c){for(var d=QRRSBlock.getRSBlocks(a,b),e=new QRBitBuffer,f=0;f8*h)throw new Error("code length overflow. ("+e.getLengthInBits()+">"+8*h+")");for(e.getLengthInBits()+4<=8*h&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;;){if(e.getLengthInBits()>=8*h)break;if(e.put(QRCode.PAD0,8),e.getLengthInBits()>=8*h)break;e.put(QRCode.PAD1,8)}return QRCode.createBytes(e,d)},QRCode.createBytes=function(a,b){for(var c=0,d=0,e=0,f=new Array(b.length),g=new Array(b.length),h=0;h=0?n.get(o):0}}for(var p=0,k=0;kk;k++)for(var h=0;hk;k++)for(var h=0;h=0;)b^=QRUtil.G15<=0;)b^=QRUtil.G18<>>=1;return b},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case QRMaskPattern.PATTERN000:return(b+c)%2==0;case QRMaskPattern.PATTERN001:return b%2==0;case QRMaskPattern.PATTERN010:return c%3==0;case QRMaskPattern.PATTERN011:return(b+c)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(b/2)+Math.floor(c/3))%2==0;case QRMaskPattern.PATTERN101:return b*c%2+b*c%3==0;case QRMaskPattern.PATTERN110:return(b*c%2+b*c%3)%2==0;case QRMaskPattern.PATTERN111:return(b*c%3+(b+c)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var b=new QRPolynomial([1],0),c=0;a>c;c++)b=b.multiply(new QRPolynomial([1,QRMath.gexp(c)],0));return b},getLengthInBits:function(a,b){if(b>=1&&10>b)switch(a){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(27>b)switch(a){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else{if(!(41>b))throw new Error("type:"+b);switch(a){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;b>d;d++)for(var e=0;b>e;e++){for(var f=0,g=a.isDark(d,e),h=-1;1>=h;h++)if(!(0>d+h||d+h>=b))for(var i=-1;1>=i;i++)0>e+i||e+i>=b||0==h&&0==i||g==a.isDark(d+h,e+i)&&f++;f>5&&(c+=3+f-5)}for(var d=0;b-1>d;d++)for(var e=0;b-1>e;e++){var j=0;a.isDark(d,e)&&j++,a.isDark(d+1,e)&&j++,a.isDark(d,e+1)&&j++,a.isDark(d+1,e+1)&&j++,0!=j&&4!=j||(c+=3)}for(var d=0;b>d;d++)for(var e=0;b-6>e;e++)a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);for(var e=0;b>e;e++)for(var d=0;b-6>d;d++)a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);for(var k=0,e=0;b>e;e++)for(var d=0;b>d;d++)a.isDark(d,e)&&k++;var l=Math.abs(100*k/b/b-50)/5;return c+=10*l}},QRMath={glog:function(a){if(1>a)throw new Error("glog("+a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;a>=256;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;8>i;i++)QRMath.EXP_TABLE[i]=1<i;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(var i=0;255>i;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;QRPolynomial.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var b=new Array(this.getLength()+a.getLength()-1),c=0;cf;f++)for(var g=c[3*f+0],h=c[3*f+1],i=c[3*f+2],j=0;g>j;j++)e.push(new QRRSBlock(h,i));return e},QRRSBlock.getRsBlockTable=function(a,b){switch(b){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+3];default:return}},QRBitBuffer.prototype={get:function(a){var b=Math.floor(a/8);return 1==(this.buffer[b]>>>7-a%8&1)},put:function(a,b){for(var c=0;b>c;c++)this.putBit(1==(a>>>b-c-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),a&&(this.buffer[b]|=128>>>this.length%8),this.length++}},function(a){a.fn.qrcode=function(b){"string"==typeof b&&(b={text:b}),b=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},b);var c=function(){var a=new QRCode(b.typeNumber,b.correctLevel);a.addData(b.text),a.make();var c=document.createElement("canvas");c.width=b.width,c.height=b.height;for(var d=c.getContext("2d"),e=b.width/a.getModuleCount(),f=b.height/a.getModuleCount(),g=0;g").css("width",b.width+"px").css("height",b.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",b.background),e=b.width/c.getModuleCount(),f=b.height/c.getModuleCount(),g=0;g").css("height",f+"px").appendTo(d),i=0;i").css("width",e+"px").css("background-color",c.isDark(g,i)?b.foreground:b.background).appendTo(h);return d};return this.each(function(){var e="canvas"==b.render?c():d();a(e).appendTo(this)})}}(jQuery); \ No newline at end of file +function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE,this.data=a}function QRCode(a,b){this.typeNumber=a,this.errorCorrectLevel=b,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function QRPolynomial(a,b){if(void 0==a.length)throw new Error(a.length+"/"+b);for(var c=0;c=7&&this.setupTypeNumber(a),null==this.dataCache&&(this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,b)},setupPositionProbePattern:function(a,b){for(var c=-1;c<=7;c++)if(!(a+c<=-1||this.moduleCount<=a+c))for(var d=-1;d<=7;d++)b+d<=-1||this.moduleCount<=b+d||(0<=c&&c<=6&&(0==d||6==d)||0<=d&&d<=6&&(0==c||6==c)||2<=c&&c<=4&&2<=d&&d<=4?this.modules[a+c][b+d]=!0:this.modules[a+c][b+d]=!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;c<8;c++){this.makeImpl(!0,c);var d=QRUtil.getLostPoint(this);(0==c||a>d)&&(a=d,b=c)}return b},createMovieClip:function(a,b,c){var d=a.createEmptyMovieClip(b,c),e=1;this.make();for(var f=0;f>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(var c=0;c<18;c++){var d=!a&&1==(b>>c&1);this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d}},setupTypeInfo:function(a,b){for(var c=this.errorCorrectLevel<<3|b,d=QRUtil.getBCHTypeInfo(c),e=0;e<15;e++){var f=!a&&1==(d>>e&1);e<6?this.modules[e][8]=f:e<8?this.modules[e+1][8]=f:this.modules[this.moduleCount-15+e][8]=f}for(var e=0;e<15;e++){var f=!a&&1==(d>>e&1);e<8?this.modules[8][this.moduleCount-e-1]=f:e<9?this.modules[8][15-e-1+1]=f:this.modules[8][15-e-1]=f}this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,f=0,g=this.moduleCount-1;g>0;g-=2)for(6==g&&g--;;){for(var h=0;h<2;h++)if(null==this.modules[d][g-h]){var i=!1;f>>e&1));var j=QRUtil.getMask(b,d,g-h);j&&(i=!i),this.modules[d][g-h]=i,e--,e==-1&&(f++,e=7)}if(d+=c,d<0||this.moduleCount<=d){d-=c,c=-c;break}}}},QRCode.PAD0=236,QRCode.PAD1=17,QRCode.createData=function(a,b,c){for(var d=QRRSBlock.getRSBlocks(a,b),e=new QRBitBuffer,f=0;f8*h)throw new Error("code length overflow. ("+e.getLengthInBits()+">"+8*h+")");for(e.getLengthInBits()+4<=8*h&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;;){if(e.getLengthInBits()>=8*h)break;if(e.put(QRCode.PAD0,8),e.getLengthInBits()>=8*h)break;e.put(QRCode.PAD1,8)}return QRCode.createBytes(e,d)},QRCode.createBytes=function(a,b){for(var c=0,d=0,e=0,f=new Array(b.length),g=new Array(b.length),h=0;h=0?n.get(o):0}}for(var p=0,k=0;k=0;)b^=QRUtil.G15<=0;)b^=QRUtil.G18<>>=1;return b},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case QRMaskPattern.PATTERN000:return(b+c)%2==0;case QRMaskPattern.PATTERN001:return b%2==0;case QRMaskPattern.PATTERN010:return c%3==0;case QRMaskPattern.PATTERN011:return(b+c)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(b/2)+Math.floor(c/3))%2==0;case QRMaskPattern.PATTERN101:return b*c%2+b*c%3==0;case QRMaskPattern.PATTERN110:return(b*c%2+b*c%3)%2==0;case QRMaskPattern.PATTERN111:return(b*c%3+(b+c)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var b=new QRPolynomial([1],0),c=0;c5&&(c+=3+f-5)}for(var d=0;d=256;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<>>7-a%8&1)},put:function(a,b){for(var c=0;c>>b-c-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),a&&(this.buffer[b]|=128>>>this.length%8),this.length++}},function(a){a.fn.qrcode=function(b){"string"==typeof b&&(b={text:b}),b=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},b);var c=function(){var a=new QRCode(b.typeNumber,b.correctLevel);a.addData(b.text),a.make();var c=document.createElement("canvas");c.width=b.width,c.height=b.height;for(var d=c.getContext("2d"),e=b.width/a.getModuleCount(),f=b.height/a.getModuleCount(),g=0;g").css("width",b.width+"px").css("height",b.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",b.background),e=b.width/c.getModuleCount(),f=b.height/c.getModuleCount(),g=0;g").css("height",f+"px").appendTo(d),i=0;i").css("width",e+"px").css("background-color",c.isDark(g,i)?b.foreground:b.background).appendTo(h);return d};return this.each(function(){var e="canvas"==b.render?c():d();a(e).appendTo(this)})}}(jQuery); \ No newline at end of file diff --git a/assets/js/jquery-serializejson/jquery.serializejson.min.js b/assets/js/jquery-serializejson/jquery.serializejson.min.js index 2490903a4b8..ad4dccfe84c 100644 --- a/assets/js/jquery-serializejson/jquery.serializejson.min.js +++ b/assets/js/jquery-serializejson/jquery.serializejson.min.js @@ -7,4 +7,4 @@ Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. */ -!function(a){"use strict";a.fn.serializeJSON=function(b){var c,d,e,f,g,h,i;return h=a.serializeJSON,i=h.setupOpts(b),d=this.serializeArray(),h.readCheckboxUncheckedValues(d,this,i),c={},a.each(d,function(a,b){e=h.splitInputNameIntoKeysArray(b.name,i),f=e.pop(),"skip"!==f&&(g=h.parseValue(b.value,f,i),i.parseWithFunction&&"_"===f&&(g=i.parseWithFunction(g,b.name)),h.deepSet(c,e,g,i))}),c},a.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,customTypes:{},defaultTypes:{string:function(a){return String(a)},number:function(a){return Number(a)},"boolean":function(a){var b=["false","null","undefined","","0"];return-1===b.indexOf(a)},"null":function(a){var b=["false","null","undefined","","0"];return-1===b.indexOf(a)?a:null},array:function(a){return JSON.parse(a)},object:function(a){return JSON.parse(a)},auto:function(b){return a.serializeJSON.parseValue(b,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})}},useIntKeysAsArrayIndex:!1},setupOpts:function(b){var c,d,e,f,g,h;h=a.serializeJSON,null==b&&(b={}),e=h.defaultOptions||{},d=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","customTypes","defaultTypes","useIntKeysAsArrayIndex"];for(c in b)if(-1===d.indexOf(c))throw new Error("serializeJSON ERROR: invalid option '"+c+"'. Please use one of "+d.join(", "));return f=function(a){return b[a]!==!1&&""!==b[a]&&(b[a]||e[a])},g=f("parseAll"),{checkboxUncheckedValue:f("checkboxUncheckedValue"),parseNumbers:g||f("parseNumbers"),parseBooleans:g||f("parseBooleans"),parseNulls:g||f("parseNulls"),parseWithFunction:f("parseWithFunction"),typeFunctions:a.extend({},f("defaultTypes"),f("customTypes")),useIntKeysAsArrayIndex:f("useIntKeysAsArrayIndex")}},parseValue:function(b,c,d){var e,f;return f=a.serializeJSON,e=d.typeFunctions&&d.typeFunctions[c],e?e(b):d.parseNumbers&&f.isNumeric(b)?Number(b):!d.parseBooleans||"true"!==b&&"false"!==b?d.parseNulls&&"null"==b?null:b:"true"===b},isObject:function(a){return a===Object(a)},isUndefined:function(a){return void 0===a},isValidArrayIndex:function(a){return/^[0-9]+$/.test(String(a))},isNumeric:function(a){return a-parseFloat(a)>=0},optionKeys:function(a){if(Object.keys)return Object.keys(a);var b,c=[];for(b in a)c.push(b);return c},splitInputNameIntoKeysArray:function(b,c){var d,e,f,g,h;return h=a.serializeJSON,g=h.extractTypeFromInputName(b,c),e=g[0],f=g[1],d=e.split("["),d=a.map(d,function(a){return a.replace(/\]/g,"")}),""===d[0]&&d.shift(),d.push(f),d},extractTypeFromInputName:function(b,c){var d,e,f;if(d=b.match(/(.*):([^:]+)$/)){if(f=a.serializeJSON,e=f.optionKeys(c?c.typeFunctions:f.defaultOptions.defaultTypes),e.push("skip"),-1!==e.indexOf(d[2]))return[d[1],d[2]];throw new Error("serializeJSON ERROR: Invalid type "+d[2]+" found in input name '"+b+"', please use one of "+e.join(", "))}return[b,"_"]},deepSet:function(b,c,d,e){var f,g,h,i,j,k;if(null==e&&(e={}),k=a.serializeJSON,k.isUndefined(b))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!c||0===c.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");f=c[0],1===c.length?""===f?b.push(d):b[f]=d:(g=c[1],""===f&&(i=b.length-1,j=b[i],f=k.isObject(j)&&(k.isUndefined(j[g])||c.length>2)?i:i+1),""===g?!k.isUndefined(b[f])&&a.isArray(b[f])||(b[f]=[]):e.useIntKeysAsArrayIndex&&k.isValidArrayIndex(g)?!k.isUndefined(b[f])&&a.isArray(b[f])||(b[f]=[]):!k.isUndefined(b[f])&&k.isObject(b[f])||(b[f]={}),h=c.slice(1),k.deepSet(b[f],h,d,e))},readCheckboxUncheckedValues:function(b,c,d){var e,f,g,h,i;null==d&&(d={}),i=a.serializeJSON,e="input[type=checkbox][name]:not(:checked):not([disabled])",f=c.find(e).add(c.filter(e)),f.each(function(c,e){g=a(e),h=g.attr("data-unchecked-value"),h?b.push({name:e.name,value:h}):i.isUndefined(d.checkboxUncheckedValue)||b.push({name:e.name,value:d.checkboxUncheckedValue})})}}}(window.jQuery||window.Zepto||window.$); \ No newline at end of file +!function(a){"use strict";a.fn.serializeJSON=function(b){var c,d,e,f,g,h,i;return h=a.serializeJSON,i=h.setupOpts(b),d=this.serializeArray(),h.readCheckboxUncheckedValues(d,this,i),c={},a.each(d,function(a,b){e=h.splitInputNameIntoKeysArray(b.name,i),f=e.pop(),"skip"!==f&&(g=h.parseValue(b.value,f,i),i.parseWithFunction&&"_"===f&&(g=i.parseWithFunction(g,b.name)),h.deepSet(c,e,g,i))}),c},a.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,customTypes:{},defaultTypes:{string:function(a){return String(a)},number:function(a){return Number(a)},"boolean":function(a){var b=["false","null","undefined","","0"];return b.indexOf(a)===-1},"null":function(a){var b=["false","null","undefined","","0"];return b.indexOf(a)===-1?a:null},array:function(a){return JSON.parse(a)},object:function(a){return JSON.parse(a)},auto:function(b){return a.serializeJSON.parseValue(b,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})}},useIntKeysAsArrayIndex:!1},setupOpts:function(b){var c,d,e,f,g,h;h=a.serializeJSON,null==b&&(b={}),e=h.defaultOptions||{},d=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","customTypes","defaultTypes","useIntKeysAsArrayIndex"];for(c in b)if(d.indexOf(c)===-1)throw new Error("serializeJSON ERROR: invalid option '"+c+"'. Please use one of "+d.join(", "));return f=function(a){return b[a]!==!1&&""!==b[a]&&(b[a]||e[a])},g=f("parseAll"),{checkboxUncheckedValue:f("checkboxUncheckedValue"),parseNumbers:g||f("parseNumbers"),parseBooleans:g||f("parseBooleans"),parseNulls:g||f("parseNulls"),parseWithFunction:f("parseWithFunction"),typeFunctions:a.extend({},f("defaultTypes"),f("customTypes")),useIntKeysAsArrayIndex:f("useIntKeysAsArrayIndex")}},parseValue:function(b,c,d){var e,f;return f=a.serializeJSON,e=d.typeFunctions&&d.typeFunctions[c],e?e(b):d.parseNumbers&&f.isNumeric(b)?Number(b):!d.parseBooleans||"true"!==b&&"false"!==b?d.parseNulls&&"null"==b?null:b:"true"===b},isObject:function(a){return a===Object(a)},isUndefined:function(a){return void 0===a},isValidArrayIndex:function(a){return/^[0-9]+$/.test(String(a))},isNumeric:function(a){return a-parseFloat(a)>=0},optionKeys:function(a){if(Object.keys)return Object.keys(a);var b,c=[];for(b in a)c.push(b);return c},splitInputNameIntoKeysArray:function(b,c){var d,e,f,g,h;return h=a.serializeJSON,g=h.extractTypeFromInputName(b,c),e=g[0],f=g[1],d=e.split("["),d=a.map(d,function(a){return a.replace(/\]/g,"")}),""===d[0]&&d.shift(),d.push(f),d},extractTypeFromInputName:function(b,c){var d,e,f;if(d=b.match(/(.*):([^:]+)$/)){if(f=a.serializeJSON,e=f.optionKeys(c?c.typeFunctions:f.defaultOptions.defaultTypes),e.push("skip"),e.indexOf(d[2])!==-1)return[d[1],d[2]];throw new Error("serializeJSON ERROR: Invalid type "+d[2]+" found in input name '"+b+"', please use one of "+e.join(", "))}return[b,"_"]},deepSet:function(b,c,d,e){var f,g,h,i,j,k;if(null==e&&(e={}),k=a.serializeJSON,k.isUndefined(b))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!c||0===c.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");f=c[0],1===c.length?""===f?b.push(d):b[f]=d:(g=c[1],""===f&&(i=b.length-1,j=b[i],f=k.isObject(j)&&(k.isUndefined(j[g])||c.length>2)?i:i+1),""===g?!k.isUndefined(b[f])&&a.isArray(b[f])||(b[f]=[]):e.useIntKeysAsArrayIndex&&k.isValidArrayIndex(g)?!k.isUndefined(b[f])&&a.isArray(b[f])||(b[f]=[]):!k.isUndefined(b[f])&&k.isObject(b[f])||(b[f]={}),h=c.slice(1),k.deepSet(b[f],h,d,e))},readCheckboxUncheckedValues:function(b,c,d){var e,f,g,h,i;null==d&&(d={}),i=a.serializeJSON,e="input[type=checkbox][name]:not(:checked):not([disabled])",f=c.find(e).add(c.filter(e)),f.each(function(c,e){g=a(e),h=g.attr("data-unchecked-value"),h?b.push({name:e.name,value:h}):i.isUndefined(d.checkboxUncheckedValue)||b.push({name:e.name,value:d.checkboxUncheckedValue})})}}}(window.jQuery||window.Zepto||window.$); \ No newline at end of file diff --git a/assets/js/jquery-tiptip/jquery.tipTip.min.js b/assets/js/jquery-tiptip/jquery.tipTip.min.js index a438c2a927a..8fd09bf9600 100644 --- a/assets/js/jquery-tiptip/jquery.tipTip.min.js +++ b/assets/js/jquery-tiptip/jquery.tipTip.min.js @@ -1 +1 @@ -!function(a){a.fn.tipTip=function(b){var c={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},d=a.extend(c,b);if(a("#tiptip_holder").length<=0){var e=a('
    '),f=a('
    '),g=a('
    ');a("body").append(e.html(f).prepend(g.html('
    ')))}else var e=a("#tiptip_holder"),f=a("#tiptip_content"),g=a("#tiptip_arrow");return this.each(function(){function b(){d.enter.call(this),f.html(i),e.hide().removeAttr("class").css("margin","0"),g.removeAttr("style");var b=parseInt(h.offset().top),c=parseInt(h.offset().left),k=parseInt(h.outerWidth()),l=parseInt(h.outerHeight()),m=e.outerWidth(),n=e.outerHeight(),o=Math.round((k-m)/2),p=Math.round((l-n)/2),q=Math.round(c+o),r=Math.round(b+l+d.edgeOffset),s="",t="",u=Math.round(m-12)/2;"bottom"==d.defaultPosition?s="_bottom":"top"==d.defaultPosition?s="_top":"left"==d.defaultPosition?s="_left":"right"==d.defaultPosition&&(s="_right");var v=o+cparseInt(a(window).width());v&&0>o||"_right"==s&&!w||"_left"==s&&co||"_left"==s&&!v)&&(s="_left",t=Math.round(n-13)/2,u=Math.round(m),q=Math.round(c-(m+d.edgeOffset+5)),r=Math.round(b+p));var x=b+l+d.edgeOffset+n+8>parseInt(a(window).height()+a(window).scrollTop()),y=b+l-(d.edgeOffset+n+8)<0;x||"_bottom"==s&&x||"_top"==s&&!y?("_top"==s||"_bottom"==s?s="_top":s+="_top",t=n,r=Math.round(b-(n+5+d.edgeOffset))):(y|("_top"==s&&y)||"_bottom"==s&&!x)&&("_top"==s||"_bottom"==s?s="_bottom":s+="_bottom",t=-12,r=Math.round(b+l+d.edgeOffset)),"_right_top"==s||"_left_top"==s?r+=5:"_right_bottom"!=s&&"_left_bottom"!=s||(r-=5),"_left_top"!=s&&"_left_bottom"!=s||(q+=5),g.css({"margin-left":u+"px","margin-top":t+"px"}),e.css({"margin-left":q+"px","margin-top":r+"px"}).attr("class","tip"+s),j&&clearTimeout(j),j=setTimeout(function(){e.stop(!0,!0).fadeIn(d.fadeIn)},d.delay)}function c(){d.exit.call(this),j&&clearTimeout(j),e.fadeOut(d.fadeOut)}var h=a(this);if(d.content)var i=d.content;else var i=h.attr(d.attribute);if(""!=i){d.content||h.removeAttr(d.attribute);var j=!1;"hover"==d.activation?(h.hover(function(){b()},function(){d.keepAlive||c()}),d.keepAlive&&e.hover(function(){},function(){c()})):"focus"==d.activation?h.focus(function(){b()}).blur(function(){c()}):"click"==d.activation&&(h.click(function(){return b(),!1}).hover(function(){},function(){d.keepAlive||c()}),d.keepAlive&&e.hover(function(){},function(){c()}))}})}}(jQuery); \ No newline at end of file +!function(a){a.fn.tipTip=function(b){var c={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},d=a.extend(c,b);if(a("#tiptip_holder").length<=0){var e=a('
    '),f=a('
    '),g=a('
    ');a("body").append(e.html(f).prepend(g.html('
    ')))}else var e=a("#tiptip_holder"),f=a("#tiptip_content"),g=a("#tiptip_arrow");return this.each(function(){function b(){d.enter.call(this),f.html(i),e.hide().removeAttr("class").css("margin","0"),g.removeAttr("style");var b=parseInt(h.offset().top),c=parseInt(h.offset().left),k=parseInt(h.outerWidth()),l=parseInt(h.outerHeight()),m=e.outerWidth(),n=e.outerHeight(),o=Math.round((k-m)/2),p=Math.round((l-n)/2),q=Math.round(c+o),r=Math.round(b+l+d.edgeOffset),s="",t="",u=Math.round(m-12)/2;"bottom"==d.defaultPosition?s="_bottom":"top"==d.defaultPosition?s="_top":"left"==d.defaultPosition?s="_left":"right"==d.defaultPosition&&(s="_right");var v=o+cparseInt(a(window).width());v&&o<0||"_right"==s&&!w||"_left"==s&&cparseInt(a(window).height()+a(window).scrollTop()),y=b+l-(d.edgeOffset+n+8)<0;x||"_bottom"==s&&x||"_top"==s&&!y?("_top"==s||"_bottom"==s?s="_top":s+="_top",t=n,r=Math.round(b-(n+5+d.edgeOffset))):(y|("_top"==s&&y)||"_bottom"==s&&!x)&&("_top"==s||"_bottom"==s?s="_bottom":s+="_bottom",t=-12,r=Math.round(b+l+d.edgeOffset)),"_right_top"==s||"_left_top"==s?r+=5:"_right_bottom"!=s&&"_left_bottom"!=s||(r-=5),"_left_top"!=s&&"_left_bottom"!=s||(q+=5),g.css({"margin-left":u+"px","margin-top":t+"px"}),e.css({"margin-left":q+"px","margin-top":r+"px"}).attr("class","tip"+s),j&&clearTimeout(j),j=setTimeout(function(){e.stop(!0,!0).fadeIn(d.fadeIn)},d.delay)}function c(){d.exit.call(this),j&&clearTimeout(j),e.fadeOut(d.fadeOut)}var h=a(this);if(d.content)var i=d.content;else var i=h.attr(d.attribute);if(""!=i){d.content||h.removeAttr(d.attribute);var j=!1;"hover"==d.activation?(h.hover(function(){b()},function(){d.keepAlive||c()}),d.keepAlive&&e.hover(function(){},function(){c()})):"focus"==d.activation?h.focus(function(){b()}).blur(function(){c()}):"click"==d.activation&&(h.click(function(){return b(),!1}).hover(function(){},function(){d.keepAlive||c()}),d.keepAlive&&e.hover(function(){},function(){c()}))}})}}(jQuery); \ No newline at end of file diff --git a/assets/js/prettyPhoto/jquery.prettyPhoto.min.js b/assets/js/prettyPhoto/jquery.prettyPhoto.min.js index c309d0f4edb..7d1a0346aa7 100644 --- a/assets/js/prettyPhoto/jquery.prettyPhoto.min.js +++ b/assets/js/prettyPhoto/jquery.prettyPhoto.min.js @@ -1 +1 @@ -!function(a){function b(){var a=location.href;return hashtag=-1!==a.indexOf("#prettyPhoto")?decodeURI(a.substring(a.indexOf("#prettyPhoto")+1,a.length)):!1,hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function c(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function d(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null==e?"":e[1]}a.prettyPhoto={version:"3.1.6"},a.fn.prettyPhoto=function(f){function g(){a(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(A/2-r.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:r.contentHeight,width:r.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:B/2-r.containerWidth/2<0?0:B/2-r.containerWidth/2,width:r.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(r.height).width(r.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==l(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(r.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide()),!settings.autoplay_slideshow||x||s||a.prettyPhoto.startSlideshow(),settings.changepicturecallback(),s=!0}),p(),f.ajaxcallback()}function h(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show(),b()})}function i(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function j(a,b){if(resized=!1,k(a,b),imageWidth=a,imageHeight=b,(w>B||v>A)&&doresize&&settings.allow_resize&&!z){for(resized=!0,fitting=!1;!fitting;)w>B?(imageWidth=B-200,imageHeight=b/a*imageWidth):v>A?(imageHeight=A-200,imageWidth=a/b*imageHeight):fitting=!0,v=imageHeight,w=imageWidth;(w>B||v>A)&&j(w,v),k(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(v),containerWidth:Math.floor(w)+2*settings.horizontal_padding,contentHeight:Math.floor(t),contentWidth:Math.floor(u),resized:resized}}function k(b,c){b=parseFloat(b),c=parseFloat(c),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(b),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(b),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),t=c+detailsHeight,u=b,v=t+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),w=b}function l(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0,1)?"inline":"image"}function m(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=n(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=A/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>A)return;$pp_pic_holder.css({top:projectedTop,left:B/2+scroll_pos.scrollLeft-contentwidth/2})}}function n(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function o(){A=a(window).height(),B=a(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(B)}function p(){isSet&&settings.overlay_gallery&&"image"==l(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((r.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(b){a(this).find("a").click(function(){return a.prettyPhoto.changePage(b),a.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()}),a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),!1}),settings.allow_expand&&a("a.pp_expand").bind("click",function(b){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(a(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),h(function(){a.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),!1}),m()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
     
    ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
    {content}
    ',custom_markup:"",social_tools:''},f);var r,s,t,u,v,w,x,y=this,z=!1,A=a(window).height(),B=a(window).width();return doresize=!0,scroll_pos=n(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){m(),o()}),f.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous"),b.preventDefault();break;case 39:a.prettyPhoto.changePage("next"),b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=f,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(y,function(b,c){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).attr("href"):void 0}):a.makeArray(a(this).attr("href")),pp_titles=isSet?jQuery.map(y,function(b,c){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):"":void 0}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(y,function(b,c){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).attr("title")?a(b).attr("title"):"":void 0}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(a(this).attr("href"),pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),q(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){m()}),a.prettyPhoto.open(),!1},a.prettyPhoto.open=function(b){return"undefined"==typeof settings&&(settings=f,pp_images=a.makeArray(arguments[0]),pp_titles=arguments[1]?a.makeArray(arguments[1]):a.makeArray(""),pp_descriptions=arguments[2]?a.makeArray(arguments[2]):a.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,q(b.target)),settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),i(a(pp_images).length),a(".pp_loaderIcon").show(),settings.deeplinking&&c(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).length),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString(),z=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),z=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),z=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=!1,l(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,e("rel",pp_images[set_position])?movie+="?rel="+e("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":r=j(movie_width,movie_height),movie_id=pp_images[set_position];var b=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,c=movie_id.match(b);movie="//player.vimeo.com/video/"+c[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=r.width+"/embed/?moog_width="+r.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,r.height).replace(/{path}/g,movie);break;case"quicktime":r=j(movie_width,movie_height),r.height+=15,r.contentHeight+=15,r.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":r=j(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":r=j(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,r=j(movie_width,movie_height),doresize=!0,skipInjection=!0,a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g()});break;case"custom":r=j(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
    ').css({width:settings.default_width}).wrapInner('
    ').appendTo(a("body")).show(),doresize=!1,r=j(a(myClone).width(),a(myClone).height()),doresize=!0,a(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g())}),!1},a.prettyPhoto.changePage=function(b){currentGalleryPage=0,"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).length-1)):"next"==b?(set_position++,set_position>a(pp_images).length-1&&(set_position=0)):set_position=b,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),h(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(a){"next"==a?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==a?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a,slide_speed="next"==a||"previous"==a?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof x?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),!1}),x=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1}),clearInterval(x),x=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),a(this).remove(),a(window).unbind("scroll.prettyphoto"),d(),settings.callback(),doresize=!0,s=!1,delete settings}))},!pp_alreadyInitialized&&b()&&(pp_alreadyInitialized=!0,hashIndex=b(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1; \ No newline at end of file +!function(a){function b(){var a=location.href;return hashtag=a.indexOf("#prettyPhoto")!==-1&&decodeURI(a.substring(a.indexOf("#prettyPhoto")+1,a.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function c(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function d(){location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto")}function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null==e?"":e[1]}a.prettyPhoto={version:"3.1.6"},a.fn.prettyPhoto=function(f){function g(){a(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(A/2-r.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:r.contentHeight,width:r.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:B/2-r.containerWidth/2<0?0:B/2-r.containerWidth/2,width:r.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(r.height).width(r.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==l(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(r.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide()),!settings.autoplay_slideshow||x||s||a.prettyPhoto.startSlideshow(),settings.changepicturecallback(),s=!0}),p(),f.ajaxcallback()}function h(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show(),b()})}function i(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function j(a,b){if(resized=!1,k(a,b),imageWidth=a,imageHeight=b,(w>B||v>A)&&doresize&&settings.allow_resize&&!z){for(resized=!0,fitting=!1;!fitting;)w>B?(imageWidth=B-200,imageHeight=b/a*imageWidth):v>A?(imageHeight=A-200,imageWidth=a/b*imageHeight):fitting=!0,v=imageHeight,w=imageWidth;(w>B||v>A)&&j(w,v),k(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(v),containerWidth:Math.floor(w)+2*settings.horizontal_padding,contentHeight:Math.floor(t),contentWidth:Math.floor(u),resized:resized}}function k(b,c){b=parseFloat(b),c=parseFloat(c),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(b),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(b),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),t=c+detailsHeight,u=b,v=t+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),w=b}function l(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0,1)?"inline":"image"}function m(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=n(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=A/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>A)return;$pp_pic_holder.css({top:projectedTop,left:B/2+scroll_pos.scrollLeft-contentwidth/2})}}function n(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function o(){A=a(window).height(),B=a(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(B)}function p(){isSet&&settings.overlay_gallery&&"image"==l(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((r.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(b){a(this).find("a").click(function(){return a.prettyPhoto.changePage(b),a.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()}),a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),!1}),settings.allow_expand&&a("a.pp_expand").bind("click",function(b){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(a(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),h(function(){a.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),!1}),m()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
    \t\t\t\t\t\t
     
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\tExpand \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\tnext \t\t\t\t\t\t\t\t\t\t\tprevious \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t\tPrevious \t\t\t\t\t\t\t\t\t\t\t\t

    0/0

    \t\t\t\t\t\t\t\t\t\t\t\tNext \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t

    \t\t\t\t\t\t\t\t\t\t\t
    {pp_social}
    \t\t\t\t\t\t\t\t\t\t\tClose \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t
    \t\t\t\t\t
    ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
    {content}
    ',custom_markup:"",social_tools:''},f);var r,s,t,u,v,w,x,y=this,z=!1,A=a(window).height(),B=a(window).width();return doresize=!0,scroll_pos=n(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){m(),o()}),f.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous"),b.preventDefault();break;case 39:a.prettyPhoto.changePage("next"),b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=f,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href")),pp_titles=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(a(this).attr("href"),pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),q(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){m()}),a.prettyPhoto.open(),!1},a.prettyPhoto.open=function(b){return"undefined"==typeof settings&&(settings=f,pp_images=a.makeArray(arguments[0]),pp_titles=arguments[1]?a.makeArray(arguments[1]):a.makeArray(""),pp_descriptions=arguments[2]?a.makeArray(arguments[2]):a.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,q(b.target)),settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),i(a(pp_images).length),a(".pp_loaderIcon").show(),settings.deeplinking&&c(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).length),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString(),z=!1,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),z=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),z=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=!1,l(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,e("rel",pp_images[set_position])?movie+="?rel="+e("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":r=j(movie_width,movie_height),movie_id=pp_images[set_position];var b=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,c=movie_id.match(b);movie="//player.vimeo.com/video/"+c[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=r.width+"/embed/?moog_width="+r.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,r.height).replace(/{path}/g,movie);break;case"quicktime":r=j(movie_width,movie_height),r.height+=15,r.contentHeight+=15,r.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":r=j(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":r=j(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,r=j(movie_width,movie_height),doresize=!0,skipInjection=!0,a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g()});break;case"custom":r=j(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
    ').css({width:settings.default_width}).wrapInner('
    ').appendTo(a("body")).show(),doresize=!1,r=j(a(myClone).width(),a(myClone).height()),doresize=!0,a(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g())}),!1},a.prettyPhoto.changePage=function(b){currentGalleryPage=0,"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).length-1)):"next"==b?(set_position++,set_position>a(pp_images).length-1&&(set_position=0)):set_position=b,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),h(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(a){"next"==a?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==a?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a,slide_speed="next"==a||"previous"==a?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof x?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),!1}),x=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1}),clearInterval(x),x=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),a(this).remove(),a(window).unbind("scroll.prettyphoto"),d(),settings.callback(),doresize=!0,s=!1,delete settings}))},!pp_alreadyInitialized&&b()&&(pp_alreadyInitialized=!0,hashIndex=b(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1; \ No newline at end of file diff --git a/assets/js/round/round.min.js b/assets/js/round/round.min.js index 5ba3659d429..e73d9974be4 100644 --- a/assets/js/round/round.min.js +++ b/assets/js/round/round.min.js @@ -1 +1 @@ -function round(a,b,c){var d,e,f,g;if(b|=0,d=Math.pow(10,b),a*=d,g=a>0|-(0>a),f=a%1===.5*g,e=Math.floor(a),f)switch(c){case"2":case"PHP_ROUND_HALF_DOWN":a=e+(0>g);break;case"3":case"PHP_ROUND_HALF_EVEN":a=e+e%2*g;break;case"4":case"PHP_ROUND_HALF_ODD":a=e+!(e%2);break;default:a=e+(g>0)}return(f?a:Math.round(a))/d} \ No newline at end of file +function round(a,b,c){var d,e,f,g;if(b|=0,d=Math.pow(10,b),a*=d,g=a>0|-(a<0),f=a%1===.5*g,e=Math.floor(a),f)switch(c){case"2":case"PHP_ROUND_HALF_DOWN":a=e+(g<0);break;case"3":case"PHP_ROUND_HALF_EVEN":a=e+e%2*g;break;case"4":case"PHP_ROUND_HALF_ODD":a=e+!(e%2);break;default:a=e+(g>0)}return(f?a:Math.round(a))/d} \ No newline at end of file diff --git a/assets/js/select2/select2.min.js b/assets/js/select2/select2.min.js index 45d154bd44f..13e872a1954 100755 --- a/assets/js/select2/select2.min.js +++ b/assets/js/select2/select2.min.js @@ -1,3 +1,3 @@ -!function(a){"undefined"==typeof a.fn.each2&&a.extend(a.fn,{each2:function(b){for(var c=a([0]),d=-1,e=this.length;++dc;c+=1)if(g(a,b[c]))return c;return-1}function f(){var b=a(N);b.appendTo(document.body);var c={width:b.width()-b[0].clientWidth,height:b.height()-b[0].clientHeight};return b.remove(),c}function g(a,c){return a===c?!0:a===b||c===b?!1:null===a||null===c?!1:a.constructor===String?a+""==c+"":c.constructor===String?c+""==a+"":!1}function h(a,b,c){var d,e,f;if(null===a||a.length<1)return[];for(d=a.split(b),e=0,f=d.length;f>e;e+=1)d[e]=c(d[e]);return d}function i(a){return a.outerWidth(!1)-a.width()}function j(c){var d="keyup-change-value";c.on("keydown",function(){a.data(c,d)===b&&a.data(c,d,c.val())}),c.on("keyup",function(){var e=a.data(c,d);e!==b&&c.val()!==e&&(a.removeData(c,d),c.trigger("keyup-change"))})}function k(c){c.on("mousemove",function(c){var d=L;d!==b&&d.x===c.pageX&&d.y===c.pageY||a(c.target).trigger("mousemove-filtered",c)})}function l(a,c,d){d=d||b;var e;return function(){var b=arguments;window.clearTimeout(e),e=window.setTimeout(function(){c.apply(d,b)},a)}}function m(a,b){var c=l(a,function(a){b.trigger("scroll-debounced",a)});b.on("scroll",function(a){e(a.target,b.get())>=0&&c(a)})}function n(a){a[0]!==document.activeElement&&window.setTimeout(function(){var b,c=a[0],d=a.val().length;a.focus();var e=c.offsetWidth>0||c.offsetHeight>0;e&&c===document.activeElement&&(c.setSelectionRange?c.setSelectionRange(d,d):c.createTextRange&&(b=c.createTextRange(),b.collapse(!1),b.select()))},0)}function o(b){b=a(b)[0];var c=0,d=0;if("selectionStart"in b)c=b.selectionStart,d=b.selectionEnd-c;else if("selection"in document){b.focus();var e=document.selection.createRange();d=document.selection.createRange().text.length,e.moveStart("character",-b.value.length),c=e.text.length-d}return{offset:c,length:d}}function p(a){a.preventDefault(),a.stopPropagation()}function q(a){a.preventDefault(),a.stopImmediatePropagation()}function r(b){if(!I){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);I=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),I.attr("class","select2-sizer"),a(document.body).append(I)}return I.text(b.val()),I.width()}function s(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(f=d(this),f&&g.push(f))})),b.attr("class",g.join(" "))}function t(a,b,c,e){var f=d(a.toUpperCase()).indexOf(d(b.toUpperCase())),g=b.length;return 0>f?void c.push(e(a)):(c.push(e(a.substring(0,f))),c.push(""),c.push(e(a.substring(f,f+g))),c.push(""),void c.push(e(a.substring(f+g,a.length))))}function u(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})}function v(c){var d,e=null,f=c.quietMillis||100,g=c.url,h=this;return function(i){window.clearTimeout(d),d=window.setTimeout(function(){var d=c.data,f=g,j=c.transport||a.fn.select2.ajaxDefaults.transport,k={type:c.type||"GET",cache:c.cache||!1,jsonpCallback:c.jsonpCallback||b,dataType:c.dataType||"json"},l=a.extend({},a.fn.select2.ajaxDefaults.params,k);d=d?d.call(h,i.term,i.page,i.context):null,f="function"==typeof f?f.call(h,i.term,i.page,i.context):f,e&&"function"==typeof e.abort&&e.abort(),c.params&&(a.isFunction(c.params)?a.extend(l,c.params.call(h)):a.extend(l,c.params)),a.extend(l,{url:f,dataType:c.dataType,data:d,success:function(a){var b=c.results(a,i.page,i);i.callback(b)},error:function(a,b,c){var d={hasError:!0,jqXHR:a,textStatus:b,errorThrown:c};i.callback(d)}}),e=j.call(h,l)},f)}}function w(b){var c,d,e=b,f=function(a){return""+a.text};a.isArray(e)&&(d=e,e={results:d}),a.isFunction(e)===!1&&(d=e,e=function(){return d});var g=e();return g.text&&(f=g.text,a.isFunction(f)||(c=g.text,f=function(a){return a[c]})),function(b){var c,d=b.term,g={results:[]};return""===d?void b.callback(e()):(c=function(e,g){var h,i;if(e=e[0],e.children){h={};for(i in e)e.hasOwnProperty(i)&&(h[i]=e[i]);h.children=[],a(e.children).each2(function(a,b){c(b,h.children)}),(h.children.length||b.matcher(d,f(h),e))&&g.push(h)}else b.matcher(d,f(e),e)&&g.push(e)},a(e().results).each2(function(a,b){c(b,g.results)}),void b.callback(g))}}function x(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]},h=d?c(e):c;a.isArray(h)&&(a(h).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g))}}function y(b,c){if(a.isFunction(b))return!0;if(!b)return!1;if("string"==typeof b)return!0;throw new Error(c+" must be a string, function, or falsy value")}function z(b,c){if(a.isFunction(b)){var d=Array.prototype.slice.call(arguments,2);return b.apply(c,d)}return b}function A(b){var c=0;return a.each(b,function(a,b){b.children?c+=A(b.children):c++}),c}function B(a,c,d,e){var f,h,i,j,k,l=a,m=!1;if(!e.createSearchChoice||!e.tokenSeparators||e.tokenSeparators.length<1)return b;for(;;){for(h=-1,i=0,j=e.tokenSeparators.length;j>i&&(k=e.tokenSeparators[i],h=a.indexOf(k),!(h>=0));i++);if(0>h)break;if(f=a.substring(0,h),a=a.substring(h+k.length),f.length>0&&(f=e.createSearchChoice.call(this,f,c),f!==b&&null!==f&&e.id(f)!==b&&null!==e.id(f))){for(m=!1,i=0,j=c.length;j>i;i++)if(g(e.id(f),e.id(c[i]))){m=!0;break}m||d(f)}}return l!==a?a:void 0}function C(){var b=this;a.each(arguments,function(a,c){b[c].remove(),b[c]=null})}function D(b,c){var d=function(){};return d.prototype=new b,d.prototype.constructor=d,d.prototype.parent=b.prototype,d.prototype=a.extend(d.prototype,c),d}if(window.Select2===b){var E,F,G,H,I,J,K,L={x:0,y:0},M={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case M.LEFT:case M.RIGHT:case M.UP:case M.DOWN:return!0}return!1},isControl:function(a){var b=a.which;switch(b){case M.SHIFT:case M.CTRL:case M.ALT:return!0}return!!a.metaKey},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&123>=a}},N="
    ",O={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};J=a(document),H=function(){var a=1;return function(){return a++}}(),E=D(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,g=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&c.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=a(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=a("",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+H()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",c.element.attr("title")),this.body=a(document.body),s(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",c.element.attr("style")),this.container.css(z(c.containerCss,this.opts.element)),this.container.addClass(z(c.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",p),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),s(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(z(c.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",p),this.results=d=this.container.find(g),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",p),k(this.results),this.dropdown.on("mousemove-filtered",g,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",g,this.bind(function(a){this._touchEvent=!0,this.highlightUnderEvent(a)})),this.dropdown.on("touchmove",g,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",g,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(a){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),m(80,this.results),this.dropdown.on("scroll-debounced",g,this.bind(this.loadMoreIfNeeded)),a(this.container).on("change",".select2-input",function(a){a.stopPropagation()}),a(this.dropdown).on("change",".select2-input",function(a){a.stopPropagation()}),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&0>=f-e?(d.scrollTop(0),p(a)):0>e&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),p(a))}),j(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",g,this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(a){a.stopPropagation()}),this.lastSearchTerm=b,a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==c.maximumInputLength&&this.search.attr("maxlength",c.maximumInputLength);var h=c.element.prop("disabled");h===b&&(h=!1),this.enable(!h);var i=c.element.prop("readonly");i===b&&(i=!1),this.readonly(i),K=K||f(),this.autofocus=c.element.prop("autofocus"),c.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",c.searchInputPlaceholder)},destroy:function(){var a=this.opts.element,c=a.data("select2"),d=this;this.close(),a.length&&a[0].detachEvent&&d._sync&&a.each(function(){d._sync&&this.detachEvent("onpropertychange",d._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,c!==b&&(c.container.remove(),c.liveRegion.remove(),c.dropdown.remove(),a.removeData("select2").off(".select2"),a.is("input[type='hidden']")?a.css("display",""):(a.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?a.attr({tabindex:this.elementTabIndex}):a.removeAttr("tabindex"),a.show())),C.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(a){return a.is("option")?{id:a.prop("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:g(a.attr("locked"),"locked")||g(a.data("locked"),!0)}:a.is("optgroup")?{text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")}:void 0},prepareOpts:function(c){var d,e,f,i,j=this;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a ","
    "," ","
      ","
    ","
    "].join(""));return b},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var b,c,d;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),b=this.search.get(0),b.createTextRange?(c=b.createTextRange(),c.collapse(!1),c.select()):b.setSelectionRange&&(d=this.search.val().length,b.setSelectionRange(d,d))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){a("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),C.call(this,"selection","focusser")},initContainer:function(){var b,d,e=this.container,f=this.dropdown,g=H();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=b=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),b.find(".select2-chosen").attr("id","select2-chosen-"+g),this.focusser.attr("aria-labelledby","select2-chosen-"+g),this.results.attr("id","select2-results-"+g),this.search.attr("aria-owns","select2-results-"+g),this.focusser.attr("id","s2id_autogen"+g),d=a("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(d.text()).attr("for",this.focusser.attr("id"));var h=this.opts.element.attr("title");this.opts.element.attr("title",h||d.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(a("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&229!=a.keyCode){if(a.which===M.PAGE_UP||a.which===M.PAGE_DOWN)return void p(a);switch(a.which){case M.UP:case M.DOWN:return this.moveHighlight(a.which===M.UP?-1:1),void p(a);case M.ENTER:return this.selectHighlighted(),void p(a);case M.TAB:return void this.selectHighlighted({noFocus:!0});case M.ESC:return this.cancel(a),void p(a)}}})),this.search.on("blur",this.bind(function(a){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&a.which!==M.TAB&&!M.isControl(a)&&!M.isFunctionKey(a)&&a.which!==M.ESC){if(this.opts.openOnEnter===!1&&a.which===M.ENTER)return void p(a);if(a.which==M.DOWN||a.which==M.UP||a.which==M.ENTER&&this.opts.openOnEnter){if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return;return this.open(),void p(a)}return a.which==M.DELETE||a.which==M.BACKSPACE?(this.opts.allowClear&&this.clear(),void p(a)):void 0}})),j(this.focusser),this.focusser.on("keyup-change input",this.bind(function(a){if(this.opts.minimumResultsForSearch>=0){if(a.stopPropagation(),this.opened())return;this.open()}})),b.on("mousedown touchstart","abbr",this.bind(function(a){this.isInterfaceEnabled()&&(this.clear(),q(a),this.close(),this.selection&&this.selection.focus())})),this.supportsTouchEvents?b.on("mousedown touchstart",this.bind(function(d){c(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),p(d)})):b.on("mousedown",this.bind(function(d){c(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),p(d)})),f.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),b.on("focus",this.bind(function(a){p(a)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(a.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(b){var c=this.selection.data("select2-data");if(c){var d=a.Event("select2-clearing");if(this.opts.element.trigger(d),d.isDefaultPrevented())return;var e=this.getPlaceholderOption();this.opts.element.val(e?e.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),b!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var a=this;this.opts.initSelection.call(null,this.opts.element,function(c){c!==b&&null!==c&&(a.updateSelection(c),a.close(),a.setPlaceholder(),a.lastSearchTerm=a.search.val())})}},isPlaceholderOptionSelected:function(){var a;return this.getPlaceholder()===b?!1:(a=this.getPlaceholderOption())!==b&&a.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val()},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=a.find("option").filter(function(){return this.selected&&!this.disabled});b(c.optionToData(d))}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var h=g(e,b.id(d));return h&&(f=d),h},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&a!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(a,b,c){var d=0,e=this;if(this.findHighlightableChoices().each2(function(a,b){return g(e.id(b.data("select2-data")),e.opts.element.val())?(d=a,!1):void 0}),c!==!1&&(b===!0&&d>=0?this.highlight(d):this.highlight(0)),b===!0){var f=this.opts.minimumResultsForSearch;f>=0&&this.showSearch(A(a.results)>=f)}},showSearch:function(b){this.showSearchInput!==b&&(this.showSearchInput=b,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!b),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!b),a(this.dropdown,this.container).toggleClass("select2-with-searchbox",b))},onSelect:function(a,b){if(this.triggerSelect(a)){var c=this.opts.element.val(),d=this.data();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"select2-selected",val:this.id(a),choice:a}),this.lastSearchTerm=this.search.val(),this.close(),b&&b.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),g(c,this.id(a))||this.triggerChange({added:a,removed:d})}},updateSelection:function(a){var c,d,e=this.selection.find(".select2-chosen");this.selection.data("select2-data",a),e.empty(),null!==a&&(c=this.opts.formatSelection(a,e,this.opts.escapeMarkup)),c!==b&&e.append(c),d=this.opts.formatSelectionCssClass(a,e),d!==b&&e.addClass(d),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var a,c=!1,d=null,e=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a "," ","","
    ","
      ","
    ","
    "].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=[];a.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(a,b){d.push(c.optionToData(b))}),b(d)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=h(c.val(),b.separator,b.transformVal),f=[];b.query({matcher:function(c,d,h){var i=a.grep(e,function(a){return g(a,b.id(h))}).length;return i&&f.push(h),i},callback:a.isFunction(d)?function(){for(var a=[],c=0;c0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.open(),this.focusSearch(),b.preventDefault()))})),this.container.on("focus",c,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var a=this;this.opts.initSelection.call(null,this.opts.element,function(c){c!==b&&null!==c&&(a.updateSelection(c),a.close(),a.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder(),c=this.getMaxSearchWidth();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(c>0?c:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c={},d=[],e=this;a(b).each(function(){e.id(this)in c||(c[e.id(this)]=0,d.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(d),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer.call(this,a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,b){this.triggerSelect(a)&&""!==a.text&&(this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(a,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),b&&b.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(b){var c=this.getVal(),d=this;a(b).each(function(){c.push(d.createChoice(this))}),this.setVal(c)},createChoice:function(c){var d,e,f=!c.locked,g=a("
  • "),h=a("
  • "),i=f?g:h,j=this.id(c);return d=this.opts.formatSelection(c,i.find("div"),this.opts.escapeMarkup),d!=b&&i.find("div").replaceWith(a("
    ").html(d)),e=this.opts.formatSelectionCssClass(c,i.find("div")),e!=b&&i.addClass(e),f&&i.find(".select2-search-choice-close").on("mousedown",p).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),p(b),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),i.data("select2-data",c),i.insertBefore(this.searchContainer),j},unselect:function(b){var c,d,f=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(c=b.data("select2-data")){var g=a.Event("select2-removing");if(g.val=this.id(c),g.choice=c,this.opts.element.trigger(g),g.isDefaultPrevented())return!1;for(;(d=e(this.id(c),f))>=0;)f.splice(d,1),this.setVal(f),this.select&&this.postprocessResults();return b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}),!0}},postprocessResults:function(a,b,c){var d=this.getVal(),f=this.results.find(".select2-result"),g=this.results.find(".select2-result-with-children"),h=this;f.each2(function(a,b){var c=h.id(b.data("select2-data"));e(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),g.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&c!==!1&&this.opts.closeOnSelect===!0&&h.highlight(0),!this.opts.createSearchChoice&&!f.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&y(h.opts.formatNoMatches,"formatNoMatches")&&this.results.append("
  • "+z(h.opts.formatNoMatches,h.opts.element,h.search.val())+"
  • ")},getMaxSearchWidth:function(){return this.selection.width()-i(this.search)},resizeSearch:function(){var a,b,c,d,e,f=i(this.search);a=r(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(Math.floor(e))},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),h(a,this.opts.separator,this.opts.transformVal))},setVal:function(b){if(this.select)this.select.val(b);else{var c=[],d={};a(b).each(function(){this in d||(c.push(this),d[this]=0)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator))}},buildChangeDetails:function(a,b){for(var b=b.slice(0),a=a.slice(0),c=0;c. Attach to instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var d,e,f=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(e=this.data(),b||(b=[]),d=a.map(b,function(a){return f.opts.id(a)}),this.setVal(d),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(e,this.data())),void 0)}}),a.fn.select2=function(){var c,d,f,g,h,i=Array.prototype.slice.call(arguments,0),j=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],k=["opened","isFocused","container","dropdown"],l=["val","data"],m={search:"externalSearch"};return this.each(function(){if(0===i.length||"object"==typeof i[0])c=0===i.length?{}:a.extend({},i[0]),c.element=a(this),"select"===c.element.get(0).tagName.toLowerCase()?h=c.element.prop("multiple"):(h=c.multiple||!1,"tags"in c&&(c.multiple=h=!0)),d=h?new window.Select2["class"].multi:new window.Select2["class"].single,d.init(c);else{if("string"!=typeof i[0])throw"Invalid arguments to select2 plugin: "+i;if(e(i[0],j)<0)throw"Unknown method: "+i[0];if(g=b,d=a(this).data("select2"),d===b)return;if(f=i[0],"container"===f?g=d.container:"dropdown"===f?g=d.dropdown:(m[f]&&(f=m[f]),g=d[f].apply(d,i.slice(1))),e(i[0],k)>=0||e(i[0],l)>=0&&1==i.length)return!1}}),g===b?this:g},a.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return t(this.text(a),c.term,e,d),e.join("")},transformVal:function(b){return a.trim(b)},formatSelection:function(a,c,d){return a?d(this.text(a)):b},sortResults:function(a,b,c){return a},formatResultCssClass:function(a){return a.css},formatSelectionCssClass:function(a,c){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a==b?null:a.id},text:function(b){return b&&this.data&&this.data.text?a.isFunction(this.data.text)?this.data.text(b):b[this.data.text]:b.text},matcher:function(a,b){return d(""+b).toUpperCase().indexOf(d(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:B,escapeMarkup:u,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(a){return null},nextSearchTerm:function(a,c){return b},searchInputPlaceholder:"", -createSearchChoicePosition:"top",shouldFocusInput:function(a){var b="ontouchstart"in window||navigator.msMaxTouchPoints>0;return b?!(a.opts.minimumResultsForSearch<0):!0}},a.fn.select2.locales=[],a.fn.select2.locales.en={formatMatches:function(a){return 1===a?"One result is available, press enter to select it.":a+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(a,b,c){return"Loading failed"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" or more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(a){return"Loading more results…"},formatSearching:function(){return"Searching…"}},a.extend(a.fn.select2.defaults,a.fn.select2.locales.en),a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:v,local:w,tags:x},util:{debounce:l,markMatch:t,escapeMarkup:u,stripDiacritics:d},"class":{"abstract":E,single:F,multi:G}}}}(jQuery); \ No newline at end of file +!function(a){"undefined"==typeof a.fn.each2&&a.extend(a.fn,{each2:function(b){for(var c=a([0]),d=-1,e=this.length;++d=0&&c(a)})}function n(a){a[0]!==document.activeElement&&window.setTimeout(function(){var b,c=a[0],d=a.val().length;a.focus();var e=c.offsetWidth>0||c.offsetHeight>0;e&&c===document.activeElement&&(c.setSelectionRange?c.setSelectionRange(d,d):c.createTextRange&&(b=c.createTextRange(),b.collapse(!1),b.select()))},0)}function o(b){b=a(b)[0];var c=0,d=0;if("selectionStart"in b)c=b.selectionStart,d=b.selectionEnd-c;else if("selection"in document){b.focus();var e=document.selection.createRange();d=document.selection.createRange().text.length,e.moveStart("character",-b.value.length),c=e.text.length-d}return{offset:c,length:d}}function p(a){a.preventDefault(),a.stopPropagation()}function q(a){a.preventDefault(),a.stopImmediatePropagation()}function r(b){if(!I){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);I=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),I.attr("class","select2-sizer"),a(document.body).append(I)}return I.text(b.val()),I.width()}function s(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(f=d(this),f&&g.push(f))})),b.attr("class",g.join(" "))}function t(a,b,c,e){var f=d(a.toUpperCase()).indexOf(d(b.toUpperCase())),g=b.length;return f<0?void c.push(e(a)):(c.push(e(a.substring(0,f))),c.push(""),c.push(e(a.substring(f,f+g))),c.push(""),void c.push(e(a.substring(f+g,a.length))))}function u(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})}function v(c){var d,e=null,f=c.quietMillis||100,g=c.url,h=this;return function(i){window.clearTimeout(d),d=window.setTimeout(function(){var d=c.data,f=g,j=c.transport||a.fn.select2.ajaxDefaults.transport,k={type:c.type||"GET",cache:c.cache||!1,jsonpCallback:c.jsonpCallback||b,dataType:c.dataType||"json"},l=a.extend({},a.fn.select2.ajaxDefaults.params,k);d=d?d.call(h,i.term,i.page,i.context):null,f="function"==typeof f?f.call(h,i.term,i.page,i.context):f,e&&"function"==typeof e.abort&&e.abort(),c.params&&(a.isFunction(c.params)?a.extend(l,c.params.call(h)):a.extend(l,c.params)),a.extend(l,{url:f,dataType:c.dataType,data:d,success:function(a){var b=c.results(a,i.page,i);i.callback(b)},error:function(a,b,c){var d={hasError:!0,jqXHR:a,textStatus:b,errorThrown:c};i.callback(d)}}),e=j.call(h,l)},f)}}function w(b){var c,d,e=b,f=function(a){return""+a.text};a.isArray(e)&&(d=e,e={results:d}),a.isFunction(e)===!1&&(d=e,e=function(){return d});var g=e();return g.text&&(f=g.text,a.isFunction(f)||(c=g.text,f=function(a){return a[c]})),function(b){var c,d=b.term,g={results:[]};return""===d?void b.callback(e()):(c=function(e,g){var h,i;if(e=e[0],e.children){h={};for(i in e)e.hasOwnProperty(i)&&(h[i]=e[i]);h.children=[],a(e.children).each2(function(a,b){c(b,h.children)}),(h.children.length||b.matcher(d,f(h),e))&&g.push(h)}else b.matcher(d,f(e),e)&&g.push(e)},a(e().results).each2(function(a,b){c(b,g.results)}),void b.callback(g))}}function x(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]},h=d?c(e):c;a.isArray(h)&&(a(h).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g))}}function y(b,c){if(a.isFunction(b))return!0;if(!b)return!1;if("string"==typeof b)return!0;throw new Error(c+" must be a string, function, or falsy value")}function z(b,c){if(a.isFunction(b)){var d=Array.prototype.slice.call(arguments,2);return b.apply(c,d)}return b}function A(b){var c=0;return a.each(b,function(a,b){b.children?c+=A(b.children):c++}),c}function B(a,c,d,e){var f,h,i,j,k,l=a,m=!1;if(!e.createSearchChoice||!e.tokenSeparators||e.tokenSeparators.length<1)return b;for(;;){for(h=-1,i=0,j=e.tokenSeparators.length;i=0));i++);if(h<0)break;if(f=a.substring(0,h),a=a.substring(h+k.length),f.length>0&&(f=e.createSearchChoice.call(this,f,c),f!==b&&null!==f&&e.id(f)!==b&&null!==e.id(f))){for(m=!1,i=0,j=c.length;i=112&&a<=123}},N="
    ",O={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};J=a(document),H=function(){var a=1;return function(){return a++}}(),E=D(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,g=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&c.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=a(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=a("",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+H()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",c.element.attr("title")),this.body=a(document.body),s(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",c.element.attr("style")),this.container.css(z(c.containerCss,this.opts.element)),this.container.addClass(z(c.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",p),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),s(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(z(c.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",p),this.results=d=this.container.find(g),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",p),k(this.results),this.dropdown.on("mousemove-filtered",g,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",g,this.bind(function(a){this._touchEvent=!0,this.highlightUnderEvent(a)})),this.dropdown.on("touchmove",g,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",g,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(a){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),m(80,this.results),this.dropdown.on("scroll-debounced",g,this.bind(this.loadMoreIfNeeded)),a(this.container).on("change",".select2-input",function(a){a.stopPropagation()}),a(this.dropdown).on("change",".select2-input",function(a){a.stopPropagation()}),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&f-e<=0?(d.scrollTop(0),p(a)):e<0&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),p(a))}),j(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",g,this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(a){a.stopPropagation()}),this.lastSearchTerm=b,a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==c.maximumInputLength&&this.search.attr("maxlength",c.maximumInputLength);var h=c.element.prop("disabled");h===b&&(h=!1),this.enable(!h);var i=c.element.prop("readonly");i===b&&(i=!1),this.readonly(i),K=K||f(),this.autofocus=c.element.prop("autofocus"),c.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",c.searchInputPlaceholder)},destroy:function(){var a=this.opts.element,c=a.data("select2"),d=this;this.close(),a.length&&a[0].detachEvent&&d._sync&&a.each(function(){d._sync&&this.detachEvent("onpropertychange",d._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,c!==b&&(c.container.remove(),c.liveRegion.remove(),c.dropdown.remove(),a.removeData("select2").off(".select2"),a.is("input[type='hidden']")?a.css("display",""):(a.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?a.attr({tabindex:this.elementTabIndex}):a.removeAttr("tabindex"),a.show())),C.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(a){return a.is("option")?{id:a.prop("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:g(a.attr("locked"),"locked")||g(a.data("locked"),!0)}:a.is("optgroup")?{text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")}:void 0},prepareOpts:function(c){var d,e,f,i,j=this;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a ","
    "," ","
      ","
    ","
    "].join(""));return b},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var b,c,d;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),b=this.search.get(0),b.createTextRange?(c=b.createTextRange(),c.collapse(!1),c.select()):b.setSelectionRange&&(d=this.search.val().length,b.setSelectionRange(d,d))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){a("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),C.call(this,"selection","focusser")},initContainer:function(){var b,d,e=this.container,f=this.dropdown,g=H();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=b=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),b.find(".select2-chosen").attr("id","select2-chosen-"+g),this.focusser.attr("aria-labelledby","select2-chosen-"+g),this.results.attr("id","select2-results-"+g),this.search.attr("aria-owns","select2-results-"+g),this.focusser.attr("id","s2id_autogen"+g),d=a("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(d.text()).attr("for",this.focusser.attr("id"));var h=this.opts.element.attr("title");this.opts.element.attr("title",h||d.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(a("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&229!=a.keyCode){if(a.which===M.PAGE_UP||a.which===M.PAGE_DOWN)return void p(a);switch(a.which){case M.UP:case M.DOWN:return this.moveHighlight(a.which===M.UP?-1:1),void p(a);case M.ENTER:return this.selectHighlighted(),void p(a);case M.TAB:return void this.selectHighlighted({noFocus:!0});case M.ESC:return this.cancel(a),void p(a)}}})),this.search.on("blur",this.bind(function(a){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&a.which!==M.TAB&&!M.isControl(a)&&!M.isFunctionKey(a)&&a.which!==M.ESC){if(this.opts.openOnEnter===!1&&a.which===M.ENTER)return void p(a);if(a.which==M.DOWN||a.which==M.UP||a.which==M.ENTER&&this.opts.openOnEnter){if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return;return this.open(),void p(a)}return a.which==M.DELETE||a.which==M.BACKSPACE?(this.opts.allowClear&&this.clear(),void p(a)):void 0}})),j(this.focusser),this.focusser.on("keyup-change input",this.bind(function(a){if(this.opts.minimumResultsForSearch>=0){if(a.stopPropagation(),this.opened())return;this.open()}})),b.on("mousedown touchstart","abbr",this.bind(function(a){this.isInterfaceEnabled()&&(this.clear(),q(a),this.close(),this.selection&&this.selection.focus())})),this.supportsTouchEvents?b.on("mousedown touchstart",this.bind(function(d){c(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),p(d)})):b.on("mousedown",this.bind(function(d){c(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),p(d)})),f.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),b.on("focus",this.bind(function(a){p(a)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(a.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(b){var c=this.selection.data("select2-data");if(c){var d=a.Event("select2-clearing");if(this.opts.element.trigger(d),d.isDefaultPrevented())return;var e=this.getPlaceholderOption();this.opts.element.val(e?e.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),b!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var a=this;this.opts.initSelection.call(null,this.opts.element,function(c){c!==b&&null!==c&&(a.updateSelection(c),a.close(),a.setPlaceholder(),a.lastSearchTerm=a.search.val())})}},isPlaceholderOptionSelected:function(){var a;return this.getPlaceholder()!==b&&((a=this.getPlaceholderOption())!==b&&a.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=a.find("option").filter(function(){return this.selected&&!this.disabled});b(c.optionToData(d))}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var h=g(e,b.id(d));return h&&(f=d),h},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&a!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(a,b,c){var d=0,e=this;if(this.findHighlightableChoices().each2(function(a,b){if(g(e.id(b.data("select2-data")),e.opts.element.val()))return d=a,!1}),c!==!1&&(b===!0&&d>=0?this.highlight(d):this.highlight(0)),b===!0){var f=this.opts.minimumResultsForSearch;f>=0&&this.showSearch(A(a.results)>=f)}},showSearch:function(b){this.showSearchInput!==b&&(this.showSearchInput=b,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!b),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!b),a(this.dropdown,this.container).toggleClass("select2-with-searchbox",b))},onSelect:function(a,b){if(this.triggerSelect(a)){var c=this.opts.element.val(),d=this.data();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"select2-selected",val:this.id(a),choice:a}),this.lastSearchTerm=this.search.val(),this.close(),b&&b.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),g(c,this.id(a))||this.triggerChange({added:a,removed:d})}},updateSelection:function(a){var c,d,e=this.selection.find(".select2-chosen");this.selection.data("select2-data",a),e.empty(),null!==a&&(c=this.opts.formatSelection(a,e,this.opts.escapeMarkup)),c!==b&&e.append(c),d=this.opts.formatSelectionCssClass(a,e),d!==b&&e.addClass(d),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var a,c=!1,d=null,e=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a "," ","","
    ","
      ","
    ","
    "].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=[];a.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(a,b){d.push(c.optionToData(b))}),b(d)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=h(c.val(),b.separator,b.transformVal),f=[];b.query({matcher:function(c,d,h){var i=a.grep(e,function(a){return g(a,b.id(h))}).length;return i&&f.push(h),i},callback:a.isFunction(d)?function(){for(var a=[],c=0;c0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.open(),this.focusSearch(),b.preventDefault()))})),this.container.on("focus",c,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var a=this;this.opts.initSelection.call(null,this.opts.element,function(c){c!==b&&null!==c&&(a.updateSelection(c),a.close(),a.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder(),c=this.getMaxSearchWidth();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(c>0?c:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c={},d=[],e=this;a(b).each(function(){e.id(this)in c||(c[e.id(this)]=0,d.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(d),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer.call(this,a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,b){this.triggerSelect(a)&&""!==a.text&&(this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(a,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),b&&b.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(b){var c=this.getVal(),d=this;a(b).each(function(){c.push(d.createChoice(this))}),this.setVal(c)},createChoice:function(c){var d,e,f=!c.locked,g=a("
  • "),h=a("
  • "),i=f?g:h,j=this.id(c);return d=this.opts.formatSelection(c,i.find("div"),this.opts.escapeMarkup),d!=b&&i.find("div").replaceWith(a("
    ").html(d)),e=this.opts.formatSelectionCssClass(c,i.find("div")),e!=b&&i.addClass(e),f&&i.find(".select2-search-choice-close").on("mousedown",p).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),p(b),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),i.data("select2-data",c),i.insertBefore(this.searchContainer),j},unselect:function(b){var c,d,f=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(c=b.data("select2-data")){var g=a.Event("select2-removing");if(g.val=this.id(c),g.choice=c,this.opts.element.trigger(g),g.isDefaultPrevented())return!1;for(;(d=e(this.id(c),f))>=0;)f.splice(d,1),this.setVal(f),this.select&&this.postprocessResults();return b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}),!0}},postprocessResults:function(a,b,c){var d=this.getVal(),f=this.results.find(".select2-result"),g=this.results.find(".select2-result-with-children"),h=this;f.each2(function(a,b){var c=h.id(b.data("select2-data"));e(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),g.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),this.highlight()==-1&&c!==!1&&this.opts.closeOnSelect===!0&&h.highlight(0),!this.opts.createSearchChoice&&!f.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&y(h.opts.formatNoMatches,"formatNoMatches")&&this.results.append("
  • "+z(h.opts.formatNoMatches,h.opts.element,h.search.val())+"
  • ")},getMaxSearchWidth:function(){return this.selection.width()-i(this.search)},resizeSearch:function(){var a,b,c,d,e,f=i(this.search);a=r(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,e. Attach to instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var d,e,f=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(e=this.data(),b||(b=[]),d=a.map(b,function(a){return f.opts.id(a)}),this.setVal(d),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(e,this.data())),void 0)}}),a.fn.select2=function(){var c,d,f,g,h,i=Array.prototype.slice.call(arguments,0),j=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],k=["opened","isFocused","container","dropdown"],l=["val","data"],m={search:"externalSearch"};return this.each(function(){if(0===i.length||"object"==typeof i[0])c=0===i.length?{}:a.extend({},i[0]),c.element=a(this),"select"===c.element.get(0).tagName.toLowerCase()?h=c.element.prop("multiple"):(h=c.multiple||!1,"tags"in c&&(c.multiple=h=!0)),d=h?new window.Select2["class"].multi:new window.Select2["class"].single,d.init(c);else{if("string"!=typeof i[0])throw"Invalid arguments to select2 plugin: "+i;if(e(i[0],j)<0)throw"Unknown method: "+i[0];if(g=b,d=a(this).data("select2"),d===b)return;if(f=i[0],"container"===f?g=d.container:"dropdown"===f?g=d.dropdown:(m[f]&&(f=m[f]),g=d[f].apply(d,i.slice(1))),e(i[0],k)>=0||e(i[0],l)>=0&&1==i.length)return!1}}),g===b?this:g},a.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return t(this.text(a),c.term,e,d),e.join("")},transformVal:function(b){return a.trim(b)},formatSelection:function(a,c,d){return a?d(this.text(a)):b},sortResults:function(a,b,c){return a},formatResultCssClass:function(a){return a.css},formatSelectionCssClass:function(a,c){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a==b?null:a.id},text:function(b){return b&&this.data&&this.data.text?a.isFunction(this.data.text)?this.data.text(b):b[this.data.text]:b.text},matcher:function(a,b){return d(""+b).toUpperCase().indexOf(d(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:B,escapeMarkup:u,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(a){return null},nextSearchTerm:function(a,c){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(a){ +var b="ontouchstart"in window||navigator.msMaxTouchPoints>0;return!b||!(a.opts.minimumResultsForSearch<0)}},a.fn.select2.locales=[],a.fn.select2.locales.en={formatMatches:function(a){return 1===a?"One result is available, press enter to select it.":a+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(a,b,c){return"Loading failed"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" or more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(a){return"Loading more results…"},formatSearching:function(){return"Searching…"}},a.extend(a.fn.select2.defaults,a.fn.select2.locales.en),a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:v,local:w,tags:x},util:{debounce:l,markMatch:t,escapeMarkup:u,stripDiacritics:d},"class":{"abstract":E,single:F,multi:G}}}}(jQuery); \ No newline at end of file diff --git a/assets/js/zeroclipboard/jquery.zeroclipboard.min.js b/assets/js/zeroclipboard/jquery.zeroclipboard.min.js index 6f77845220e..cb50c94cc34 100644 --- a/assets/js/zeroclipboard/jquery.zeroclipboard.min.js +++ b/assets/js/zeroclipboard/jquery.zeroclipboard.min.js @@ -14,4 +14,4 @@ * http://zeroclipboard.org/ * v2.1.2 */ -!function(a,b){var c,e=a,f=e.document,g=e.navigator,h=e.setTimeout,i=e.encodeURIComponent,j=e.ActiveXObject,k=e.Number.parseInt||e.parseInt,l=e.Number.parseFloat||e.parseFloat,m=e.Number.isNaN||e.isNaN,n=e.Math.round,o=e.Date.now,p=e.Object.keys,q=e.Object.defineProperty,r=e.Object.prototype.hasOwnProperty,s=e.Array.prototype.slice,t=function(a){return s.call(a,0)},u=function(){var a,c,d,e,f,g,h=t(arguments),i=h[0]||{};for(a=1,c=h.length;c>a;a++)if(null!=(d=h[a]))for(e in d)r.call(d,e)&&(f=i[e],g=d[e],i!==g&&g!==b&&(i[e]=g));return i},v=function(a){var b,c,d,e;if("object"!=typeof a||null==a)b=a;else if("number"==typeof a.length)for(b=[],c=0,d=a.length;d>c;c++)r.call(a,c)&&(b[c]=v(a[c]));else{b={};for(e in a)r.call(a,e)&&(b[e]=v(a[e]))}return b},w=function(a,b){for(var c={},d=0,e=b.length;e>d;d++)b[d]in a&&(c[b[d]]=a[b[d]]);return c},x=function(a,b){var c={};for(var d in a)-1===b.indexOf(d)&&(c[d]=a[d]);return c},y=function(a){if(a)for(var b in a)r.call(a,b)&&delete a[b];return a},z=function(a,b){if(a&&1===a.nodeType&&a.ownerDocument&&b&&(1===b.nodeType&&b.ownerDocument&&b.ownerDocument===a.ownerDocument||9===b.nodeType&&!b.ownerDocument&&b===a.ownerDocument))do{if(a===b)return!0;a=a.parentNode}while(a);return!1},A={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,unavailable:null,deactivated:null,overdue:null,ready:null},B="11.0.0",C={},D={},E=null,F={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate","flash-overdue":"Flash communication was established but NOT within the acceptable time limit"}},G=function(){var a,b,c,d,e="ZeroClipboard.swf";if(!f.currentScript||!(d=f.currentScript.src)){var g=f.getElementsByTagName("script");if("readyState"in g[0])for(a=g.length;a--&&("interactive"!==g[a].readyState||!(d=g[a].src)););else if("loading"===f.readyState)d=g[g.length-1].src;else{for(a=g.length;a--;){if(c=g[a].src,!c){b=null;break}if(c=c.split("#")[0].split("?")[0],c=c.slice(0,c.lastIndexOf("/")+1),null==b)b=c;else if(b!==c){b=null;break}}null!==b&&(d=b)}}return d&&(d=d.split("#")[0].split("?")[0],e=d.slice(0,d.lastIndexOf("/")+1)+e),e}(),H={swfPath:G,trustedDomains:a.location.host?[a.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},I=function(a){if("object"==typeof a&&null!==a)for(var b in a)if(r.call(a,b))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(b))H[b]=a[b];else if(null==A.bridge)if("containerId"===b||"swfObjectId"===b){if(!X(a[b]))throw new Error("The specified `"+b+"` value is not valid as an HTML4 Element ID");H[b]=a[b]}else H[b]=a[b];{if("string"!=typeof a||!a)return v(H);if(r.call(H,a))return H[a]}},J=function(){return{browser:w(g,["userAgent","platform","appName"]),flash:x(A,["bridge"]),zeroclipboard:{version:ya.version,config:ya.config()}}},K=function(){return!!(A.disabled||A.outdated||A.unavailable||A.deactivated)},L=function(a,b){var c,d,e,f={};if("string"==typeof a&&a)e=a.toLowerCase().split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)r.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&ya.on(c,a[c]);if(e&&e.length){for(c=0,d=e.length;d>c;c++)a=e[c].replace(/^on/,""),f[a]=!0,C[a]||(C[a]=[]),C[a].push(b);if(f.ready&&A.ready&&ya.emit({type:"ready"}),f.error){var g=["disabled","outdated","unavailable","deactivated","overdue"];for(c=0,d=g.length;d>c;c++)if(A[g[c]]===!0){ya.emit({type:"error",name:"flash-"+g[c]});break}}}return ya},M=function(a,b){var c,d,e,f,g;if(0===arguments.length)f=p(C);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)r.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&ya.off(c,a[c]);if(f&&f.length)for(c=0,d=f.length;d>c;c++)if(a=f[c].toLowerCase().replace(/^on/,""),g=C[a],g&&g.length)if(b)for(e=g.indexOf(b);-1!==e;)g.splice(e,1),e=g.indexOf(b,e);else g.length=0;return ya},N=function(a){var b;return b="string"==typeof a&&a?v(C[a])||null:v(C)},O=function(a){var b,c,d;return a=Y(a),a&&!ca(a)?"ready"===a.type&&A.overdue===!0?ya.emit({type:"error",name:"flash-overdue"}):(b=u({},a),ba.call(this,b),"copy"===a.type&&(d=ia(D),c=d.data,E=d.formatMap),c):void 0},P=function(){if("boolean"!=typeof A.ready&&(A.ready=!1),!ya.isFlashUnusable()&&null===A.bridge){var a=H.flashLoadTimeout;"number"==typeof a&&a>=0&&h(function(){"boolean"!=typeof A.deactivated&&(A.deactivated=!0),A.deactivated===!0&&ya.emit({type:"error",name:"flash-deactivated"})},a),A.overdue=!1,ga()}},Q=function(){ya.clearData(),ya.blur(),ya.emit("destroy"),ha(),ya.off()},R=function(a,b){var c;if("object"==typeof a&&a&&"undefined"==typeof b)c=a,ya.clearData();else{if("string"!=typeof a||!a)return;c={},c[a]=b}for(var d in c)"string"==typeof d&&d&&r.call(c,d)&&"string"==typeof c[d]&&c[d]&&(D[d]=c[d])},S=function(a){"undefined"==typeof a?(y(D),E=null):"string"==typeof a&&r.call(D,a)&&delete D[a]},T=function(a){return"undefined"==typeof a?v(D):"string"==typeof a&&r.call(D,a)?D[a]:void 0},U=function(a){if(a&&1===a.nodeType){c&&(qa(c,H.activeClass),c!==a&&qa(c,H.hoverClass)),c=a,pa(a,H.hoverClass);var b=a.getAttribute("title")||H.title;if("string"==typeof b&&b){var d=fa(A.bridge);d&&d.setAttribute("title",b)}var e=H.forceHandCursor===!0||"pointer"===ra(a,"cursor");va(e),ua()}},V=function(){var a=fa(A.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.top="1px"),c&&(qa(c,H.hoverClass),qa(c,H.activeClass),c=null)},W=function(){return c||null},X=function(a){return"string"==typeof a&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},Y=function(a){var b;if("string"==typeof a&&a?(b=a,a={}):"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(b=a.type),b){u(a,{type:b.toLowerCase(),target:a.target||c||null,relatedTarget:a.relatedTarget||null,currentTarget:A&&A.bridge||null,timeStamp:a.timeStamp||o()||null});var d=F[a.type];return"error"===a.type&&a.name&&d&&(d=d[a.name]),d&&(a.message=d),"ready"===a.type&&u(a,{target:null,version:A.version}),"error"===a.type&&(/^flash-(disabled|outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{target:null,minimumVersion:B}),/^flash-(outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{version:A.version})),"copy"===a.type&&(a.clipboardData={setData:ya.setData,clearData:ya.clearData}),"aftercopy"===a.type&&(a=ja(a,E)),a.target&&!a.relatedTarget&&(a.relatedTarget=Z(a.target)),a=$(a)}},Z=function(a){var b=a&&a.getAttribute&&a.getAttribute("data-clipboard-target");return b?f.getElementById(b):null},$=function(a){if(a&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)){var c=a.target,d="_mouseover"===a.type&&a.relatedTarget?a.relatedTarget:b,g="_mouseout"===a.type&&a.relatedTarget?a.relatedTarget:b,h=ta(c),i=e.screenLeft||e.screenX||0,j=e.screenTop||e.screenY||0,k=f.body.scrollLeft+f.documentElement.scrollLeft,l=f.body.scrollTop+f.documentElement.scrollTop,m=h.left+("number"==typeof a._stageX?a._stageX:0),n=h.top+("number"==typeof a._stageY?a._stageY:0),o=m-k,p=n-l,q=i+o,r=j+p,s="number"==typeof a.movementX?a.movementX:0,t="number"==typeof a.movementY?a.movementY:0;delete a._stageX,delete a._stageY,u(a,{srcElement:c,fromElement:d,toElement:g,screenX:q,screenY:r,pageX:m,pageY:n,clientX:o,clientY:p,x:o,y:p,movementX:s,movementY:t,offsetX:0,offsetY:0,layerX:0,layerY:0})}return a},_=function(a){var b=a&&"string"==typeof a.type&&a.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(b)},aa=function(a,b,c,d){d?h(function(){a.apply(b,c)},0):a.apply(b,c)},ba=function(a){if("object"==typeof a&&a&&a.type){var b=_(a),c=C["*"]||[],d=C[a.type]||[],f=c.concat(d);if(f&&f.length){var g,h,i,j,k,l=this;for(g=0,h=f.length;h>g;g++)i=f[g],j=l,"string"==typeof i&&"function"==typeof e[i]&&(i=e[i]),"object"==typeof i&&i&&"function"==typeof i.handleEvent&&(j=i,i=i.handleEvent),"function"==typeof i&&(k=u({},a),aa(i,j,[k],b))}return this}},ca=function(a){var b=a.target||c||null,d="swf"===a._source;delete a._source;var e=["flash-disabled","flash-outdated","flash-unavailable","flash-deactivated","flash-overdue"];switch(a.type){case"error":-1!==e.indexOf(a.name)&&u(A,{disabled:"flash-disabled"===a.name,outdated:"flash-outdated"===a.name,unavailable:"flash-unavailable"===a.name,deactivated:"flash-deactivated"===a.name,overdue:"flash-overdue"===a.name,ready:!1});break;case"ready":var f=A.deactivated===!0;u(A,{disabled:!1,outdated:!1,unavailable:!1,deactivated:!1,overdue:f,ready:!f});break;case"copy":var g,h,i=a.relatedTarget;!D["text/html"]&&!D["text/plain"]&&i&&(h=i.value||i.outerHTML||i.innerHTML)&&(g=i.value||i.textContent||i.innerText)?(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",g),h!==g&&a.clipboardData.setData("text/html",h)):!D["text/plain"]&&a.target&&(g=a.target.getAttribute("data-clipboard-text"))&&(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",g));break;case"aftercopy":ya.clearData(),b&&b!==oa()&&b.focus&&b.focus();break;case"_mouseover":ya.focus(b),H.bubbleEvents===!0&&d&&(b&&b!==a.relatedTarget&&!z(a.relatedTarget,b)&&da(u({},a,{type:"mouseenter",bubbles:!1,cancelable:!1})),da(u({},a,{type:"mouseover"})));break;case"_mouseout":ya.blur(),H.bubbleEvents===!0&&d&&(b&&b!==a.relatedTarget&&!z(a.relatedTarget,b)&&da(u({},a,{type:"mouseleave",bubbles:!1,cancelable:!1})),da(u({},a,{type:"mouseout"})));break;case"_mousedown":pa(b,H.activeClass),H.bubbleEvents===!0&&d&&da(u({},a,{type:a.type.slice(1)}));break;case"_mouseup":qa(b,H.activeClass),H.bubbleEvents===!0&&d&&da(u({},a,{type:a.type.slice(1)}));break;case"_click":case"_mousemove":H.bubbleEvents===!0&&d&&da(u({},a,{type:a.type.slice(1)}))}return/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)?!0:void 0},da=function(a){if(a&&"string"==typeof a.type&&a){var b,c=a.target||null,d=c&&c.ownerDocument||f,g={view:d.defaultView||e,canBubble:!0,cancelable:!0,detail:"click"===a.type?1:0,button:"number"==typeof a.which?a.which-1:"number"==typeof a.button?a.button:d.createEvent?0:1},h=u(g,a);c&&d.createEvent&&c.dispatchEvent&&(h=[h.type,h.canBubble,h.cancelable,h.view,h.detail,h.screenX,h.screenY,h.clientX,h.clientY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,h.relatedTarget],b=d.createEvent("MouseEvents"),b.initMouseEvent&&(b.initMouseEvent.apply(b,h),b._source="js",c.dispatchEvent(b)))}},ea=function(){var a=f.createElement("div");return a.id=H.containerId,a.className=H.containerClass,a.style.position="absolute",a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px",a.style.zIndex=""+wa(H.zIndex),a},fa=function(a){for(var b=a&&a.parentNode;b&&"OBJECT"===b.nodeName&&b.parentNode;)b=b.parentNode;return b||null},ga=function(){var a,b=A.bridge,c=fa(b);if(!b){var d=na(e.location.host,H),g="never"===d?"none":"all",h=la(H),i=H.swfPath+ka(H.swfPath,H);c=ea();var j=f.createElement("div");c.appendChild(j),f.body.appendChild(c);var k=f.createElement("div"),l="activex"===A.pluginType;k.innerHTML='"+(l?'':"")+'',b=k.firstChild,k=null,b.ZeroClipboard=ya,c.replaceChild(b,j)}return b||(b=f[H.swfObjectId],b&&(a=b.length)&&(b=b[a-1]),!b&&c&&(b=c.firstChild)),A.bridge=b||null,b},ha=function(){var a=A.bridge;if(a){var b=fa(a);b&&("activex"===A.pluginType&&"readyState"in a?(a.style.display="none",function c(){if(4===a.readyState){for(var d in a)"function"==typeof a[d]&&(a[d]=null);a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b)}else h(c,10)}()):(a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b))),A.ready=null,A.bridge=null,A.deactivated=null}},ia=function(a){var b={},c={};if("object"==typeof a&&a){for(var d in a)if(d&&r.call(a,d)&&"string"==typeof a[d]&&a[d])switch(d.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":b.text=a[d],c.text=d;break;case"text/html":case"html":case"air:html":case"flash:html":b.html=a[d],c.html=d;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":b.rtf=a[d],c.rtf=d}return{data:b,formatMap:c}}},ja=function(a,b){if("object"!=typeof a||!a||"object"!=typeof b||!b)return a;var c={};for(var d in a)if(r.call(a,d)){if("success"!==d&&"data"!==d){c[d]=a[d];continue}c[d]={};var e=a[d];for(var f in e)f&&r.call(e,f)&&r.call(b,f)&&(c[d][b[f]]=e[f])}return c},ka=function(a,b){var c=null==b||b&&b.cacheBust===!0;return c?(-1===a.indexOf("?")?"?":"&")+"noCache="+o():""},la=function(a){var b,c,d,f,g="",h=[];if(a.trustedDomains&&("string"==typeof a.trustedDomains?f=[a.trustedDomains]:"object"==typeof a.trustedDomains&&"length"in a.trustedDomains&&(f=a.trustedDomains)),f&&f.length)for(b=0,c=f.length;c>b;b++)if(r.call(f,b)&&f[b]&&"string"==typeof f[b]){if(d=ma(f[b]),!d)continue;if("*"===d){h.length=0,h.push(d);break}h.push.apply(h,[d,"//"+d,e.location.protocol+"//"+d])}return h.length&&(g+="trustedOrigins="+i(h.join(","))),a.forceEnhancedClipboard===!0&&(g+=(g?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof a.swfObjectId&&a.swfObjectId&&(g+=(g?"&":"")+"swfObjectId="+i(a.swfObjectId)),g},ma=function(a){if(null==a||""===a)return null;if(a=a.replace(/^\s+|\s+$/g,""),""===a)return null;var b=a.indexOf("//");a=-1===b?a:a.slice(b+2);var c=a.indexOf("/");return a=-1===c?a:-1===b||0===c?null:a.slice(0,c),a&&".swf"===a.slice(-4).toLowerCase()?null:a||null},na=function(){var a=function(a){var b,c,d,e=[];if("string"==typeof a&&(a=[a]),"object"!=typeof a||!a||"number"!=typeof a.length)return e;for(b=0,c=a.length;c>b;b++)if(r.call(a,b)&&(d=ma(a[b]))){if("*"===d){e.length=0,e.push("*");break}-1===e.indexOf(d)&&e.push(d)}return e};return function(b,c){var d=ma(c.swfPath);null===d&&(d=b);var e=a(c.trustedDomains),f=e.length;if(f>0){if(1===f&&"*"===e[0])return"always";if(-1!==e.indexOf(b))return 1===f&&b===d?"sameDomain":"always"}return"never"}}(),oa=function(){try{return f.activeElement}catch(a){return null}},pa=function(a,b){if(!a||1!==a.nodeType)return a;if(a.classList)return a.classList.contains(b)||a.classList.add(b),a;if(b&&"string"==typeof b){var c=(b||"").split(/\s+/);if(1===a.nodeType)if(a.className){for(var d=" "+a.className+" ",e=a.className,f=0,g=c.length;g>f;f++)d.indexOf(" "+c[f]+" ")<0&&(e+=" "+c[f]);a.className=e.replace(/^\s+|\s+$/g,"")}else a.className=b}return a},qa=function(a,b){if(!a||1!==a.nodeType)return a;if(a.classList)return a.classList.contains(b)&&a.classList.remove(b),a;if("string"==typeof b&&b){var c=b.split(/\s+/);if(1===a.nodeType&&a.className){for(var d=(" "+a.className+" ").replace(/[\n\t]/g," "),e=0,f=c.length;f>e;e++)d=d.replace(" "+c[e]+" "," ");a.className=d.replace(/^\s+|\s+$/g,"")}}return a},ra=function(a,b){var c=e.getComputedStyle(a,null).getPropertyValue(b);return"cursor"!==b||c&&"auto"!==c||"A"!==a.nodeName?c:"pointer"},sa=function(){var a,b,c,d=1;return"function"==typeof f.body.getBoundingClientRect&&(a=f.body.getBoundingClientRect(),b=a.right-a.left,c=f.body.offsetWidth,d=n(b/c*100)/100),d},ta=function(a){var b={left:0,top:0,width:0,height:0};if(a.getBoundingClientRect){var c,d,g,h=a.getBoundingClientRect();"pageXOffset"in e&&"pageYOffset"in e?(c=e.pageXOffset,d=e.pageYOffset):(g=sa(),c=n(f.documentElement.scrollLeft/g),d=n(f.documentElement.scrollTop/g));var i=f.documentElement.clientLeft||0,j=f.documentElement.clientTop||0;b.left=h.left+c-i,b.top=h.top+d-j,b.width="width"in h?h.width:h.right-h.left,b.height="height"in h?h.height:h.bottom-h.top}return b},ua=function(){var a;if(c&&(a=fa(A.bridge))){var b=ta(c);u(a.style,{width:b.width+"px",height:b.height+"px",top:b.top+"px",left:b.left+"px",zIndex:""+wa(H.zIndex)})}},va=function(a){A.ready===!0&&(A.bridge&&"function"==typeof A.bridge.setHandCursor?A.bridge.setHandCursor(a):A.ready=!1)},wa=function(a){if(/^(?:auto|inherit)$/.test(a))return a;var b;return"number"!=typeof a||m(a)?"string"==typeof a&&(b=wa(k(a,10))):b=a,"number"==typeof b?b:"auto"},xa=function(a){function b(a){var b=a.match(/[\d]+/g);return b.length=3,b.join(".")}function c(a){return!!a&&(a=a.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(a)||"chrome.plugin"===a.slice(-13))}function d(a){a&&(i=!0,a.version&&(m=b(a.version)),!m&&a.description&&(m=b(a.description)),a.filename&&(k=c(a.filename)))}var e,f,h,i=!1,j=!1,k=!1,m="";if(g.plugins&&g.plugins.length)e=g.plugins["Shockwave Flash"],d(e),g.plugins["Shockwave Flash 2.0"]&&(i=!0,m="2.0.0.11");else if(g.mimeTypes&&g.mimeTypes.length)h=g.mimeTypes["application/x-shockwave-flash"],e=h&&h.enabledPlugin,d(e);else if("undefined"!=typeof a){j=!0;try{f=new a("ShockwaveFlash.ShockwaveFlash.7"),i=!0,m=b(f.GetVariable("$version"))}catch(n){try{f=new a("ShockwaveFlash.ShockwaveFlash.6"),i=!0,m="6.0.21"}catch(o){try{f=new a("ShockwaveFlash.ShockwaveFlash"),i=!0,m=b(f.GetVariable("$version"))}catch(p){j=!1}}}}A.disabled=i!==!0,A.outdated=m&&l(m)g;g++)a=e.getRangeAt(g),c+=a.toString(),f.appendChild(a.cloneContents());return d["text/plain"]=c,c.replace(/\s/g,"")&&(d["text/html"]=f.innerHTML),d}function e(a){if("string"!=typeof a||!a)return null;var b,c,d=a;return d=d.replace(/<(?:hr)(?:\s+[^>]*)?\s*[\/]?>/gi,"{\\pard \\brdrb \\brdrs \\brdrw10 \\brsp20 \\par}\n{\\pard\\par}\n"),d=d.replace(/<(?:br)(?:\s+[^>]*)?\s*[\/]?>/gi,"{\\pard\\par}\n"),d=d.replace(/<(?:p|div|section|article)(?:\s+[^>]*)?\s*[\/]>/gi,"{\\pard\\par}\n"),d=d.replace(/<(?:[^>]+)\/>/g,""),d=d.replace(/]*)?(?:\s+href=(["'])(?:javascript:void\(0?\);?|#|return false;?|void\(0?\);?|)\1)(?:\s+[^>]*)?>/gi,"{{{\n"),b=d,d=d.replace(/]*)?(?:\s+href=(["'])(.+)\1)(?:\s+[^>]*)?>/gi,'{\\field{\\*\\fldinst{HYPERLINK\n "$2"\n}}{\\fldrslt{\\ul\\cf1\n'),c=d!==b,d=d.replace(/]*)?>/gi,"{{{\n"),d=d.replace(/<\/a(?:\s+[^>]*)?>/gi,"\n}}}"),d=d.replace(/<(?:b|strong)(?:\s+[^>]*)?>/gi,"{\\b\n"),d=d.replace(/<(?:i|em)(?:\s+[^>]*)?>/gi,"{\\i\n"),d=d.replace(/<(?:u|ins)(?:\s+[^>]*)?>/gi,"{\\ul\n"),d=d.replace(/<(?:strike|del)(?:\s+[^>]*)?>/gi,"{\\strike\n"),d=d.replace(/]*)?>/gi,"{\\super\n"),d=d.replace(/]*)?>/gi,"{\\sub\n"),d=d.replace(/<(?:p|div|section|article)(?:\s+[^>]*)?>/gi,"{\\pard\n"),d=d.replace(/<\/(?:p|div|section|article)(?:\s+[^>]*)?>/gi,"\n\\par}\n"),d=d.replace(/<\/(?:b|strong|i|em|u|ins|strike|del|sup|sub)(?:\s+[^>]*)?>/gi,"\n}"),d=d.replace(/<(?:[^>]+)>/g,""),d="{\\rtf1\\ansi\n"+(c?"{\\colortbl\n;\n\\red0\\green0\\blue255;\n}\n":"")+d+"\n}"}function f(b){var c=a.Event(b.type,a.extend(b,{_source:"swf"}));if(a(b.target).trigger(c),"copy"===c.type){if(a.event.special.copy.options.requirePreventDefault===!0&&!c.isDefaultPrevented()){b.clipboardData.clearData();var f=d();(f["text/plain"]||f["text/html"])&&b.clipboardData.setData(f)}var g=o.getData();if(a.event.special.copy.options.autoConvertHtmlToRtf===!0&&g["text/html"]&&!g["application/rtf"]){var h=e(g["text/html"]);b.clipboardData.setData("application/rtf",h)}}}function g(b){var c=a.Event("copy-error",a.extend(b,{type:"copy-error",_source:"swf"}));a(b.target).trigger(c)}function h(){a.event.props.push("clipboardData"),o.config(a.extend(!0,{autoActivate:!1},q.options)),o.on("beforecopy copy aftercopy",f),o.on("error",g),o.create()}function i(){o.destroy();var b=a.event.props.indexOf("clipboardData");-1!==b&&a.event.props.splice(b,1)}function j(b){l(b),b.target&&b.target!==o.activeElement()&&b.target!==a("#"+o.config("containerId"))[0]&&b.target!==a("#"+o.config("swfObjectId"))[0]&&o.focus(b.target)}function k(b){l(b),b.relatedTarget&&b.relatedTarget!==o.activeElement()&&b.relatedTarget!==a("#"+o.config("containerId"))[0]&&b.relatedTarget!==a("#"+o.config("swfObjectId"))[0]&&o.blur()}function l(a){o.isFlashUnusable()||"js"===a.originalEvent._source||(a.stopImmediatePropagation(),a.preventDefault())}var m=0,n=".zeroclipboard",o=b.ZeroClipboard,p=o.config("trustedDomains"),q={add:function(b){0===m++&&h();var c=n+(b.namespace?"."+b.namespace:""),d=b.selector,e="zc|{"+d+"}|{"+c+"}|count",f=a(this);"number"!=typeof f.data(e)&&f.data(e,0),0===f.data(e)&&(f.on("mouseenter"+c,d,j),f.on("mouseleave"+c,d,k),f.on("mouseover"+c,d,l),f.on("mouseout"+c,d,l),f.on("mousemove"+c,d,l),f.on("mousedown"+c,d,l),f.on("mouseup"+c,d,l),f.on("click"+c,d,l)),f.data(e,f.data(e)+1)},remove:function(b){var c=n+(b.namespace?"."+b.namespace:""),d=b.selector,e="zc|{"+d+"}|{"+c+"}|count",f=a(this);f.data(e,f.data(e)-1),0===f.data(e)&&(f.off("click"+c,d,l),f.off("mouseup"+c,d,l),f.off("mousedown"+c,d,l),f.off("mousemove"+c,d,l),f.off("mouseout"+c,d,l),f.off("mouseover"+c,d,l),f.off("mouseleave"+c,d,k),f.off("mouseenter"+c,d,j),f.removeData(e)),0===--m&&i()},trigger:function(b){if("copy"===b.type){var c=a(this),d="swf"===b._source;delete b._source,d||(c.trigger(a.extend(!0,{},b,{type:"beforecopy"})),c.one("copy",function(){var d={},e=o.getData();a.each(e,function(a){d[a]=!1});var f=a.extend(!0,{},b,{type:"aftercopy",data:a.extend(!0,{},e),success:d});c.trigger(f)}))}},_default:function(){return!0},options:{requirePreventDefault:!0,autoConvertHtmlToRtf:!0,trustedDomains:p,hoverClass:"hover",activeClass:"active"}};a.event.special.beforecopy=q,a.event.special.copy=q,a.event.special.aftercopy=q,a.event.special["copy-error"]=q}(jQuery,function(){return this||b}()),e||delete b.ZeroClipboard}(jQuery,function(){return this||window}()); \ No newline at end of file +!function(a,b){var c,e=a,f=e.document,g=e.navigator,h=e.setTimeout,i=e.encodeURIComponent,j=e.ActiveXObject,k=e.Number.parseInt||e.parseInt,l=e.Number.parseFloat||e.parseFloat,m=e.Number.isNaN||e.isNaN,n=e.Math.round,o=e.Date.now,p=e.Object.keys,q=e.Object.defineProperty,r=e.Object.prototype.hasOwnProperty,s=e.Array.prototype.slice,t=function(a){return s.call(a,0)},u=function(){var a,c,d,e,f,g,h=t(arguments),i=h[0]||{};for(a=1,c=h.length;a=0&&h(function(){"boolean"!=typeof A.deactivated&&(A.deactivated=!0),A.deactivated===!0&&ya.emit({type:"error",name:"flash-deactivated"})},a),A.overdue=!1,ga()}},Q=function(){ya.clearData(),ya.blur(),ya.emit("destroy"),ha(),ya.off()},R=function(a,b){var c;if("object"==typeof a&&a&&"undefined"==typeof b)c=a,ya.clearData();else{if("string"!=typeof a||!a)return;c={},c[a]=b}for(var d in c)"string"==typeof d&&d&&r.call(c,d)&&"string"==typeof c[d]&&c[d]&&(D[d]=c[d])},S=function(a){"undefined"==typeof a?(y(D),E=null):"string"==typeof a&&r.call(D,a)&&delete D[a]},T=function(a){return"undefined"==typeof a?v(D):"string"==typeof a&&r.call(D,a)?D[a]:void 0},U=function(a){if(a&&1===a.nodeType){c&&(qa(c,H.activeClass),c!==a&&qa(c,H.hoverClass)),c=a,pa(a,H.hoverClass);var b=a.getAttribute("title")||H.title;if("string"==typeof b&&b){var d=fa(A.bridge);d&&d.setAttribute("title",b)}var e=H.forceHandCursor===!0||"pointer"===ra(a,"cursor");va(e),ua()}},V=function(){var a=fa(A.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.top="1px"),c&&(qa(c,H.hoverClass),qa(c,H.activeClass),c=null)},W=function(){return c||null},X=function(a){return"string"==typeof a&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},Y=function(a){var b;if("string"==typeof a&&a?(b=a,a={}):"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(b=a.type),b){u(a,{type:b.toLowerCase(),target:a.target||c||null,relatedTarget:a.relatedTarget||null,currentTarget:A&&A.bridge||null,timeStamp:a.timeStamp||o()||null});var d=F[a.type];return"error"===a.type&&a.name&&d&&(d=d[a.name]),d&&(a.message=d),"ready"===a.type&&u(a,{target:null,version:A.version}),"error"===a.type&&(/^flash-(disabled|outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{target:null,minimumVersion:B}),/^flash-(outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{version:A.version})),"copy"===a.type&&(a.clipboardData={setData:ya.setData,clearData:ya.clearData}),"aftercopy"===a.type&&(a=ja(a,E)),a.target&&!a.relatedTarget&&(a.relatedTarget=Z(a.target)),a=$(a)}},Z=function(a){var b=a&&a.getAttribute&&a.getAttribute("data-clipboard-target");return b?f.getElementById(b):null},$=function(a){if(a&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)){var c=a.target,d="_mouseover"===a.type&&a.relatedTarget?a.relatedTarget:b,g="_mouseout"===a.type&&a.relatedTarget?a.relatedTarget:b,h=ta(c),i=e.screenLeft||e.screenX||0,j=e.screenTop||e.screenY||0,k=f.body.scrollLeft+f.documentElement.scrollLeft,l=f.body.scrollTop+f.documentElement.scrollTop,m=h.left+("number"==typeof a._stageX?a._stageX:0),n=h.top+("number"==typeof a._stageY?a._stageY:0),o=m-k,p=n-l,q=i+o,r=j+p,s="number"==typeof a.movementX?a.movementX:0,t="number"==typeof a.movementY?a.movementY:0;delete a._stageX,delete a._stageY,u(a,{srcElement:c,fromElement:d,toElement:g,screenX:q,screenY:r,pageX:m,pageY:n,clientX:o,clientY:p,x:o,y:p,movementX:s,movementY:t,offsetX:0,offsetY:0,layerX:0,layerY:0})}return a},_=function(a){var b=a&&"string"==typeof a.type&&a.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(b)},aa=function(a,b,c,d){d?h(function(){a.apply(b,c)},0):a.apply(b,c)},ba=function(a){if("object"==typeof a&&a&&a.type){var b=_(a),c=C["*"]||[],d=C[a.type]||[],f=c.concat(d);if(f&&f.length){var g,h,i,j,k,l=this;for(g=0,h=f.length;g"+(l?'':"")+'',b=k.firstChild,k=null,b.ZeroClipboard=ya,c.replaceChild(b,j)}return b||(b=f[H.swfObjectId],b&&(a=b.length)&&(b=b[a-1]),!b&&c&&(b=c.firstChild)),A.bridge=b||null,b},ha=function(){var a=A.bridge;if(a){var b=fa(a);b&&("activex"===A.pluginType&&"readyState"in a?(a.style.display="none",function c(){if(4===a.readyState){for(var d in a)"function"==typeof a[d]&&(a[d]=null);a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b)}else h(c,10)}()):(a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b))),A.ready=null,A.bridge=null,A.deactivated=null}},ia=function(a){var b={},c={};if("object"==typeof a&&a){for(var d in a)if(d&&r.call(a,d)&&"string"==typeof a[d]&&a[d])switch(d.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":b.text=a[d],c.text=d;break;case"text/html":case"html":case"air:html":case"flash:html":b.html=a[d],c.html=d;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":b.rtf=a[d],c.rtf=d}return{data:b,formatMap:c}}},ja=function(a,b){if("object"!=typeof a||!a||"object"!=typeof b||!b)return a;var c={};for(var d in a)if(r.call(a,d)){if("success"!==d&&"data"!==d){c[d]=a[d];continue}c[d]={};var e=a[d];for(var f in e)f&&r.call(e,f)&&r.call(b,f)&&(c[d][b[f]]=e[f])}return c},ka=function(a,b){var c=null==b||b&&b.cacheBust===!0;return c?(a.indexOf("?")===-1?"?":"&")+"noCache="+o():""},la=function(a){var b,c,d,f,g="",h=[];if(a.trustedDomains&&("string"==typeof a.trustedDomains?f=[a.trustedDomains]:"object"==typeof a.trustedDomains&&"length"in a.trustedDomains&&(f=a.trustedDomains)),f&&f.length)for(b=0,c=f.length;b0){if(1===f&&"*"===e[0])return"always";if(e.indexOf(b)!==-1)return 1===f&&b===d?"sameDomain":"always"}return"never"}}(),oa=function(){try{return f.activeElement}catch(a){return null}},pa=function(a,b){if(!a||1!==a.nodeType)return a;if(a.classList)return a.classList.contains(b)||a.classList.add(b),a;if(b&&"string"==typeof b){var c=(b||"").split(/\s+/);if(1===a.nodeType)if(a.className){for(var d=" "+a.className+" ",e=a.className,f=0,g=c.length;f]*)?\s*[\/]?>/gi,"{\\pard \\brdrb \\brdrs \\brdrw10 \\brsp20 \\par}\n{\\pard\\par}\n"),d=d.replace(/<(?:br)(?:\s+[^>]*)?\s*[\/]?>/gi,"{\\pard\\par}\n"),d=d.replace(/<(?:p|div|section|article)(?:\s+[^>]*)?\s*[\/]>/gi,"{\\pard\\par}\n"),d=d.replace(/<(?:[^>]+)\/>/g,""),d=d.replace(/]*)?(?:\s+href=(["'])(?:javascript:void\(0?\);?|#|return false;?|void\(0?\);?|)\1)(?:\s+[^>]*)?>/gi,"{{{\n"),b=d,d=d.replace(/]*)?(?:\s+href=(["'])(.+)\1)(?:\s+[^>]*)?>/gi,'{\\field{\\*\\fldinst{HYPERLINK\n "$2"\n}}{\\fldrslt{\\ul\\cf1\n'),c=d!==b,d=d.replace(/]*)?>/gi,"{{{\n"),d=d.replace(/<\/a(?:\s+[^>]*)?>/gi,"\n}}}"),d=d.replace(/<(?:b|strong)(?:\s+[^>]*)?>/gi,"{\\b\n"),d=d.replace(/<(?:i|em)(?:\s+[^>]*)?>/gi,"{\\i\n"),d=d.replace(/<(?:u|ins)(?:\s+[^>]*)?>/gi,"{\\ul\n"),d=d.replace(/<(?:strike|del)(?:\s+[^>]*)?>/gi,"{\\strike\n"),d=d.replace(/]*)?>/gi,"{\\super\n"),d=d.replace(/]*)?>/gi,"{\\sub\n"),d=d.replace(/<(?:p|div|section|article)(?:\s+[^>]*)?>/gi,"{\\pard\n"),d=d.replace(/<\/(?:p|div|section|article)(?:\s+[^>]*)?>/gi,"\n\\par}\n"),d=d.replace(/<\/(?:b|strong|i|em|u|ins|strike|del|sup|sub)(?:\s+[^>]*)?>/gi,"\n}"),d=d.replace(/<(?:[^>]+)>/g,""),d="{\\rtf1\\ansi\n"+(c?"{\\colortbl\n;\n\\red0\\green0\\blue255;\n}\n":"")+d+"\n}"}function f(b){var c=a.Event(b.type,a.extend(b,{_source:"swf"}));if(a(b.target).trigger(c),"copy"===c.type){if(a.event.special.copy.options.requirePreventDefault===!0&&!c.isDefaultPrevented()){b.clipboardData.clearData();var f=d();(f["text/plain"]||f["text/html"])&&b.clipboardData.setData(f)}var g=o.getData();if(a.event.special.copy.options.autoConvertHtmlToRtf===!0&&g["text/html"]&&!g["application/rtf"]){var h=e(g["text/html"]);b.clipboardData.setData("application/rtf",h)}}}function g(b){var c=a.Event("copy-error",a.extend(b,{type:"copy-error",_source:"swf"}));a(b.target).trigger(c)}function h(){a.event.props.push("clipboardData"),o.config(a.extend(!0,{autoActivate:!1},q.options)),o.on("beforecopy copy aftercopy",f),o.on("error",g),o.create()}function i(){o.destroy();var b=a.event.props.indexOf("clipboardData");b!==-1&&a.event.props.splice(b,1)}function j(b){l(b),b.target&&b.target!==o.activeElement()&&b.target!==a("#"+o.config("containerId"))[0]&&b.target!==a("#"+o.config("swfObjectId"))[0]&&o.focus(b.target)}function k(b){l(b),b.relatedTarget&&b.relatedTarget!==o.activeElement()&&b.relatedTarget!==a("#"+o.config("containerId"))[0]&&b.relatedTarget!==a("#"+o.config("swfObjectId"))[0]&&o.blur()}function l(a){o.isFlashUnusable()||"js"===a.originalEvent._source||(a.stopImmediatePropagation(),a.preventDefault())}var m=0,n=".zeroclipboard",o=b.ZeroClipboard,p=o.config("trustedDomains"),q={add:function(b){0===m++&&h();var c=n+(b.namespace?"."+b.namespace:""),d=b.selector,e="zc|{"+d+"}|{"+c+"}|count",f=a(this);"number"!=typeof f.data(e)&&f.data(e,0),0===f.data(e)&&(f.on("mouseenter"+c,d,j),f.on("mouseleave"+c,d,k),f.on("mouseover"+c,d,l),f.on("mouseout"+c,d,l),f.on("mousemove"+c,d,l),f.on("mousedown"+c,d,l),f.on("mouseup"+c,d,l),f.on("click"+c,d,l)),f.data(e,f.data(e)+1)},remove:function(b){var c=n+(b.namespace?"."+b.namespace:""),d=b.selector,e="zc|{"+d+"}|{"+c+"}|count",f=a(this);f.data(e,f.data(e)-1),0===f.data(e)&&(f.off("click"+c,d,l),f.off("mouseup"+c,d,l),f.off("mousedown"+c,d,l),f.off("mousemove"+c,d,l),f.off("mouseout"+c,d,l),f.off("mouseover"+c,d,l),f.off("mouseleave"+c,d,k),f.off("mouseenter"+c,d,j),f.removeData(e)),0===--m&&i()},trigger:function(b){if("copy"===b.type){var c=a(this),d="swf"===b._source;delete b._source,d||(c.trigger(a.extend(!0,{},b,{type:"beforecopy"})),c.one("copy",function(){var d={},e=o.getData();a.each(e,function(a){d[a]=!1});var f=a.extend(!0,{},b,{type:"aftercopy",data:a.extend(!0,{},e),success:d});c.trigger(f)}))}},_default:function(){return!0},options:{requirePreventDefault:!0,autoConvertHtmlToRtf:!0,trustedDomains:p,hoverClass:"hover",activeClass:"active"}};a.event.special.beforecopy=q,a.event.special.copy=q,a.event.special.aftercopy=q,a.event.special["copy-error"]=q}(jQuery,function(){return this||b}()),e||delete b.ZeroClipboard}(jQuery,function(){return this||window}()); \ No newline at end of file diff --git a/i18n/languages/woocommerce.pot b/i18n/languages/woocommerce.pot index 720b2d83e74..47f63f28b2b 100644 --- a/i18n/languages/woocommerce.pot +++ b/i18n/languages/woocommerce.pot @@ -1,17 +1,16 @@ -# Copyright (C) 2016 WooThemes -# This file is distributed under the same license as the WooCommerce package. +# msgid "" msgstr "" "Project-Id-Version: WooCommerce 2.6.1\n" -"Report-Msgid-Bugs-To: https://github.com/woothemes/woocommerce/issues\n" -"POT-Creation-Date: 2016-06-16 17:17:35+00:00\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n" +"POT-Creation-Date: 2016-06-24 11:39:47+00:00\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"X-Generator: grunt-wp-i18n 0.5.4\n" +"Language-Team: LANGUAGE \n" #: i18n/continents.php:19 msgid "Africa" @@ -662,381 +661,400 @@ msgid "Netherlands" msgstr "" #: i18n/countries.php:174 -msgid "Netherlands Antilles" -msgstr "" - -#: i18n/countries.php:175 msgid "New Caledonia" msgstr "" -#: i18n/countries.php:176 +#: i18n/countries.php:175 msgid "New Zealand" msgstr "" -#: i18n/countries.php:177 +#: i18n/countries.php:176 msgid "Nicaragua" msgstr "" -#: i18n/countries.php:178 +#: i18n/countries.php:177 msgid "Niger" msgstr "" -#: i18n/countries.php:179 +#: i18n/countries.php:178 msgid "Nigeria" msgstr "" -#: i18n/countries.php:180 +#: i18n/countries.php:179 msgid "Niue" msgstr "" -#: i18n/countries.php:181 +#: i18n/countries.php:180 msgid "Norfolk Island" msgstr "" -#: i18n/countries.php:182 +#: i18n/countries.php:181 msgid "Northern Mariana Islands" msgstr "" -#: i18n/countries.php:183 +#: i18n/countries.php:182 msgid "North Korea" msgstr "" -#: i18n/countries.php:184 +#: i18n/countries.php:183 msgid "Norway" msgstr "" -#: i18n/countries.php:185 +#: i18n/countries.php:184 msgid "Oman" msgstr "" -#: i18n/countries.php:186 +#: i18n/countries.php:185 msgid "Pakistan" msgstr "" -#: i18n/countries.php:187 +#: i18n/countries.php:186 msgid "Palestinian Territory" msgstr "" -#: i18n/countries.php:188 +#: i18n/countries.php:187 msgid "Panama" msgstr "" -#: i18n/countries.php:189 +#: i18n/countries.php:188 msgid "Papua New Guinea" msgstr "" -#: i18n/countries.php:190 +#: i18n/countries.php:189 msgid "Paraguay" msgstr "" -#: i18n/countries.php:191 +#: i18n/countries.php:190 msgid "Peru" msgstr "" -#: i18n/countries.php:192 +#: i18n/countries.php:191 msgid "Philippines" msgstr "" -#: i18n/countries.php:193 +#: i18n/countries.php:192 msgid "Pitcairn" msgstr "" -#: i18n/countries.php:194 +#: i18n/countries.php:193 msgid "Poland" msgstr "" -#: i18n/countries.php:195 +#: i18n/countries.php:194 msgid "Portugal" msgstr "" -#: i18n/countries.php:196 +#: i18n/countries.php:195 msgid "Puerto Rico" msgstr "" -#: i18n/countries.php:197 +#: i18n/countries.php:196 msgid "Qatar" msgstr "" -#: i18n/countries.php:198 +#: i18n/countries.php:197 msgid "Reunion" msgstr "" -#: i18n/countries.php:199 +#: i18n/countries.php:198 msgid "Romania" msgstr "" -#: i18n/countries.php:200 +#: i18n/countries.php:199 msgid "Russia" msgstr "" -#: i18n/countries.php:201 +#: i18n/countries.php:200 msgid "Rwanda" msgstr "" -#: i18n/countries.php:202 +#: i18n/countries.php:201 msgid "Saint Barthélemy" msgstr "" -#: i18n/countries.php:203 +#: i18n/countries.php:202 msgid "Saint Helena" msgstr "" -#: i18n/countries.php:204 +#: i18n/countries.php:203 msgid "Saint Kitts and Nevis" msgstr "" -#: i18n/countries.php:205 +#: i18n/countries.php:204 msgid "Saint Lucia" msgstr "" -#: i18n/countries.php:206 +#: i18n/countries.php:205 msgid "Saint Martin (French part)" msgstr "" -#: i18n/countries.php:207 +#: i18n/countries.php:206 msgid "Saint Martin (Dutch part)" msgstr "" -#: i18n/countries.php:208 +#: i18n/countries.php:207 msgid "Saint Pierre and Miquelon" msgstr "" -#: i18n/countries.php:209 +#: i18n/countries.php:208 msgid "Saint Vincent and the Grenadines" msgstr "" -#: i18n/countries.php:210 +#: i18n/countries.php:209 msgid "San Marino" msgstr "" -#: i18n/countries.php:211 +#: i18n/countries.php:210 msgid "São Tomé and Príncipe" msgstr "" -#: i18n/countries.php:212 +#: i18n/countries.php:211 msgid "Saudi Arabia" msgstr "" -#: i18n/countries.php:213 +#: i18n/countries.php:212 msgid "Senegal" msgstr "" -#: i18n/countries.php:214 +#: i18n/countries.php:213 msgid "Serbia" msgstr "" -#: i18n/countries.php:215 +#: i18n/countries.php:214 msgid "Seychelles" msgstr "" -#: i18n/countries.php:216 +#: i18n/countries.php:215 msgid "Sierra Leone" msgstr "" -#: i18n/countries.php:217 +#: i18n/countries.php:216 msgid "Singapore" msgstr "" -#: i18n/countries.php:218 +#: i18n/countries.php:217 msgid "Slovakia" msgstr "" -#: i18n/countries.php:219 +#: i18n/countries.php:218 msgid "Slovenia" msgstr "" -#: i18n/countries.php:220 +#: i18n/countries.php:219 msgid "Solomon Islands" msgstr "" -#: i18n/countries.php:221 +#: i18n/countries.php:220 msgid "Somalia" msgstr "" -#: i18n/countries.php:222 +#: i18n/countries.php:221 msgid "South Africa" msgstr "" -#: i18n/countries.php:223 +#: i18n/countries.php:222 msgid "South Georgia/Sandwich Islands" msgstr "" -#: i18n/countries.php:224 +#: i18n/countries.php:223 msgid "South Korea" msgstr "" -#: i18n/countries.php:225 +#: i18n/countries.php:224 msgid "South Sudan" msgstr "" -#: i18n/countries.php:226 +#: i18n/countries.php:225 msgid "Spain" msgstr "" -#: i18n/countries.php:227 +#: i18n/countries.php:226 msgid "Sri Lanka" msgstr "" -#: i18n/countries.php:228 +#: i18n/countries.php:227 msgid "Sudan" msgstr "" -#: i18n/countries.php:229 +#: i18n/countries.php:228 msgid "Suriname" msgstr "" -#: i18n/countries.php:230 +#: i18n/countries.php:229 msgid "Svalbard and Jan Mayen" msgstr "" -#: i18n/countries.php:231 +#: i18n/countries.php:230 msgid "Swaziland" msgstr "" -#: i18n/countries.php:232 +#: i18n/countries.php:231 msgid "Sweden" msgstr "" -#: i18n/countries.php:233 +#: i18n/countries.php:232 msgid "Switzerland" msgstr "" -#: i18n/countries.php:234 +#: i18n/countries.php:233 msgid "Syria" msgstr "" -#: i18n/countries.php:235 +#: i18n/countries.php:234 msgid "Taiwan" msgstr "" -#: i18n/countries.php:236 +#: i18n/countries.php:235 msgid "Tajikistan" msgstr "" -#: i18n/countries.php:237 +#: i18n/countries.php:236 msgid "Tanzania" msgstr "" -#: i18n/countries.php:238 +#: i18n/countries.php:237 msgid "Thailand" msgstr "" -#: i18n/countries.php:239 +#: i18n/countries.php:238 msgid "Timor-Leste" msgstr "" -#: i18n/countries.php:240 +#: i18n/countries.php:239 msgid "Togo" msgstr "" -#: i18n/countries.php:241 +#: i18n/countries.php:240 msgid "Tokelau" msgstr "" -#: i18n/countries.php:242 +#: i18n/countries.php:241 msgid "Tonga" msgstr "" -#: i18n/countries.php:243 +#: i18n/countries.php:242 msgid "Trinidad and Tobago" msgstr "" -#: i18n/countries.php:244 +#: i18n/countries.php:243 msgid "Tunisia" msgstr "" -#: i18n/countries.php:245 +#: i18n/countries.php:244 msgid "Turkey" msgstr "" -#: i18n/countries.php:246 +#: i18n/countries.php:245 msgid "Turkmenistan" msgstr "" -#: i18n/countries.php:247 +#: i18n/countries.php:246 msgid "Turks and Caicos Islands" msgstr "" -#: i18n/countries.php:248 +#: i18n/countries.php:247 msgid "Tuvalu" msgstr "" -#: i18n/countries.php:249 +#: i18n/countries.php:248 msgid "Uganda" msgstr "" -#: i18n/countries.php:250 +#: i18n/countries.php:249 msgid "Ukraine" msgstr "" -#: i18n/countries.php:251 +#: i18n/countries.php:250 msgid "United Arab Emirates" msgstr "" -#: i18n/countries.php:252 +#: i18n/countries.php:251 msgid "United Kingdom (UK)" msgstr "" -#: i18n/countries.php:253 +#: i18n/countries.php:252 msgid "United States (US)" msgstr "" -#: i18n/countries.php:254 +#: i18n/countries.php:253 msgid "United States (US) Minor Outlying Islands" msgstr "" -#: i18n/countries.php:255 +#: i18n/countries.php:254 msgid "United States (US) Virgin Islands" msgstr "" -#: i18n/countries.php:256 +#: i18n/countries.php:255 msgid "Uruguay" msgstr "" -#: i18n/countries.php:257 +#: i18n/countries.php:256 msgid "Uzbekistan" msgstr "" -#: i18n/countries.php:258 +#: i18n/countries.php:257 msgid "Vanuatu" msgstr "" -#: i18n/countries.php:259 +#: i18n/countries.php:258 msgid "Vatican" msgstr "" -#: i18n/countries.php:260 +#: i18n/countries.php:259 msgid "Venezuela" msgstr "" -#: i18n/countries.php:261 +#: i18n/countries.php:260 msgid "Vietnam" msgstr "" -#: i18n/countries.php:262 +#: i18n/countries.php:261 msgid "Wallis and Futuna" msgstr "" -#: i18n/countries.php:263 +#: i18n/countries.php:262 msgid "Western Sahara" msgstr "" -#: i18n/countries.php:264 +#: i18n/countries.php:263 msgid "Samoa" msgstr "" -#: i18n/countries.php:265 +#: i18n/countries.php:264 msgid "Yemen" msgstr "" -#: i18n/countries.php:266 +#: i18n/countries.php:265 msgid "Zambia" msgstr "" -#: i18n/countries.php:267 +#: i18n/countries.php:266 msgid "Zimbabwe" msgstr "" +#: i18n/locale-info.php:87 i18n/locale-info.php:97 i18n/locale-info.php:107 +msgctxt "Canadian Tax Rates" +msgid "PST" +msgstr "" + +#: i18n/locale-info.php:117 +msgctxt "Canadian Tax Rates" +msgid "QST" +msgstr "" + +#: i18n/locale-info.php:127 i18n/locale-info.php:134 i18n/locale-info.php:141 +#: i18n/locale-info.php:148 i18n/locale-info.php:155 +msgctxt "Canadian Tax Rates" +msgid "HST" +msgstr "" + +#: i18n/locale-info.php:162 i18n/locale-info.php:169 i18n/locale-info.php:176 +#: i18n/locale-info.php:183 i18n/locale-info.php:190 i18n/locale-info.php:197 +#: i18n/locale-info.php:204 i18n/locale-info.php:211 +msgctxt "Canadian Tax Rates" +msgid "GST" +msgstr "" + #: i18n/locale-info.php:351 msgid "Consumption tax" msgstr "" @@ -3938,9 +3956,7 @@ msgid "Metro Manila" msgstr "" #: i18n/states/TH.php:13 -msgid "" -"Amnat Charoen " -"(อำนาจเจริญ)" +msgid "Amnat Charoen (อำนาจเจริญ)" msgstr "" #: i18n/states/TH.php:14 @@ -3948,17 +3964,11 @@ msgid "Ang Thong (อ่างทอง)" msgstr "" #: i18n/states/TH.php:15 -msgid "" -"Ayutthaya " -"(พระนครศรีอũ" -"8;ุธยา)" +msgid "Ayutthaya (พระนครศรีอยุธยา)" msgstr "" #: i18n/states/TH.php:16 -msgid "" -"Bangkok " -"(กรุงเทพมหาŨ" -"9;คร)" +msgid "Bangkok (กรุงเทพมหานคร)" msgstr "" #: i18n/states/TH.php:17 @@ -3970,9 +3980,7 @@ msgid "Buri Ram (บุรีรัมย์ msgstr "" #: i18n/states/TH.php:19 -msgid "" -"Chachoengsao " -"(ฉะเชิงเทรา)" +msgid "Chachoengsao (ฉะเชิงเทรา)" msgstr "" #: i18n/states/TH.php:20 @@ -4008,15 +4016,11 @@ msgid "Kalasin (กาฬสินธุ์) msgstr "" #: i18n/states/TH.php:28 -msgid "" -"Kamphaeng Phet " -"(กำแพงเพชร)" +msgid "Kamphaeng Phet (กำแพงเพชร)" msgstr "" #: i18n/states/TH.php:29 -msgid "" -"Kanchanaburi " -"(กาญจนบุรี)" +msgid "Kanchanaburi (กาญจนบุรี)" msgstr "" #: i18n/states/TH.php:30 @@ -4044,15 +4048,11 @@ msgid "Lopburi (ลพบุรี)" msgstr "" #: i18n/states/TH.php:36 -msgid "" -"Mae Hong Son " -"(แม่ฮ่องสอน)" +msgid "Mae Hong Son (แม่ฮ่องสอน)" msgstr "" #: i18n/states/TH.php:37 -msgid "" -"Maha Sarakham " -"(มหาสารคาม)" +msgid "Maha Sarakham (มหาสารคาม)" msgstr "" #: i18n/states/TH.php:38 @@ -4072,22 +4072,15 @@ msgid "Nakhon Phanom (นครพนม)" msgstr "" #: i18n/states/TH.php:42 -msgid "" -"Nakhon Ratchasima " -"(นครราชสีมา)" +msgid "Nakhon Ratchasima (นครราชสีมา)" msgstr "" #: i18n/states/TH.php:43 -msgid "" -"Nakhon Sawan " -"(นครสวรรค์)" +msgid "Nakhon Sawan (นครสวรรค์)" msgstr "" #: i18n/states/TH.php:44 -msgid "" -"Nakhon Si Thammarat " -"(นครศรีธรรมũ" -"9;าช)" +msgid "Nakhon Si Thammarat (นครศรีธรรมราช)" msgstr "" #: i18n/states/TH.php:45 @@ -4099,10 +4092,7 @@ msgid "Narathiwat (นราธิวาส)" msgstr "" #: i18n/states/TH.php:47 -msgid "" -"Nong Bua Lam Phu " -"(หนองบัวลำภŬ" -"1;)" +msgid "Nong Bua Lam Phu (หนองบัวลำภู)" msgstr "" #: i18n/states/TH.php:48 @@ -4158,16 +4148,11 @@ msgid "Phuket (ภูเก็ต)" msgstr "" #: i18n/states/TH.php:61 -msgid "" -"Prachin Buri " -"(ปราจีนบุรี)" +msgid "Prachin Buri (ปราจีนบุรี)" msgstr "" #: i18n/states/TH.php:62 -msgid "" -"Prachuap Khiri Khan " -"(ประจวบคีรีŦ" -"6;ันธ์)" +msgid "Prachuap Khiri Khan (ประจวบคีรีขันธ์)" msgstr "" #: i18n/states/TH.php:63 @@ -4195,23 +4180,15 @@ msgid "Sakon Nakhon (สกลนคร)" msgstr "" #: i18n/states/TH.php:69 -msgid "" -"Samut Prakan " -"(สมุทรปรากาũ" -"9;)" +msgid "Samut Prakan (สมุทรปราการ)" msgstr "" #: i18n/states/TH.php:70 -msgid "" -"Samut Sakhon " -"(สมุทรสาคร)" +msgid "Samut Sakhon (สมุทรสาคร)" msgstr "" #: i18n/states/TH.php:71 -msgid "" -"Samut Songkhram " -"(สมุทรสงคราũ" -"7;)" +msgid "Samut Songkhram (สมุทรสงคราม)" msgstr "" #: i18n/states/TH.php:72 @@ -4239,16 +4216,11 @@ msgid "Sukhothai (สุโขทัย)" msgstr "" #: i18n/states/TH.php:78 -msgid "" -"Suphan Buri " -"(สุพรรณบุรี)" +msgid "Suphan Buri (สุพรรณบุรี)" msgstr "" #: i18n/states/TH.php:79 -msgid "" -"Surat Thani " -"(สุราษฎร์ธาŨ" -"9;ี)" +msgid "Surat Thani (สุราษฎร์ธานี)" msgstr "" #: i18n/states/TH.php:80 @@ -4268,10 +4240,7 @@ msgid "Trat (ตราด)" msgstr "" #: i18n/states/TH.php:84 -msgid "" -"Ubon Ratchathani " -"(อุบลราชธานū" -"7;)" +msgid "Ubon Ratchathani (อุบลราชธานี)" msgstr "" #: i18n/states/TH.php:85 @@ -4279,9 +4248,7 @@ msgid "Udon Thani (อุดรธานี)" msgstr "" #: i18n/states/TH.php:86 -msgid "" -"Uthai Thani " -"(อุทัยธานี)" +msgid "Uthai Thani (อุทัยธานี)" msgstr "" #: i18n/states/TH.php:87 @@ -4660,6 +4627,11 @@ msgstr "" msgid "Florida" msgstr "" +#: i18n/states/US.php:23 +msgctxt "US state of Georgia" +msgid "Georgia" +msgstr "" + #: i18n/states/US.php:24 msgid "Hawaii" msgstr "" @@ -4869,6 +4841,14 @@ msgstr "" msgid "Backordered" msgstr "" +#: includes/abstracts/abstract-wc-order.php:1172 +#: includes/abstracts/abstract-wc-order.php:1183 +#: includes/admin/class-wc-admin-post-types.php:745 +#: includes/admin/class-wc-admin-post-types.php:754 +msgctxt "full name" +msgid "%1$s %2$s" +msgstr "" + #: includes/abstracts/abstract-wc-order.php:1689 #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:94 #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:689 @@ -4887,9 +4867,10 @@ msgid "via %s" msgstr "" #: includes/abstracts/abstract-wc-order.php:1851 -#: includes/abstracts/abstract-wc-product.php:1010 -#: includes/abstracts/abstract-wc-product.php:1016 -#: includes/class-wc-cart.php:1612 includes/class-wc-product-variable.php:362 +#: includes/abstracts/abstract-wc-product.php:1035 +#: includes/abstracts/abstract-wc-product.php:1041 +#: includes/class-wc-cart.php:1612 includes/class-wc-product-grouped.php:156 +#: includes/class-wc-product-variable.php:362 #: includes/class-wc-product-variation.php:326 msgid "Free!" msgstr "" @@ -4943,7 +4924,14 @@ msgstr "" msgid "Download" msgstr "" -#. Plugin Name of the plugin/theme +#: includes/abstracts/abstract-wc-order.php:2301 +#: includes/abstracts/abstract-wc-order.php:2302 +#: includes/admin/class-wc-admin-assets.php:85 +#: includes/admin/class-wc-admin-menus.php:60 +#: includes/admin/meta-boxes/class-wc-meta-box-order-notes.php:50 +#: includes/admin/meta-boxes/class-wc-meta-box-order-notes.php:59 +#: includes/admin/wc-admin-functions.php:22 includes/class-wc-webhook.php:323 +#: includes/class-wc-webhook.php:324 msgid "WooCommerce" msgstr "" @@ -4975,32 +4963,17 @@ msgstr "" msgid "Save to Account" msgstr "" -#: includes/abstracts/abstract-wc-product.php:586 +#: includes/abstracts/abstract-wc-product.php:584 #: includes/class-wc-product-simple.php:48 #: includes/class-wc-product-variation.php:206 msgid "Add to cart" msgstr "" -#: includes/abstracts/abstract-wc-product.php:595 +#: includes/abstracts/abstract-wc-product.php:593 msgid "Read more" msgstr "" -#: includes/abstracts/abstract-wc-product.php:674 -#: includes/abstracts/abstract-wc-product.php:690 -#: includes/abstracts/abstract-wc-product.php:700 -#: includes/admin/class-wc-admin-post-types.php:405 -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:328 -#: includes/admin/reports/class-wc-report-stock.php:115 -#: includes/admin/views/html-bulk-edit-product.php:223 -#: includes/admin/views/html-quick-edit-product.php:166 -#: includes/class-wc-ajax.php:858 includes/class-wc-ajax.php:2466 -#: includes/class-wc-product-variation.php:547 -#: includes/class-wc-product-variation.php:563 -#: includes/class-wc-product-variation.php:573 -msgid "In stock" -msgstr "" - -#: includes/abstracts/abstract-wc-product.php:679 +#: includes/abstracts/abstract-wc-product.php:692 #: includes/admin/class-wc-admin-post-types.php:407 #: includes/admin/class-wc-admin-reports.php:100 #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:329 @@ -5008,38 +4981,48 @@ msgstr "" #: includes/admin/views/html-bulk-edit-product.php:224 #: includes/admin/views/html-quick-edit-product.php:167 #: includes/class-wc-ajax.php:859 includes/class-wc-ajax.php:2467 -#: includes/class-wc-product-variation.php:552 msgid "Out of stock" msgstr "" -#: includes/abstracts/abstract-wc-product.php:684 -#: includes/class-wc-product-variation.php:557 templates/cart/cart.php:92 +#: includes/abstracts/abstract-wc-product.php:694 templates/cart/cart.php:92 msgid "Available on backorder" msgstr "" -#: includes/abstracts/abstract-wc-product.php:694 -#: includes/class-wc-product-variation.php:567 +#: includes/abstracts/abstract-wc-product.php:698 +#: includes/abstracts/abstract-wc-product.php:708 +#: includes/admin/class-wc-admin-post-types.php:405 +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:328 +#: includes/admin/reports/class-wc-report-stock.php:115 +#: includes/admin/views/html-bulk-edit-product.php:223 +#: includes/admin/views/html-quick-edit-product.php:166 +#: includes/class-wc-ajax.php:858 includes/class-wc-ajax.php:2466 +msgid "In stock" +msgstr "" + +#: includes/abstracts/abstract-wc-product.php:702 msgid "Only %s left in stock" msgstr "" -#: includes/abstracts/abstract-wc-product.php:697 -#: includes/abstracts/abstract-wc-product.php:707 -#: includes/class-wc-product-variation.php:570 -#: includes/class-wc-product-variation.php:580 +#: includes/abstracts/abstract-wc-product.php:705 +#: includes/abstracts/abstract-wc-product.php:715 msgid "(also available on backorder)" msgstr "" -#: includes/abstracts/abstract-wc-product.php:704 -#: includes/class-wc-product-variation.php:577 +#: includes/abstracts/abstract-wc-product.php:712 msgid "%s in stock" msgstr "" -#: includes/abstracts/abstract-wc-product.php:1171 +#: includes/abstracts/abstract-wc-product.php:1057 +msgctxt "min_price" +msgid "From:" +msgstr "" + +#: includes/abstracts/abstract-wc-product.php:1196 #: includes/class-wc-embed.php:127 templates/single-product/rating.php:36 msgid "Rated %s out of 5" msgstr "" -#: includes/abstracts/abstract-wc-product.php:1173 +#: includes/abstracts/abstract-wc-product.php:1198 #: includes/admin/class-wc-admin-dashboard.php:192 #: templates/single-product/review-rating.php:29 msgid "out of 5" @@ -5117,11 +5100,11 @@ msgstr "" msgid "Sorry, you are not allowed to manipule this resource." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:146 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:155 msgid "Invalid id." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:167 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:176 #: includes/api/class-wc-rest-order-notes-controller.php:197 #: includes/api/class-wc-rest-order-refunds-controller.php:266 #: includes/api/class-wc-rest-orders-controller.php:881 @@ -5129,89 +5112,87 @@ msgstr "" msgid "Cannot create existing %s." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:250 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:259 #: includes/api/class-wc-rest-orders-controller.php:1081 #: includes/api/class-wc-rest-webhooks-controller.php:214 msgid "ID is invalid." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:409 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:418 #: includes/api/class-wc-rest-webhooks-controller.php:302 msgid "Invalid post id." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:425 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:434 msgid "Sorry, you are not allowed to delete %s." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:437 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:446 msgid "The %s does not support trashing." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:442 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:451 msgid "The %s has already been deleted." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:451 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:460 #: includes/api/class-wc-rest-order-notes-controller.php:295 #: includes/api/class-wc-rest-webhooks-controller.php:311 msgid "The %s cannot be deleted." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:600 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:609 msgid "Limit response to resources published after a given ISO8601 compliant date." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:606 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:615 msgid "Limit response to resources published before a given ISO8601 compliant date." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:612 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:621 #: includes/abstracts/abstract-wc-rest-terms-controller.php:682 #: includes/api/class-wc-rest-customers-controller.php:840 #: includes/api/class-wc-rest-taxes-controller.php:650 msgid "Ensure result set excludes specific ids." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:618 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:627 #: includes/abstracts/abstract-wc-rest-terms-controller.php:688 #: includes/api/class-wc-rest-customers-controller.php:846 #: includes/api/class-wc-rest-taxes-controller.php:656 msgid "Limit result set to specific ids." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:624 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:633 #: includes/abstracts/abstract-wc-rest-terms-controller.php:695 #: includes/api/class-wc-rest-customers-controller.php:852 #: includes/api/class-wc-rest-taxes-controller.php:662 msgid "Offset the result set by a specific number of items." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:630 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:639 #: includes/abstracts/abstract-wc-rest-terms-controller.php:702 #: includes/api/class-wc-rest-customers-controller.php:859 #: includes/api/class-wc-rest-taxes-controller.php:669 msgid "Order sort attribute ascending or descending." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:637 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:646 #: includes/api/class-wc-rest-customers-controller.php:867 #: includes/api/class-wc-rest-taxes-controller.php:677 msgid "Sort collection by object attribute." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:653 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:662 msgid "Limit result set to those of particular parent ids." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:659 +#: includes/abstracts/abstract-wc-rest-posts-controller.php:668 msgid "Limit result set to all items except those of a particular parent id." msgstr "" -#: includes/abstracts/abstract-wc-rest-posts-controller.php:667 -msgid "" -"Use WP Query arguments to modify the response; private query vars require " -"appropriate authorization." +#: includes/abstracts/abstract-wc-rest-posts-controller.php:676 +msgid "Use WP Query arguments to modify the response; private query vars require appropriate authorization." msgstr "" #: includes/abstracts/abstract-wc-rest-terms-controller.php:77 @@ -5308,7 +5289,7 @@ msgid "Select none" msgstr "" #: includes/abstracts/abstract-wc-shipping-method.php:279 -#: includes/admin/class-wc-admin-meta-boxes.php:124 +#: includes/admin/class-wc-admin-meta-boxes.php:121 msgid "Items" msgstr "" @@ -5335,7 +5316,7 @@ msgstr "" #: includes/admin/class-wc-admin-api-keys-table-list.php:40 #: includes/admin/class-wc-admin-post-types.php:256 #: includes/admin/class-wc-admin-setup-wizard.php:227 -#: includes/admin/settings/class-wc-settings-shipping.php:306 +#: includes/admin/settings/class-wc-settings-shipping.php:307 #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:22 #: includes/admin/settings/views/html-keys-edit.php:16 #: includes/gateways/bacs/class-wc-gateway-bacs.php:86 @@ -5407,6 +5388,12 @@ msgstr "" msgid "Read/Write" msgstr "" +#: includes/admin/class-wc-admin-api-keys-table-list.php:154 +#: includes/admin/settings/views/html-keys-edit.php:75 +msgctxt "date and time" +msgid "%1$s at %2$s" +msgstr "" + #: includes/admin/class-wc-admin-api-keys-table-list.php:159 #: includes/admin/settings/views/html-keys-edit.php:79 msgid "Unknown" @@ -5441,14 +5428,96 @@ msgstr "" msgid "Action failed. Please refresh the page and retry." msgstr "" +#: includes/admin/class-wc-admin-assets.php:112 +#: includes/admin/class-wc-admin-setup-wizard.php:96 +#: includes/class-wc-frontend-scripts.php:332 +msgctxt "enhanced select" +msgid "One result is available, press enter to select it." +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:113 +#: includes/admin/class-wc-admin-setup-wizard.php:97 +#: includes/class-wc-frontend-scripts.php:333 +msgctxt "enhanced select" +msgid "%qty% results are available, use up and down arrow keys to navigate." +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:114 +#: includes/admin/class-wc-admin-setup-wizard.php:98 +#: includes/class-wc-frontend-scripts.php:334 +msgctxt "enhanced select" +msgid "No matches found" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:115 +#: includes/admin/class-wc-admin-setup-wizard.php:99 +#: includes/class-wc-frontend-scripts.php:335 +msgctxt "enhanced select" +msgid "Loading failed" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:116 +#: includes/admin/class-wc-admin-setup-wizard.php:100 +#: includes/class-wc-frontend-scripts.php:336 +msgctxt "enhanced select" +msgid "Please enter 1 or more characters" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:117 +#: includes/admin/class-wc-admin-setup-wizard.php:101 +#: includes/class-wc-frontend-scripts.php:337 +msgctxt "enhanced select" +msgid "Please enter %qty% or more characters" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:118 +#: includes/admin/class-wc-admin-setup-wizard.php:102 +#: includes/class-wc-frontend-scripts.php:338 +msgctxt "enhanced select" +msgid "Please delete 1 character" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:119 +#: includes/admin/class-wc-admin-setup-wizard.php:103 +#: includes/class-wc-frontend-scripts.php:339 +msgctxt "enhanced select" +msgid "Please delete %qty% characters" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:120 +#: includes/admin/class-wc-admin-setup-wizard.php:104 +#: includes/class-wc-frontend-scripts.php:340 +msgctxt "enhanced select" +msgid "You can only select 1 item" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:121 +#: includes/admin/class-wc-admin-setup-wizard.php:105 +#: includes/class-wc-frontend-scripts.php:341 +msgctxt "enhanced select" +msgid "You can only select %qty% items" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:122 +#: includes/admin/class-wc-admin-setup-wizard.php:106 +#: includes/class-wc-frontend-scripts.php:342 +msgctxt "enhanced select" +msgid "Loading more results…" +msgstr "" + +#: includes/admin/class-wc-admin-assets.php:123 +#: includes/admin/class-wc-admin-setup-wizard.php:107 +#: includes/class-wc-frontend-scripts.php:343 +msgctxt "enhanced select" +msgid "Searching…" +msgstr "" + #: includes/admin/class-wc-admin-assets.php:146 msgid "Please enter in decimal (%s) format without thousand separators." msgstr "" #: includes/admin/class-wc-admin-assets.php:147 -msgid "" -"Please enter in monetary decimal (%s) format without thousand separators " -"and currency symbols." +msgid "Please enter in monetary decimal (%s) format without thousand separators and currency symbols." msgstr "" #: includes/admin/class-wc-admin-assets.php:148 @@ -5460,10 +5529,7 @@ msgid "Please enter in a value less than the regular price." msgstr "" #: includes/admin/class-wc-admin-assets.php:188 -msgid "" -"Are you sure you want to link all variations? This will create a new " -"variation for each and every possible combination of variation attributes " -"(max 50 per run)." +msgid "Are you sure you want to link all variations? This will create a new variation for each and every possible combination of variation attributes (max 50 per run)." msgstr "" #: includes/admin/class-wc-admin-assets.php:189 @@ -5540,10 +5606,7 @@ msgid "Select an option…" msgstr "" #: includes/admin/class-wc-admin-assets.php:235 -msgid "" -"Are you sure you want to remove the selected items? If you have previously " -"reduced this item's stock, or this order was submitted by a customer, you " -"will need to manually restore the item's stock." +msgid "Are you sure you want to remove the selected items? If you have previously reduced this item's stock, or this order was submitted by a customer, you will need to manually restore the item's stock." msgstr "" #: includes/admin/class-wc-admin-assets.php:236 @@ -5559,9 +5622,7 @@ msgid "Are you sure you wish to delete this refund? This action cannot be undone msgstr "" #: includes/admin/class-wc-admin-assets.php:239 -msgid "" -"Are you sure you wish to delete this tax column? This action cannot be " -"undone." +msgid "Are you sure you wish to delete this tax column? This action cannot be undone." msgstr "" #: includes/admin/class-wc-admin-assets.php:240 @@ -5637,27 +5698,19 @@ msgid "Calculate totals based on order items, discounts, and shipping?" msgstr "" #: includes/admin/class-wc-admin-assets.php:251 -msgid "" -"Calculate line taxes? This will calculate taxes based on the customers " -"country. If no billing/shipping is set it will use the store base country." +msgid "Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country." msgstr "" #: includes/admin/class-wc-admin-assets.php:252 -msgid "" -"Copy billing information to shipping information? This will remove any " -"currently entered shipping information." +msgid "Copy billing information to shipping information? This will remove any currently entered shipping information." msgstr "" #: includes/admin/class-wc-admin-assets.php:253 -msgid "" -"Load the customer's billing information? This will remove any currently " -"entered billing information." +msgid "Load the customer's billing information? This will remove any currently entered billing information." msgstr "" #: includes/admin/class-wc-admin-assets.php:254 -msgid "" -"Load the customer's shipping information? This will remove any currently " -"entered shipping information." +msgid "Load the customer's shipping information? This will remove any currently entered shipping information." msgstr "" #: includes/admin/class-wc-admin-assets.php:255 @@ -5673,10 +5726,7 @@ msgid "No customer selected" msgstr "" #: includes/admin/class-wc-admin-assets.php:283 -msgid "" -"Could not grant access - the user may already have permission for this file " -"or billing email is not set. Ensure the billing email is set, and the order " -"has been saved." +msgid "Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved." msgstr "" #: includes/admin/class-wc-admin-assets.php:284 @@ -5688,9 +5738,7 @@ msgid "You cannot add the same tax rate twice!" msgstr "" #: includes/admin/class-wc-admin-assets.php:286 -msgid "" -"Your product has variations! Before changing the product type, it is a good " -"idea to delete the variations to avoid errors in the stock reports." +msgid "Your product has variations! Before changing the product type, it is a good idea to delete the variations to avoid errors in the stock reports." msgstr "" #: includes/admin/class-wc-admin-assets.php:287 @@ -5703,14 +5751,14 @@ msgid "Copying to clipboard failed. Please press Ctrl/Cmd+C to copy." msgstr "" #: includes/admin/class-wc-admin-attributes.php:98 -#: includes/api/legacy/v2/class-wc-api-products.php:2061 -#: includes/api/legacy/v3/class-wc-api-products.php:2642 +#: includes/api/legacy/v2/class-wc-api-products.php:2064 +#: includes/api/legacy/v3/class-wc-api-products.php:2645 msgid "Slug \"%s\" is too long (28 characters max). Shorten it, please." msgstr "" #: includes/admin/class-wc-admin-attributes.php:100 -#: includes/api/legacy/v2/class-wc-api-products.php:2063 -#: includes/api/legacy/v3/class-wc-api-products.php:2644 +#: includes/api/legacy/v2/class-wc-api-products.php:2066 +#: includes/api/legacy/v3/class-wc-api-products.php:2647 msgid "Slug \"%s\" is not allowed because it is a reserved term. Change it, please." msgstr "" @@ -5721,8 +5769,8 @@ msgstr "" #: includes/admin/class-wc-admin-attributes.php:121 #: includes/admin/class-wc-admin-attributes.php:154 -#: includes/api/legacy/v2/class-wc-api-products.php:2065 -#: includes/api/legacy/v3/class-wc-api-products.php:2646 +#: includes/api/legacy/v2/class-wc-api-products.php:2068 +#: includes/api/legacy/v3/class-wc-api-products.php:2649 msgid "Slug \"%s\" is already in use. Change it, please." msgstr "" @@ -5746,7 +5794,7 @@ msgstr "" #: includes/admin/class-wc-admin-attributes.php:285 #: includes/admin/class-wc-admin-attributes.php:366 #: includes/admin/class-wc-admin-attributes.php:450 -#: includes/admin/settings/class-wc-settings-shipping.php:305 +#: includes/admin/settings/class-wc-settings-shipping.php:306 #: includes/admin/settings/views/html-admin-page-shipping-classes.php:62 msgid "Slug" msgstr "" @@ -5763,9 +5811,7 @@ msgstr "" #: includes/admin/class-wc-admin-attributes.php:298 #: includes/admin/class-wc-admin-attributes.php:458 -msgid "" -"Enable this if you want this attribute to have product archives in your " -"store." +msgid "Enable this if you want this attribute to have product archives in your store." msgstr "" #: includes/admin/class-wc-admin-attributes.php:303 @@ -5778,11 +5824,7 @@ msgstr "" #: includes/admin/class-wc-admin-attributes.php:321 #: includes/admin/class-wc-admin-attributes.php:478 -msgid "" -"Determines how you select attributes for products. Under admin panel -> " -"products -> product data -> attributes -> values, Text " -"allows manual entry whereas select allows pre-configured " -"terms in a drop-down list." +msgid "Determines how you select attributes for products. Under admin panel -> products -> product data -> attributes -> values, Text allows manual entry whereas select allows pre-configured terms in a drop-down list." msgstr "" #: includes/admin/class-wc-admin-attributes.php:326 @@ -5810,9 +5852,7 @@ msgstr "" #: includes/admin/class-wc-admin-attributes.php:335 #: includes/admin/class-wc-admin-attributes.php:489 -msgid "" -"Determines the sort order of the terms on the frontend shop product pages. " -"If using custom ordering, you can drag and drop the terms in this attribute." +msgid "Determines the sort order of the terms on the frontend shop product pages. If using custom ordering, you can drag and drop the terms in this attribute." msgstr "" #: includes/admin/class-wc-admin-attributes.php:340 @@ -5857,7 +5897,7 @@ msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-images.php:78 #: includes/admin/meta-boxes/views/html-product-download.php:6 #: includes/admin/meta-boxes/views/html-product-variation-download.php:5 -#: includes/wc-account-functions.php:244 +#: includes/wc-account-functions.php:246 msgid "Delete" msgstr "" @@ -5878,10 +5918,7 @@ msgid "Add New Attribute" msgstr "" #: includes/admin/class-wc-admin-attributes.php:441 -msgid "" -"Attributes let you define extra product data, such as size or colour. You " -"can use these attributes in the shop sidebar using the \"layered nav\" " -"widgets. Please note: you cannot rename an attribute later on." +msgid "Attributes let you define extra product data, such as size or colour. You can use these attributes in the shop sidebar using the \"layered nav\" widgets. Please note: you cannot rename an attribute later on." msgstr "" #: includes/admin/class-wc-admin-attributes.php:492 @@ -6105,23 +6142,15 @@ msgid "Help & Support" msgstr "" #: includes/admin/class-wc-admin-help.php:185 -msgid "" -"Should you need help understanding, using, or extending WooCommerce, " -"%splease read our documentation%s. You will find all kinds of resources " -"including snippets, tutorials and much more." +msgid "Should you need help understanding, using, or extending WooCommerce, %splease read our documentation%s. You will find all kinds of resources including snippets, tutorials and much more." msgstr "" #: includes/admin/class-wc-admin-help.php:190 -msgid "" -"For further assistance with WooCommerce core you can use the %scommunity " -"forum%s. If you need help with premium add-ons sold by WooThemes, please " -"%suse our helpdesk%s." +msgid "For further assistance with WooCommerce core you can use the %scommunity forum%s. If you need help with premium add-ons sold by WooThemes, please %suse our helpdesk%s." msgstr "" #: includes/admin/class-wc-admin-help.php:196 -msgid "" -"Before asking for help we recommend checking the system status page to " -"identify any problems with your configuration." +msgid "Before asking for help we recommend checking the system status page to identify any problems with your configuration." msgstr "" #: includes/admin/class-wc-admin-help.php:197 @@ -6138,12 +6167,7 @@ msgid "Found a bug?" msgstr "" #: includes/admin/class-wc-admin-help.php:205 -msgid "" -"If you find a bug within WooCommerce core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help " -"us solve your issue, please be as descriptive as possible and include your " -"system status report." +msgid "If you find a bug within WooCommerce core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your system status report." msgstr "" #: includes/admin/class-wc-admin-help.php:206 @@ -6156,9 +6180,7 @@ msgid "Education" msgstr "" #: includes/admin/class-wc-admin-help.php:215 -msgid "" -"If you would like to learn about using WooCommerce from an expert, consider " -"following a WooCommerce course ran by one of our educational partners." +msgid "If you would like to learn about using WooCommerce from an expert, consider following a WooCommerce course ran by one of our educational partners." msgstr "" #: includes/admin/class-wc-admin-help.php:216 @@ -6172,9 +6194,7 @@ msgid "Setup Wizard" msgstr "" #: includes/admin/class-wc-admin-help.php:224 -msgid "" -"If you need to access the setup wizard again, please click on the button " -"below." +msgid "If you need to access the setup wizard again, please click on the button below." msgstr "" #: includes/admin/class-wc-admin-help.php:230 @@ -6234,6 +6254,12 @@ msgstr "" msgid "Add-ons" msgstr "" +#: includes/admin/class-wc-admin-menus.php:142 +#: includes/class-wc-post-types.php:312 +msgctxt "Admin menu name" +msgid "Orders" +msgstr "" + #: includes/admin/class-wc-admin-menus.php:236 msgid "WooCommerce Endpoints" msgstr "" @@ -6250,48 +6276,46 @@ msgstr "" msgid "Visit Store" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:116 +#: includes/admin/class-wc-admin-meta-boxes.php:113 #: includes/admin/class-wc-admin-pointers.php:156 msgid "Product Short Description" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:117 +#: includes/admin/class-wc-admin-meta-boxes.php:114 #: includes/admin/views/html-bulk-edit-product.php:15 #: includes/admin/views/html-quick-edit-product.php:15 msgid "Product Data" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:118 +#: includes/admin/class-wc-admin-meta-boxes.php:115 msgid "Product Gallery" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:123 +#: includes/admin/class-wc-admin-meta-boxes.php:120 msgid "%s Data" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:125 +#: includes/admin/class-wc-admin-meta-boxes.php:122 msgid "%s Notes" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:126 +#: includes/admin/class-wc-admin-meta-boxes.php:123 msgid "Downloadable Product Permissions" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:126 -msgid "" -"Note: Permissions for order items will automatically be granted when the " -"order status changes to processing/completed." +#: includes/admin/class-wc-admin-meta-boxes.php:123 +msgid "Note: Permissions for order items will automatically be granted when the order status changes to processing/completed." msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:127 +#: includes/admin/class-wc-admin-meta-boxes.php:124 msgid "%s Actions" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:131 +#: includes/admin/class-wc-admin-meta-boxes.php:128 msgid "Coupon Data" msgstr "" -#: includes/admin/class-wc-admin-meta-boxes.php:167 +#: includes/admin/class-wc-admin-meta-boxes.php:164 #: includes/admin/settings/class-wc-settings-products.php:462 #: templates/single-product-reviews.php:35 msgid "Reviews" @@ -6323,10 +6347,33 @@ msgstr "" msgid "Product attribute base" msgstr "" +#: includes/admin/class-wc-admin-permalink-settings.php:68 +#: includes/class-wc-post-types.php:87 includes/wc-update-functions.php:51 +msgctxt "slug" +msgid "product-category" +msgstr "" + +#: includes/admin/class-wc-admin-permalink-settings.php:78 +#: includes/class-wc-post-types.php:125 includes/wc-update-functions.php:52 +msgctxt "slug" +msgid "product-tag" +msgstr "" + #: includes/admin/class-wc-admin-permalink-settings.php:96 msgid "These settings control the permalinks used specifically for products." msgstr "" +#: includes/admin/class-wc-admin-permalink-settings.php:103 +#: includes/admin/class-wc-admin-permalink-settings.php:204 +msgctxt "default-slug" +msgid "shop" +msgstr "" + +#: includes/admin/class-wc-admin-permalink-settings.php:104 +msgctxt "default-slug" +msgid "product" +msgstr "" + #: includes/admin/class-wc-admin-permalink-settings.php:115 #: includes/admin/class-wc-admin-taxonomies.php:94 #: includes/admin/class-wc-admin-taxonomies.php:201 @@ -6346,9 +6393,14 @@ msgid "Custom Base" msgstr "" #: includes/admin/class-wc-admin-permalink-settings.php:132 -msgid "" -"Enter a custom base to use. A base must be set or " -"WordPress will use default instead." +msgid "Enter a custom base to use. A base must be set or WordPress will use default instead." +msgstr "" + +#: includes/admin/class-wc-admin-permalink-settings.php:194 +#: includes/class-wc-post-types.php:235 includes/wc-core-functions.php:790 +#: includes/wc-core-functions.php:825 includes/wc-update-functions.php:60 +msgctxt "slug" +msgid "product" msgstr "" #: includes/admin/class-wc-admin-pointers.php:60 @@ -6356,9 +6408,7 @@ msgid "Product Name" msgstr "" #: includes/admin/class-wc-admin-pointers.php:61 -msgid "" -"Give your new product a name here. This is a required field and will be " -"what your customers will see in your store." +msgid "Give your new product a name here. This is a required field and will be what your customers will see in your store." msgstr "" #: includes/admin/class-wc-admin-pointers.php:73 @@ -6367,9 +6417,7 @@ msgid "Product Description" msgstr "" #: includes/admin/class-wc-admin-pointers.php:74 -msgid "" -"This is your products main body of content. Here you should describe your " -"product in detail." +msgid "This is your products main body of content. Here you should describe your product in detail." msgstr "" #: includes/admin/class-wc-admin-pointers.php:89 @@ -6377,9 +6425,7 @@ msgid "Choose Product Type" msgstr "" #: includes/admin/class-wc-admin-pointers.php:90 -msgid "" -"Choose a type for this product. Simple is suitable for most physical goods " -"and services (we recommend setting up a simple product for now)." +msgid "Choose a type for this product. Simple is suitable for most physical goods and services (we recommend setting up a simple product for now)." msgstr "" #: includes/admin/class-wc-admin-pointers.php:91 @@ -6399,9 +6445,7 @@ msgid "Virtual Products" msgstr "" #: includes/admin/class-wc-admin-pointers.php:109 -msgid "" -"Check the \"Virtual\" box if this is a non-physical item, for example a " -"service, which does not need shipping." +msgid "Check the \"Virtual\" box if this is a non-physical item, for example a service, which does not need shipping." msgstr "" #: includes/admin/class-wc-admin-pointers.php:124 @@ -6411,9 +6455,7 @@ msgid "Downloadable Products" msgstr "" #: includes/admin/class-wc-admin-pointers.php:125 -msgid "" -"If purchasing this product gives a customer access to a downloadable file, " -"e.g. software, check this box." +msgid "If purchasing this product gives a customer access to a downloadable file, e.g. software, check this box." msgstr "" #: includes/admin/class-wc-admin-pointers.php:140 @@ -6425,9 +6467,7 @@ msgid "Next you'll need to give your product a price." msgstr "" #: includes/admin/class-wc-admin-pointers.php:157 -msgid "" -"Add a quick summary for your product here. This will appear on the product " -"page under the product name." +msgid "Add a quick summary for your product here. This will appear on the product page under the product name." msgstr "" #: includes/admin/class-wc-admin-pointers.php:168 @@ -6436,9 +6476,7 @@ msgid "Product Images" msgstr "" #: includes/admin/class-wc-admin-pointers.php:169 -msgid "" -"Upload or assign an image to your product here. This image will be shown in " -"your store's catalog." +msgid "Upload or assign an image to your product here. This image will be shown in your store's catalog." msgstr "" #: includes/admin/class-wc-admin-pointers.php:180 @@ -6448,15 +6486,11 @@ msgid "Product Tags" msgstr "" #: includes/admin/class-wc-admin-pointers.php:181 -msgid "" -"You can optionally \"tag\" your products here. Tags as a method of labeling " -"your products to make them easier for customers to find." +msgid "You can optionally \"tag\" your products here. Tags as a method of labeling your products to make them easier for customers to find." msgstr "" #: includes/admin/class-wc-admin-pointers.php:193 -msgid "" -"Optionally assign categories to your products to make them easier to browse " -"through and find in your store." +msgid "Optionally assign categories to your products to make them easier to browse through and find in your store." msgstr "" #: includes/admin/class-wc-admin-pointers.php:204 @@ -6464,9 +6498,7 @@ msgid "Publish Your Product!" msgstr "" #: includes/admin/class-wc-admin-pointers.php:205 -msgid "" -"When you are finished editing your product, hit the \"Publish\" button to " -"publish your product to your store." +msgid "When you are finished editing your product, hit the \"Publish\" button to publish your product to your store." msgstr "" #: includes/admin/class-wc-admin-post-types.php:127 @@ -6506,9 +6538,7 @@ msgid "Product submitted. Preview Product" msgstr "" #: includes/admin/class-wc-admin-post-types.php:135 -msgid "" -"Product scheduled for: %1$s. Preview Product" +msgid "Product scheduled for: %1$s. Preview Product" msgstr "" #: includes/admin/class-wc-admin-post-types.php:136 @@ -6717,7 +6747,7 @@ msgstr "" #: includes/admin/reports/class-wc-report-sales-by-product.php:375 #: includes/admin/settings/views/html-webhook-logs.php:17 #: includes/admin/settings/views/html-webhook-logs.php:25 -#: includes/wc-account-functions.php:166 +#: includes/wc-account-functions.php:168 #: includes/widgets/class-wc-widget-products.php:55 #: templates/myaccount/my-orders.php:14 msgid "Date" @@ -6754,14 +6784,14 @@ msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:671 #: includes/admin/settings/views/html-webhook-log.php:25 #: includes/admin/settings/views/html-webhooks-edit.php:24 -#: includes/wc-account-functions.php:167 templates/myaccount/my-orders.php:15 +#: includes/wc-account-functions.php:169 templates/myaccount/my-orders.php:15 msgid "Status" msgstr "" #: includes/admin/class-wc-admin-post-types.php:273 #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:165 #: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php:195 -#: includes/wc-account-functions.php:165 templates/myaccount/my-orders.php:13 +#: includes/wc-account-functions.php:167 templates/myaccount/my-orders.php:13 msgid "Order" msgstr "" @@ -6789,7 +6819,7 @@ msgstr "" #: includes/admin/class-wc-admin-post-types.php:280 #: includes/admin/meta-boxes/views/html-order-items.php:54 #: includes/admin/reports/class-wc-report-taxes-by-code.php:177 -#: includes/wc-account-functions.php:168 templates/cart/cart-totals.php:92 +#: includes/wc-account-functions.php:170 templates/cart/cart-totals.php:92 #: templates/cart/cart-totals.php:93 templates/cart/cart.php:39 #: templates/cart/cart.php:120 templates/checkout/review-order.php:27 #: templates/checkout/review-order.php:106 templates/myaccount/my-orders.php:16 @@ -6934,6 +6964,11 @@ msgstr "" msgid "View" msgstr "" +#: includes/admin/class-wc-admin-post-types.php:535 +msgctxt "Count / Limit" +msgid "%1$s / %2$s" +msgstr "" + #: includes/admin/class-wc-admin-post-types.php:623 msgid "Unpublished" msgstr "" @@ -6979,6 +7014,11 @@ msgstr[1] "" msgid "Guest" msgstr "" +#: includes/admin/class-wc-admin-post-types.php:762 +msgctxt "Order number by X" +msgid "%s by %s" +msgstr "" + #: includes/admin/class-wc-admin-post-types.php:768 msgid "Show more details" msgstr "" @@ -7093,9 +7133,7 @@ msgid "Catalog visibility:" msgstr "" #: includes/admin/class-wc-admin-post-types.php:2124 -msgid "" -"Choose where this product should be displayed in your catalog. The product " -"will always be accessible directly." +msgid "Choose where this product should be displayed in your catalog. The product will always be accessible directly." msgstr "" #: includes/admin/class-wc-admin-post-types.php:2130 @@ -7128,9 +7166,7 @@ msgid "Learn more about orders" msgstr "" #: includes/admin/class-wc-admin-post-types.php:2281 -msgid "" -"Coupons are a great way to offer discounts and rewards to your customers. " -"They will appear here once created." +msgid "Coupons are a great way to offer discounts and rewards to your customers. They will appear here once created." msgstr "" #: includes/admin/class-wc-admin-post-types.php:2282 @@ -7316,9 +7352,7 @@ msgid "The changes you made will be lost if you navigate away from this page." msgstr "" #: includes/admin/class-wc-admin-settings.php:514 -msgid "" -"The settings of this image size have been disabled because its values are " -"being overwritten by a filter." +msgid "The settings of this image size have been disabled because its values are being overwritten by a filter." msgstr "" #: includes/admin/class-wc-admin-settings.php:523 @@ -7377,17 +7411,11 @@ msgid "Welcome to the world of WooCommerce!" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:206 -msgid "" -"Thank you for choosing WooCommerce to power your online store! This quick " -"setup wizard will help you configure the basic settings. It’s " -"completely optional and shouldn’t take longer than five minutes." +msgid "Thank you for choosing WooCommerce to power your online store! This quick setup wizard will help you configure the basic settings. It’s completely optional and shouldn’t take longer than five minutes." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:207 -msgid "" -"No time right now? If you don’t want to go through the wizard, you can skip " -"and return to the WordPress dashboard. Come back anytime if you change your " -"mind!" +msgid "No time right now? If you don’t want to go through the wizard, you can skip and return to the WordPress dashboard. Come back anytime if you change your mind!" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:209 @@ -7399,40 +7427,55 @@ msgid "Not right now" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:222 -msgid "" -"Your store needs a few essential %spages%s. The following will be created " -"automatically (if they do not already exist):" +msgid "Your store needs a few essential %spages%s. The following will be created automatically (if they do not already exist):" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:226 msgid "Page Name" msgstr "" +#: includes/admin/class-wc-admin-setup-wizard.php:232 +#: includes/class-wc-install.php:295 +msgctxt "Page title" +msgid "Shop" +msgstr "" + #: includes/admin/class-wc-admin-setup-wizard.php:233 msgid "The shop page will display your products." msgstr "" +#: includes/admin/class-wc-admin-setup-wizard.php:236 +#: includes/class-wc-install.php:300 +msgctxt "Page title" +msgid "Cart" +msgstr "" + #: includes/admin/class-wc-admin-setup-wizard.php:237 -msgid "" -"The cart page will be where the customers go to view their cart and begin " -"checkout." +msgid "The cart page will be where the customers go to view their cart and begin checkout." +msgstr "" + +#: includes/admin/class-wc-admin-setup-wizard.php:240 +#: includes/class-wc-install.php:305 +msgctxt "Page title" +msgid "Checkout" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:242 msgid "The checkout page will be where the customers go to pay for their items." msgstr "" +#: includes/admin/class-wc-admin-setup-wizard.php:246 +#: includes/class-wc-install.php:310 +msgctxt "Page title" +msgid "My Account" +msgstr "" + #: includes/admin/class-wc-admin-setup-wizard.php:248 -msgid "" -"Registered customers will be able to manage their account details and view " -"past orders on this page." +msgid "Registered customers will be able to manage their account details and view past orders on this page." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:254 -msgid "" -"Once created, these pages can be managed from your admin dashboard on the " -"%sPages screen%s. You can control which pages are shown on your website via " -"%sAppearance > Menus%s." +msgid "Once created, these pages can be managed from your admin dashboard on the %sPages screen%s. You can control which pages are shown on your website via %sAppearance > Menus%s." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:257 @@ -7573,9 +7616,7 @@ msgid "Shipping & Tax Setup" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:416 -msgid "" -"If you will be charging sales tax, or shipping physical goods to customers, " -"you can enable these below. This is optional and can be changed later." +msgid "If you will be charging sales tax, or shipping physical goods to customers, you can enable these below. This is optional and can be changed later." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:419 @@ -7607,9 +7648,7 @@ msgid "I will enter prices exclusive of tax" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:459 -msgid "" -"The following tax rates will be imported automatically for you. You can " -"read more about taxes in %1$sour documentation%2$s." +msgid "The following tax rates will be imported automatically for you. You can read more about taxes in %1$sour documentation%2$s." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:465 @@ -7622,17 +7661,12 @@ msgid "Rate (%)" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:486 -msgid "" -"You may you need to add/edit rates based on your products or business " -"location which can be done from the %1$stax settings%2$s screen. If in " -"doubt, speak to an accountant." +msgid "You may you need to add/edit rates based on your products or business location which can be done from the %1$stax settings%2$s screen. If in doubt, speak to an accountant." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:569 #: includes/admin/class-wc-admin-setup-wizard.php:576 -msgid "" -"Safe and secure payments using credit cards or your customer's PayPal " -"account. %sLearn more about PayPal%s." +msgid "Safe and secure payments using credit cards or your customer's PayPal account. %sLearn more about PayPal%s." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:574 @@ -7640,9 +7674,7 @@ msgid "PayPal Express Checkout" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:583 -msgid "" -"A modern and robust way to accept credit card payments on your store. " -"%sLearn more about Stripe%s." +msgid "A modern and robust way to accept credit card payments on your store. %sLearn more about Stripe%s." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:589 @@ -7654,6 +7686,13 @@ msgstr "" msgid "PayPal email address" msgstr "" +#: includes/admin/class-wc-admin-setup-wizard.php:602 +#: includes/gateways/cheque/class-wc-gateway-cheque.php:27 +#: includes/gateways/cheque/class-wc-gateway-cheque.php:63 +msgctxt "Check payment method" +msgid "Check Payments" +msgstr "" + #: includes/admin/class-wc-admin-setup-wizard.php:603 msgid "A simple offline gateway that lets you accept a check as method of payment." msgstr "" @@ -7667,10 +7706,7 @@ msgid "An simple offline gateway that lets you accept cash on delivery." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:646 -msgid "" -"WooCommerce can accept both online and offline payments. %2$sAdditional " -"payment methods%3$s can be installed later and managed from the " -"%1$scheckout settings%3$s screen." +msgid "WooCommerce can accept both online and offline payments. %2$sAdditional payment methods%3$s can be installed later and managed from the %1$scheckout settings%3$s screen." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:751 @@ -7678,9 +7714,7 @@ msgid "Your Store is Ready!" msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:755 -msgid "" -"Want to help make WooCommerce even more awesome? Allow WooThemes to collect " -"non-sensitive diagnostic data and usage information. %sFind out more%s." +msgid "Want to help make WooCommerce even more awesome? Allow WooThemes to collect non-sensitive diagnostic data and usage information. %sFind out more%s." msgstr "" #: includes/admin/class-wc-admin-setup-wizard.php:757 @@ -7789,9 +7823,7 @@ msgid "Recount terms" msgstr "" #: includes/admin/class-wc-admin-status.php:163 -msgid "" -"This tool will recount product terms - useful when changing your settings " -"in a way which hides products from the catalog." +msgid "This tool will recount product terms - useful when changing your settings in a way which hides products from the catalog." msgstr "" #: includes/admin/class-wc-admin-status.php:166 @@ -7803,9 +7835,7 @@ msgid "Reset capabilities" msgstr "" #: includes/admin/class-wc-admin-status.php:168 -msgid "" -"This tool will reset the admin, customer and shop_manager roles to default. " -"Use this if your users cannot access all of the WooCommerce admin pages." +msgid "This tool will reset the admin, customer and shop_manager roles to default. Use this if your users cannot access all of the WooCommerce admin pages." msgstr "" #: includes/admin/class-wc-admin-status.php:171 @@ -7817,9 +7847,7 @@ msgid "Clear all sessions" msgstr "" #: includes/admin/class-wc-admin-status.php:173 -msgid "" -"Warning: This tool will delete all customer " -"session data from the database, including any current live carts." +msgid "Warning: This tool will delete all customer session data from the database, including any current live carts." msgstr "" #: includes/admin/class-wc-admin-status.php:176 @@ -7831,9 +7859,7 @@ msgid "Install pages" msgstr "" #: includes/admin/class-wc-admin-status.php:178 -msgid "" -"Note: This tool will install all the missing " -"WooCommerce pages. Pages already defined and set up will not be replaced." +msgid "Note: This tool will install all the missing WooCommerce pages. Pages already defined and set up will not be replaced." msgstr "" #: includes/admin/class-wc-admin-status.php:181 @@ -7845,9 +7871,7 @@ msgid "Delete ALL tax rates" msgstr "" #: includes/admin/class-wc-admin-status.php:183 -msgid "" -"Note: This option will delete ALL of your " -"tax rates, use with caution." +msgid "Note: This option will delete ALL of your tax rates, use with caution." msgstr "" #: includes/admin/class-wc-admin-status.php:186 @@ -7859,9 +7883,7 @@ msgid "Reset usage tracking settings" msgstr "" #: includes/admin/class-wc-admin-status.php:188 -msgid "" -"This will reset your usage tracking settings, causing it to show the opt-in " -"banner again and not sending any data." +msgid "This will reset your usage tracking settings, causing it to show the opt-in banner again and not sending any data." msgstr "" #: includes/admin/class-wc-admin-taxonomies.php:92 @@ -7911,19 +7933,11 @@ msgid "Use image" msgstr "" #: includes/admin/class-wc-admin-taxonomies.php:293 -msgid "" -"Product categories for your store can be managed here. To change the order " -"of categories on the front-end you can drag and drop to sort them. To see " -"more categories listed click the \"screen options\" link at the top of the " -"page." +msgid "Product categories for your store can be managed here. To change the order of categories on the front-end you can drag and drop to sort them. To see more categories listed click the \"screen options\" link at the top of the page." msgstr "" #: includes/admin/class-wc-admin-taxonomies.php:300 -msgid "" -"Attribute terms can be assigned to products and " -"variations.

    Note: Deleting a term will remove it from all " -"products and variations to which it has been assigned. Recreating a term " -"will not automatically assign it back to products." +msgid "Attribute terms can be assigned to products and variations.

    Note: Deleting a term will remove it from all products and variations to which it has been assigned. Recreating a term will not automatically assign it back to products." msgstr "" #: includes/admin/class-wc-admin-webhooks-table-list.php:26 @@ -7959,6 +7973,13 @@ msgstr "" msgid "Disabled (%s)" msgstr "" +#: includes/admin/class-wc-admin-webhooks-table-list.php:212 +msgctxt "posts" +msgid "All (%s)" +msgid_plural "All (%s)" +msgstr[0] "" +msgstr[1] "" + #: includes/admin/class-wc-admin-webhooks-table-list.php:252 #: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php:78 #: includes/admin/settings/views/html-webhooks-edit.php:153 @@ -7977,6 +7998,16 @@ msgstr "" msgid "Webhook created on %s" msgstr "" +#: includes/admin/class-wc-admin-webhooks.php:49 +#: includes/admin/class-wc-admin-webhooks.php:198 +#: includes/admin/settings/views/html-webhooks-edit.php:16 +#: includes/api/class-wc-rest-webhooks-controller.php:347 +#: includes/api/legacy/v2/class-wc-api-webhooks.php:197 +#: includes/api/legacy/v3/class-wc-api-webhooks.php:197 +msgctxt "Webhook created on date parsed by strftime" +msgid "%b %d, %Y @ %I:%M %p" +msgstr "" + #: includes/admin/class-wc-admin-webhooks.php:189 msgid "You don't have permissions to create Webhooks!" msgstr "" @@ -8045,22 +8076,19 @@ msgstr "" msgid "Next ›" msgstr "" -#: includes/admin/class-wc-admin.php:172 +#: includes/admin/class-wc-admin.php:182 msgid "HTML Email Template" msgstr "" -#: includes/admin/class-wc-admin.php:219 -msgid "" -"If you like WooCommerce please leave us a " -"%s★★★★★%s rating. A huge thank you from " -"WooThemes in advance!" +#: includes/admin/class-wc-admin.php:229 +msgid "If you like WooCommerce please leave us a %s★★★★★%s rating. A huge thank you from WooThemes in advance!" msgstr "" -#: includes/admin/class-wc-admin.php:219 +#: includes/admin/class-wc-admin.php:229 msgid "Thanks :)" msgstr "" -#: includes/admin/class-wc-admin.php:227 +#: includes/admin/class-wc-admin.php:237 msgid "Thank you for selling with WooCommerce." msgstr "" @@ -8089,22 +8117,15 @@ msgid "Import Tax Rates" msgstr "" #: includes/admin/importers/class-wc-tax-rate-importer.php:230 -msgid "" -"Hi there! Upload a CSV file containing tax rates to import the contents " -"into your shop. Choose a .csv file to upload, then click \"Upload file and " -"import\"." +msgid "Hi there! Upload a CSV file containing tax rates to import the contents into your shop. Choose a .csv file to upload, then click \"Upload file and import\"." msgstr "" #: includes/admin/importers/class-wc-tax-rate-importer.php:232 -msgid "" -"Tax rates need to be defined with columns in a specific order (10 columns). " -"Click here to download a sample." +msgid "Tax rates need to be defined with columns in a specific order (10 columns). Click here to download a sample." msgstr "" #: includes/admin/importers/class-wc-tax-rate-importer.php:240 -msgid "" -"Before you can upload your import file, you will need to fix the following " -"error:" +msgid "Before you can upload your import file, you will need to fix the following error:" msgstr "" #: includes/admin/importers/class-wc-tax-rate-importer.php:249 @@ -8159,16 +8180,18 @@ msgid "Allow free shipping" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:73 -msgid "" -"Check this box if the coupon grants free shipping. The free " -"shipping method must be enabled and be set to require \"a valid free " -"shipping coupon\" (see the \"Free Shipping Requires\" setting)." +msgid "Check this box if the coupon grants free shipping. The free shipping method must be enabled and be set to require \"a valid free shipping coupon\" (see the \"Free Shipping Requires\" setting)." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:76 msgid "Coupon expiry date" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:76 +msgctxt "placeholder" +msgid "YYYY-MM-DD" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:86 msgid "Minimum spend" msgstr "" @@ -8178,9 +8201,7 @@ msgid "No minimum" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:86 -msgid "" -"This field allows you to set the minimum spend (subtotal, including taxes) " -"allowed to use the coupon." +msgid "This field allows you to set the minimum spend (subtotal, including taxes) allowed to use the coupon." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:89 @@ -8192,9 +8213,7 @@ msgid "No maximum" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:89 -msgid "" -"This field allows you to set the maximum spend (subtotal, including taxes) " -"allowed when using the coupon." +msgid "This field allows you to set the maximum spend (subtotal, including taxes) allowed when using the coupon." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:92 @@ -8202,9 +8221,7 @@ msgid "Individual use only" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:92 -msgid "" -"Check this box if the coupon cannot be used in conjunction with other " -"coupons." +msgid "Check this box if the coupon cannot be used in conjunction with other coupons." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:95 @@ -8212,10 +8229,7 @@ msgid "Exclude sale items" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:95 -msgid "" -"Check this box if the coupon should not apply to items on sale. Per-item " -"coupons will only work if the item is not on sale. Per-cart coupons will " -"only work if there are no sale items in the cart." +msgid "Check this box if the coupon should not apply to items on sale. Per-item coupons will only work if the item is not on sale. Per-cart coupons will only work if there are no sale items in the cart." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:102 @@ -8229,9 +8243,7 @@ msgid "Search for a product…" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:114 -msgid "" -"Products which need to be in the cart to use this coupon or, for \"Product " -"Discounts\", which products are discounted." +msgid "Products which need to be in the cart to use this coupon or, for \"Product Discounts\", which products are discounted." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:119 @@ -8239,9 +8251,7 @@ msgid "Exclude products" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:132 -msgid "" -"Products which must not be in the cart to use this coupon or, for \"Product " -"Discounts\", which products are not discounted." +msgid "Products which must not be in the cart to use this coupon or, for \"Product Discounts\", which products are not discounted." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:139 @@ -8253,9 +8263,7 @@ msgid "Any category" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:149 -msgid "" -"A product must be in this category for the coupon to remain valid or, for " -"\"Product Discounts\", products in these categories will be discounted." +msgid "A product must be in this category for the coupon to remain valid or, for \"Product Discounts\", products in these categories will be discounted." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:154 @@ -8267,9 +8275,7 @@ msgid "No categories" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:164 -msgid "" -"Product must not be in this category for the coupon to remain valid or, for " -"\"Product Discounts\", products in these categories will not be discounted." +msgid "Product must not be in this category for the coupon to remain valid or, for \"Product Discounts\", products in these categories will not be discounted." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:170 @@ -8281,15 +8287,19 @@ msgid "No restrictions" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:170 -msgid "" -"List of allowed emails to check against the customer's billing email when " -"an order is placed. Separate email addresses with commas." +msgid "List of allowed emails to check against the customer's billing email when an order is placed. Separate email addresses with commas." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:184 msgid "Usage limit per coupon" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:184 +#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:196 +msgctxt "placeholder" +msgid "Unlimited usage" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:184 msgid "How many times this coupon can be used before it is void." msgstr "" @@ -8299,9 +8309,12 @@ msgid "Limit usage to X items" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:190 -msgid "" -"The maximum number of individual items this coupon can apply to when using " -"product discounts. Leave blank to apply to all qualifying items in cart." +msgctxt "placeholder" +msgid "Apply to all qualifying items in cart" +msgstr "" + +#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:190 +msgid "The maximum number of individual items this coupon can apply to when using product discounts. Leave blank to apply to all qualifying items in cart." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:196 @@ -8309,15 +8322,11 @@ msgid "Usage limit per user" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:196 -msgid "" -"How many times this coupon can be used by an invidual user. Uses billing " -"email for guests, and user ID for logged in users." +msgid "How many times this coupon can be used by an invidual user. Uses billing email for guests, and user ID for logged in users." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:236 -msgid "" -"Coupon code already exists - customers will use the latest coupon with this " -"code." +msgid "Coupon code already exists - customers will use the latest coupon with this code." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-order-actions.php:44 @@ -8361,10 +8370,20 @@ msgstr "" msgid "Phone" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:169 +msgctxt "Order #123 details" +msgid "%s #%s details" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:173 msgid "Payment via %s" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:184 +msgctxt "on date at time" +msgid "on %s @ %s" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:191 msgid "Customer IP" msgstr "" @@ -8426,11 +8445,11 @@ msgstr "" #: includes/admin/views/html-admin-page-status-report.php:166 #: includes/shipping/flat-rate/includes/settings-flat-rate.php:56 #: includes/shipping/flat-rate/includes/settings-flat-rate.php:65 -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:63 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:75 #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:83 #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:92 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:122 -#: includes/wc-account-functions.php:239 +#: includes/wc-account-functions.php:241 #: templates/order/order-details-customer.php:61 #: templates/order/order-details-customer.php:72 #: templates/single-product/meta.php:35 @@ -8509,9 +8528,7 @@ msgid "Add note" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-order-notes.php:73 -msgid "" -"Add a note for your reference, or add a customer note (the user will be " -"notified)." +msgid "Add a note for your reference, or add a customer note (the user will be notified)." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-order-notes.php:79 @@ -8573,6 +8590,11 @@ msgstr "" msgid "Button text" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:137 +msgctxt "placeholder" +msgid "Buy product" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:137 msgid "This text will be shown on the button linking to the external product." msgstr "" @@ -8596,6 +8618,18 @@ msgstr "" msgid "Sale price dates" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:155 +#: includes/admin/meta-boxes/views/html-variation-admin.php:104 +msgctxt "placeholder" +msgid "From…" +msgstr "" + +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:156 +#: includes/admin/meta-boxes/views/html-variation-admin.php:108 +msgctxt "placeholder" +msgid "To…" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:157 msgid "The sale will end at the beginning of the set date." msgstr "" @@ -8617,9 +8651,7 @@ msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:174 #: includes/admin/meta-boxes/views/html-variation-admin.php:259 -msgid "" -"This is the URL or absolute path to the file which customers will get " -"access to. URLs entered here should already be encoded." +msgid "This is the URL or absolute path to the file which customers will get access to. URLs entered here should already be encoded." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:200 @@ -8701,10 +8733,18 @@ msgstr "" msgid "Shipping only" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:242 +#: includes/admin/views/html-bulk-edit-product.php:78 +#: includes/admin/views/html-quick-edit-product.php:57 +#: includes/shipping/flat-rate/includes/settings-flat-rate.php:27 +#: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:54 +#: includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:83 +msgctxt "Tax status" +msgid "None" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:245 -msgid "" -"Define whether or not the entire product is taxable, or just the cost of " -"shipping it." +msgid "Define whether or not the entire product is taxable, or just the cost of shipping it." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:250 @@ -8725,9 +8765,7 @@ msgid "Tax class" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:263 -msgid "" -"Choose a tax class for this product. Tax classes are used to apply " -"different tax rates specific to certain types of product." +msgid "Choose a tax class for this product. Tax classes are used to apply different tax rates specific to certain types of product." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:284 @@ -8735,9 +8773,7 @@ msgid "Stock Keeping Unit" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:284 -msgid "" -"SKU refers to a Stock-keeping unit, a unique identifier for each distinct " -"product and service that can be purchased." +msgid "SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:294 @@ -8757,10 +8793,7 @@ msgid "Stock quantity" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:305 -msgid "" -"Stock quantity. If this is a variable product this value will be used to " -"control stock for all variations, unless you define stock at variation " -"level." +msgid "Stock quantity. If this is a variable product this value will be used to control stock for all variations, unless you define stock at variation level." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:314 @@ -8783,9 +8816,7 @@ msgid "Allow, but notify customer" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:318 -msgid "" -"If managing stock, this controls whether or not backorders are allowed. If " -"enabled, stock quantity can go below 0." +msgid "If managing stock, this controls whether or not backorders are allowed. If enabled, stock quantity can go below 0." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:327 @@ -8796,10 +8827,8 @@ msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:330 #: includes/admin/meta-boxes/views/html-variation-admin.php:160 -#: includes/api/class-wc-rest-products-controller.php:1949 -msgid "" -"Controls whether or not the product is listed as \"in stock\" or \"out of " -"stock\" on the frontend." +#: includes/api/class-wc-rest-products-controller.php:1959 +msgid "Controls whether or not the product is listed as \"in stock\" or \"out of stock\" on the frontend." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:339 @@ -8864,9 +8893,7 @@ msgid "Shipping class" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:397 -msgid "" -"Shipping classes are used by certain shipping methods to group similar " -"products." +msgid "Shipping classes are used by certain shipping methods to group similar products." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:409 @@ -8896,10 +8923,7 @@ msgid "Up-sells" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:492 -msgid "" -"Up-sells are products which you recommend instead of the currently viewed " -"product, for example, products that are more profitable or better quality " -"or more expensive." +msgid "Up-sells are products which you recommend instead of the currently viewed product, for example, products that are more profitable or better quality or more expensive." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:496 @@ -8907,9 +8931,7 @@ msgid "Cross-sells" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:509 -msgid "" -"Cross-sells are products which you promote in the cart, based on the " -"current product." +msgid "Cross-sells are products which you promote in the cart, based on the current product." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:516 @@ -8941,9 +8963,7 @@ msgid "Enable reviews" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:614 -msgid "" -"Before you can add a variation you need to add some variation attributes on " -"the Attributes tab." +msgid "Before you can add a variation you need to add some variation attributes on the Attributes tab." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:616 @@ -9059,6 +9079,12 @@ msgstr "" msgid "Current page" msgstr "" +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:718 +#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:752 +msgctxt "number of pages" +msgid "of" +msgstr "" + #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:720 #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:754 msgid "Go to the next page" @@ -9085,9 +9111,7 @@ msgid "Product SKU must be unique." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:1165 -msgid "" -"The downloadable file %s cannot be used as it does not have an allowed file " -"type. Allowed types include: %s" +msgid "The downloadable file %s cannot be used as it does not have an allowed file type. Allowed types include: %s" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:1178 @@ -9095,9 +9119,9 @@ msgid "The downloadable file %s cannot be used as it does not exist on the serve msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:1289 -#: includes/api/class-wc-rest-products-controller.php:1310 -#: includes/api/legacy/v2/class-wc-api-products.php:1239 -#: includes/api/legacy/v3/class-wc-api-products.php:1734 +#: includes/api/class-wc-rest-products-controller.php:1320 +#: includes/api/legacy/v2/class-wc-api-products.php:1240 +#: includes/api/legacy/v3/class-wc-api-products.php:1735 #: includes/cli/class-wc-cli-product.php:1536 msgid "Variation #%s of %s" msgstr "" @@ -9107,15 +9131,11 @@ msgid "#%s – Variation SKU must be unique." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:1462 -msgid "" -"#%s – The downloadable file %s cannot be used as it does not have an " -"allowed file type. Allowed types include: %s" +msgid "#%s – The downloadable file %s cannot be used as it does not have an allowed file type. Allowed types include: %s" msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:1469 -msgid "" -"#%s – The downloadable file %s cannot be used as it does not exist on " -"the server." +msgid "#%s – The downloadable file %s cannot be used as it does not exist on the server." msgstr "" #: includes/admin/meta-boxes/class-wc-meta-box-product-images.php:58 @@ -9197,7 +9217,7 @@ msgstr "" #: includes/admin/meta-boxes/views/html-order-items.php:50 #: includes/class-wc-form-handler.php:483 -#: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php:308 +#: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php:309 msgid "Item" msgstr "" @@ -9329,15 +9349,21 @@ msgid "Payment Gateway" msgstr "" #: includes/admin/meta-boxes/views/html-order-items.php:289 -msgid "" -"The payment gateway used to place this order does not support automatic " -"refunds." +msgid "The payment gateway used to place this order does not support automatic refunds." +msgstr "" + +#: includes/admin/meta-boxes/views/html-order-items.php:289 +msgctxt "Refund $amount" +msgid "Refund %s via %s" msgstr "" #: includes/admin/meta-boxes/views/html-order-items.php:290 -msgid "" -"You will need to manually issue a refund through your payment gateway after " -"using this." +msgid "You will need to manually issue a refund through your payment gateway after using this." +msgstr "" + +#: includes/admin/meta-boxes/views/html-order-items.php:290 +msgctxt "Refund $amount manually" +msgid "Refund %s manually" msgstr "" #: includes/admin/meta-boxes/views/html-order-items.php:302 @@ -9369,6 +9395,11 @@ msgstr "" msgid "Optional" msgstr "" +#: includes/admin/meta-boxes/views/html-order-refund.php:19 +msgctxt "Ex: Refund - $date >by< $username" +msgid "by" +msgstr "" + #: includes/admin/meta-boxes/views/html-order-refund.php:19 msgid "ID: " msgstr "" @@ -9422,7 +9453,7 @@ msgid "Drag and drop, or click to set admin variation order" msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:33 -#: includes/class-wc-product-variation.php:694 +#: includes/class-wc-product-variation.php:652 msgid "Any" msgstr "" @@ -9449,9 +9480,7 @@ msgid "Enabled" msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:78 -msgid "" -"Enable this option if access is given to a downloadable file upon purchase " -"of a product" +msgid "Enable this option if access is given to a downloadable file upon purchase of a product" msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:80 @@ -9479,15 +9508,11 @@ msgid "Sale end date" msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:129 -msgid "" -"Enter a quantity to enable stock management at variation level, or leave " -"blank to use the parent product's options." +msgid "Enter a quantity to enable stock management at variation level, or leave blank to use the parent product's options." msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:175 -msgid "" -"Enter a weight for this variation or leave blank to use the parent product " -"weight." +msgid "Enter a weight for this variation or leave blank to use the parent product weight." msgstr "" #: includes/admin/meta-boxes/views/html-variation-admin.php:183 @@ -9638,6 +9663,12 @@ msgstr "" msgid "Search customers" msgstr "" +#: includes/admin/reports/class-wc-report-customer-list.php:136 +#: templates/myaccount/my-orders.php:55 templates/myaccount/orders.php:51 +msgctxt "hash before order number" +msgid "#" +msgstr "" + #: includes/admin/reports/class-wc-report-customer-list.php:153 msgid "Refresh stats" msgstr "" @@ -9762,9 +9793,7 @@ msgid "%s gross sales in this period" msgstr "" #: includes/admin/reports/class-wc-report-sales-by-date.php:374 -msgid "" -"This is the sum of the order totals after any refunds and including " -"shipping and taxes." +msgid "This is the sum of the order totals after any refunds and including shipping and taxes." msgstr "" #: includes/admin/reports/class-wc-report-sales-by-date.php:387 @@ -9772,9 +9801,7 @@ msgid "%s net sales in this period" msgstr "" #: includes/admin/reports/class-wc-report-sales-by-date.php:388 -msgid "" -"This is the sum of the order totals after any refunds and excluding " -"shipping and taxes." +msgid "This is the sum of the order totals after any refunds and excluding shipping and taxes." msgstr "" #: includes/admin/reports/class-wc-report-sales-by-date.php:401 @@ -9785,6 +9812,13 @@ msgstr "" msgid "%s items purchased" msgstr "" +#: includes/admin/reports/class-wc-report-sales-by-date.php:412 +msgctxt "%s = amount of the refunds, %d = number of refunded orders." +msgid "%s refunded %d order" +msgid_plural "%s refunded %d orders" +msgstr[0] "" +msgstr[1] "" + #: includes/admin/reports/class-wc-report-sales-by-date.php:417 msgid "%s charged for shipping" msgstr "" @@ -9975,9 +10009,7 @@ msgid "Account Pages" msgstr "" #: includes/admin/settings/class-wc-settings-accounts.php:43 -msgid "" -"These pages need to be set so that WooCommerce knows where to send users to " -"access account related functionality." +msgid "These pages need to be set so that WooCommerce knows where to send users to access account related functionality." msgstr "" #: includes/admin/settings/class-wc-settings-accounts.php:46 @@ -10030,9 +10062,7 @@ msgid "My Account Endpoints" msgstr "" #: includes/admin/settings/class-wc-settings-accounts.php:110 -msgid "" -"Endpoints are appended to your page URLs to handle specific actions on the " -"accounts pages. They should be unique." +msgid "Endpoints are appended to your page URLs to handle specific actions on the accounts pages. They should be unique." msgstr "" #: includes/admin/settings/class-wc-settings-accounts.php:114 @@ -10098,9 +10128,7 @@ msgid "Logout" msgstr "" #: includes/admin/settings/class-wc-settings-accounts.php:177 -msgid "" -"Endpoint for the triggering logout. You can add this to your menus via a " -"custom link: yoursite.com/?customer-logout=true" +msgid "Endpoint for the triggering logout. You can add this to your menus via a custom link: yoursite.com/?customer-logout=true" msgstr "" #: includes/admin/settings/class-wc-settings-api.php:27 @@ -10118,6 +10146,11 @@ msgstr "" msgid "Enable the REST API" msgstr "" +#: includes/admin/settings/class-wc-settings-checkout.php:28 +msgctxt "Settings tab label" +msgid "Checkout" +msgstr "" + #: includes/admin/settings/class-wc-settings-checkout.php:44 msgid "Checkout Options" msgstr "" @@ -10139,9 +10172,12 @@ msgid "Calculate coupon discounts sequentially" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:89 -msgid "" -"When applying multiple coupons, apply the first coupon to the full price " -"and the second coupon to the discounted price and so on." +msgid "When applying multiple coupons, apply the first coupon to the full price and the second coupon to the discounted price and so on." +msgstr "" + +#: includes/admin/settings/class-wc-settings-checkout.php:95 +msgctxt "Settings group label" +msgid "Checkout Process" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:96 @@ -10169,9 +10205,7 @@ msgid "Checkout Pages" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:131 -msgid "" -"These pages need to be set so that WooCommerce knows where to send users to " -"checkout." +msgid "These pages need to be set so that WooCommerce knows where to send users to checkout." msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:137 @@ -10187,9 +10221,7 @@ msgid "Terms and Conditions" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:160 -msgid "" -"If you define a \"Terms\" page the customer will be asked if they accept " -"them when checking out." +msgid "If you define a \"Terms\" page the customer will be asked if they accept them when checking out." msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:175 @@ -10197,9 +10229,7 @@ msgid "Checkout Endpoints" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:175 -msgid "" -"Endpoints are appended to your page URLs to handle specific actions during " -"the checkout process. They should be unique." +msgid "Endpoints are appended to your page URLs to handle specific actions during the checkout process. They should be unique." msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:178 @@ -10253,9 +10283,7 @@ msgid "Payment Gateways" msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:230 -msgid "" -"Installed gateways are listed below. Drag and drop gateways to control " -"their display order on the frontend." +msgid "Installed gateways are listed below. Drag and drop gateways to control their display order on the frontend." msgstr "" #: includes/admin/settings/class-wc-settings-checkout.php:282 @@ -10287,9 +10315,7 @@ msgid "Email Notifications" msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:56 -msgid "" -"Email notifications sent from WooCommerce are listed below. Click on an " -"email to configure it." +msgid "Email notifications sent from WooCommerce are listed below. Click on an email to configure it." msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:64 @@ -10317,9 +10343,7 @@ msgid "Email Template" msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:93 -msgid "" -"This section lets you customize the WooCommerce emails. Click here to preview your email template." +msgid "This section lets you customize the WooCommerce emails. Click here to preview your email template." msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:96 @@ -10327,9 +10351,7 @@ msgid "Header Image" msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:97 -msgid "" -"URL to an image you want to show in the email header. Upload images using " -"the media uploader (Admin > Media)." +msgid "URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media)." msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:108 @@ -10349,9 +10371,7 @@ msgid "Base Colour" msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:121 -msgid "" -"The base colour for WooCommerce email templates. Default " -"#557da1." +msgid "The base colour for WooCommerce email templates. Default #557da1." msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:131 @@ -10359,9 +10379,7 @@ msgid "Background Colour" msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:132 -msgid "" -"The background colour for WooCommerce email templates. Default " -"#f5f5f5." +msgid "The background colour for WooCommerce email templates. Default #f5f5f5." msgstr "" #: includes/admin/settings/class-wc-settings-emails.php:142 @@ -10413,9 +10431,7 @@ msgid "Base Location" msgstr "" #: includes/admin/settings/class-wc-settings-general.php:54 -msgid "" -"This is the base location for your business. Tax rates will be based on " -"this country." +msgid "This is the base location for your business. Tax rates will be based on this country." msgstr "" #: includes/admin/settings/class-wc-settings-general.php:63 @@ -10445,9 +10461,7 @@ msgid "Shipping Location(s)" msgstr "" #: includes/admin/settings/class-wc-settings-general.php:98 -msgid "" -"Choose which countries you want to ship to, or choose to ship to all " -"locations you sell to." +msgid "Choose which countries you want to ship to, or choose to ship to all locations you sell to." msgstr "" #: includes/admin/settings/class-wc-settings-general.php:105 @@ -10475,10 +10489,7 @@ msgid "Default Customer Location" msgstr "" #: includes/admin/settings/class-wc-settings-general.php:124 -msgid "" -"This option determines a customers default location. The MaxMind GeoLite " -"Database will be periodically downloaded to your wp-content directory if " -"using geolocation." +msgid "This option determines a customers default location. The MaxMind GeoLite Database will be periodically downloaded to your wp-content directory if using geolocation." msgstr "" #: includes/admin/settings/class-wc-settings-general.php:129 @@ -10520,9 +10531,7 @@ msgstr "" #: includes/admin/settings/class-wc-settings-general.php:156 #: includes/wc-template-functions.php:448 -msgid "" -"This is a demo store for testing purposes — no orders shall be " -"fulfilled." +msgid "This is a demo store for testing purposes — no orders shall be fulfilled." msgstr "" #: includes/admin/settings/class-wc-settings-general.php:164 @@ -10539,9 +10548,7 @@ msgid "Currency" msgstr "" #: includes/admin/settings/class-wc-settings-general.php:168 -msgid "" -"This controls what currency prices are listed at in the catalog and which " -"currency gateways will take payments in." +msgid "This controls what currency prices are listed at in the catalog and which currency gateways will take payments in." msgstr "" #: includes/admin/settings/class-wc-settings-general.php:180 @@ -10577,15 +10584,11 @@ msgid "Shop Page" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:93 -msgid "" -"The base page can also be used in your product " -"permalinks." +msgid "The base page can also be used in your product permalinks." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:99 -msgid "" -"This sets the base page of your shop - this is where your product archive " -"will be." +msgid "This sets the base page of your shop - this is where your product archive will be." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:103 @@ -10671,11 +10674,7 @@ msgid "Enable AJAX add to cart buttons on archives" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:178 -msgid "" -"These settings affect the display and dimensions of images in your catalog " -"- the display on the front-end will still be affected by CSS styles. After " -"changing these settings you may need to regenerate your " -"thumbnails." +msgid "These settings affect the display and dimensions of images in your catalog - the display on the front-end will still be affected by CSS styles. After changing these settings you may need to regenerate your thumbnails." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:183 @@ -10711,9 +10710,7 @@ msgid "Enable Lightbox for product images" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:229 -msgid "" -"Include WooCommerce's lightbox. Product gallery images will open in a " -"lightbox." +msgid "Include WooCommerce's lightbox. Product gallery images will open in a lightbox." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:251 @@ -10729,9 +10726,7 @@ msgid "Hold Stock (minutes)" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:260 -msgid "" -"Hold stock (for unpaid orders) for x minutes. When this limit is reached, " -"the pending order will be cancelled. Leave blank to disable." +msgid "Hold stock (for unpaid orders) for x minutes. When this limit is reached, the pending order will be cancelled. Leave blank to disable." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:273 @@ -10795,11 +10790,7 @@ msgid "File Download Method" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:370 -msgid "" -"Forcing downloads will keep URLs hidden, but some servers may serve large " -"files unreliably. If supported, X-Accel-Redirect/ " -"X-Sendfile can be used to serve downloads instead (server " -"requires mod_xsendfile)." +msgid "Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, X-Accel-Redirect/ X-Sendfile can be used to serve downloads instead (server requires mod_xsendfile)." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:378 @@ -10831,9 +10822,7 @@ msgid "Grant access to downloadable products after payment" msgstr "" #: includes/admin/settings/class-wc-settings-products.php:401 -msgid "" -"Enable this option to grant access to downloads when orders are " -"\"processing\", rather than \"completed\"." +msgid "Enable this option to grant access to downloads when orders are \"processing\", rather than \"completed\"." msgstr "" #: includes/admin/settings/class-wc-settings-products.php:416 @@ -10909,26 +10898,24 @@ msgid "Force shipping to the customer billing address" msgstr "" #: includes/admin/settings/class-wc-settings-shipping.php:202 -#: includes/admin/settings/class-wc-settings-shipping.php:263 +#: includes/admin/settings/class-wc-settings-shipping.php:264 msgid "Zone does not exist!" msgstr "" #: includes/admin/settings/class-wc-settings-shipping.php:210 #: includes/admin/settings/class-wc-settings-shipping.php:242 -#: includes/admin/settings/class-wc-settings-shipping.php:296 +#: includes/admin/settings/class-wc-settings-shipping.php:297 #: includes/admin/settings/class-wc-settings-tax.php:175 msgid "Your changed data will be lost if you leave this page without saving." msgstr "" #: includes/admin/settings/class-wc-settings-shipping.php:211 -msgid "" -"Do you wish to save your changes first? Your changed data will be discarded " -"if you choose to cancel." +msgid "Do you wish to save your changes first? Your changed data will be discarded if you choose to cancel." msgstr "" #: includes/admin/settings/class-wc-settings-shipping.php:212 #: includes/admin/settings/class-wc-settings-shipping.php:243 -#: includes/admin/settings/class-wc-settings-shipping.php:297 +#: includes/admin/settings/class-wc-settings-shipping.php:298 msgid "Your changes were not saved. Please retry." msgstr "" @@ -10936,24 +10923,29 @@ msgstr "" msgid "Shipping method could not be added. Please retry." msgstr "" -#: includes/admin/settings/class-wc-settings-shipping.php:260 +#: includes/admin/settings/class-wc-settings-shipping.php:244 +#: includes/admin/settings/views/html-admin-page-shipping-zones.php:52 +msgid "No shipping methods offered to this zone." +msgstr "" + +#: includes/admin/settings/class-wc-settings-shipping.php:261 msgid "Invalid shipping method!" msgstr "" -#: includes/admin/settings/class-wc-settings-shipping.php:266 +#: includes/admin/settings/class-wc-settings-shipping.php:267 msgid "This shipping method does not have any settings to configure." msgstr "" -#: includes/admin/settings/class-wc-settings-shipping.php:272 +#: includes/admin/settings/class-wc-settings-shipping.php:273 msgid "Edit failed. Please try again." msgstr "" -#: includes/admin/settings/class-wc-settings-shipping.php:304 +#: includes/admin/settings/class-wc-settings-shipping.php:305 #: includes/class-wc-post-types.php:139 msgid "Shipping Class" msgstr "" -#: includes/admin/settings/class-wc-settings-shipping.php:307 +#: includes/admin/settings/class-wc-settings-shipping.php:308 msgid "Product Count" msgstr "" @@ -11008,10 +11000,7 @@ msgid "Tax Class" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-classes.php:9 -msgid "" -"Shipping classes can be used to group products of similar type and can be " -"used by some Shipping Methods (such as Flat Rate Shipping) to provide " -"different rates to different classes of product." +msgid "Shipping classes can be used to group products of similar type and can be used by some Shipping Methods (such as Flat Rate Shipping) to provide different rates to different classes of product." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-classes.php:23 @@ -11040,15 +11029,11 @@ msgid "Description for your reference" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:10 -msgid "" -"The following shipping methods apply to customers with shipping addresses " -"within this zone." +msgid "The following shipping methods apply to customers with shipping addresses within this zone." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:18 -msgid "" -"Drag and drop to re-order your shipping methods. This is the order in which " -"they will display during checkout." +msgid "Drag and drop to re-order your shipping methods. This is the order in which they will display during checkout." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:19 @@ -11057,7 +11042,7 @@ msgstr "" #: includes/gateways/cod/class-wc-gateway-cod.php:68 #: includes/gateways/paypal/includes/settings-paypal.php:18 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:195 -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:51 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:63 #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:117 #: includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:94 #: includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:70 @@ -11078,11 +11063,11 @@ msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:29 #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:93 -#: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:116 +#: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:118 #: includes/admin/settings/views/html-admin-page-shipping-zones.php:55 #: includes/admin/settings/views/html-admin-page-shipping-zones.php:129 #: includes/admin/settings/views/html-admin-page-shipping-zones.php:141 -#: includes/admin/settings/views/html-admin-page-shipping-zones.php:165 +#: includes/admin/settings/views/html-admin-page-shipping-zones.php:167 msgid "Add shipping method" msgstr "" @@ -11091,15 +11076,16 @@ msgid "Add shipping methods to this zone" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:40 -msgid "" -"You can add multiple shipping methods within this zone. Only customers " -"within the zone will see them." +msgid "You can add multiple shipping methods within this zone. Only customers within the zone will see them." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:41 -msgid "" -"Choose a method from the dropdown below and click \"Add shipping method\" " -"to get started." +msgid "Choose a method from the dropdown below and click \"Add shipping method\" to get started." +msgstr "" + +#: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:66 +msgctxt "Shipping Method Settings" +msgid "%s Settings" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:68 @@ -11108,24 +11094,22 @@ msgstr "" msgid "Close modal panel" msgstr "" -#: includes/admin/settings/views/html-admin-page-shipping-zones.php:9 -#: includes/admin/settings/views/html-admin-page-shipping-zones.php:66 -msgid "" -"A shipping zone is a geographic region where a certain set of shipping " -"methods and rates apply." +#: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:101 +#: includes/admin/settings/views/html-admin-page-shipping-zones.php:149 +msgid "Choose the shipping method you wish to add. Only shipping methods which support zones are listed." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:9 -msgid "" -"WooCommerce will automatically choose the correct shipping zone based on " -"your customer‘s shipping address and present the shipping methods " -"within that zone to them." +#: includes/admin/settings/views/html-admin-page-shipping-zones.php:66 +msgid "A shipping zone is a geographic region where a certain set of shipping methods and rates apply." +msgstr "" + +#: includes/admin/settings/views/html-admin-page-shipping-zones.php:9 +msgid "WooCommerce will automatically choose the correct shipping zone based on your customer‘s shipping address and present the shipping methods within that zone to them." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:15 -msgid "" -"Drag and drop to re-order your custom zones. This is the order in which " -"they will be matched against the customer address." +msgid "Drag and drop to re-order your custom zones. This is the order in which they will be matched against the customer address." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:16 @@ -11152,9 +11136,7 @@ msgid "Rest of the World" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:39 -msgid "" -"Shipping Methods added here will apply to shipping addresses that " -"aren‘t included in any other shipping zone." +msgid "This zone is used for shipping addresses that aren‘t included in any other shipping zone. Adding shipping methods to this zone is optional." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:55 @@ -11179,9 +11161,7 @@ msgid "Europe Zone = Any country in Europe = Flat rate shipping" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:73 -msgid "" -"Add as many zones as you need – customers will only see the methods " -"available for their address." +msgid "Add as many zones as you need – customers will only see the methods available for their address." msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:100 @@ -11197,9 +11177,7 @@ msgid "List 1 postcode per line" msgstr "" #: includes/admin/settings/views/html-admin-page-shipping-zones.php:122 -msgid "" -"Postcodes containing wildcards (e.g. CB23*) and fully numeric ranges (e.g. " -"90210...99000) are also supported." +msgid "Postcodes containing wildcards (e.g. CB23*) and fully numeric ranges (e.g. 90210...99000) are also supported." msgstr "" #: includes/admin/settings/views/html-keys-edit.php:8 @@ -11275,16 +11253,11 @@ msgid "A 2 digit state code, e.g. AL. Leave blank to apply to all." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:21 -msgid "" -"Postcode for this rule. Semi-colon (;) separate multiple values. Leave " -"blank to apply to all areas. Wildcards (*) and ranges for numeric postcodes " -"(e.g. 12345...12350) can also be used." +msgid "Postcode for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all areas. Wildcards (*) and ranges for numeric postcodes (e.g. 12345...12350) can also be used." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:22 -msgid "" -"Cities for this rule. Semi-colon (;) separate multiple values. Leave blank " -"to apply to all cities." +msgid "Cities for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all cities." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:23 @@ -11304,16 +11277,11 @@ msgid "Enter a name for this tax rate." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:25 -msgid "" -"Choose a priority for this tax rate. Only 1 matching rate per priority will " -"be used. To define multiple tax rates for a single area you need to specify " -"a different priority per rate." +msgid "Choose a priority for this tax rate. Only 1 matching rate per priority will be used. To define multiple tax rates for a single area you need to specify a different priority per rate." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:26 -msgid "" -"Choose whether or not this is a compound rate. Compound tax rates are " -"applied on top of other tax rates." +msgid "Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates." msgstr "" #: includes/admin/settings/views/html-settings-tax.php:27 @@ -11344,6 +11312,11 @@ msgstr "" msgid "No Matching Tax Rates Found." msgstr "" +#: includes/admin/settings/views/html-settings-tax.php:98 +msgctxt "%s will be a number eventually, but must be a string for now." +msgid "%s items" +msgstr "" + #: includes/admin/settings/views/html-settings-tax.php:102 msgid "First page" msgstr "" @@ -11356,6 +11329,11 @@ msgstr "" msgid "Current Page" msgstr "" +#: includes/admin/settings/views/html-settings-tax.php:112 +msgctxt "Pagination, like `1 of 3`" +msgid "%1$s of %2$s" +msgstr "" + #: includes/admin/settings/views/html-settings-tax.php:118 msgid "Next page" msgstr "" @@ -11365,7 +11343,7 @@ msgid "Last page" msgstr "" #: includes/admin/settings/views/html-webhook-log.php:13 -#: includes/wc-account-functions.php:199 +#: includes/wc-account-functions.php:201 msgid "Method" msgstr "" @@ -11403,16 +11381,11 @@ msgid "Webhook Data" msgstr "" #: includes/admin/settings/views/html-webhooks-edit.php:16 -msgid "" -"Friendly name for identifying this webhook, defaults to Webhook created on " -"%s." +msgid "Friendly name for identifying this webhook, defaults to Webhook created on %s." msgstr "" #: includes/admin/settings/views/html-webhooks-edit.php:25 -msgid "" -"The options are "Active" (delivers payload), "Paused" " -"(does not deliver), or "Disabled" (does not deliver due delivery " -"failures)." +msgid "The options are "Active" (delivers payload), "Paused" (does not deliver), or "Disabled" (does not deliver due delivery failures)." msgstr "" #: includes/admin/settings/views/html-webhooks-edit.php:42 @@ -11500,9 +11473,7 @@ msgid "Secret" msgstr "" #: includes/admin/settings/views/html-webhooks-edit.php:103 -msgid "" -"The Secret Key is used to generate a hash of the delivered webhook and " -"provided in the request headers." +msgid "The Secret Key is used to generate a hash of the delivered webhook and provided in the request headers." msgstr "" #: includes/admin/settings/views/html-webhooks-edit.php:116 @@ -11531,9 +11502,7 @@ msgid "Prices Entered With Tax" msgstr "" #: includes/admin/settings/views/settings-tax.php:16 -msgid "" -"This option is important as it will affect how you input prices. Changing " -"it will not update existing products." +msgid "This option is important as it will affect how you input prices. Changing it will not update existing products." msgstr "" #: includes/admin/settings/views/settings-tax.php:18 @@ -11565,9 +11534,7 @@ msgid "Shipping Tax Class" msgstr "" #: includes/admin/settings/views/settings-tax.php:39 -msgid "" -"Optionally control which tax class shipping gets, or leave it so shipping " -"tax is based on the cart items themselves." +msgid "Optionally control which tax class shipping gets, or leave it so shipping tax is based on the cart items themselves." msgstr "" #: includes/admin/settings/views/settings-tax.php:45 @@ -11587,9 +11554,7 @@ msgid "Additional Tax Classes" msgstr "" #: includes/admin/settings/views/settings-tax.php:59 -msgid "" -"List additional tax classes below (1 per line). This is in addition to the " -"default \"Standard Rate\"." +msgid "List additional tax classes below (1 per line). This is in addition to the default \"Standard Rate\"." msgstr "" #: includes/admin/settings/views/settings-tax.php:63 @@ -11619,11 +11584,7 @@ msgid "Price Display Suffix" msgstr "" #: includes/admin/settings/views/settings-tax.php:97 -msgid "" -"Define text to show after your product prices. This could be, for example, " -"\"inc. Vat\" to explain your pricing. You can also have prices substituted " -"here using one of the following: {price_including_tax}, " -"{price_excluding_tax}." +msgid "Define text to show after your product prices. This could be, for example, \"inc. Vat\" to explain your pricing. You can also have prices substituted here using one of the following: {price_including_tax}, {price_excluding_tax}." msgstr "" #: includes/admin/settings/views/settings-tax.php:101 @@ -11643,9 +11604,7 @@ msgid "Browse all extensions" msgstr "" #: includes/admin/views/html-admin-page-addons.php:45 -msgid "" -"Our catalog of WooCommerce Extensions can be found on WooThemes.com here: " -"WooCommerce Extensions Catalog" +msgid "Our catalog of WooCommerce Extensions can be found on WooThemes.com here: WooCommerce Extensions Catalog" msgstr "" #: includes/admin/views/html-admin-page-addons.php:51 @@ -11657,10 +11616,7 @@ msgid "We recommend Storefront, the %sofficial%s WooCommerce theme." msgstr "" #: includes/admin/views/html-admin-page-addons.php:53 -msgid "" -"Storefront is an intuitive, flexible and %sfree%s WordPress theme offering " -"deep integration with WooCommerce and many of the most popular " -"customer-facing extensions." +msgid "Storefront is an intuitive, flexible and %sfree%s WordPress theme offering deep integration with WooCommerce and many of the most popular customer-facing extensions." msgstr "" #: includes/admin/views/html-admin-page-addons.php:55 @@ -11684,9 +11640,7 @@ msgid "There are currently no logs to view." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:13 -msgid "" -"Please copy and paste this information in your ticket when contacting " -"support:" +msgid "Please copy and paste this information in your ticket when contacting support:" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:14 @@ -11734,15 +11688,11 @@ msgid "Log Directory Writable" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:46 -msgid "" -"Several WooCommerce extensions can write logs which makes debugging " -"problems easier. The directory must be writable for this to happen." +msgid "Several WooCommerce extensions can write logs which makes debugging problems easier. The directory must be writable for this to happen." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:51 -msgid "" -"To allow logging, make %s writable or define a custom " -"WC_LOG_DIR." +msgid "To allow logging, make %s writable or define a custom WC_LOG_DIR." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:56 @@ -11846,9 +11796,7 @@ msgid "PHP Time Limit" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:150 -msgid "" -"The amount of time (in seconds) that your site will spend on a single " -"operation before timing out (to avoid server lockups)" +msgid "The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:154 @@ -11856,9 +11804,7 @@ msgid "PHP Max Input Vars" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:155 -msgid "" -"The maximum number of variables your server can use for a single function " -"to avoid overloads." +msgid "The maximum number of variables your server can use for a single function to avoid overloads." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:159 @@ -11874,13 +11820,7 @@ msgid "SUHOSIN Installed" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:172 -msgid "" -"Suhosin is an advanced protection system for PHP installations. It was " -"designed to protect your servers on the one hand against a number of well " -"known problems in PHP applications and on the other hand against potential " -"unknown vulnerabilities within these applications or the PHP core itself. " -"If enabled on your server, Suhosin may need to be configured to increase " -"its data submission limits." +msgid "Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:179 @@ -11920,30 +11860,19 @@ msgid "Default timezone is %s - it should be UTC" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:216 -msgid "" -"Payment gateways can use cURL to communicate with remote servers to " -"authorize payments, other plugins may also use it when communicating with " -"remote services." +msgid "Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:222 -msgid "" -"Your server does not have fsockopen or cURL enabled - PayPal IPN and other " -"scripts which communicate with other servers will not work. Contact your " -"hosting provider." +msgid "Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:227 -msgid "" -"Some webservices like shipping use SOAP to get information from remote " -"servers, for example, live shipping quotes from FedEx require SOAP to be " -"installed." +msgid "Some webservices like shipping use SOAP to get information from remote servers, for example, live shipping quotes from FedEx require SOAP to be installed." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:233 -msgid "" -"Your server does not have the %s class enabled - some gateway plugins which " -"use SOAP may not work as expected." +msgid "Your server does not have the %s class enabled - some gateway plugins which use SOAP may not work as expected." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:238 @@ -11951,9 +11880,7 @@ msgid "HTML/Multipart emails use DOMDocument to generate inline CSS in templates msgstr "" #: includes/admin/views/html-admin-page-status-report.php:244 -msgid "" -"Your server does not have the %s class enabled - HTML/Multipart emails, and " -"also some extensions, will not work without DOMDocument." +msgid "Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:249 @@ -11961,21 +11888,15 @@ msgid "GZip (gzopen) is used to open the GEOIP database from MaxMind." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:255 -msgid "" -"Your server does not support the %s function - this is required to use the " -"GeoIP database from MaxMind." +msgid "Your server does not support the %s function - this is required to use the GeoIP database from MaxMind." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:260 -msgid "" -"Multibyte String (mbstring) is used to convert character encoding, like for " -"emails or converting characters to lowercase." +msgid "Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:266 -msgid "" -"Your server does not support the %s functions - this is required for better " -"character encoding. Some fallbacks will be used instead for it." +msgid "Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:270 @@ -11983,15 +11904,11 @@ msgid "Remote Post" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:271 -msgid "" -"PayPal uses this method of communicating when sending back transaction " -"information." +msgid "PayPal uses this method of communicating when sending back transaction information." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:285 -msgid "" -"wp_remote_post() failed. PayPal IPN won't work with your server. Contact " -"your hosting provider." +msgid "wp_remote_post() failed. PayPal IPN won't work with your server. Contact your hosting provider." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:287 @@ -12010,15 +11927,11 @@ msgid "Remote Get" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:296 -msgid "" -"WooCommerce plugins may use this method of communication when checking for " -"plugin updates." +msgid "WooCommerce plugins may use this method of communication when checking for plugin updates." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:303 -msgid "" -"wp_remote_get() failed. The WooCommerce plugin updater won't work with your " -"server. Contact your hosting provider." +msgid "wp_remote_get() failed. The WooCommerce plugin updater won't work with your server. Contact your hosting provider." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:334 @@ -12030,9 +11943,7 @@ msgid "WC Database Version" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:340 -msgid "" -"The version of WooCommerce that the database is formatted for. This should " -"be the same as your WooCommerce Version." +msgid "The version of WooCommerce that the database is formatted for. This should be the same as your WooCommerce Version." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:370 @@ -12048,9 +11959,7 @@ msgid "The GeoIP database from MaxMind is used to geolocate customers." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:384 -msgid "" -"The MaxMind GeoIP Database does not exist - Geolocation will not function. " -"You can download and install it manually from %1$s to the path: %2$s" +msgid "The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from %1$s to the path: %2$s" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:398 @@ -12061,10 +11970,20 @@ msgstr "" msgid "Visit plugin homepage" msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:447 +msgctxt "Version info" +msgid "%s is available" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:451 msgid "Network enabled" msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:459 +msgctxt "by author" +msgid "by %s" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:475 msgid "Force SSL" msgstr "" @@ -12074,9 +11993,7 @@ msgid "Does your site force a SSL Certificate for transactions?" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:481 -msgid "" -"What currency prices are listed at in the catalog and which currency " -"gateways will take payments in." +msgid "What currency prices are listed at in the catalog and which currency gateways will take payments in." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:486 @@ -12107,22 +12024,45 @@ msgstr "" msgid "WC Pages" msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:529 +msgctxt "Page setting" +msgid "Shop Base" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:532 msgid "The URL of your WooCommerce shop's homepage (along with the Page ID)." msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:534 +msgctxt "Page setting" +msgid "Cart" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:537 msgid "The URL of your WooCommerce shop's cart (along with the page ID)." msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:539 +msgctxt "Page setting" +msgid "Checkout" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:542 msgid "The URL of your WooCommerce shop's checkout (along with the page ID)." msgstr "" +#: includes/admin/views/html-admin-page-status-report.php:544 +msgctxt "Page setting" +msgid "My Account" +msgstr "" + #: includes/admin/views/html-admin-page-status-report.php:547 -msgid "" -"The URL of your WooCommerce shop's “My Account” Page (along with the page " -"ID)." +msgid "The URL of your WooCommerce shop's “My Account” Page (along with the page ID)." +msgstr "" + +#: includes/admin/views/html-admin-page-status-report.php:558 +msgctxt "WC Pages links in the System Status" +msgid "Edit %s page" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:568 @@ -12150,9 +12090,7 @@ msgid "Taxonomies" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:607 -msgid "" -"A list of taxonomy terms that can be used in regard to order/product " -"statuses." +msgid "A list of taxonomy terms that can be used in regard to order/product statuses." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:612 @@ -12197,10 +12135,7 @@ msgid "Displays whether or not the current theme is a child theme." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:664 -msgid "" -"If you're modifying WooCommerce on a parent theme you didn't build " -"personally, then we recommend using a child theme. See: How to create a child theme" +msgid "If you're modifying WooCommerce on a parent theme you didn't build personally, then we recommend using a child theme. See: How to create a child theme" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:673 @@ -12232,9 +12167,7 @@ msgid "WooCommerce Support" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:696 -msgid "" -"Displays whether or not the current active theme declares WooCommerce " -"support." +msgid "Displays whether or not the current active theme declares WooCommerce support." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:699 @@ -12246,9 +12179,7 @@ msgid "Templates" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:710 -msgid "" -"This section shows any files that are overriding the default WooCommerce " -"template pages." +msgid "This section shows any files that are overriding the default WooCommerce template pages." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:716 @@ -12256,17 +12187,11 @@ msgid "Archive Template" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:718 -msgid "" -"Your theme has a woocommerce.php file, you will not be able to override the " -"woocommerce/archive-product.php custom template since woocommerce.php has " -"priority over archive-product.php. This is intended to prevent display " -"issues." +msgid "Your theme has a woocommerce.php file, you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues." msgstr "" #: includes/admin/views/html-admin-page-status-report.php:752 -msgid "" -"%s version %s is out of " -"date. The core version is %s" +msgid "%s version %s is out of date. The core version is %s" msgstr "" #: includes/admin/views/html-admin-page-status-report.php:764 @@ -12291,9 +12216,7 @@ msgid "Template Debug Mode" msgstr "" #: includes/admin/views/html-admin-page-status-tools.php:45 -msgid "" -"This tool will disable template overrides for logged-in administrators for " -"debugging purposes." +msgid "This tool will disable template overrides for logged-in administrators for debugging purposes." msgstr "" #: includes/admin/views/html-admin-page-status-tools.php:50 @@ -12301,11 +12224,7 @@ msgid "Remove All Data" msgstr "" #: includes/admin/views/html-admin-page-status-tools.php:56 -msgid "" -"This tool will remove all WooCommerce, Product and Order data when using " -"the \"Delete\" link on the plugins screen. It will also remove any " -"setting/option prepended with \"woocommerce_\" so may also affect installed " -"WooCommerce Extensions." +msgid "This tool will remove all WooCommerce, Product and Order data when using the \"Delete\" link on the plugins screen. It will also remove any setting/option prepended with \"woocommerce_\" so may also affect installed WooCommerce Extensions." msgstr "" #: includes/admin/views/html-admin-page-status.php:13 @@ -12438,9 +12357,7 @@ msgid "Dismiss" msgstr "" #: includes/admin/views/html-notice-install.php:12 -msgid "" -"Welcome to WooCommerce – You‘re almost ready " -"to start selling :)" +msgid "Welcome to WooCommerce – You‘re almost ready to start selling :)" msgstr "" #: includes/admin/views/html-notice-install.php:13 @@ -12456,18 +12373,11 @@ msgid "New:" msgstr "" #: includes/admin/views/html-notice-legacy-shipping.php:13 -msgid "" -"a group of regions that can be assigned different shipping methods and " -"rates." +msgid "a group of regions that can be assigned different shipping methods and rates." msgstr "" #: includes/admin/views/html-notice-legacy-shipping.php:14 -msgid "" -"Legacy shipping methods (Flat Rate, International Flat Rate, Local Pickup " -"and Delivery, and Free Shipping) are deprecated but will continue to work " -"as normal for now. They will be removed in future versions of " -"WooCommerce. We recommend disabling these and setting up new rates " -"within shipping zones as soon as possible." +msgid "Legacy shipping methods (Flat Rate, International Flat Rate, Local Pickup and Delivery, and Free Shipping) are deprecated but will continue to work as normal for now. They will be removed in future versions of WooCommerce. We recommend disabling these and setting up new rates within shipping zones as soon as possible." msgstr "" #: includes/admin/views/html-notice-legacy-shipping.php:18 @@ -12485,23 +12395,15 @@ msgid "Add Shipping Methods & Zones" msgstr "" #: includes/admin/views/html-notice-no-shipping-methods.php:14 -msgid "" -"Shipping is currently enabled, but you haven't added any shipping methods " -"to your shipping zones." +msgid "Shipping is currently enabled, but you haven't added any shipping methods to your shipping zones." msgstr "" #: includes/admin/views/html-notice-no-shipping-methods.php:15 -msgid "" -"Customers will not be able to purchase physical goods from your store until " -"a shipping method is available." +msgid "Customers will not be able to purchase physical goods from your store until a shipping method is available." msgstr "" #: includes/admin/views/html-notice-simplify-commerce.php:21 -msgid "" -"The Simplify Commerce payment gateway is deprecated " -"– Please install our new free Simplify Commerce plugin from " -"WordPress.org. Simplify Commerce will be removed from WooCommerce core in a " -"future update." +msgid "The Simplify Commerce payment gateway is deprecated – Please install our new free Simplify Commerce plugin from WordPress.org. Simplify Commerce will be removed from WooCommerce core in a future update." msgstr "" #: includes/admin/views/html-notice-simplify-commerce.php:23 @@ -12509,12 +12411,7 @@ msgid "Install our new Simplify Commerce plugin" msgstr "" #: includes/admin/views/html-notice-template-check.php:15 -msgid "" -"Your theme (%s) contains outdated copies of some WooCommerce " -"template files. These files may need updating to ensure they are " -"compatible with the current version of WooCommerce. You can see which files " -"are affected from the %ssystem status page%s. If in doubt, check with the " -"author of the theme." +msgid "Your theme (%s) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the %ssystem status page%s. If in doubt, check with the author of the theme." msgstr "" #: includes/admin/views/html-notice-template-check.php:16 @@ -12522,11 +12419,7 @@ msgid "Learn More About Templates" msgstr "" #: includes/admin/views/html-notice-theme-support.php:14 -msgid "" -"Your theme does not declare WooCommerce support – " -"Please read our %sintegration%s guide or check out our %sStorefront%s theme " -"which is totally free to download and designed specifically for use with " -"WooCommerce." +msgid "Your theme does not declare WooCommerce support – Please read our %sintegration%s guide or check out our %sStorefront%s theme which is totally free to download and designed specifically for use with WooCommerce." msgstr "" #: includes/admin/views/html-notice-theme-support.php:16 @@ -12538,10 +12431,7 @@ msgid "Theme Integration Guide" msgstr "" #: includes/admin/views/html-notice-tracking.php:11 -msgid "" -"Want to help make WooCommerce even more awesome? Allow WooThemes to collect " -"non-sensitive diagnostic data and usage information, and get %s discount on " -"your next WooThemes purchase. %sFind out more%s." +msgid "Want to help make WooCommerce even more awesome? Allow WooThemes to collect non-sensitive diagnostic data and usage information, and get %s discount on your next WooThemes purchase. %sFind out more%s." msgstr "" #: includes/admin/views/html-notice-tracking.php:14 @@ -12562,15 +12452,11 @@ msgid "Run the updater" msgstr "" #: includes/admin/views/html-notice-update.php:17 -msgid "" -"It is strongly recommended that you backup your database before proceeding. " -"Are you sure you wish to run the updater now?" +msgid "It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?" msgstr "" #: includes/admin/views/html-notice-updated.php:14 -msgid "" -"WooCommerce data update complete. Thank you for updating to the latest " -"version!" +msgid "WooCommerce data update complete. Thank you for updating to the latest version!" msgstr "" #: includes/admin/views/html-notice-updating.php:12 @@ -12630,9 +12516,7 @@ msgid "The API key provided does not have write permissions." msgstr "" #: includes/api/class-wc-rest-authentication.php:420 -msgid "" -"WooCommerce API - Use a consumer key in the username field and a consumer " -"secret in the password field." +msgid "WooCommerce API - Use a consumer key in the username field and a consumer secret in the password field." msgstr "" #: includes/api/class-wc-rest-coupons-controller.php:99 @@ -12790,14 +12674,14 @@ msgid "File details." msgstr "" #: includes/api/class-wc-rest-customer-downloads-controller.php:214 -#: includes/api/class-wc-rest-products-controller.php:1884 -#: includes/api/class-wc-rest-products-controller.php:2324 +#: includes/api/class-wc-rest-products-controller.php:1894 +#: includes/api/class-wc-rest-products-controller.php:2334 msgid "File name." msgstr "" #: includes/api/class-wc-rest-customer-downloads-controller.php:220 -#: includes/api/class-wc-rest-products-controller.php:1889 -#: includes/api/class-wc-rest-products-controller.php:2329 +#: includes/api/class-wc-rest-products-controller.php:1899 +#: includes/api/class-wc-rest-products-controller.php:2339 msgid "File URL." msgstr "" @@ -12847,7 +12731,7 @@ msgstr "" #: includes/api/class-wc-rest-product-reviews-controller.php:220 #: includes/api/class-wc-rest-product-shipping-classes-controller.php:94 #: includes/api/class-wc-rest-product-tags-controller.php:94 -#: includes/api/class-wc-rest-products-controller.php:1734 +#: includes/api/class-wc-rest-products-controller.php:1744 #: includes/api/class-wc-rest-tax-classes-controller.php:325 #: includes/api/class-wc-rest-taxes-controller.php:568 #: includes/api/class-wc-rest-webhook-deliveries.php:218 @@ -13020,9 +12904,7 @@ msgid "Order note." msgstr "" #: includes/api/class-wc-rest-order-notes-controller.php:397 -msgid "" -"Shows/define if the note is only for reference or for the customer (the " -"user will be notified)." +msgid "Shows/define if the note is only for reference or for the customer (the user will be notified)." msgstr "" #: includes/api/class-wc-rest-order-refunds-controller.php:112 @@ -13046,9 +12928,7 @@ msgid "Cannot create order refund, please try again." msgstr "" #: includes/api/class-wc-rest-order-refunds-controller.php:308 -msgid "" -"An error occurred while attempting to create the refund using the payment " -"gateway API." +msgid "An error occurred while attempting to create the refund using the payment gateway API." msgstr "" #: includes/api/class-wc-rest-order-refunds-controller.php:352 @@ -13079,7 +12959,7 @@ msgstr "" #: includes/api/class-wc-rest-order-refunds-controller.php:379 #: includes/api/class-wc-rest-orders-controller.php:1427 -#: includes/api/class-wc-rest-products-controller.php:1740 +#: includes/api/class-wc-rest-products-controller.php:1750 #: includes/api/class-wc-rest-report-top-sellers-controller.php:152 msgid "Product name." msgstr "" @@ -13367,9 +13247,7 @@ msgid "Payment method title." msgstr "" #: includes/api/class-wc-rest-orders-controller.php:1364 -msgid "" -"Define if the order is paid. It will set the status to processing and " -"reduce stock items." +msgid "Define if the order is paid. It will set the status to processing and reduce stock items." msgstr "" #: includes/api/class-wc-rest-orders-controller.php:1370 @@ -13528,15 +13406,15 @@ msgid "Number of published products for the resource." msgstr "" #: includes/api/class-wc-rest-product-attributes-controller.php:363 -#: includes/api/legacy/v2/class-wc-api-products.php:2228 -#: includes/api/legacy/v3/class-wc-api-products.php:2810 +#: includes/api/legacy/v2/class-wc-api-products.php:2231 +#: includes/api/legacy/v3/class-wc-api-products.php:2813 msgid "Could not edit the attribute" msgstr "" #: includes/api/class-wc-rest-product-attributes-controller.php:531 -#: includes/api/class-wc-rest-products-controller.php:2177 -#: includes/api/class-wc-rest-products-controller.php:2216 -#: includes/api/class-wc-rest-products-controller.php:2489 +#: includes/api/class-wc-rest-products-controller.php:2187 +#: includes/api/class-wc-rest-products-controller.php:2226 +#: includes/api/class-wc-rest-products-controller.php:2499 msgid "Attribute name." msgstr "" @@ -13565,7 +13443,7 @@ msgid "Slug \"%s\" is already in use." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:169 -#: includes/api/class-wc-rest-products-controller.php:2084 +#: includes/api/class-wc-rest-products-controller.php:2094 msgid "Category name." msgstr "" @@ -13582,38 +13460,38 @@ msgid "Image data." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:210 -#: includes/api/class-wc-rest-products-controller.php:2127 -#: includes/api/class-wc-rest-products-controller.php:2439 +#: includes/api/class-wc-rest-products-controller.php:2137 +#: includes/api/class-wc-rest-products-controller.php:2449 msgid "Image ID." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:215 -#: includes/api/class-wc-rest-products-controller.php:2132 -#: includes/api/class-wc-rest-products-controller.php:2444 +#: includes/api/class-wc-rest-products-controller.php:2142 +#: includes/api/class-wc-rest-products-controller.php:2454 msgid "The date the image was created, in the site's timezone." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:221 -#: includes/api/class-wc-rest-products-controller.php:2138 -#: includes/api/class-wc-rest-products-controller.php:2450 +#: includes/api/class-wc-rest-products-controller.php:2148 +#: includes/api/class-wc-rest-products-controller.php:2460 msgid "The date the image was last modified, in the site's timezone." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:227 -#: includes/api/class-wc-rest-products-controller.php:2144 -#: includes/api/class-wc-rest-products-controller.php:2456 +#: includes/api/class-wc-rest-products-controller.php:2154 +#: includes/api/class-wc-rest-products-controller.php:2466 msgid "Image URL." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:233 -#: includes/api/class-wc-rest-products-controller.php:2150 -#: includes/api/class-wc-rest-products-controller.php:2462 +#: includes/api/class-wc-rest-products-controller.php:2160 +#: includes/api/class-wc-rest-products-controller.php:2472 msgid "Image name." msgstr "" #: includes/api/class-wc-rest-product-categories-controller.php:238 -#: includes/api/class-wc-rest-products-controller.php:2155 -#: includes/api/class-wc-rest-products-controller.php:2467 +#: includes/api/class-wc-rest-products-controller.php:2165 +#: includes/api/class-wc-rest-products-controller.php:2477 msgid "Image alternative text." msgstr "" @@ -13647,18 +13525,18 @@ msgid "Shipping class name." msgstr "" #: includes/api/class-wc-rest-product-tags-controller.php:100 -#: includes/api/class-wc-rest-products-controller.php:2108 +#: includes/api/class-wc-rest-products-controller.php:2118 msgid "Tag name." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:296 -#: includes/api/class-wc-rest-products-controller.php:297 +#: includes/api/class-wc-rest-products-controller.php:305 +#: includes/api/class-wc-rest-products-controller.php:306 #: includes/api/legacy/v1/class-wc-api-products.php:464 #: includes/api/legacy/v1/class-wc-api-products.php:465 -#: includes/api/legacy/v2/class-wc-api-products.php:1712 #: includes/api/legacy/v2/class-wc-api-products.php:1713 -#: includes/api/legacy/v3/class-wc-api-products.php:2234 +#: includes/api/legacy/v2/class-wc-api-products.php:1714 #: includes/api/legacy/v3/class-wc-api-products.php:2235 +#: includes/api/legacy/v3/class-wc-api-products.php:2236 #: includes/cli/class-wc-cli-product.php:921 #: includes/cli/class-wc-cli-product.php:922 #: includes/wc-product-functions.php:299 @@ -13666,450 +13544,442 @@ msgstr "" msgid "Placeholder" msgstr "" -#: includes/api/class-wc-rest-products-controller.php:950 -#: includes/api/class-wc-rest-products-controller.php:1357 +#: includes/api/class-wc-rest-products-controller.php:959 +#: includes/api/class-wc-rest-products-controller.php:1367 msgid "The SKU already exists on another product." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1745 +#: includes/api/class-wc-rest-products-controller.php:1755 msgid "Product slug." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1750 +#: includes/api/class-wc-rest-products-controller.php:1760 msgid "Product URL." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1757 +#: includes/api/class-wc-rest-products-controller.php:1767 msgid "The date the product was created, in the site's timezone." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1763 +#: includes/api/class-wc-rest-products-controller.php:1773 msgid "The date the product was last modified, in the site's timezone." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1769 +#: includes/api/class-wc-rest-products-controller.php:1779 msgid "Product type." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1776 +#: includes/api/class-wc-rest-products-controller.php:1786 msgid "Product status (post status)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1783 +#: includes/api/class-wc-rest-products-controller.php:1793 msgid "Featured product." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1789 +#: includes/api/class-wc-rest-products-controller.php:1799 msgid "Catalog visibility." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1796 +#: includes/api/class-wc-rest-products-controller.php:1806 msgid "Product description." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1801 +#: includes/api/class-wc-rest-products-controller.php:1811 msgid "Product short description." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1806 -#: includes/api/class-wc-rest-products-controller.php:2258 +#: includes/api/class-wc-rest-products-controller.php:1816 +#: includes/api/class-wc-rest-products-controller.php:2268 msgid "Unique identifier." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1811 +#: includes/api/class-wc-rest-products-controller.php:1821 msgid "Current product price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1817 +#: includes/api/class-wc-rest-products-controller.php:1827 msgid "Product regular price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1822 +#: includes/api/class-wc-rest-products-controller.php:1832 msgid "Product sale price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1827 -#: includes/api/class-wc-rest-products-controller.php:2279 +#: includes/api/class-wc-rest-products-controller.php:1837 +#: includes/api/class-wc-rest-products-controller.php:2289 msgid "Start date of sale price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1832 -#: includes/api/class-wc-rest-products-controller.php:2284 +#: includes/api/class-wc-rest-products-controller.php:1842 +#: includes/api/class-wc-rest-products-controller.php:2294 msgid "End data of sale price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1837 +#: includes/api/class-wc-rest-products-controller.php:1847 msgid "Price formatted in HTML." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1843 +#: includes/api/class-wc-rest-products-controller.php:1853 msgid "Shows if the product is on sale." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1849 +#: includes/api/class-wc-rest-products-controller.php:1859 msgid "Shows if the product can be bought." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1855 +#: includes/api/class-wc-rest-products-controller.php:1865 msgid "Amount of sales." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1861 +#: includes/api/class-wc-rest-products-controller.php:1871 msgid "If the product is virtual." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1867 +#: includes/api/class-wc-rest-products-controller.php:1877 msgid "If the product is downloadable." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1873 -#: includes/api/class-wc-rest-products-controller.php:2313 +#: includes/api/class-wc-rest-products-controller.php:1883 +#: includes/api/class-wc-rest-products-controller.php:2323 msgid "List of downloadable files." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1878 -#: includes/api/class-wc-rest-products-controller.php:2318 +#: includes/api/class-wc-rest-products-controller.php:1888 +#: includes/api/class-wc-rest-products-controller.php:2328 msgid "File MD5 hash." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1896 +#: includes/api/class-wc-rest-products-controller.php:1906 msgid "Amount of times the product can be downloaded." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1902 +#: includes/api/class-wc-rest-products-controller.php:1912 msgid "Number of days that the customer has up to be able to download the product." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1908 +#: includes/api/class-wc-rest-products-controller.php:1918 msgid "Download type, this controls the schema on the front-end." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1915 +#: includes/api/class-wc-rest-products-controller.php:1925 msgid "Product external URL. Only for external products." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1921 +#: includes/api/class-wc-rest-products-controller.php:1931 msgid "Product external button text. Only for external products." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1926 -#: includes/api/class-wc-rest-products-controller.php:2348 +#: includes/api/class-wc-rest-products-controller.php:1936 +#: includes/api/class-wc-rest-products-controller.php:2358 msgid "Tax status." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1933 -#: includes/api/class-wc-rest-products-controller.php:2355 +#: includes/api/class-wc-rest-products-controller.php:1943 +#: includes/api/class-wc-rest-products-controller.php:2365 #: includes/api/class-wc-rest-taxes-controller.php:627 msgid "Tax class." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1938 +#: includes/api/class-wc-rest-products-controller.php:1948 msgid "Stock management at product level." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1944 -#: includes/api/class-wc-rest-products-controller.php:2366 +#: includes/api/class-wc-rest-products-controller.php:1954 +#: includes/api/class-wc-rest-products-controller.php:2376 msgid "Stock quantity." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1955 -#: includes/api/class-wc-rest-products-controller.php:2377 +#: includes/api/class-wc-rest-products-controller.php:1965 +#: includes/api/class-wc-rest-products-controller.php:2387 msgid "If managing stock, this controls if backorders are allowed." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1962 -#: includes/api/class-wc-rest-products-controller.php:2384 +#: includes/api/class-wc-rest-products-controller.php:1972 +#: includes/api/class-wc-rest-products-controller.php:2394 msgid "Shows if backorders are allowed." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1968 +#: includes/api/class-wc-rest-products-controller.php:1978 msgid "Shows if the product is on backordered." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1974 +#: includes/api/class-wc-rest-products-controller.php:1984 msgid "Allow one item to be bought in a single order." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1980 +#: includes/api/class-wc-rest-products-controller.php:1990 msgid "Product weight (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1985 +#: includes/api/class-wc-rest-products-controller.php:1995 msgid "Product dimensions." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1990 +#: includes/api/class-wc-rest-products-controller.php:2000 msgid "Product length (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:1995 +#: includes/api/class-wc-rest-products-controller.php:2005 msgid "Product width (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2000 +#: includes/api/class-wc-rest-products-controller.php:2010 msgid "Product height (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2007 +#: includes/api/class-wc-rest-products-controller.php:2017 msgid "Shows if the product need to be shipped." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2013 +#: includes/api/class-wc-rest-products-controller.php:2023 msgid "Shows whether or not the product shipping is taxable." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2019 -#: includes/api/class-wc-rest-products-controller.php:2423 +#: includes/api/class-wc-rest-products-controller.php:2029 +#: includes/api/class-wc-rest-products-controller.php:2433 msgid "Shipping class slug." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2024 -#: includes/api/class-wc-rest-products-controller.php:2428 +#: includes/api/class-wc-rest-products-controller.php:2034 +#: includes/api/class-wc-rest-products-controller.php:2438 msgid "Shipping class ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2030 +#: includes/api/class-wc-rest-products-controller.php:2040 msgid "Allow reviews." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2036 +#: includes/api/class-wc-rest-products-controller.php:2046 msgid "Reviews average rating." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2042 +#: includes/api/class-wc-rest-products-controller.php:2052 msgid "Amount of reviews that the product have." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2048 +#: includes/api/class-wc-rest-products-controller.php:2058 msgid "List of related products IDs." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2054 +#: includes/api/class-wc-rest-products-controller.php:2064 msgid "List of up-sell products IDs." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2059 +#: includes/api/class-wc-rest-products-controller.php:2069 msgid "List of cross-sell products IDs." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2064 +#: includes/api/class-wc-rest-products-controller.php:2074 msgid "Product parent ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2069 +#: includes/api/class-wc-rest-products-controller.php:2079 msgid "Optional note to send the customer after purchase." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2074 +#: includes/api/class-wc-rest-products-controller.php:2084 msgid "List of categories." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2079 +#: includes/api/class-wc-rest-products-controller.php:2089 msgid "Category ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2090 +#: includes/api/class-wc-rest-products-controller.php:2100 msgid "Category slug." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2098 +#: includes/api/class-wc-rest-products-controller.php:2108 msgid "List of tags." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2103 +#: includes/api/class-wc-rest-products-controller.php:2113 msgid "Tag ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2114 +#: includes/api/class-wc-rest-products-controller.php:2124 msgid "Tag slug." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2122 +#: includes/api/class-wc-rest-products-controller.php:2132 msgid "List of images." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2160 -#: includes/api/class-wc-rest-products-controller.php:2472 +#: includes/api/class-wc-rest-products-controller.php:2170 +#: includes/api/class-wc-rest-products-controller.php:2482 msgid "Image position. 0 means that the image is featured." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2167 -#: includes/api/class-wc-rest-products-controller.php:2479 +#: includes/api/class-wc-rest-products-controller.php:2177 +#: includes/api/class-wc-rest-products-controller.php:2489 msgid "List of attributes." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2172 -#: includes/api/class-wc-rest-products-controller.php:2211 -#: includes/api/class-wc-rest-products-controller.php:2484 +#: includes/api/class-wc-rest-products-controller.php:2182 +#: includes/api/class-wc-rest-products-controller.php:2221 +#: includes/api/class-wc-rest-products-controller.php:2494 msgid "Attribute ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2182 +#: includes/api/class-wc-rest-products-controller.php:2192 msgid "Attribute position." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2187 -msgid "" -"Define if the attribute is visible on the \"Additional Information\" tab in " -"the product's page." +#: includes/api/class-wc-rest-products-controller.php:2197 +msgid "Define if the attribute is visible on the \"Additional Information\" tab in the product's page." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2193 +#: includes/api/class-wc-rest-products-controller.php:2203 msgid "Define if the attribute can be used as variation." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2199 +#: includes/api/class-wc-rest-products-controller.php:2209 msgid "List of available term names of the attribute." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2206 +#: includes/api/class-wc-rest-products-controller.php:2216 msgid "Defaults variation attributes." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2221 -#: includes/api/class-wc-rest-products-controller.php:2494 +#: includes/api/class-wc-rest-products-controller.php:2231 +#: includes/api/class-wc-rest-products-controller.php:2504 msgid "Selected attribute term name." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2228 +#: includes/api/class-wc-rest-products-controller.php:2238 msgid "List of variations." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2233 +#: includes/api/class-wc-rest-products-controller.php:2243 msgid "Variation ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2239 +#: includes/api/class-wc-rest-products-controller.php:2249 msgid "The date the variation was created, in the site's timezone." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2245 +#: includes/api/class-wc-rest-products-controller.php:2255 msgid "The date the variation was last modified, in the site's timezone." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2251 +#: includes/api/class-wc-rest-products-controller.php:2261 msgid "Variation URL." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2263 +#: includes/api/class-wc-rest-products-controller.php:2273 msgid "Current variation price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2269 +#: includes/api/class-wc-rest-products-controller.php:2279 msgid "Variation regular price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2274 +#: includes/api/class-wc-rest-products-controller.php:2284 msgid "Variation sale price." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2289 +#: includes/api/class-wc-rest-products-controller.php:2299 msgid "Shows if the variation is on sale." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2295 +#: includes/api/class-wc-rest-products-controller.php:2305 msgid "Shows if the variation can be bought." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2301 +#: includes/api/class-wc-rest-products-controller.php:2311 msgid "If the variation is virtual." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2307 +#: includes/api/class-wc-rest-products-controller.php:2317 msgid "If the variation is downloadable." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2336 +#: includes/api/class-wc-rest-products-controller.php:2346 msgid "Amount of times the variation can be downloaded." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2342 -msgid "" -"Number of days that the customer has up to be able to download the " -"variation." +#: includes/api/class-wc-rest-products-controller.php:2352 +msgid "Number of days that the customer has up to be able to download the variation." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2360 +#: includes/api/class-wc-rest-products-controller.php:2370 msgid "Stock management at variation level." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2371 -msgid "" -"Controls whether or not the variation is listed as \"in stock\" or \"out of " -"stock\" on the frontend." +#: includes/api/class-wc-rest-products-controller.php:2381 +msgid "Controls whether or not the variation is listed as \"in stock\" or \"out of stock\" on the frontend." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2390 +#: includes/api/class-wc-rest-products-controller.php:2400 msgid "Shows if the variation is on backordered." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2396 +#: includes/api/class-wc-rest-products-controller.php:2406 msgid "Variation weight (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2401 +#: includes/api/class-wc-rest-products-controller.php:2411 msgid "Variation dimensions." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2406 +#: includes/api/class-wc-rest-products-controller.php:2416 msgid "Variation length (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2411 +#: includes/api/class-wc-rest-products-controller.php:2421 msgid "Variation width (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2416 +#: includes/api/class-wc-rest-products-controller.php:2426 msgid "Variation height (%s)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2434 +#: includes/api/class-wc-rest-products-controller.php:2444 msgid "Variation image data." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2503 +#: includes/api/class-wc-rest-products-controller.php:2513 msgid "List of grouped products ID." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2509 +#: includes/api/class-wc-rest-products-controller.php:2519 msgid "Menu order, used to custom sort products." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2528 +#: includes/api/class-wc-rest-products-controller.php:2538 msgid "Limit result set to products with a specific slug." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2534 +#: includes/api/class-wc-rest-products-controller.php:2544 msgid "Limit result set to products assigned a specific status." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2541 +#: includes/api/class-wc-rest-products-controller.php:2551 msgid "Limit result set to products assigned a specific type." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2548 +#: includes/api/class-wc-rest-products-controller.php:2558 msgid "Limit result set to products assigned a specific category." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2554 +#: includes/api/class-wc-rest-products-controller.php:2564 msgid "Limit result set to products assigned a specific tag." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2560 +#: includes/api/class-wc-rest-products-controller.php:2570 msgid "Limit result set to products assigned a specific shipping class." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2566 +#: includes/api/class-wc-rest-products-controller.php:2576 msgid "Limit result set to products with a specific attribute." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2572 -msgid "" -"Limit result set to products with a specific attribute term (required an " -"assigned attribute)." +#: includes/api/class-wc-rest-products-controller.php:2582 +msgid "Limit result set to products with a specific attribute term (required an assigned attribute)." msgstr "" -#: includes/api/class-wc-rest-products-controller.php:2578 +#: includes/api/class-wc-rest-products-controller.php:2588 msgid "Limit result set to products with a specific SKU." msgstr "" @@ -14162,9 +14032,7 @@ msgid "Report period." msgstr "" #: includes/api/class-wc-rest-report-sales-controller.php:380 -msgid "" -"Return sales for a specific start date, the date need to be in the %s " -"format." +msgid "Return sales for a specific start date, the date need to be in the %s format." msgstr "" #: includes/api/class-wc-rest-report-sales-controller.php:387 @@ -14256,9 +14124,7 @@ msgid "The delivery duration, in seconds." msgstr "" #: includes/api/class-wc-rest-webhook-deliveries.php:230 -msgid "" -"A friendly summary of the response including the HTTP response code, " -"message, and body." +msgid "A friendly summary of the response including the HTTP response code, message, and body." msgstr "" #: includes/api/class-wc-rest-webhook-deliveries.php:236 @@ -14336,10 +14202,7 @@ msgid "The URL where the webhook payload is delivered." msgstr "" #: includes/api/class-wc-rest-webhooks-controller.php:516 -msgid "" -"Secret key used to generate a hash of the delivered webhook and provided in " -"the request headers. This will default is a MD5 hash from the current " -"user's ID|username if not provided." +msgid "Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default is a MD5 hash from the current user's ID|username if not provided." msgstr "" #: includes/api/class-wc-rest-webhooks-controller.php:522 @@ -14567,7 +14430,7 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-products.php:414 #: includes/api/legacy/v2/class-wc-api-resource.php:378 #: includes/api/legacy/v3/class-wc-api-products.php:469 -#: includes/api/legacy/v3/class-wc-api-products.php:3140 +#: includes/api/legacy/v3/class-wc-api-products.php:3143 #: includes/api/legacy/v3/class-wc-api-resource.php:377 msgid "This %s cannot be deleted" msgstr "" @@ -14582,14 +14445,14 @@ msgstr "" #: includes/api/legacy/v1/class-wc-api-resource.php:325 #: includes/api/legacy/v2/class-wc-api-products.php:427 -#: includes/api/legacy/v2/class-wc-api-products.php:2295 +#: includes/api/legacy/v2/class-wc-api-products.php:2298 #: includes/api/legacy/v2/class-wc-api-resource.php:386 #: includes/api/legacy/v3/class-wc-api-products.php:482 #: includes/api/legacy/v3/class-wc-api-products.php:822 #: includes/api/legacy/v3/class-wc-api-products.php:1010 -#: includes/api/legacy/v3/class-wc-api-products.php:2879 -#: includes/api/legacy/v3/class-wc-api-products.php:3147 -#: includes/api/legacy/v3/class-wc-api-products.php:3453 +#: includes/api/legacy/v3/class-wc-api-products.php:2882 +#: includes/api/legacy/v3/class-wc-api-products.php:3150 +#: includes/api/legacy/v3/class-wc-api-products.php:3456 #: includes/api/legacy/v3/class-wc-api-resource.php:386 #: includes/api/legacy/v3/class-wc-api-taxes.php:354 #: includes/api/legacy/v3/class-wc-api-taxes.php:665 @@ -14624,13 +14487,13 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-coupons.php:227 #: includes/api/legacy/v2/class-wc-api-customers.php:361 #: includes/api/legacy/v2/class-wc-api-products.php:224 -#: includes/api/legacy/v2/class-wc-api-products.php:2057 +#: includes/api/legacy/v2/class-wc-api-products.php:2060 #: includes/api/legacy/v2/class-wc-api-server.php:427 #: includes/api/legacy/v3/class-wc-api-coupons.php:227 #: includes/api/legacy/v3/class-wc-api-customers.php:362 #: includes/api/legacy/v3/class-wc-api-products.php:269 -#: includes/api/legacy/v3/class-wc-api-products.php:2638 -#: includes/api/legacy/v3/class-wc-api-products.php:3025 +#: includes/api/legacy/v3/class-wc-api-products.php:2641 +#: includes/api/legacy/v3/class-wc-api-products.php:3028 #: includes/api/legacy/v3/class-wc-api-server.php:427 #: includes/api/legacy/v3/class-wc-api-taxes.php:575 #: includes/class-wc-auth.php:176 includes/cli/class-wc-cli-coupon.php:63 @@ -14645,7 +14508,7 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-orders.php:1285 #: includes/api/legacy/v2/class-wc-api-orders.php:1574 #: includes/api/legacy/v2/class-wc-api-products.php:210 -#: includes/api/legacy/v2/class-wc-api-products.php:2093 +#: includes/api/legacy/v2/class-wc-api-products.php:2096 #: includes/api/legacy/v2/class-wc-api-webhooks.php:169 #: includes/api/legacy/v3/class-wc-api-coupons.php:213 #: includes/api/legacy/v3/class-wc-api-customers.php:348 @@ -14655,9 +14518,9 @@ msgstr "" #: includes/api/legacy/v3/class-wc-api-products.php:255 #: includes/api/legacy/v3/class-wc-api-products.php:658 #: includes/api/legacy/v3/class-wc-api-products.php:911 -#: includes/api/legacy/v3/class-wc-api-products.php:2674 -#: includes/api/legacy/v3/class-wc-api-products.php:3005 -#: includes/api/legacy/v3/class-wc-api-products.php:3339 +#: includes/api/legacy/v3/class-wc-api-products.php:2677 +#: includes/api/legacy/v3/class-wc-api-products.php:3008 +#: includes/api/legacy/v3/class-wc-api-products.php:3342 #: includes/api/legacy/v3/class-wc-api-taxes.php:184 #: includes/api/legacy/v3/class-wc-api-taxes.php:564 #: includes/api/legacy/v3/class-wc-api-webhooks.php:169 @@ -14684,7 +14547,7 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-orders.php:1342 #: includes/api/legacy/v2/class-wc-api-orders.php:1651 #: includes/api/legacy/v2/class-wc-api-products.php:312 -#: includes/api/legacy/v2/class-wc-api-products.php:2174 +#: includes/api/legacy/v2/class-wc-api-products.php:2177 #: includes/api/legacy/v2/class-wc-api-webhooks.php:245 #: includes/api/legacy/v3/class-wc-api-coupons.php:329 #: includes/api/legacy/v3/class-wc-api-customers.php:403 @@ -14694,9 +14557,9 @@ msgstr "" #: includes/api/legacy/v3/class-wc-api-products.php:362 #: includes/api/legacy/v3/class-wc-api-products.php:735 #: includes/api/legacy/v3/class-wc-api-products.php:956 -#: includes/api/legacy/v3/class-wc-api-products.php:2756 -#: includes/api/legacy/v3/class-wc-api-products.php:3068 -#: includes/api/legacy/v3/class-wc-api-products.php:3397 +#: includes/api/legacy/v3/class-wc-api-products.php:2759 +#: includes/api/legacy/v3/class-wc-api-products.php:3071 +#: includes/api/legacy/v3/class-wc-api-products.php:3400 #: includes/api/legacy/v3/class-wc-api-taxes.php:254 #: includes/api/legacy/v3/class-wc-api-webhooks.php:245 msgid "No %1$s data specified to edit %1$s" @@ -14713,11 +14576,11 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-coupons.php:526 #: includes/api/legacy/v2/class-wc-api-customers.php:791 #: includes/api/legacy/v2/class-wc-api-orders.php:1764 -#: includes/api/legacy/v2/class-wc-api-products.php:2361 +#: includes/api/legacy/v2/class-wc-api-products.php:2364 #: includes/api/legacy/v3/class-wc-api-coupons.php:526 #: includes/api/legacy/v3/class-wc-api-customers.php:780 #: includes/api/legacy/v3/class-wc-api-orders.php:1810 -#: includes/api/legacy/v3/class-wc-api-products.php:3189 +#: includes/api/legacy/v3/class-wc-api-products.php:3192 #: includes/api/legacy/v3/class-wc-api-taxes.php:457 msgid "No %1$s data specified to create/edit %1$s" msgstr "" @@ -14725,11 +14588,11 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-coupons.php:534 #: includes/api/legacy/v2/class-wc-api-customers.php:799 #: includes/api/legacy/v2/class-wc-api-orders.php:1772 -#: includes/api/legacy/v2/class-wc-api-products.php:2369 +#: includes/api/legacy/v2/class-wc-api-products.php:2372 #: includes/api/legacy/v3/class-wc-api-coupons.php:534 #: includes/api/legacy/v3/class-wc-api-customers.php:788 #: includes/api/legacy/v3/class-wc-api-orders.php:1818 -#: includes/api/legacy/v3/class-wc-api-products.php:3197 +#: includes/api/legacy/v3/class-wc-api-products.php:3200 #: includes/api/legacy/v3/class-wc-api-taxes.php:465 msgid "Unable to accept more than %s items for this request" msgstr "" @@ -15006,9 +14869,7 @@ msgstr "" #: includes/api/legacy/v2/class-wc-api-orders.php:1623 #: includes/api/legacy/v3/class-wc-api-orders.php:1669 -msgid "" -"An error occurred while attempting to create the refund using the payment " -"gateway API" +msgid "An error occurred while attempting to create the refund using the payment gateway API" msgstr "" #: includes/api/legacy/v2/class-wc-api-orders.php:1679 @@ -15050,94 +14911,100 @@ msgid "A product category with the provided ID could not be found" msgstr "" #: includes/api/legacy/v2/class-wc-api-products.php:858 -#: includes/api/legacy/v2/class-wc-api-products.php:1286 +#: includes/api/legacy/v2/class-wc-api-products.php:1287 #: includes/api/legacy/v3/class-wc-api-products.php:1343 -#: includes/api/legacy/v3/class-wc-api-products.php:1781 +#: includes/api/legacy/v3/class-wc-api-products.php:1782 #: includes/cli/class-wc-cli-product.php:1133 #: includes/cli/class-wc-cli-product.php:1583 msgid "The SKU already exists on another product" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:1789 -#: includes/api/legacy/v3/class-wc-api-products.php:2345 +#: includes/api/legacy/v2/class-wc-api-products.php:1790 +#: includes/api/legacy/v3/class-wc-api-products.php:2346 #: includes/cli/class-wc-cli-product.php:2010 msgid "Invalid URL %s" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:1801 -#: includes/api/legacy/v3/class-wc-api-products.php:2357 +#: includes/api/legacy/v2/class-wc-api-products.php:1802 +#: includes/api/legacy/v2/class-wc-api-products.php:1804 +#: includes/api/legacy/v3/class-wc-api-products.php:2358 +#: includes/api/legacy/v3/class-wc-api-products.php:2360 #: includes/cli/class-wc-cli-product.php:2022 -msgid "Error getting remote image %s" +#: includes/cli/class-wc-cli-product.php:2024 includes/wc-rest-functions.php:68 +#: includes/wc-rest-functions.php:70 +msgid "Error getting remote image %s." msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:1830 -#: includes/api/legacy/v3/class-wc-api-products.php:2386 -#: includes/cli/class-wc-cli-product.php:2051 +#: includes/api/legacy/v2/class-wc-api-products.php:1802 +#: includes/api/legacy/v3/class-wc-api-products.php:2358 +#: includes/cli/class-wc-cli-product.php:2022 includes/wc-rest-functions.php:68 +msgid "Error: %s." +msgstr "" + +#: includes/api/legacy/v2/class-wc-api-products.php:1833 +#: includes/api/legacy/v3/class-wc-api-products.php:2389 +#: includes/cli/class-wc-cli-product.php:2053 msgid "Zero size file downloaded" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:1971 -#: includes/api/legacy/v2/class-wc-api-products.php:2015 -#: includes/api/legacy/v3/class-wc-api-products.php:2552 -#: includes/api/legacy/v3/class-wc-api-products.php:2596 +#: includes/api/legacy/v2/class-wc-api-products.php:1974 +#: includes/api/legacy/v2/class-wc-api-products.php:2018 +#: includes/api/legacy/v3/class-wc-api-products.php:2555 +#: includes/api/legacy/v3/class-wc-api-products.php:2599 msgid "You do not have permission to read product attributes" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2010 -#: includes/api/legacy/v3/class-wc-api-products.php:2591 -#: includes/api/legacy/v3/class-wc-api-products.php:2959 +#: includes/api/legacy/v2/class-wc-api-products.php:2013 +#: includes/api/legacy/v3/class-wc-api-products.php:2594 +#: includes/api/legacy/v3/class-wc-api-products.php:2962 msgid "Invalid product attribute ID" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2025 -#: includes/api/legacy/v2/class-wc-api-products.php:2267 -#: includes/api/legacy/v3/class-wc-api-products.php:2606 -#: includes/api/legacy/v3/class-wc-api-products.php:2850 -#: includes/api/legacy/v3/class-wc-api-products.php:2903 -#: includes/api/legacy/v3/class-wc-api-products.php:2970 -#: includes/api/legacy/v3/class-wc-api-products.php:3018 -#: includes/api/legacy/v3/class-wc-api-products.php:3082 -#: includes/api/legacy/v3/class-wc-api-products.php:3133 +#: includes/api/legacy/v2/class-wc-api-products.php:2028 +#: includes/api/legacy/v2/class-wc-api-products.php:2270 +#: includes/api/legacy/v3/class-wc-api-products.php:2609 +#: includes/api/legacy/v3/class-wc-api-products.php:2853 +#: includes/api/legacy/v3/class-wc-api-products.php:2906 +#: includes/api/legacy/v3/class-wc-api-products.php:2973 +#: includes/api/legacy/v3/class-wc-api-products.php:3021 +#: includes/api/legacy/v3/class-wc-api-products.php:3085 +#: includes/api/legacy/v3/class-wc-api-products.php:3136 msgid "A product attribute with the provided ID could not be found" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2070 -#: includes/api/legacy/v3/class-wc-api-products.php:2651 -msgid "" -"Invalid product attribute type - the product attribute type must be any of " -"these: %s" +#: includes/api/legacy/v2/class-wc-api-products.php:2073 +#: includes/api/legacy/v3/class-wc-api-products.php:2654 +msgid "Invalid product attribute type - the product attribute type must be any of these: %s" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2075 -#: includes/api/legacy/v3/class-wc-api-products.php:2656 -msgid "" -"Invalid product attribute order_by type - the product attribute order_by " -"type must be any of these: %s" +#: includes/api/legacy/v2/class-wc-api-products.php:2078 +#: includes/api/legacy/v3/class-wc-api-products.php:2659 +msgid "Invalid product attribute order_by type - the product attribute order_by type must be any of these: %s" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2100 -#: includes/api/legacy/v3/class-wc-api-products.php:2681 -#: includes/api/legacy/v3/class-wc-api-products.php:3012 +#: includes/api/legacy/v2/class-wc-api-products.php:2103 +#: includes/api/legacy/v3/class-wc-api-products.php:2684 +#: includes/api/legacy/v3/class-wc-api-products.php:3015 msgid "You do not have permission to create product attributes" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2182 -#: includes/api/legacy/v3/class-wc-api-products.php:2764 -#: includes/api/legacy/v3/class-wc-api-products.php:3076 +#: includes/api/legacy/v2/class-wc-api-products.php:2185 +#: includes/api/legacy/v3/class-wc-api-products.php:2767 +#: includes/api/legacy/v3/class-wc-api-products.php:3079 msgid "You do not have permission to edit product attributes" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2255 -#: includes/api/legacy/v3/class-wc-api-products.php:2838 +#: includes/api/legacy/v2/class-wc-api-products.php:2258 +#: includes/api/legacy/v3/class-wc-api-products.php:2841 msgid "You do not have permission to delete product attributes" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2277 -#: includes/api/legacy/v3/class-wc-api-products.php:2860 +#: includes/api/legacy/v2/class-wc-api-products.php:2280 +#: includes/api/legacy/v3/class-wc-api-products.php:2863 msgid "Could not delete the attribute" msgstr "" -#: includes/api/legacy/v2/class-wc-api-products.php:2316 +#: includes/api/legacy/v2/class-wc-api-products.php:2319 msgid "Invalid product SKU" msgstr "" @@ -15189,9 +15056,7 @@ msgid "Invalid webhook delivery" msgstr "" #: includes/api/legacy/v3/class-wc-api-authentication.php:112 -msgid "" -"WooCommerce API. Use a consumer key in the username field and a consumer " -"secret in the password field" +msgid "WooCommerce API. Use a consumer key in the username field and a consumer secret in the password field" msgstr "" #: includes/api/legacy/v3/class-wc-api-products.php:663 @@ -15251,53 +15116,53 @@ msgstr "" msgid "Could not delete the tag" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:2897 -#: includes/api/legacy/v3/class-wc-api-products.php:2964 +#: includes/api/legacy/v3/class-wc-api-products.php:2900 +#: includes/api/legacy/v3/class-wc-api-products.php:2967 msgid "You do not have permission to read product attribute terms" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:2976 +#: includes/api/legacy/v3/class-wc-api-products.php:2979 msgid "A product attribute term with the provided ID could not be found" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3127 +#: includes/api/legacy/v3/class-wc-api-products.php:3130 msgid "You do not have permission to delete product attribute terms" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3265 -#: includes/api/legacy/v3/class-wc-api-products.php:3300 +#: includes/api/legacy/v3/class-wc-api-products.php:3268 +#: includes/api/legacy/v3/class-wc-api-products.php:3303 msgid "You do not have permission to read product shipping classes" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3295 +#: includes/api/legacy/v3/class-wc-api-products.php:3298 msgid "Invalid product shipping class ID" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3306 +#: includes/api/legacy/v3/class-wc-api-products.php:3309 msgid "A product shipping class with the provided ID could not be found" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3344 +#: includes/api/legacy/v3/class-wc-api-products.php:3347 msgid "You do not have permission to create product shipping classes" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3362 +#: includes/api/legacy/v3/class-wc-api-products.php:3365 msgid "Product shipping class parent is invalid" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3405 +#: includes/api/legacy/v3/class-wc-api-products.php:3408 msgid "You do not have permission to edit product shipping classes" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3417 +#: includes/api/legacy/v3/class-wc-api-products.php:3420 msgid "Could not edit the shipping class" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3442 +#: includes/api/legacy/v3/class-wc-api-products.php:3445 msgid "You do not have permission to delete product shipping classes" msgstr "" -#: includes/api/legacy/v3/class-wc-api-products.php:3448 +#: includes/api/legacy/v3/class-wc-api-products.php:3451 msgid "Could not delete the shipping class" msgstr "" @@ -15375,9 +15240,7 @@ msgid "Item %s stock reduced from %s to %s." msgstr "" #: includes/class-wc-ajax.php:1378 -msgid "" -"No products had their stock reduced - they may not have stock management " -"enabled." +msgid "No products had their stock reduced - they may not have stock management enabled." msgstr "" #: includes/class-wc-ajax.php:1411 @@ -15385,9 +15248,7 @@ msgid "Item %s stock increased from %s to %s." msgstr "" #: includes/class-wc-ajax.php:1418 -msgid "" -"No products had their stock increased - they may not have stock management " -"enabled." +msgid "No products had their stock increased - they may not have stock management enabled." msgstr "" #: includes/class-wc-ajax.php:1435 @@ -15423,9 +15284,7 @@ msgid "API Key updated successfully." msgstr "" #: includes/class-wc-ajax.php:2400 -msgid "" -"API Key generated successfully. Make sure to copy your new API keys now. " -"You won't be able to see it again!" +msgid "API Key generated successfully. Make sure to copy your new API keys now. You won't be able to see it again!" msgstr "" #: includes/class-wc-ajax.php:2613 @@ -15501,9 +15360,7 @@ msgid "%s - API %s (created on %s at %s)." msgstr "" #: includes/class-wc-auth.php:275 -msgid "" -"An error occurred in the request and at the time were unable to send the " -"consumer data" +msgid "An error occurred in the request and at the time were unable to send the consumer data" msgstr "" #: includes/class-wc-auth.php:317 @@ -15547,16 +15404,11 @@ msgid "Page %d" msgstr "" #: includes/class-wc-cache-helper.php:219 -msgid "" -"In order for database caching to work with WooCommerce you " -"must add _wc_session_ to the \"Ignored Query Strings\" option " -"in W3 Total Cache settings here." +msgid "In order for database caching to work with WooCommerce you must add _wc_session_ to the \"Ignored Query Strings\" option in W3 Total Cache settings here." msgstr "" #: includes/class-wc-cart.php:238 -msgid "" -"%s has been removed from your cart because it can no longer be purchased. " -"Please contact us if you need assistance." +msgid "%s has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance." msgstr "" #: includes/class-wc-cart.php:457 @@ -15564,23 +15416,15 @@ msgid "An item which is no longer available was removed from your cart." msgstr "" #: includes/class-wc-cart.php:483 -msgid "" -"Sorry, \"%s\" is not in stock. Please edit your cart and try again. We " -"apologise for any inconvenience caused." +msgid "Sorry, \"%s\" is not in stock. Please edit your cart and try again. We apologise for any inconvenience caused." msgstr "" #: includes/class-wc-cart.php:497 -msgid "" -"Sorry, we do not have enough \"%s\" in stock to fulfill your order (%s in " -"stock). Please edit your cart and try again. We apologise for any " -"inconvenience caused." +msgid "Sorry, we do not have enough \"%s\" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused." msgstr "" #: includes/class-wc-cart.php:532 -msgid "" -"Sorry, we do not have enough \"%s\" in stock to fulfill your order right " -"now. Please try again in %d minutes or edit your cart and try again. We " -"apologise for any inconvenience caused." +msgid "Sorry, we do not have enough \"%s\" in stock to fulfill your order right now. Please try again in %d minutes or edit your cart and try again. We apologise for any inconvenience caused." msgstr "" #: includes/class-wc-cart.php:695 @@ -15602,31 +15446,40 @@ msgid "Sorry, this product cannot be purchased." msgstr "" #: includes/class-wc-cart.php:941 -msgid "" -"You cannot add "%s" to the cart because the product is out of " -"stock." +msgid "You cannot add "%s" to the cart because the product is out of stock." msgstr "" #: includes/class-wc-cart.php:945 -msgid "" -"You cannot add that amount of "%s" to the cart because there is " -"not enough stock (%s remaining)." +msgid "You cannot add that amount of "%s" to the cart because there is not enough stock (%s remaining)." msgstr "" #: includes/class-wc-cart.php:966 -msgid "" -"You cannot add that amount to the cart — we have %s in stock and you " -"already have %s in your cart." +msgid "You cannot add that amount to the cart — we have %s in stock and you already have %s in your cart." msgstr "" #: includes/class-wc-checkout.php:106 msgid "Account username" msgstr "" +#: includes/class-wc-checkout.php:108 +msgctxt "placeholder" +msgid "Username" +msgstr "" + #: includes/class-wc-checkout.php:115 msgid "Account password" msgstr "" +#: includes/class-wc-checkout.php:117 +msgctxt "placeholder" +msgid "Password" +msgstr "" + +#: includes/class-wc-checkout.php:126 +msgctxt "placeholder" +msgid "Notes about your order, e.g. special notes for delivery." +msgstr "" + #: includes/class-wc-checkout.php:206 includes/class-wc-checkout.php:217 #: includes/class-wc-checkout.php:219 includes/class-wc-checkout.php:244 #: includes/class-wc-checkout.php:256 includes/class-wc-checkout.php:269 @@ -15639,9 +15492,22 @@ msgid "We were unable to process your order, please try again." msgstr "" #: includes/class-wc-checkout.php:369 -msgid "" -"Sorry, your session has expired. Return to shop" +msgid "Sorry, your session has expired. Return to shop" +msgstr "" + +#: includes/class-wc-checkout.php:451 +msgctxt "Shipping FIELDNAME" +msgid "Shipping %s" +msgstr "" + +#: includes/class-wc-checkout.php:454 +msgctxt "Billing FIELDNAME" +msgid "Billing %s" +msgstr "" + +#: includes/class-wc-checkout.php:460 +msgctxt "FIELDNAME is a required field." +msgid "%s is a required field." msgstr "" #: includes/class-wc-checkout.php:473 includes/class-wc-form-handler.php:100 @@ -15670,15 +15536,11 @@ msgid "Please enter an address to continue." msgstr "" #: includes/class-wc-checkout.php:571 -msgid "" -"Unfortunately we do not ship %s. Please enter an " -"alternative shipping address." +msgid "Unfortunately we do not ship %s. Please enter an alternative shipping address." msgstr "" #: includes/class-wc-checkout.php:580 -msgid "" -"No shipping method has been selected. Please double check your address, or " -"contact us if you need any help." +msgid "No shipping method has been selected. Please double check your address, or contact us if you need any help." msgstr "" #: includes/class-wc-checkout.php:592 includes/class-wc-form-handler.php:309 @@ -15725,6 +15587,16 @@ msgstr "" msgid "Company Name" msgstr "" +#: includes/class-wc-countries.php:572 +msgctxt "placeholder" +msgid "Street address" +msgstr "" + +#: includes/class-wc-countries.php:578 +msgctxt "placeholder" +msgid "Apartment, suite, unit etc. (optional)" +msgstr "" + #: includes/class-wc-countries.php:584 msgid "Town / City" msgstr "" @@ -15808,15 +15680,11 @@ msgid "Coupon \"%s\" does not exist!" msgstr "" #: includes/class-wc-coupon.php:813 -msgid "" -"Sorry, it seems the coupon \"%s\" is invalid - it has now been removed from " -"your order." +msgid "Sorry, it seems the coupon \"%s\" is invalid - it has now been removed from your order." msgstr "" #: includes/class-wc-coupon.php:816 -msgid "" -"Sorry, it seems the coupon \"%s\" is not yours - it has now been removed " -"from your order." +msgid "Sorry, it seems the coupon \"%s\" is not yours - it has now been removed from your order." msgstr "" #: includes/class-wc-coupon.php:819 @@ -15824,9 +15692,7 @@ msgid "Coupon code already applied!" msgstr "" #: includes/class-wc-coupon.php:822 -msgid "" -"Sorry, coupon \"%s\" has already been applied and cannot be used in " -"conjunction with other coupons." +msgid "Sorry, coupon \"%s\" has already been applied and cannot be used in conjunction with other coupons." msgstr "" #: includes/class-wc-coupon.php:825 @@ -16056,9 +15922,7 @@ msgid "Your order was cancelled." msgstr "" #: includes/class-wc-form-handler.php:660 -msgid "" -"Your order can no longer be cancelled. Please contact us if you need " -"assistance." +msgid "Your order can no longer be cancelled. Please contact us if you need assistance." msgstr "" #: includes/class-wc-form-handler.php:770 @@ -16125,9 +15989,7 @@ msgid "required" msgstr "" #: includes/class-wc-frontend-scripts.php:323 -msgid "" -"Sorry, no products matched your selection. Please choose a different " -"combination." +msgid "Sorry, no products matched your selection. Please choose a different combination." msgstr "" #: includes/class-wc-frontend-scripts.php:324 @@ -16144,16 +16006,33 @@ msgid "Please enter a stronger password." msgstr "" #: includes/class-wc-frontend-scripts.php:350 -msgid "" -"The password should be at least seven characters long. To make it stronger, " -"use upper and lower case letters, numbers and symbols like ! \" ? $ % ^ " -"& )." +msgid "The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! \" ? $ % ^ & )." msgstr "" #: includes/class-wc-install.php:256 msgid "Monthly" msgstr "" +#: includes/class-wc-install.php:294 +msgctxt "Page slug" +msgid "shop" +msgstr "" + +#: includes/class-wc-install.php:299 +msgctxt "Page slug" +msgid "cart" +msgstr "" + +#: includes/class-wc-install.php:304 +msgctxt "Page slug" +msgid "checkout" +msgstr "" + +#: includes/class-wc-install.php:309 +msgctxt "Page slug" +msgid "my-account" +msgstr "" + #: includes/class-wc-install.php:605 msgid "Shop Manager" msgstr "" @@ -16187,15 +16066,11 @@ msgid "Premium Support" msgstr "" #: includes/class-wc-install.php:985 -msgid "" -"%1$s could not be installed (%2$s). %3$sPlease install it manually by " -"clicking here.%4$s" +msgid "%1$s could not be installed (%2$s). %3$sPlease install it manually by clicking here.%4$s" msgstr "" #: includes/class-wc-install.php:1013 -msgid "" -"%1$s was installed but could not be activated. %2$sPlease activate it " -"manually by clicking here.%3$s" +msgid "%1$s was installed but could not be activated. %2$sPlease activate it manually by clicking here.%3$s" msgstr "" #: includes/class-wc-order.php:46 includes/wc-cart-functions.php:303 @@ -16206,6 +16081,11 @@ msgstr "" msgid "Product Category" msgstr "" +#: includes/class-wc-post-types.php:67 +msgctxt "Admin menu name" +msgid "Categories" +msgstr "" + #: includes/class-wc-post-types.php:68 msgid "Search Product Categories" msgstr "" @@ -16246,6 +16126,11 @@ msgstr "" msgid "Product Tag" msgstr "" +#: includes/class-wc-post-types.php:103 +msgctxt "Admin menu name" +msgid "Tags" +msgstr "" + #: includes/class-wc-post-types.php:104 msgid "Search Product Tags" msgstr "" @@ -16290,6 +16175,11 @@ msgstr "" msgid "No Product Tags found" msgstr "" +#: includes/class-wc-post-types.php:140 +msgctxt "Admin menu name" +msgid "Shipping Classes" +msgstr "" + #: includes/class-wc-post-types.php:141 msgid "Search Shipping Classes" msgstr "" @@ -16358,6 +16248,11 @@ msgstr "" msgid "No "%s" found" msgstr "" +#: includes/class-wc-post-types.php:243 +msgctxt "Admin menu name" +msgid "Products" +msgstr "" + #: includes/class-wc-post-types.php:244 msgid "Add Product" msgstr "" @@ -16435,6 +16330,11 @@ msgstr "" msgid "This is where you can add new products to your store." msgstr "" +#: includes/class-wc-post-types.php:300 +msgctxt "shop_order post type singular name" +msgid "Order" +msgstr "" + #: includes/class-wc-post-types.php:301 msgid "Add Order" msgstr "" @@ -16491,6 +16391,11 @@ msgstr "" msgid "Coupon" msgstr "" +#: includes/class-wc-post-types.php:362 +msgctxt "Admin menu name" +msgid "Coupons" +msgstr "" + #: includes/class-wc-post-types.php:363 msgid "Add Coupon" msgstr "" @@ -16551,6 +16456,11 @@ msgstr "" msgid "Webhook" msgstr "" +#: includes/class-wc-post-types.php:403 +msgctxt "Admin menu name" +msgid "Webhooks" +msgstr "" + #: includes/class-wc-post-types.php:405 msgid "Add New Webhook" msgstr "" @@ -16583,42 +16493,77 @@ msgstr "" msgid "Parent Webhook" msgstr "" +#: includes/class-wc-post-types.php:442 includes/wc-order-functions.php:192 +msgctxt "Order status" +msgid "Pending Payment" +msgstr "" + #: includes/class-wc-post-types.php:447 msgid "Pending Payment (%s)" msgid_plural "Pending Payment (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:450 includes/wc-order-functions.php:193 +msgctxt "Order status" +msgid "Processing" +msgstr "" + #: includes/class-wc-post-types.php:455 msgid "Processing (%s)" msgid_plural "Processing (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:458 includes/wc-order-functions.php:194 +msgctxt "Order status" +msgid "On Hold" +msgstr "" + #: includes/class-wc-post-types.php:463 msgid "On Hold (%s)" msgid_plural "On Hold (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:466 includes/wc-order-functions.php:195 +msgctxt "Order status" +msgid "Completed" +msgstr "" + #: includes/class-wc-post-types.php:471 msgid "Completed (%s)" msgid_plural "Completed (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:474 includes/wc-order-functions.php:196 +msgctxt "Order status" +msgid "Cancelled" +msgstr "" + #: includes/class-wc-post-types.php:479 msgid "Cancelled (%s)" msgid_plural "Cancelled (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:482 includes/wc-order-functions.php:197 +msgctxt "Order status" +msgid "Refunded" +msgstr "" + #: includes/class-wc-post-types.php:487 msgid "Refunded (%s)" msgid_plural "Refunded (%s)" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-post-types.php:490 includes/wc-order-functions.php:198 +msgctxt "Order status" +msgid "Failed" +msgstr "" + #: includes/class-wc-post-types.php:495 msgid "Failed (%s)" msgid_plural "Failed (%s)" @@ -16629,17 +16574,22 @@ msgstr[1] "" msgid "Buy product" msgstr "" +#: includes/class-wc-product-grouped.php:152 +#: includes/class-wc-product-variable.php:353 +#: includes/class-wc-product-variable.php:359 +msgctxt "Price range: from-to" +msgid "%1$s–%2$s" +msgstr "" + #: includes/class-wc-product-variable.php:43 msgid "Select options" msgstr "" #: includes/class-wc-product-variable.php:745 -msgid "" -"This variable product has no active variations. Add or enable variations to " -"allow this product to be purchased." +msgid "This variable product has no active variations. Add or enable variations to allow this product to be purchased." msgstr "" -#: includes/class-wc-product-variation.php:763 +#: includes/class-wc-product-variation.php:721 msgid "%s – %s%s" msgstr "" @@ -16675,6 +16625,10 @@ msgid_plural "%s and %d other regions" msgstr[0] "" msgstr[1] "" +#: includes/class-wc-shipping-zone.php:226 +msgid "Everywhere" +msgstr "" + #: includes/class-wc-webhook.php:610 msgid "Error: Delivery URL cannot be reached: %s" msgstr "" @@ -16719,9 +16673,7 @@ msgid "Cancelled order" msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:28 -msgid "" -"Cancelled order emails are sent to chosen recipient(s) when orders have " -"been marked cancelled (if they were previously processing or on-hold)." +msgid "Cancelled order emails are sent to chosen recipient(s) when orders have been marked cancelled (if they were previously processing or on-hold)." msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:30 @@ -16755,9 +16707,7 @@ msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:111 #: includes/emails/class-wc-email-failed-order.php:111 #: includes/emails/class-wc-email-new-order.php:116 -msgid "" -"Enter recipients (comma separated) for this email. Defaults to " -"%s." +msgid "Enter recipients (comma separated) for this email. Defaults to %s." msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:117 @@ -16770,9 +16720,7 @@ msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:119 #: includes/emails/class-wc-email-failed-order.php:119 #: includes/emails/class-wc-email-new-order.php:124 -msgid "" -"This controls the email subject line. Leave blank to use the default " -"subject: %s." +msgid "This controls the email subject line. Leave blank to use the default subject: %s." msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:125 @@ -16787,9 +16735,7 @@ msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:127 #: includes/emails/class-wc-email-failed-order.php:127 #: includes/emails/class-wc-email-new-order.php:132 -msgid "" -"This controls the main heading contained within the email notification. " -"Leave blank to use the default heading: %s." +msgid "This controls the main heading contained within the email notification. Leave blank to use the default heading: %s." msgstr "" #: includes/emails/class-wc-email-cancelled-order.php:133 @@ -16816,9 +16762,7 @@ msgid "Completed order" msgstr "" #: includes/emails/class-wc-email-customer-completed-order.php:30 -msgid "" -"Order complete emails are sent to customers when their orders are marked " -"completed and usually indicate that their orders have been shipped." +msgid "Order complete emails are sent to customers when their orders are marked completed and usually indicate that their orders have been shipped." msgstr "" #: includes/emails/class-wc-email-customer-completed-order.php:32 @@ -16867,9 +16811,7 @@ msgid "Customer invoice" msgstr "" #: includes/emails/class-wc-email-customer-invoice.php:43 -msgid "" -"Customer invoice emails can be sent to customers containing their order " -"information and payment links." +msgid "Customer invoice emails can be sent to customers containing their order information and payment links." msgstr "" #: includes/emails/class-wc-email-customer-invoice.php:48 @@ -16910,9 +16852,7 @@ msgid "New account" msgstr "" #: includes/emails/class-wc-email-customer-new-account.php:58 -msgid "" -"Customer \"new account\" emails are sent to the customer when a customer " -"signs up via checkout or account pages." +msgid "Customer \"new account\" emails are sent to the customer when a customer signs up via checkout or account pages." msgstr "" #: includes/emails/class-wc-email-customer-new-account.php:63 @@ -16944,9 +16884,7 @@ msgid "Order on-hold" msgstr "" #: includes/emails/class-wc-email-customer-on-hold-order.php:29 -msgid "" -"This is an order notification sent to customers containing order details " -"after an order is placed on-hold." +msgid "This is an order notification sent to customers containing order details after an order is placed on-hold." msgstr "" #: includes/emails/class-wc-email-customer-on-hold-order.php:30 @@ -16964,9 +16902,7 @@ msgid "Processing order" msgstr "" #: includes/emails/class-wc-email-customer-processing-order.php:29 -msgid "" -"This is an order notification sent to customers containing order details " -"after payment." +msgid "This is an order notification sent to customers containing order details after payment." msgstr "" #: includes/emails/class-wc-email-customer-refunded-order.php:57 @@ -16990,9 +16926,7 @@ msgid "Partially Refunded order" msgstr "" #: includes/emails/class-wc-email-customer-refunded-order.php:69 -msgid "" -"Order partially refunded emails are sent to customers when their orders are " -"partially refunded." +msgid "Order partially refunded emails are sent to customers when their orders are partially refunded." msgstr "" #: includes/emails/class-wc-email-customer-refunded-order.php:75 @@ -17000,9 +16934,7 @@ msgid "Refunded order" msgstr "" #: includes/emails/class-wc-email-customer-refunded-order.php:76 -msgid "" -"Order refunded emails are sent to customers when their orders are marked " -"refunded." +msgid "Order refunded emails are sent to customers when their orders are marked refunded." msgstr "" #: includes/emails/class-wc-email-customer-refunded-order.php:204 @@ -17026,9 +16958,7 @@ msgid "Reset password" msgstr "" #: includes/emails/class-wc-email-customer-reset-password.php:50 -msgid "" -"Customer \"reset password\" emails are sent when customers reset their " -"passwords." +msgid "Customer \"reset password\" emails are sent when customers reset their passwords." msgstr "" #: includes/emails/class-wc-email-customer-reset-password.php:56 @@ -17045,9 +16975,7 @@ msgid "Failed order" msgstr "" #: includes/emails/class-wc-email-failed-order.php:28 -msgid "" -"Failed order emails are sent to chosen recipient(s) when orders have been " -"marked failed (if they were previously processing or on-hold)." +msgid "Failed order emails are sent to chosen recipient(s) when orders have been marked failed (if they were previously processing or on-hold)." msgstr "" #: includes/emails/class-wc-email-failed-order.php:30 @@ -17059,9 +16987,7 @@ msgid "New order" msgstr "" #: includes/emails/class-wc-email-new-order.php:28 -msgid "" -"New order emails are sent to chosen recipient(s) when a new order is " -"received." +msgid "New order emails are sent to chosen recipient(s) when a new order is received." msgstr "" #: includes/emails/class-wc-email-new-order.php:29 @@ -17113,9 +17039,7 @@ msgid "Delete template file" msgstr "" #: includes/emails/class-wc-email.php:766 -msgid "" -"This template has been overridden by your theme and can be found in: " -"%s." +msgid "This template has been overridden by your theme and can be found in: %s." msgstr "" #: includes/emails/class-wc-email.php:779 @@ -17123,9 +17047,7 @@ msgid "Copy file to theme" msgstr "" #: includes/emails/class-wc-email.php:782 -msgid "" -"To override and edit this email template copy %s to your theme " -"folder: %s." +msgid "To override and edit this email template copy %s to your theme folder: %s." msgstr "" #: includes/emails/class-wc-email.php:791 @@ -17161,7 +17083,7 @@ msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:20 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:197 #: includes/shipping/flat-rate/includes/settings-flat-rate.php:16 -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:53 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:65 #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:22 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:91 #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:119 @@ -17181,10 +17103,7 @@ msgid "Payment method description that the customer will see on your checkout." msgstr "" #: includes/gateways/bacs/class-wc-gateway-bacs.php:89 -msgid "" -"Make your payment directly into our bank account. Please use your Order ID " -"as the payment reference. Your order won't be shipped until the funds have " -"cleared in our account." +msgid "Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order won't be shipped until the funds have cleared in our account." msgstr "" #: includes/gateways/bacs/class-wc-gateway-bacs.php:93 @@ -17277,10 +17196,7 @@ msgid "Branch Code" msgstr "" #: includes/gateways/cheque/class-wc-gateway-cheque.php:28 -msgid "" -"Allows check payments. Why would you take checks in this day and age? Well " -"you probably wouldn't but it does allow you to make test purchases for " -"testing order emails and the 'success' pages etc." +msgid "Allows check payments. Why would you take checks in this day and age? Well you probably wouldn't but it does allow you to make test purchases for testing order emails and the 'success' pages etc." msgstr "" #: includes/gateways/cheque/class-wc-gateway-cheque.php:56 @@ -17288,9 +17204,12 @@ msgid "Enable Check Payments" msgstr "" #: includes/gateways/cheque/class-wc-gateway-cheque.php:70 -msgid "" -"Please send a check to Store Name, Store Street, Store Town, Store State / " -"County, Store Postcode." +msgid "Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode." +msgstr "" + +#: includes/gateways/cheque/class-wc-gateway-cheque.php:116 +msgctxt "Check payment method" +msgid "Awaiting check payment" msgstr "" #: includes/gateways/class-wc-payment-gateway-cc.php:54 @@ -17344,9 +17263,7 @@ msgid "Enable for shipping methods" msgstr "" #: includes/gateways/cod/class-wc-gateway-cod.php:94 -msgid "" -"If COD is only available for certain methods, set it up here. Leave blank " -"to enable for all methods." +msgid "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods." msgstr "" #: includes/gateways/cod/class-wc-gateway-cod.php:98 @@ -17375,10 +17292,7 @@ msgid "PayPal" msgstr "" #: includes/gateways/paypal/class-wc-gateway-paypal.php:37 -msgid "" -"PayPal standard sends customers to PayPal to enter their payment " -"information. PayPal IPN requires fsockopen/cURL support to update order " -"statuses after payment. Check the %ssystem status%s page for more details." +msgid "PayPal standard sends customers to PayPal to enter their payment information. PayPal IPN requires fsockopen/cURL support to update order statuses after payment. Check the %ssystem status%s page for more details." msgstr "" #: includes/gateways/paypal/class-wc-gateway-paypal.php:95 @@ -17452,9 +17366,7 @@ msgid "Reversal cancelled for order #%s" msgstr "" #: includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php:285 -msgid "" -"Order #%s has had a reversal cancelled. Please check the status of payment " -"and update the order status accordingly here: %s" +msgid "Order #%s has had a reversal cancelled. Please check the status of payment and update the order status accordingly here: %s" msgstr "" #: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php:94 @@ -17480,9 +17392,7 @@ msgid "This controls the description which the user sees during checkout." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:29 -msgid "" -"Pay via PayPal; you can pay with your credit card if you don't have a " -"PayPal account." +msgid "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:32 @@ -17490,9 +17400,7 @@ msgid "PayPal Email" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:34 -msgid "" -"Please enter your PayPal email address; this is needed in order to take " -"payment." +msgid "Please enter your PayPal email address; this is needed in order to take payment." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:40 @@ -17504,9 +17412,7 @@ msgid "Enable PayPal sandbox" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:44 -msgid "" -"PayPal sandbox can be used to test payments. Sign up for a developer " -"account here." +msgid "PayPal sandbox can be used to test payments. Sign up for a developer account here." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:47 @@ -17530,10 +17436,7 @@ msgid "Receiver Email" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:61 -msgid "" -"If your main PayPal email differs from the PayPal email entered above, " -"input your main receiver email for your PayPal account here. This is used " -"to validate IPN requests." +msgid "If your main PayPal email differs from the PayPal email entered above, input your main receiver email for your PayPal account here. This is used to validate IPN requests." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:67 @@ -17541,11 +17444,7 @@ msgid "PayPal Identity Token" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:69 -msgid "" -"Optionally enable \"Payment Data Transfer\" (Profile > Profile and Settings " -"> My Selling Tools > Website Preferences) and then copy your identity token " -"here. This will allow payments to be verified without the need for PayPal " -"IPN." +msgid "Optionally enable \"Payment Data Transfer\" (Profile > Profile and Settings > My Selling Tools > Website Preferences) and then copy your identity token here. This will allow payments to be verified without the need for PayPal IPN." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:75 @@ -17553,10 +17452,7 @@ msgid "Invoice Prefix" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:77 -msgid "" -"Please enter a prefix for your invoice numbers. If you use your PayPal " -"account for multiple stores ensure this prefix is unique as PayPal will not " -"allow orders with the same invoice number." +msgid "Please enter a prefix for your invoice numbers. If you use your PayPal account for multiple stores ensure this prefix is unique as PayPal will not allow orders with the same invoice number." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:84 @@ -17564,9 +17460,7 @@ msgid "Send shipping details to PayPal instead of billing." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:85 -msgid "" -"PayPal allows us to send one address. If you are using PayPal for shipping " -"labels you may prefer to send the shipping address rather than billing." +msgid "PayPal allows us to send one address. If you are using PayPal for shipping labels you may prefer to send the shipping address rather than billing." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:89 @@ -17574,15 +17468,11 @@ msgid "Address Override" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:91 -msgid "" -"Enable \"address_override\" to prevent address information from being " -"changed." +msgid "Enable \"address_override\" to prevent address information from being changed." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:92 -msgid "" -"PayPal verifies addresses therefore this setting can cause errors (we " -"recommend keeping it disabled)." +msgid "PayPal verifies addresses therefore this setting can cause errors (we recommend keeping it disabled)." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:96 @@ -17590,9 +17480,7 @@ msgid "Payment Action" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:99 -msgid "" -"Choose whether you wish to capture funds immediately or authorize payment " -"only." +msgid "Choose whether you wish to capture funds immediately or authorize payment only." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:103 @@ -17608,9 +17496,7 @@ msgid "Page Style" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:110 -msgid "" -"Optionally enter the name of the page style you wish to use. These are " -"defined within your PayPal account." +msgid "Optionally enter the name of the page style you wish to use. These are defined within your PayPal account." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:116 @@ -17618,9 +17504,7 @@ msgid "API Credentials" msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:118 -msgid "" -"Enter your PayPal API credentials to process refunds via PayPal. Learn how " -"to access your PayPal API Credentials %shere%s." +msgid "Enter your PayPal API credentials to process refunds via PayPal. Learn how to access your PayPal API Credentials %shere%s." msgstr "" #: includes/gateways/paypal/includes/settings-paypal.php:121 @@ -17645,17 +17529,13 @@ msgstr "" #: includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php:188 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:418 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:593 -msgid "" -"Please make sure your card details have been entered correctly and that " -"your browser supports JavaScript." +msgid "Please make sure your card details have been entered correctly and that your browser supports JavaScript." msgstr "" #: includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php:97 #: includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php:191 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:421 -msgid "" -"Developers: Please make sure that you're including jQuery and there are no " -"JavaScript errors on the page." +msgid "Developers: Please make sure that you're including jQuery and there are no JavaScript errors on the page." msgstr "" #: includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php:114 @@ -17724,9 +17604,7 @@ msgid "Payment was declined by Simplify Commerce." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:25 -msgid "" -"Take payments via Simplify Commerce - uses simplify.js to create card " -"tokens and the Simplify Commerce SDK. Requires SSL when sandbox is disabled." +msgid "Take payments via Simplify Commerce - uses simplify.js to create card tokens and the Simplify Commerce SDK. Requires SSL when sandbox is disabled." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:26 @@ -17743,11 +17621,7 @@ msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:96 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:102 -msgid "" -"Simplify Commerce is your merchant account and payment gateway all rolled " -"into one. Choose Simplify Commerce as your WooCommerce payment gateway to " -"get access to your money quickly with a powerful, secure payment engine " -"backed by MasterCard." +msgid "Simplify Commerce is your merchant account and payment gateway all rolled into one. Choose Simplify Commerce as your WooCommerce payment gateway to get access to your money quickly with a powerful, secure payment engine backed by MasterCard." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:98 @@ -17755,9 +17629,7 @@ msgid "Sign up for Simplify Commerce" msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:147 -msgid "" -"Simplify Commerce Error: Simplify commerce requires PHP 5.3 and above. You " -"are using version %s." +msgid "Simplify Commerce Error: Simplify commerce requires PHP 5.3 and above. You are using version %s." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:152 @@ -17765,11 +17637,7 @@ msgid "Simplify Commerce Error: Please enter your public and private keys" msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:157 -msgid "" -"Simplify Commerce is enabled, but the force SSL option " -"is disabled; your checkout may not be secure! Please enable SSL and ensure " -"your server has a valid SSL certificate - Simplify Commerce will only work " -"in sandbox mode." +msgid "Simplify Commerce is enabled, but the force SSL option is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Simplify Commerce will only work in sandbox mode." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:189 @@ -17789,13 +17657,7 @@ msgid "Enable Hosted Payments" msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:212 -msgid "" -"Standard will display the credit card fields on your store (SSL required). " -"%1$s Hosted Payments will display a Simplify Commerce modal dialog on your " -"store (if SSL) or will redirect the customer to Simplify Commerce hosted " -"page (if not SSL). %1$s Note: Hosted Payments need a new API Key pair with " -"the hosted payments flag selected. %2$sFor more details check the Simplify " -"Commerce docs%3$s." +msgid "Standard will display the credit card fields on your store (SSL required). %1$s Hosted Payments will display a Simplify Commerce modal dialog on your store (if SSL) or will redirect the customer to Simplify Commerce hosted page (if not SSL). %1$s Note: Hosted Payments need a new API Key pair with the hosted payments flag selected. %2$sFor more details check the Simplify Commerce docs%3$s." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:216 @@ -17819,9 +17681,7 @@ msgid "Enable Sandbox Mode" msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:230 -msgid "" -"Place the payment gateway in sandbox mode using sandbox API keys (real " -"payments will not be taken)." +msgid "Place the payment gateway in sandbox mode using sandbox API keys (real payments will not be taken)." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:234 @@ -17869,9 +17729,7 @@ msgid "There was a problem adding this card." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:637 -msgid "" -"Thank you for your order, please click the button below to pay with credit " -"card using Simplify Commerce by MasterCard." +msgid "Thank you for your order, please click the button below to pay with credit card using Simplify Commerce by MasterCard." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:646 @@ -17899,7 +17757,7 @@ msgid "(expires %s)" msgstr "" #: includes/payment-tokens/class-wc-payment-token-echeck.php:48 -#: includes/wc-account-functions.php:214 includes/wc-account-functions.php:301 +#: includes/wc-account-functions.php:216 includes/wc-account-functions.php:303 msgid "eCheck" msgstr "" @@ -17919,10 +17777,7 @@ msgid "Enter a cost (excl. tax) or sum, e.g. 10.00 * [qty]." msgstr "" #: includes/shipping/flat-rate/includes/settings-flat-rate.php:7 -msgid "" -"Use [qty] for the number of items,
    [cost] " -"for the total cost of items, and [fee percent=\"10\" min_fee=\"20\" " -"max_fee=\"\"] for percentage based fees." +msgid "Use [qty] for the number of items,
    [cost] for the total cost of items, and [fee percent=\"10\" min_fee=\"20\" max_fee=\"\"] for percentage based fees." msgstr "" #: includes/shipping/flat-rate/includes/settings-flat-rate.php:14 @@ -17972,45 +17827,41 @@ msgid "Free Shipping" msgstr "" #: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:31 -msgid "" -"Free Shipping is a special method which can be triggered with coupons and " -"minimum spends." +msgid "Free Shipping is a special method which can be triggered with coupons and minimum spends." msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:58 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:70 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:117 msgid "Free Shipping Requires..." msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:64 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:76 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:123 msgid "A valid free shipping coupon" msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:65 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:77 msgid "A minimum order amount" msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:66 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:78 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:125 msgid "A minimum order amount OR a coupon" msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:67 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:79 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:126 msgid "A minimum order amount AND a coupon" msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:71 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:83 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:130 msgid "Minimum Order Amount" msgstr "" -#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:74 +#: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:86 #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:133 -msgid "" -"Users will need to spend this amount to get free shipping (if enabled " -"above)." +msgid "Users will need to spend this amount to get free shipping (if enabled above)." msgstr "" #: includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:26 @@ -18022,17 +17873,11 @@ msgstr "" #: includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php:24 #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:25 #: includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:25 -msgid "" -"This method is deprecated in 2.6.0 and will be removed in future " -"versions - we recommend disabling it and instead setting up a new rate " -"within your Shipping Zones." +msgid "This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your Shipping Zones." msgstr "" #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:7 -msgid "" -"Supports the following placeholders: [qty] = number of items, " -"[cost] = cost of items, [fee percent=\"10\" " -"min_fee=\"20\"] = Percentage based fee." +msgid "Supports the following placeholders: [qty] = number of items, [cost] = cost of items, [fee percent=\"10\" min_fee=\"20\"] = Percentage based fee." msgstr "" #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:16 @@ -18078,22 +17923,15 @@ msgid "Additional Rates" msgstr "" #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:114 -msgid "" -"These rates are extra shipping options with additional costs (based on the " -"flat rate)." +msgid "These rates are extra shipping options with additional costs (based on the flat rate)." msgstr "" #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:119 -msgid "" -"One per line: Option Name | Additional Cost [+- Percents] | Per Cost Type " -"(order, class, or item) Example: Priority Mail | 6.95 [+ 0.2%] | " -"order." +msgid "One per line: Option Name | Additional Cost [+- Percents] | Per Cost Type (order, class, or item) Example: Priority Mail | 6.95 [+ 0.2%] | order." msgstr "" #: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:122 -msgid "" -"Option Name | Additional Cost [+- Percents%] | Per Cost Type (order, class, " -"or item)" +msgid "Option Name | Additional Cost [+- Percents%] | Per Cost Type (order, class, or item)" msgstr "" #: includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:30 @@ -18160,9 +17998,7 @@ msgid "Delivery Fee" msgstr "" #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:139 -msgid "" -"What fee do you want to charge for local delivery, disregarded if you " -"choose free. Leave blank to disable." +msgid "What fee do you want to charge for local delivery, disregarded if you choose free. Leave blank to disable." msgstr "" #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:145 @@ -18176,10 +18012,7 @@ msgstr "" #: includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:149 #: includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:105 -msgid "" -"Separate codes with a comma. Accepts wildcards, e.g. P* will " -"match a postcode of PE30. Also accepts a pattern, e.g. NG1___ " -"would match NG1 1AA but not NG10 1AA" +msgid "Separate codes with a comma. Accepts wildcards, e.g. P* will match a postcode of PE30. Also accepts a pattern, e.g. NG1___ would match NG1 1AA but not NG10 1AA" msgstr "" #: includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:24 @@ -18197,9 +18030,7 @@ msgid "What ZIP/post codes are available for local pickup?" msgstr "" #: includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:25 -msgid "" -"Allow customers to pick up orders themselves. By default, when using local " -"pickup store base taxes will apply regardless of customer address." +msgid "Allow customers to pick up orders themselves. By default, when using local pickup store base taxes will apply regardless of customer address." msgstr "" #: includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:90 @@ -18226,9 +18057,7 @@ msgstr "" #: includes/shortcodes/class-wc-shortcode-checkout.php:121 #: includes/shortcodes/class-wc-shortcode-checkout.php:168 -msgid "" -"This order’s status is “%s”—it cannot be paid for. " -"Please contact us if you need assistance." +msgid "This order’s status is “%s”—it cannot be paid for. Please contact us if you need assistance." msgstr "" #: includes/shortcodes/class-wc-shortcode-checkout.php:125 @@ -18247,9 +18076,7 @@ msgid "Date:" msgstr "" #: includes/shortcodes/class-wc-shortcode-checkout.php:246 -msgid "" -"The order totals have been updated. Please confirm your order by pressing " -"the Place Order button at the bottom of the page." +msgid "The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page." msgstr "" #: includes/shortcodes/class-wc-shortcode-my-account.php:210 @@ -18323,9 +18150,7 @@ msgid "Limit results to those matching a string." msgstr "" #: includes/vendor/class-wp-rest-controller.php:288 -msgid "" -"Scope under which the request is made; determines fields present in " -"response." +msgid "Scope under which the request is made; determines fields present in response." msgstr "" #: includes/vendor/wp-rest-functions.php:169 @@ -18337,7 +18162,7 @@ msgstr "" msgid "%s is not of type %s" msgstr "" -#: includes/vendor/wp-rest-functions.php:185 includes/wc-rest-functions.php:173 +#: includes/vendor/wp-rest-functions.php:185 includes/wc-rest-functions.php:175 msgid "The date you provided is invalid." msgstr "" @@ -18377,27 +18202,37 @@ msgstr "" msgid "%s must be between %d (inclusive) and %d (inclusive)" msgstr "" +#: includes/wc-account-functions.php:57 +msgctxt "edit-address-slug" +msgid "billing" +msgstr "" + +#: includes/wc-account-functions.php:58 +msgctxt "edit-address-slug" +msgid "shipping" +msgstr "" + #: includes/wc-account-functions.php:80 msgid "Dashboard" msgstr "" -#: includes/wc-account-functions.php:184 +#: includes/wc-account-functions.php:186 msgid "File" msgstr "" -#: includes/wc-account-functions.php:185 +#: includes/wc-account-functions.php:187 msgid "Remaining" msgstr "" -#: includes/wc-account-functions.php:186 includes/wc-account-functions.php:200 +#: includes/wc-account-functions.php:188 includes/wc-account-functions.php:202 msgid "Expires" msgstr "" -#: includes/wc-account-functions.php:213 includes/wc-account-functions.php:279 +#: includes/wc-account-functions.php:215 includes/wc-account-functions.php:281 msgid "Credit Card" msgstr "" -#: includes/wc-account-functions.php:253 +#: includes/wc-account-functions.php:255 msgid "Make Default" msgstr "" @@ -18413,6 +18248,11 @@ msgstr "" msgid "This product is protected and cannot be purchased." msgstr "" +#: includes/wc-cart-functions.php:103 +msgctxt "Item name in quotes" +msgid "“%s”" +msgstr "" + #: includes/wc-cart-functions.php:108 msgid "%s has been added to your cart." msgid_plural "%s have been added to your cart." @@ -18447,6 +18287,11 @@ msgstr "" msgid "Order – %s" msgstr "" +#: includes/wc-core-functions.php:84 includes/wc-order-functions.php:825 +msgctxt "Order date parsed by strftime" +msgid "%b %d, %Y @ %I:%M %p" +msgstr "" + #: includes/wc-core-functions.php:90 msgid "Invalid order status" msgstr "" @@ -19136,15 +18981,11 @@ msgid "Product % Discount" msgstr "" #: includes/wc-deprecated-functions.php:708 -msgid "" -"The shop_order_status taxonomy is no more in WooCommerce 2.2! You should " -"use the new WooCommerce post_status instead, read more..." +msgid "The shop_order_status taxonomy is no more in WooCommerce 2.2! You should use the new WooCommerce post_status instead, read more..." msgstr "" #: includes/wc-deprecated-functions.php:712 -msgid "" -"The \"publish\" order status is no more in WooCommerce 2.2! You should use " -"the new WooCommerce post_status instead, read more..." +msgid "The \"publish\" order status is no more in WooCommerce 2.2! You should use the new WooCommerce post_status instead, read more..." msgstr "" #: includes/wc-notice-functions.php:27 includes/wc-notice-functions.php:59 @@ -19174,19 +19015,20 @@ msgstr "" msgid "wc_get_product should not be called before the woocommerce_init action." msgstr "" +#: includes/wc-product-functions.php:246 +msgctxt "slug" +msgid "uncategorized" +msgstr "" + #: includes/wc-rest-functions.php:56 msgid "Invalid URL %s." msgstr "" -#: includes/wc-rest-functions.php:68 -msgid "Error getting remote image %s." -msgstr "" - -#: includes/wc-rest-functions.php:98 +#: includes/wc-rest-functions.php:100 msgid "Zero size file downloaded." msgstr "" -#: includes/wc-rest-functions.php:166 +#: includes/wc-rest-functions.php:168 msgid "%1$s is not of type %2$s" msgstr "" @@ -19249,9 +19091,12 @@ msgid "Reviews (%d)" msgstr "" #: includes/wc-template-functions.php:1252 -msgid "" -"Use $args argument as an array instead. Deprecated argument will be removed " -"in WC 2.2." +msgid "Use $args argument as an array instead. Deprecated argument will be removed in WC 2.2." +msgstr "" + +#: includes/wc-template-functions.php:1424 +msgctxt "breadcrumb" +msgid "Home" msgstr "" #: includes/wc-template-functions.php:1469 @@ -19301,9 +19146,7 @@ msgid "ERROR" msgstr "" #: includes/wc-user-functions.php:111 -msgid "" -"Couldn’t register you… please contact us if you continue to " -"have problems." +msgid "Couldn’t register you… please contact us if you continue to have problems." msgstr "" #: includes/wc-webhook-functions.php:23 @@ -19364,9 +19207,7 @@ msgid "Rated %s and above" msgstr "" #: includes/widgets/class-wc-widget-layered-nav.php:23 -msgid "" -"Shows a custom attribute in a widget which lets you narrow down the list of " -"products when viewing product categories." +msgid "Shows a custom attribute in a widget which lets you narrow down the list of products when viewing product categories." msgstr "" #: includes/widgets/class-wc-widget-layered-nav.php:25 @@ -19406,9 +19247,7 @@ msgid "Any %s" msgstr "" #: includes/widgets/class-wc-widget-price-filter.php:25 -msgid "" -"Shows a price filter slider in a widget which lets you narrow down the list " -"of shown products when viewing product categories." +msgid "Shows a price filter slider in a widget which lets you narrow down the list of shown products when viewing product categories." msgstr "" #: includes/widgets/class-wc-widget-price-filter.php:27 @@ -19487,8 +19326,9 @@ msgstr "" msgid "WooCommerce Product Tags" msgstr "" -#: includes/widgets/class-wc-widget-product-tag-cloud.php:86 #. translators: %s for product quantity, e.g. 1 product and 2 products + +#: includes/widgets/class-wc-widget-product-tag-cloud.php:86 msgid "%s product" msgid_plural "%s products" msgstr[0] "" @@ -19528,6 +19368,11 @@ msgstr "" msgid "Sales" msgstr "" +#: includes/widgets/class-wc-widget-products.php:64 +msgctxt "Sorting order" +msgid "Order" +msgstr "" + #: includes/widgets/class-wc-widget-products.php:66 msgid "ASC" msgstr "" @@ -19564,6 +19409,11 @@ msgstr "" msgid "Number of reviews to show" msgstr "" +#: includes/widgets/class-wc-widget-recent-reviews.php:86 +msgctxt "by comment author" +msgid "by %1$s" +msgstr "" + #: includes/widgets/class-wc-widget-recently-viewed.php:23 msgid "Display a list of recently viewed products." msgstr "" @@ -19609,9 +19459,7 @@ msgid "Deny" msgstr "" #: templates/auth/form-login.php:31 -msgid "" -"To connect to %1$s you need to be logged in. Log in to your store below, or " -"%2$scancel and return to %1$s%3$s" +msgid "To connect to %1$s you need to be logged in. Log in to your store below, or %2$scancel and return to %1$s%3$s" msgstr "" #: templates/auth/form-login.php:35 templates/myaccount/form-login.php:44 @@ -19640,9 +19488,7 @@ msgid "Shipping costs will be calculated once you have provided your address." msgstr "" #: templates/cart/cart-shipping.php:50 -msgid "" -"There are no shipping methods available. Please double check your address, " -"or contact us if you need any help." +msgid "There are no shipping methods available. Please double check your address, or contact us if you need any help." msgstr "" #: templates/cart/cart-totals.php:28 @@ -19702,9 +19548,7 @@ msgid "Update Totals" msgstr "" #: templates/checkout/cart-errors.php:27 -msgid "" -"There are some issues with the items in your cart (shown above). Please go " -"back to the cart page and resolve these issues before checking out." +msgid "There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out." msgstr "" #: templates/checkout/cart-errors.php:31 @@ -19720,9 +19564,7 @@ msgid "Create an account?" msgstr "" #: templates/checkout/form-billing.php:63 -msgid "" -"Create an account by entering the information below. If you are a returning " -"customer please login at the top of the page." +msgid "Create an account by entering the information below. If you are a returning customer please login at the top of the page." msgstr "" #: templates/checkout/form-checkout.php:29 @@ -19750,17 +19592,11 @@ msgid "Click here to login" msgstr "" #: templates/checkout/form-login.php:35 -msgid "" -"If you have shopped with us before, please enter your details in the boxes " -"below. If you are a new customer, please proceed to the Billing & " -"Shipping section." +msgid "If you have shopped with us before, please enter your details in the boxes below. If you are a new customer, please proceed to the Billing & Shipping section." msgstr "" #: templates/checkout/form-pay.php:79 -msgid "" -"Sorry, it seems that there are no available payment methods for your " -"location. Please contact us if you require assistance or wish to make " -"alternate arrangements." +msgid "Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements." msgstr "" #: templates/checkout/form-shipping.php:28 @@ -19768,10 +19604,7 @@ msgid "Ship to a different address?" msgstr "" #: templates/checkout/payment.php:35 -msgid "" -"Sorry, it seems that there are no available payment methods for your state. " -"Please contact us if you require assistance or wish to make alternate " -"arrangements." +msgid "Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements." msgstr "" #: templates/checkout/payment.php:35 @@ -19779,11 +19612,7 @@ msgid "Please fill in your details above to see available payment methods." msgstr "" #: templates/checkout/payment.php:42 -msgid "" -"Since your browser does not support JavaScript, or it is disabled, please " -"ensure you click the Update Totals button before placing your " -"order. You may be charged more than the amount stated above if you fail to " -"do so." +msgid "Since your browser does not support JavaScript, or it is disabled, please ensure you click the Update Totals button before placing your order. You may be charged more than the amount stated above if you fail to do so." msgstr "" #: templates/checkout/payment.php:43 @@ -19791,16 +19620,11 @@ msgid "Update totals" msgstr "" #: templates/checkout/terms.php:17 -msgid "" -"I’ve read and accept the terms & " -"conditions" +msgid "I’ve read and accept the terms & conditions" msgstr "" #: templates/checkout/thankyou.php:27 -msgid "" -"Unfortunately your order cannot be processed as the originating " -"bank/merchant has declined your transaction. Please attempt your purchase " -"again." +msgid "Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction. Please attempt your purchase again." msgstr "" #: templates/checkout/thankyou.php:38 templates/checkout/thankyou.php:69 @@ -19823,16 +19647,12 @@ msgstr "" #: templates/emails/customer-completed-order.php:28 #: templates/emails/plain/customer-completed-order.php:25 -msgid "" -"Hi there. Your recent order on %s has been completed. Your order details " -"are shown below for your reference:" +msgid "Hi there. Your recent order on %s has been completed. Your order details are shown below for your reference:" msgstr "" #: templates/emails/customer-invoice.php:29 #: templates/emails/plain/customer-invoice.php:26 -msgid "" -"An order has been created for you on %s. To pay for this order please use " -"the following link: %s" +msgid "An order has been created for you on %s. To pay for this order please use the following link: %s" msgstr "" #: templates/emails/customer-invoice.php:29 @@ -19850,9 +19670,7 @@ msgstr "" #: templates/emails/customer-new-account.php:35 #: templates/emails/plain/customer-new-account.php:30 -msgid "" -"You can access your account area to view your orders and change your " -"password here: %s." +msgid "You can access your account area to view your orders and change your password here: %s." msgstr "" #: templates/emails/customer-note.php:28 @@ -19867,16 +19685,12 @@ msgstr "" #: templates/emails/customer-on-hold-order.php:28 #: templates/emails/plain/customer-on-hold-order.php:25 -msgid "" -"Your order is on-hold until we confirm payment has been received. Your " -"order details are shown below for your reference:" +msgid "Your order is on-hold until we confirm payment has been received. Your order details are shown below for your reference:" msgstr "" #: templates/emails/customer-processing-order.php:28 #: templates/emails/plain/customer-processing-order.php:25 -msgid "" -"Your order has been received and is now being processed. Your order details " -"are shown below for your reference:" +msgid "Your order has been received and is now being processed. Your order details are shown below for your reference:" msgstr "" #: templates/emails/customer-refunded-order.php:30 @@ -19935,9 +19749,7 @@ msgid "Your password is %s." msgstr "" #: templates/emails/plain/customer-refunded-order.php:25 -msgid "" -"Hi there. Your order on %s has been refunded. Your order details are shown " -"below for your reference:" +msgid "Hi there. Your order on %s has been refunded. Your order details are shown below for your reference:" msgstr "" #: templates/emails/plain/email-order-details.php:25 @@ -19973,6 +19785,11 @@ msgstr "" msgid "Lost your password?" msgstr "" +#: templates/global/quantity-input.php:24 +msgctxt "Product quantity input tooltip" +msgid "Qty" +msgstr "" + #: templates/loop/no-products-found.php:24 msgid "No products were found matching your selection." msgstr "" @@ -19983,6 +19800,13 @@ msgid_plural "Showing all %d results" msgstr[0] "" msgstr[1] "" +#: templates/loop/result-count.php:41 +msgctxt "%1$d = first, %2$d = last, %3$d = total" +msgid "Showing the single result" +msgid_plural "Showing %1$d–%2$d of %3$d results" +msgstr[0] "" +msgstr[1] "" + #: templates/loop/sale-flash.php:28 templates/single-product/sale-flash.php:28 msgid "Sale!" msgstr "" @@ -19992,10 +19816,7 @@ msgid "Hello %s%s%s (not %2$s? %sSign out%s)" msgstr "" #: templates/myaccount/dashboard.php:34 -msgid "" -"From your account dashboard you can view your %1$srecent orders%2$s, manage " -"your %3$sshipping and billing addresses%2$s and %4$sedit your password and " -"account details%2$s." +msgid "From your account dashboard you can view your %1$srecent orders%2$s, manage your %3$sshipping and billing addresses%2$s and %4$sedit your password and account details%2$s." msgstr "" #: templates/myaccount/downloads.php:59 @@ -20011,10 +19832,7 @@ msgid "No downloads available yet." msgstr "" #: templates/myaccount/form-add-payment-method.php:59 -msgid "" -"Sorry, it seems that there are no payment methods which support adding a " -"new payment method. Please contact us if you require assistance or wish to " -"make alternate arrangements." +msgid "Sorry, it seems that there are no payment methods which support adding a new payment method. Please contact us if you require assistance or wish to make alternate arrangements." msgstr "" #: templates/myaccount/form-edit-account.php:45 @@ -20058,9 +19876,7 @@ msgid "Anti-spam" msgstr "" #: templates/myaccount/form-lost-password.php:27 -msgid "" -"Lost your password? Please enter your username or email address. You will " -"receive a link to create a new password via email." +msgid "Lost your password? Please enter your username or email address. You will receive a link to create a new password via email." msgstr "" #: templates/myaccount/form-lost-password.php:40 @@ -20084,10 +19900,7 @@ msgid "Password reset email has been sent." msgstr "" #: templates/myaccount/lost-password-confirmation.php:27 -msgid "" -"A password reset email has been sent to the email address on file for your " -"account, but may take several minutes to show up in your inbox. Please wait " -"at least 10 minutes before attempting another reset." +msgid "A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset." msgstr "" #: templates/myaccount/my-address.php:41 @@ -20151,10 +19964,7 @@ msgid "l jS \\o\\f F Y, h:ia" msgstr "" #: templates/order/form-tracking.php:29 -msgid "" -"To track your order please enter your Order ID in the box below and press " -"the \"Track\" button. This was given to you on your receipt and in the " -"confirmation email you should have received." +msgid "To track your order please enter your Order ID in the box below and press the \"Track\" button. This was given to you on your receipt and in the confirmation email you should have received." msgstr "" #: templates/order/form-tracking.php:31 @@ -20205,6 +20015,21 @@ msgstr "" msgid "Search for:" msgstr "" +#: templates/product-searchform.php:28 +msgctxt "placeholder" +msgid "Search Products…" +msgstr "" + +#: templates/product-searchform.php:28 +msgctxt "label" +msgid "Search for:" +msgstr "" + +#: templates/product-searchform.php:29 +msgctxt "submit button" +msgid "Search" +msgstr "" + #: templates/single-product/add-to-cart/variable.php:32 msgid "This product is currently out of stock and unavailable." msgstr "" @@ -20326,6 +20151,9 @@ msgstr "" #: templates/single-product-reviews.php:107 msgid "Only logged in customers who have purchased this product may leave a review." msgstr "" +#. Plugin Name of the plugin/theme +msgid "WooCommerce" +msgstr "" #. Plugin URI of the plugin/theme msgid "https://www.woothemes.com/woocommerce/" @@ -20342,584 +20170,3 @@ msgstr "" #. Author URI of the plugin/theme msgid "https://woothemes.com" msgstr "" - -#: i18n/locale-info.php:87 i18n/locale-info.php:97 i18n/locale-info.php:107 -msgctxt "Canadian Tax Rates" -msgid "PST" -msgstr "" - -#: i18n/locale-info.php:117 -msgctxt "Canadian Tax Rates" -msgid "QST" -msgstr "" - -#: i18n/locale-info.php:127 i18n/locale-info.php:134 i18n/locale-info.php:141 -#: i18n/locale-info.php:148 i18n/locale-info.php:155 -msgctxt "Canadian Tax Rates" -msgid "HST" -msgstr "" - -#: i18n/locale-info.php:162 i18n/locale-info.php:169 i18n/locale-info.php:176 -#: i18n/locale-info.php:183 i18n/locale-info.php:190 i18n/locale-info.php:197 -#: i18n/locale-info.php:204 i18n/locale-info.php:211 -msgctxt "Canadian Tax Rates" -msgid "GST" -msgstr "" - -#: i18n/states/US.php:23 -msgctxt "US state of Georgia" -msgid "Georgia" -msgstr "" - -#: includes/abstracts/abstract-wc-order.php:1172 -#: includes/abstracts/abstract-wc-order.php:1183 -#: includes/admin/class-wc-admin-post-types.php:745 -#: includes/admin/class-wc-admin-post-types.php:754 -msgctxt "full name" -msgid "%1$s %2$s" -msgstr "" - -#: includes/abstracts/abstract-wc-product.php:1032 -msgctxt "min_price" -msgid "From:" -msgstr "" - -#: includes/admin/class-wc-admin-api-keys-table-list.php:154 -#: includes/admin/settings/views/html-keys-edit.php:75 -msgctxt "date and time" -msgid "%1$s at %2$s" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:112 -#: includes/admin/class-wc-admin-setup-wizard.php:96 -#: includes/class-wc-frontend-scripts.php:332 -msgctxt "enhanced select" -msgid "One result is available, press enter to select it." -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:113 -#: includes/admin/class-wc-admin-setup-wizard.php:97 -#: includes/class-wc-frontend-scripts.php:333 -msgctxt "enhanced select" -msgid "%qty% results are available, use up and down arrow keys to navigate." -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:114 -#: includes/admin/class-wc-admin-setup-wizard.php:98 -#: includes/class-wc-frontend-scripts.php:334 -msgctxt "enhanced select" -msgid "No matches found" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:115 -#: includes/admin/class-wc-admin-setup-wizard.php:99 -#: includes/class-wc-frontend-scripts.php:335 -msgctxt "enhanced select" -msgid "Loading failed" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:116 -#: includes/admin/class-wc-admin-setup-wizard.php:100 -#: includes/class-wc-frontend-scripts.php:336 -msgctxt "enhanced select" -msgid "Please enter 1 or more characters" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:117 -#: includes/admin/class-wc-admin-setup-wizard.php:101 -#: includes/class-wc-frontend-scripts.php:337 -msgctxt "enhanced select" -msgid "Please enter %qty% or more characters" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:118 -#: includes/admin/class-wc-admin-setup-wizard.php:102 -#: includes/class-wc-frontend-scripts.php:338 -msgctxt "enhanced select" -msgid "Please delete 1 character" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:119 -#: includes/admin/class-wc-admin-setup-wizard.php:103 -#: includes/class-wc-frontend-scripts.php:339 -msgctxt "enhanced select" -msgid "Please delete %qty% characters" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:120 -#: includes/admin/class-wc-admin-setup-wizard.php:104 -#: includes/class-wc-frontend-scripts.php:340 -msgctxt "enhanced select" -msgid "You can only select 1 item" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:121 -#: includes/admin/class-wc-admin-setup-wizard.php:105 -#: includes/class-wc-frontend-scripts.php:341 -msgctxt "enhanced select" -msgid "You can only select %qty% items" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:122 -#: includes/admin/class-wc-admin-setup-wizard.php:106 -#: includes/class-wc-frontend-scripts.php:342 -msgctxt "enhanced select" -msgid "Loading more results…" -msgstr "" - -#: includes/admin/class-wc-admin-assets.php:123 -#: includes/admin/class-wc-admin-setup-wizard.php:107 -#: includes/class-wc-frontend-scripts.php:343 -msgctxt "enhanced select" -msgid "Searching…" -msgstr "" - -#: includes/admin/class-wc-admin-menus.php:142 -#: includes/class-wc-post-types.php:312 -msgctxt "Admin menu name" -msgid "Orders" -msgstr "" - -#: includes/class-wc-post-types.php:67 -msgctxt "Admin menu name" -msgid "Categories" -msgstr "" - -#: includes/class-wc-post-types.php:103 -msgctxt "Admin menu name" -msgid "Tags" -msgstr "" - -#: includes/class-wc-post-types.php:140 -msgctxt "Admin menu name" -msgid "Shipping Classes" -msgstr "" - -#: includes/class-wc-post-types.php:243 -msgctxt "Admin menu name" -msgid "Products" -msgstr "" - -#: includes/class-wc-post-types.php:362 -msgctxt "Admin menu name" -msgid "Coupons" -msgstr "" - -#: includes/class-wc-post-types.php:403 -msgctxt "Admin menu name" -msgid "Webhooks" -msgstr "" - -#: includes/admin/class-wc-admin-permalink-settings.php:68 -#: includes/class-wc-post-types.php:87 includes/wc-update-functions.php:51 -msgctxt "slug" -msgid "product-category" -msgstr "" - -#: includes/admin/class-wc-admin-permalink-settings.php:78 -#: includes/class-wc-post-types.php:125 includes/wc-update-functions.php:52 -msgctxt "slug" -msgid "product-tag" -msgstr "" - -#: includes/admin/class-wc-admin-permalink-settings.php:194 -#: includes/class-wc-post-types.php:235 includes/wc-core-functions.php:790 -#: includes/wc-core-functions.php:825 includes/wc-update-functions.php:60 -msgctxt "slug" -msgid "product" -msgstr "" - -#: includes/wc-product-functions.php:246 -msgctxt "slug" -msgid "uncategorized" -msgstr "" - -#: includes/admin/class-wc-admin-permalink-settings.php:103 -#: includes/admin/class-wc-admin-permalink-settings.php:204 -msgctxt "default-slug" -msgid "shop" -msgstr "" - -#: includes/admin/class-wc-admin-permalink-settings.php:104 -msgctxt "default-slug" -msgid "product" -msgstr "" - -#: includes/admin/class-wc-admin-post-types.php:535 -msgctxt "Count / Limit" -msgid "%1$s / %2$s" -msgstr "" - -#: includes/admin/class-wc-admin-post-types.php:762 -msgctxt "Order number by X" -msgid "%s by %s" -msgstr "" - -#: includes/admin/class-wc-admin-setup-wizard.php:232 -#: includes/class-wc-install.php:295 -msgctxt "Page title" -msgid "Shop" -msgstr "" - -#: includes/admin/class-wc-admin-setup-wizard.php:236 -#: includes/class-wc-install.php:300 -msgctxt "Page title" -msgid "Cart" -msgstr "" - -#: includes/admin/class-wc-admin-setup-wizard.php:240 -#: includes/class-wc-install.php:305 -msgctxt "Page title" -msgid "Checkout" -msgstr "" - -#: includes/admin/class-wc-admin-setup-wizard.php:246 -#: includes/class-wc-install.php:310 -msgctxt "Page title" -msgid "My Account" -msgstr "" - -#: includes/admin/class-wc-admin-setup-wizard.php:602 -#: includes/gateways/cheque/class-wc-gateway-cheque.php:27 -#: includes/gateways/cheque/class-wc-gateway-cheque.php:63 -msgctxt "Check payment method" -msgid "Check Payments" -msgstr "" - -#: includes/gateways/cheque/class-wc-gateway-cheque.php:116 -msgctxt "Check payment method" -msgid "Awaiting check payment" -msgstr "" - -#: includes/admin/class-wc-admin-webhooks-table-list.php:212 -msgctxt "posts" -msgid "All (%s)" -msgid_plural "All (%s)" -msgstr[0] "" -msgstr[1] "" - -#: includes/admin/class-wc-admin-webhooks.php:49 -#: includes/admin/class-wc-admin-webhooks.php:198 -#: includes/admin/settings/views/html-webhooks-edit.php:16 -#: includes/api/class-wc-rest-webhooks-controller.php:347 -#: includes/api/legacy/v2/class-wc-api-webhooks.php:197 -#: includes/api/legacy/v3/class-wc-api-webhooks.php:197 -msgctxt "Webhook created on date parsed by strftime" -msgid "%b %d, %Y @ %I:%M %p" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:76 -msgctxt "placeholder" -msgid "YYYY-MM-DD" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:184 -#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:196 -msgctxt "placeholder" -msgid "Unlimited usage" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:190 -msgctxt "placeholder" -msgid "Apply to all qualifying items in cart" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:137 -msgctxt "placeholder" -msgid "Buy product" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:155 -#: includes/admin/meta-boxes/views/html-variation-admin.php:104 -msgctxt "placeholder" -msgid "From…" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:156 -#: includes/admin/meta-boxes/views/html-variation-admin.php:108 -msgctxt "placeholder" -msgid "To…" -msgstr "" - -#: includes/class-wc-checkout.php:108 -msgctxt "placeholder" -msgid "Username" -msgstr "" - -#: includes/class-wc-checkout.php:117 -msgctxt "placeholder" -msgid "Password" -msgstr "" - -#: includes/class-wc-checkout.php:126 -msgctxt "placeholder" -msgid "Notes about your order, e.g. special notes for delivery." -msgstr "" - -#: includes/class-wc-countries.php:572 -msgctxt "placeholder" -msgid "Street address" -msgstr "" - -#: includes/class-wc-countries.php:578 -msgctxt "placeholder" -msgid "Apartment, suite, unit etc. (optional)" -msgstr "" - -#: templates/product-searchform.php:28 -msgctxt "placeholder" -msgid "Search Products…" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:169 -msgctxt "Order #123 details" -msgid "%s #%s details" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:184 -msgctxt "on date at time" -msgid "on %s @ %s" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:242 -#: includes/admin/views/html-bulk-edit-product.php:78 -#: includes/admin/views/html-quick-edit-product.php:57 -#: includes/shipping/flat-rate/includes/settings-flat-rate.php:27 -#: includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php:54 -#: includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:83 -msgctxt "Tax status" -msgid "None" -msgstr "" - -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:718 -#: includes/admin/meta-boxes/class-wc-meta-box-product-data.php:752 -msgctxt "number of pages" -msgid "of" -msgstr "" - -#: includes/admin/meta-boxes/views/html-order-items.php:289 -msgctxt "Refund $amount" -msgid "Refund %s via %s" -msgstr "" - -#: includes/admin/meta-boxes/views/html-order-items.php:290 -msgctxt "Refund $amount manually" -msgid "Refund %s manually" -msgstr "" - -#: includes/admin/meta-boxes/views/html-order-refund.php:19 -msgctxt "Ex: Refund - $date >by< $username" -msgid "by" -msgstr "" - -#: includes/admin/reports/class-wc-report-customer-list.php:136 -#: templates/myaccount/my-orders.php:55 templates/myaccount/orders.php:51 -msgctxt "hash before order number" -msgid "#" -msgstr "" - -#: includes/admin/reports/class-wc-report-sales-by-date.php:412 -msgctxt "%s = amount of the refunds, %d = number of refunded orders." -msgid "%s refunded %d order" -msgid_plural "%s refunded %d orders" -msgstr[0] "" -msgstr[1] "" - -#: includes/admin/settings/class-wc-settings-checkout.php:28 -msgctxt "Settings tab label" -msgid "Checkout" -msgstr "" - -#: includes/admin/settings/class-wc-settings-checkout.php:95 -msgctxt "Settings group label" -msgid "Checkout Process" -msgstr "" - -#: includes/admin/settings/views/html-admin-page-shipping-zone-methods.php:66 -msgctxt "Shipping Method Settings" -msgid "%s Settings" -msgstr "" - -#: includes/admin/settings/views/html-settings-tax.php:98 -msgctxt "%s will be a number eventually, but must be a string for now." -msgid "%s items" -msgstr "" - -#: includes/admin/settings/views/html-settings-tax.php:112 -msgctxt "Pagination, like `1 of 3`" -msgid "%1$s of %2$s" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:447 -msgctxt "Version info" -msgid "%s is available" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:459 -msgctxt "by author" -msgid "by %s" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:529 -msgctxt "Page setting" -msgid "Shop Base" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:534 -msgctxt "Page setting" -msgid "Cart" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:539 -msgctxt "Page setting" -msgid "Checkout" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:544 -msgctxt "Page setting" -msgid "My Account" -msgstr "" - -#: includes/admin/views/html-admin-page-status-report.php:558 -msgctxt "WC Pages links in the System Status" -msgid "Edit %s page" -msgstr "" - -#: includes/class-wc-checkout.php:451 -msgctxt "Shipping FIELDNAME" -msgid "Shipping %s" -msgstr "" - -#: includes/class-wc-checkout.php:454 -msgctxt "Billing FIELDNAME" -msgid "Billing %s" -msgstr "" - -#: includes/class-wc-checkout.php:460 -msgctxt "FIELDNAME is a required field." -msgid "%s is a required field." -msgstr "" - -#: includes/class-wc-install.php:294 -msgctxt "Page slug" -msgid "shop" -msgstr "" - -#: includes/class-wc-install.php:299 -msgctxt "Page slug" -msgid "cart" -msgstr "" - -#: includes/class-wc-install.php:304 -msgctxt "Page slug" -msgid "checkout" -msgstr "" - -#: includes/class-wc-install.php:309 -msgctxt "Page slug" -msgid "my-account" -msgstr "" - -#: includes/class-wc-post-types.php:300 -msgctxt "shop_order post type singular name" -msgid "Order" -msgstr "" - -#: includes/class-wc-post-types.php:442 includes/wc-order-functions.php:192 -msgctxt "Order status" -msgid "Pending Payment" -msgstr "" - -#: includes/class-wc-post-types.php:450 includes/wc-order-functions.php:193 -msgctxt "Order status" -msgid "Processing" -msgstr "" - -#: includes/class-wc-post-types.php:458 includes/wc-order-functions.php:194 -msgctxt "Order status" -msgid "On Hold" -msgstr "" - -#: includes/class-wc-post-types.php:466 includes/wc-order-functions.php:195 -msgctxt "Order status" -msgid "Completed" -msgstr "" - -#: includes/class-wc-post-types.php:474 includes/wc-order-functions.php:196 -msgctxt "Order status" -msgid "Cancelled" -msgstr "" - -#: includes/class-wc-post-types.php:482 includes/wc-order-functions.php:197 -msgctxt "Order status" -msgid "Refunded" -msgstr "" - -#: includes/class-wc-post-types.php:490 includes/wc-order-functions.php:198 -msgctxt "Order status" -msgid "Failed" -msgstr "" - -#: includes/class-wc-product-grouped.php:155 -#: includes/class-wc-product-variable.php:353 -#: includes/class-wc-product-variable.php:359 -msgctxt "Price range: from-to" -msgid "%1$s–%2$s" -msgstr "" - -#: includes/wc-account-functions.php:57 -msgctxt "edit-address-slug" -msgid "billing" -msgstr "" - -#: includes/wc-account-functions.php:58 -msgctxt "edit-address-slug" -msgid "shipping" -msgstr "" - -#: includes/wc-cart-functions.php:103 -msgctxt "Item name in quotes" -msgid "“%s”" -msgstr "" - -#: includes/wc-core-functions.php:84 includes/wc-order-functions.php:825 -msgctxt "Order date parsed by strftime" -msgid "%b %d, %Y @ %I:%M %p" -msgstr "" - -#: includes/wc-template-functions.php:1424 -msgctxt "breadcrumb" -msgid "Home" -msgstr "" - -#: includes/widgets/class-wc-widget-products.php:64 -msgctxt "Sorting order" -msgid "Order" -msgstr "" - -#: includes/widgets/class-wc-widget-recent-reviews.php:86 -msgctxt "by comment author" -msgid "by %1$s" -msgstr "" - -#: templates/global/quantity-input.php:24 -msgctxt "Product quantity input tooltip" -msgid "Qty" -msgstr "" - -#: templates/loop/result-count.php:41 -msgctxt "%1$d = first, %2$d = last, %3$d = total" -msgid "Showing the single result" -msgid_plural "Showing %1$d–%2$d of %3$d results" -msgstr[0] "" -msgstr[1] "" - -#: templates/product-searchform.php:28 -msgctxt "label" -msgid "Search for:" -msgstr "" - -#: templates/product-searchform.php:29 -msgctxt "submit button" -msgid "Search" -msgstr "" \ No newline at end of file diff --git a/includes/gateways/class-wc-payment-gateway-cc.php b/includes/gateways/class-wc-payment-gateway-cc.php index 60ffe2640c7..8a01e23b73a 100644 --- a/includes/gateways/class-wc-payment-gateway-cc.php +++ b/includes/gateways/class-wc-payment-gateway-cc.php @@ -18,7 +18,7 @@ class WC_Payment_Gateway_CC extends WC_Payment_Gateway { * @since 2.6.0 */ public function payment_fields() { - if ( $this->supports( 'tokenization' ) && is_checkout() && is_user_logged_in() ) { + if ( $this->supports( 'tokenization' ) && is_checkout() ) { $this->tokenization_script(); $this->saved_payment_methods(); $this->form(); diff --git a/includes/gateways/class-wc-payment-gateway-echeck.php b/includes/gateways/class-wc-payment-gateway-echeck.php index 99771dc5bd9..3b345ac8f47 100644 --- a/includes/gateways/class-wc-payment-gateway-echeck.php +++ b/includes/gateways/class-wc-payment-gateway-echeck.php @@ -18,7 +18,7 @@ class WC_Payment_Gateway_eCheck extends WC_Payment_Gateway { * @since 2.6.0 */ public function payment_fields() { - if ( $this->supports( 'tokenization' ) && is_checkout() && is_user_logged_in() ) { + if ( $this->supports( 'tokenization' ) && is_checkout() ) { $this->tokenization_script(); $this->saved_payment_methods(); $this->form(); diff --git a/includes/gateways/simplify-commerce/assets/js/simplify-commerce.min.js b/includes/gateways/simplify-commerce/assets/js/simplify-commerce.min.js index 2cb20ab21ec..823ea5391b6 100644 --- a/includes/gateways/simplify-commerce/assets/js/simplify-commerce.min.js +++ b/includes/gateways/simplify-commerce/assets/js/simplify-commerce.min.js @@ -1 +1 @@ -!function(a){function b(){var b=a("form.checkout, form#order_review, form#add_payment_method");if((a("#payment_method_simplify_commerce").is(":checked")&&"new"===a('input[name="wc-simplify_commerce-payment-token"]:checked').val()||"1"===a("#woocommerce_add_payment_method").val())&&0===a("input.simplify-token").length){b.block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var d=a("#simplify_commerce-card-number").val(),e=a("#simplify_commerce-card-cvc").val(),f=a.payment.cardExpiryVal(a("#simplify_commerce-card-expiry").val()),g=b.find("#billing_address_1").val()||"",h=b.find("#billing_address_2").val()||"",i=b.find("#billing_country").val()||"",j=b.find("#billing_state").val()||"",k=b.find("#billing_city").val()||"",l=b.find("#billing_postcode").val()||"";return l=l.replace(/-/g,""),d=d.replace(/\s/g,""),SimplifyCommerce.generateToken({key:Simplify_commerce_params.key,card:{number:d,cvc:e,expMonth:f.month,expYear:f.year-2e3,addressLine1:g,addressLine2:h,addressCountry:i,addressState:j,addressZip:l,addressCity:k}},c),!1}return!0}function c(b){var c=a("form.checkout, form#order_review, form#add_payment_method"),d=a("#wc-simplify_commerce-cc-form");if(b.error){if(a(".woocommerce-error, .simplify-token",d).remove(),c.unblock(),"validation"===b.error.code){for(var e=b.error.fieldErrors,f=e.length,g="",h=0;f>h;h++)g+="
  • "+Simplify_commerce_params[e[h].field]+" "+Simplify_commerce_params.is_invalid+" - "+e[h].message+".
  • ";d.prepend('
      '+g+"
    ")}}else d.append(''),c.submit()}a(function(){a(document.body).on("checkout_error",function(){a(".simplify-token").remove()}),a("form.checkout").on("checkout_place_order_simplify_commerce",function(){return b()}),a("form#order_review").on("submit",function(){return b()}),a("form#add_payment_method").on("submit",function(){return b()}),a("form.checkout, form#order_review, form#add_payment_method").on("change","#wc-simplify_commerce-cc-form input",function(){a(".simplify-token").remove()})})}(jQuery); \ No newline at end of file +!function(a){function b(){var b=a("form.checkout, form#order_review, form#add_payment_method");if((a("#payment_method_simplify_commerce").is(":checked")&&"new"===a('input[name="wc-simplify_commerce-payment-token"]:checked').val()||"1"===a("#woocommerce_add_payment_method").val())&&0===a("input.simplify-token").length){b.block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var d=a("#simplify_commerce-card-number").val(),e=a("#simplify_commerce-card-cvc").val(),f=a.payment.cardExpiryVal(a("#simplify_commerce-card-expiry").val()),g=b.find("#billing_address_1").val()||"",h=b.find("#billing_address_2").val()||"",i=b.find("#billing_country").val()||"",j=b.find("#billing_state").val()||"",k=b.find("#billing_city").val()||"",l=b.find("#billing_postcode").val()||"";return l=l.replace(/-/g,""),d=d.replace(/\s/g,""),SimplifyCommerce.generateToken({key:Simplify_commerce_params.key,card:{number:d,cvc:e,expMonth:f.month,expYear:f.year-2e3,addressLine1:g,addressLine2:h,addressCountry:i,addressState:j,addressZip:l,addressCity:k}},c),!1}return!0}function c(b){var c=a("form.checkout, form#order_review, form#add_payment_method"),d=a("#wc-simplify_commerce-cc-form");if(b.error){if(a(".woocommerce-error, .simplify-token",d).remove(),c.unblock(),"validation"===b.error.code){for(var e=b.error.fieldErrors,f=e.length,g="",h=0;h"+Simplify_commerce_params[e[h].field]+" "+Simplify_commerce_params.is_invalid+" - "+e[h].message+".";d.prepend('
      '+g+"
    ")}}else d.append(''),c.submit()}a(function(){a(document.body).on("checkout_error",function(){a(".simplify-token").remove()}),a("form.checkout").on("checkout_place_order_simplify_commerce",function(){return b()}),a("form#order_review").on("submit",function(){return b()}),a("form#add_payment_method").on("submit",function(){return b()}),a("form.checkout, form#order_review, form#add_payment_method").on("change","#wc-simplify_commerce-cc-form input",function(){a(".simplify-token").remove()})})}(jQuery); \ No newline at end of file