PageSourceSearch

https://www.ormsprintroom.co.za/wp-content/plugins/easy-woocommerc…/js/wccs-product-pricing.min.js?ver=6.4.0

js ormsprintroom.co.za collected 2026-09-26 07:40:29 UTC 7,986 bytes, 1 lines download raw bytes

1!function(n){"use strict";function i(){this.init=this.init.bind(this),this.onFoundVariation=this.onFoundVariation.bind(this),this.onHideVariation=this.onHideVariation.bind(this),this.listeners=this.listeners.bind(this),this.delayLivePricing=this.delayLivePricing.bind(this),this.livePricing=this.livePricing.bind(this),this.countDownTimer=this.countDownTimer.bind(this),this.stopCountdownTimer=this.stopCountdownTimer.bind(this),this.init()}i.prototype.init=function(){n(".variations_form").length&&(this.$bulkTables=n(".wccs-bulk-pricing-table-container"),this.$bulkTitles=n(".wccs-bulk-pricing-table-title"),this.$parentTable=this.$bulkTables.not("[data-variation]"),this.$parentTableTitle=this.$bulkTitles.not("[data-variation]"),this.$messages=n(".wccs-purchase-message, .wccs-shortcode-purchase-message"),this.$parentMessage=this.$messages.not("[data-variation]"),this.$variationForm=n(".variations_form").first(),n(document.body).on("found_variation.wccs_product_pricing",this.$variationForm,this.onFoundVariation),n(document.body).on("hide_variation.wccs_product_pricing",this.$variationForm,this.onHideVariation)),this.$cartForm=n(".product form.cart"),this.$livePriceContainer=n(".product .wccs-live-price-container"),this.$countdownTimer=n(".product .wccs-countdown-timer-container"),this.$variationForm||this.delayLivePricing(500),this.listeners()},i.prototype.listeners=function(){var i=this;this.$cartForm.on("change keyup","input, .qty",function(){"variation_id"!==n(this).attr("name")&&i.delayLivePricing(500)}),wccs_product_pricing_params.set_min_quantity&&1==wccs_product_pricing_params.set_min_quantity&&this.$cartForm.on("change","input.qty",function(){var i=n(this).attr("min");null!=i&&""!==i&&!1!==i&&parseFloat(n(this).val())<parseFloat(i)&&n(this).val(i);i=n(this).attr("max");null!=i&&""!==i&&!1!==i&&parseFloat(n(this).val())>parseFloat(i)&&n(this).val(i)}),this.$cartForm.on("woocommerce-product-addons-update.wccs_product_pricing",function(){i.delayLivePricing(500)})},i.prototype.onFoundVariation=function(i,t){this.$bulkTables.length&&(this.$bulkTables.hide(),this.$bulkTitles.hide(),this.$bulkTables.filter('[data-variation="'+t.variation_id+'"]').length?(this.$bulkTables.filter('[data-variation="'+t.variation_id+'"]').show(),this.$bulkTitles.filter('[data-variation="'+t.variation_id+'"]').show()):this.$parentTable.length&&(this.$parentTable.show(),this.$parentTableTitle.show())),this.$messages.length&&(this.$messages.hide(),this.$messages.filter('[data-variation="'+t.variation_id+'"]').length?this.$messages.filter('[data-variation="'+t.variation_id+'"]').show():this.$parentMessage.length&&this.$parentMessage.show()),this.delayLivePricing(500)},i.prototype.onHideVariation=function(i){this.$bulkTables.length&&(this.$bulkTables.hide(),this.$bulkTitles.hide(),this.$parentTable.length&&(this.$parentTable.show(),this.$parentTableTitle.show())),this.$messages.length&&(this.$messages.hide(),this.$parentMessage.length&&this.$parentMessage.show())},i.prototype.delayLivePricing=function(i){if(!i)return this.livePricing();this.delayedLivePricing&&clearTimeout(this.delayedLivePricing),this.delayedLivePricing=setTimeout(this.livePricing,i)},i.prototype.livePricing=function(){var i,c,t,s;(wccs_product_pricing_params.display_live_price&&1==wccs_product_pricing_params.display_live_price||wccs_product_pricing_params.display_live_total_price&&1==wccs_product_pricing_params.display_live_total_price||wccs_product_pricing_params.display_countdown_timer&&0!=wccs_product_pricing_params.display_countdown_timer)&&this.$cartForm.length&&(this.$livePriceContainer.length||this.$countdownTimer.length)&&(this.livePriceRunning?this.delayLivePricing(500):(t="",wccs_product_pricing_params.display_live_price&&1==wccs_product_pricing_params.display_live_price&&(n(".wccs-live-price",this.$livePriceContainer).length||(t+='<div class="wccs-live-price-section wccs-live-price-price-section">',t+=wccs_product_pricing_params.live_pricing_label?"<span>"+wccs_product_pricing_params.live_pricing_label+":</span> ":"",t+='<span class="wccs-live-price price"></span>',t+="</div>")),wccs_product_pricing_params.display_live_total_price&&1==wccs_product_pricing_params.display_live_total_price&&(n(".wccs-live-total-price",this.$livePriceContainer).length||(t+='<div class="wccs-live-price-section wccs-live-price-total-price-section">',t+=wccs_product_pricing_params.live_pricing_total_label?"<span>"+wccs_product_pricing_params.live_pricing_total_label+":</span> ":"",t+='<span class="wccs-live-total-price price"></span>',t+="</div>")),t.length&&this.$livePriceContainer.html(t),n(".wccs-live-price, .wccs-live-total-price",this.$livePriceContainer).html(""),i=0,c=setInterval(function(){0==i++%5?n(".wccs-live-price, .wccs-live-total-price",this.$livePriceContainer).html("."):n(".wccs-live-price, .wccs-live-total-price",this.$livePriceContainer).append(".")},250),this.livePriceRunning=!0,t=this.$cartForm.serialize(),s=this,/add-to-cart=/gi.test(t)||(t+="&add-to-cart="+wccs_product_pricing_params.product_id),n.ajax({url:wccs_product_pricing_params.ajaxurl,type:"POST",dataType:"json",data:{action:"wccs_live_price",nonce:wccs_product_pricing_params.nonce,data:t}}).done(function(i){if(clearInterval(c),i&&1==i.success&&i.data){if(wccs_product_pricing_params.display_live_price&&1==wccs_product_pricing_params.display_live_price)if(!1!==i.data.price){var t="";if(i.data.prices_quantities){var e,a=0;for(e in i.data.prices_quantities)t+='<div class="wccs-live-price-qty"><span class="wccs-live-price-qty-price">'+e+'</span> <span class="wccs-live-price-qty-quantity"> &times; '+i.data.prices_quantities[e]+"</span></div>",++a;1==a&&e?t=e:(t=t.length?'<div class="wccs-live-price-qty-container">'+t+"</div>":"").length&&i.data.prices_quantities_sum&&(t+='<div class="wccs-live-price-qty-total"><span>'+i.data.prices_quantities_sum+"</span></div>")}n(".wccs-live-price",s.$livePriceContainer).html(t.length?t:i.data.price)}else null!==i.data.main_price&&"always"===wccs_product_pricing_params.live_price_display_type&&n(".wccs-live-price",s.$livePriceContainer).html(i.data.main_price);wccs_product_pricing_params.display_live_total_price&&1==wccs_product_pricing_params.display_live_total_price&&(!1!==i.data.price?n(".wccs-live-total-price",s.$livePriceContainer).html(i.data.total_price):null!=i.data.main_total_price&&"always"===wccs_product_pricing_params.live_price_display_type&&n(".wccs-live-total-price",s.$livePriceContainer).html(i.data.main_total_price)),wccs_product_pricing_params.display_countdown_timer&&0!=wccs_product_pricing_params.display_countdown_timer&&(i.data.remaining_time?s.countDownTimer(i.data.remaining_time):s.stopCountdownTimer()),!1!==i.data.price||null!=i.data.main_price&&"always"===wccs_product_pricing_params.live_price_display_type?s.$livePriceContainer.slideDown():s.$livePriceContainer.slideUp().html("")}else s.stopCountdownTimer(),s.$livePriceContainer.slideUp().html("")}).fail(function(){s.stopCountdownTimer(),s.$livePriceContainer.slideUp().html("")}
1).always(function(){s.livePriceRunning=!1,clearInterval(c)})))},i.prototype.countDownTimer=function(i){this.flipDown?(!1===this.flipDown.remainingTime||i<this.flipDown.remainingTime)&&this.flipDown.updateTime({type:"remainingTime",value:i-1}):(this.$countdownTimer.slideDown(),this.flipDown=new FlipDown({type:"remainingTime",value:i-1},"wccs-countdown-timer-content",{headingPosition:"bottom",daysLabel:wccs_product_pricing_params.countdown_timer_days,hoursLabel:wccs_product_pricing_params.countdown_timer_hours,minutesLabel:wccs_product_pricing_params.countdown_timer_minutes,secondsLabel:wccs_product_pricing_params.countdown_timer_seconds}).start())},i.prototype.stopCountdownTimer=function(){this.flipDown&&(this.flipDown.stop(),this.flipDown=!1,this.$countdownTimer.slideUp().html(""))};var t,e={getInstance:function(){return t=t||new i}};n.fn.wccs_get_product_pricing=function(){return e.getInstance()},n(function(){n().wccs_get_product_pricing()})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.