PageSourceSearch

https://www.voipfone.co.uk/js/shopping-cart-common.js?v=2.3.5

js voipfone.co.uk collected 2026-10-02 06:25:15 UTC 3,477 bytes, 5 lines download raw bytes

1var ShoppingCartItemView=AddToCartSelectorView.extend({events:{'click .delete':'onDeleteBtnClicked'},bindings:_.extend({},AddToCartSelectorView.prototype.cartBindings,{':el':{attributes:[{observe:'id',name:'data-sku'}]},'.name':'description','.oneoff':{observe:['exVatPrice','monthlyExVatPrice','quantity','number'],onGet:function(val){return this.getPriceLabel(this.getOneOffPrice(val));},updateMethod:'html'},'.monthly':{observe:['exVatPrice','monthlyExVatPrice','quantity','contractLength'],onGet:function(val){return this.getPriceLabel(this.getMonthlyPrice(val));},updateMethod:'html'},'.sum':{observe:['exVatPrice','monthlyExVatPrice','quantity','number'],onGet:function(val){return this.getPriceLabel(this.getOneOffPrice(val)+
2this.getExVatPrice(val));},updateMethod:'html'},'.actions':{observe:'isFee',update:function($el,val){$el.css('visibility',val?'hidden':'visible');},updateModel:false},'.actions select':{attributes:[{observe:'totalStock',name:'disabled',onGet:function(val){return val<=1;}}]}}),initialize:function(){AddToCartSelectorView.prototype.initialize.apply(this,arguments);this.listenTo(this.model,'remove',this.onItemRemoved);},hasOneOffPriceOnly:function(){var isFee=this.model.get('isFee')&&this.model.get('exVatPrice')>0,isBroadband=this.model.get('number')&&this.model.get('sku').indexOf(BB_PREFIX)==0;return this.model.get('hasDelivery')||isFee||isBroadband;},getOneOffPrice:function(val){var EX_VAT_PRICE=0,QUANTITY=2,NUMBER=3,price=this.hasOneOffPriceOnly()?val[EX_VAT_PRICE]:0;if(price==0&&val[NUMBER]){var model=this.model.collection.findWhere({number:val[NUMBER],isFee:true});price=_.isUndefined(model)?0:model.get('exVatPrice');}
3return price*val[QUANTITY];},getExVatPrice:function(val){var EX_VAT_PRICE=0,QUANTITY=2,price=this.hasOneOffPriceOnly()?0:val[EX_VAT_PRICE];return price*val[QUANTITY];},getMonthlyPrice:function(val){var MONTHLY_EX_VAT_PRICE=1,QUANTITY=2,CONTRACT_LENGTH=3;if(val[MONTHLY_EX_VAT_PRICE]>0&&val[CONTRACT_LENGTH]<=1){return val[MONTHLY_EX_VAT_PRICE]*val[QUANTITY];}
4return this.getExVatPrice(val);},getPriceLabel:function(val){var prefix='-',symbol='&pound;',price=val.toFixed(2);return price<0?prefix+symbol+price.substr(1):symbol+price;},onItemRemoved:function(){this.$('.actions > *').prop('disabled',true);this.listenToOnce(app.cart,'sync',function(){this.remove();});},onDeleteBtnClicked:function(e){e.preventDefault();this.model.destroy();app.cart.validate();}}),ShoppingCartCollectionView=GenericCollectionView.extend({itemView:ShoppingCartItemView,cartBindings:{'.nodata':{observe:['totalItems','totalFees'],visible:function(val){var totalItems=val[0],totalFees=val[1];return totalItems==0&&totalFees==0;}},'.cart':{observe:['totalItems','totalFees'],visible:function(val){var totalItems=val[0],totalFees=val[1];return totalItems>0||totalFees>0;}},'.sub':{observe:'totalPriceExVat',onGet:function(val){return'&pound;'+val.toFixed(2);},updateMethod:'html'},'.vat':{observe:['totalPriceExVat','totalPriceIncVat'],onGet:function(val){var totalPriceExVat=val[0],totalPriceIncVat=val[1];return'&pound;'+(totalPriceIncVat-
5totalPriceExVat).toFixed(2);},updateMethod:'html'},'.total':{observe:'totalPriceIncVat',onGet:function(val){return'&pound;'+val.toFixed(2);},updateMethod:'html'}},onRendered:function(){this.stickit(this.collection.metadata,this.cartBindings);this.$('.loader').hide();},shouldRenderItem:function(item){return item.get('quantity')>0&&!(item.get('isFee')&&item.get('number')&&item.hasVat());}});

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.