PageSourceSearch

https://www.bbr.com/_nuxt/17a5e59.modern.js

js bbr.com collected 2026-09-24 18:15:20 UTC 10,001 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[262],{1e3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var _=n(133),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long",n=new Date(e.replace(" ","T").split("+")[0]),r=Object(_.c)(n),o=Object(_.d)(n,t),d=n.getFullYear(),l=n.getHours(),c=n.getMinutes().toString().padStart(2,"0"),m=l>=12?"pm":"am";return{date:"".concat(r," ").concat(o," ").concat(d),time:"".concat(l,":").concat(c).concat(m)}}},1249:function(e,t,n){e.exports={}},1566:function(e,t,n){"use strict";n(1249)},1946:function(e,t,n){"use strict";n.r(t);var _,r,o,d=n(236),l=n(118),c=n(613),m=n(0),v=n(656),y=n(1463),f=n(10),C=n(1e3),S=n(25);!function(e){e.Received="Received",e.Transferred="Transferred",e.Issued="Issued"}(_||(_={})),function(e){e.Invoice="Invoice",e.PaymentCard="Payment - Credit Debit Card",e.PaymentBank="Payment - Bank Transfer",e.PaymentNote="Payment - Credit Note",e.PaymentInvoice="Payment - Invoice",e.DutyAndVATInvoice="Duty & VAT Invoice",e.Remittance="Remittance - Bank Transfer",e.BBXInvoice="BBX Invoice",e.BBXCreditNote="BBX Credit Note",e.DirectDebit="Direct Debit Payment"}(r||(r={})),function(e){e.ORDER_NUMBER_ASC="order_number_ASC",e.ORDER_NUMBER_DESC="order_number_DESC",e.DATE_ASC="date_ASC",e.DATE_DESC="date_DESC",e.TYPE_ASC="type_ASC",e.TYPE_DESC="type_DESC",e.VALUE_ASC="value_ASC",e.VALUE_DESC="value_DESC",e.STATUS_ASC="status_ASC",e.STATUS_DESC="status_DESC"}(o||(o={}));var D={mapSortingToGraphQL:e=>({[o.ORDER_NUMBER_ASC]:{sort_field:f.b.OrderNumber,sort_direction:f.d.Asc},[o.ORDER_NUMBER_DESC]:{sort_field:f.b.OrderNumber,sort_direction:f.d.Desc},[o.DATE_ASC]:{sort_field:f.b.Date,sort_direction:f.d.Asc},[o.DATE_DESC]:{sort_field:f.b.Date,sort_direction:f.d.Desc},[o.TYPE_ASC]:{sort_field:f.b.Type,sort_direction:f.d.Asc},[o.TYPE_DESC]:{sort_field:f.b.Type,sort_direction:f.d.Desc},[o.VALUE_ASC]:{sort_field:f.b.Value,sort_direction:f.d.Asc},[o.VALUE_DESC]:{sort_field:f.b.Value,sort_direction:f.d.Desc},[o.STATUS_ASC]:{sort_field:f.b.Status,sort_direction:f.d.Asc},[o.STATUS_DESC]:{sort_field:f.b.Status,sort_direction:f.d.Desc}}[e]),paymentRecordFilterOptions:[{code:"type",label:"Type",options:Object.values(r).map((e=>({code:e,label:e})))},{code:"status",label:"Status",options:Object.values(_).map((e=>({code:e,label:e})))}],paymentRecordSortingOptions:[{label:"Order Number (Largest to Smallest)",value:o.ORDER_NUMBER_DESC},{label:"Order Number (Smallest to Largest)",value:o.ORDER_NUMBER_ASC},{label:"Date (Newest to Oldest)",value:o.DATE_DESC},{label:"Date (Oldest to Newest)",value:o.DATE_ASC},{label:"Type (A-Z)",value:o.TYPE_ASC},{label:"Type (Z-A)",value:o.TYPE_DESC},{label:"Value (Highest to Lowest)",value:o.VALUE_DESC},{label:"Value (Lowest to Highest)",value:o.VALUE_ASC},{label:"Status (A-Z)",value:o.STATUS_ASC},{label:"Status (Z-A)",value:o.STATUS_DESC}]};function A(e,t,n,_,r,a,o){try{var i=e[a](o),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(_,r)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(_,r){var a=e.apply(t,n);function o(e){A(a,_,r,o,d,"next",e)}function d(e){A(a,_,r,o,d,"throw",e)}o(void 0)}))}}var R=Object(m.b)({name:"PaymentsFeed",components:{SfButton:l.a,SfLoader:c.a,LazyHydrate:d.a,ListControls:y.a,Pagination:v.a},middleware:"is-authenticated",setup(){var e,t=Object(m.B)(),n=Object(f.r)(),{loading:_,loadPaymentRecords:r,user:o}=Object(S.b)(),d=Object(m.q)(),l=Object(m.q)(),c=Object(m.a)((()=>({selected:n.getFiltersDataFromUrl(!0),options:D.paymentRecordFilterOptions}))),v=Object(m.a)((()=>({selected:t.value.query.sort||"",options:D.paymentRecordSortingOptions}))),y={currentPage:parseInt(t.value.query.page)||1,pageSize:parseInt(t.value.query.sz)||6,filter:c.value.selected,sort:D.mapSortingToGraphQL(v.value.selected),search:t.value.query.term},A=Object(m.a)((()=>Object.keys(c.value.selected).length>0||!!y.search));Object(m.j)(E((function*(){d.value=yield r(y)})));return{filterBy:c,filtered:A,loading:_,paymentsFeedRef:l,paymentRecords:d,sortBy:v,customerNumber:null===(e=o.value)||void 0===e?void 0:e.customer_number,getBillingDocumentLabel:e=>{switch(!0){case(e=>{var t;return"invoice"===(null===(t=e.document_type)||void 0===t?void 0:t.toLowerCase())})(e):return"Download invoice";case(e=>{var t;return null===(t=e.document_type)||void 0===t?void 0:t.toLowerCase().startsWith("credit")})(e):return"Download credit note";default:return""}},getFormattedDate:C.a,goToPage:e=>{n.changePage(e+1)}}}}),h=(n(1566),n(4)),component=Object(h.a)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"payments-feed"},[n("h1",{staticClass:"title payments-feed__title"},[e._v("\n    "+e._s(e.$t("Payments feed"))+"\n  ")]),e._v(" "),e.paymentRecords&&0!==e.paymentRecords.total_count||e.loading||e.filtered?e._e():n("p",{staticClass:"no-orders__title"},[e._v("\n    "+e._s(e.$t("You currently have no payment records"))+"\n  ")]),e._v(" "),e.paymentRecords&&e.paymentRecords.total_count>0||e.filtered?n("ListControls",{attrs:{"filter-by":e.filterBy,"results-count":e.paymentRecords&&e.paymentRecords.total_count,"sort-by":e.sortBy}}
1):e._e(),e._v(" "),e.loading?n("SfLoader"):e.paymentRecords&&e.paymentRecords.total_count>0?n("div",{ref:"paymentsFeedRef",staticClass:"payments-feed__items"},[n("div",{staticClass:"payments-feed__items__headings"},[n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Date"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Type"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Reference"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Order number"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Value"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Status"))+"\n      ")]),e._v(" "),n("div",{staticClass:"payments-feed__items__heading"},[e._v("\n        "+e._s(e.$t("Actions"))+"\n      ")])]),e._v(" "),e._l(e.paymentRecords.items,(function(t){return n("div",{key:t.record_id,staticClass:"payments-feed__item"},[n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Date"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e._v("\n          "+e._s(e.getFormattedDate(t.date,"short").date)+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Type"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e._v("\n          "+e._s(t.type)+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Reference"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e._v("\n          "+e._s(t.reference)+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Order number"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e._v("\n          "+e._s(t.order_number)+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Value"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value payments-feed__item__amount",class:{"payments-feed__item__value--positive":t.value>0,"payments-feed__item__value--negative":t.value<0}},[e._v("\n          "+e._s(t.value>0?"+ ":"- ")+e._s(e.$fc(t.value))+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line"},[n("div",{staticClass:"payments-feed__item__heading"},[e._v("\n          "+e._s(e.$t("Status"))+"\n        ")]),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e._v("\n          "+e._s(t.status)+"\n        ")])]),e._v(" "),n("div",{staticClass:"payments-feed__item__line payments-feed__item__line--actions"},[n("div",{staticClass:"payments-feed__item__heading"}),e._v(" "),n("div",{staticClass:"payments-feed__item__value"},[e.getBillingDocumentLabel(t)?n("SfButton",{staticClass:"payments-feed__item__action custom-button buttonLink text-link--default",attrs:{target:"_blank",link:"/billingdocuments/download/payment?recordId="+t.record_id+"&customerNumber="+e.customerNumber}},[e._v("\n            "+e._s(e.$t(e.getBillingDocumentLabel(t)))+"\n          ")]):e._e(),e._v(" "),t.order_id?n("SfButton",{staticClass:"payments-feed__item__action custom-button buttonLink text-link--default",attrs:{link:e.localeRoute({name:"customer-single-order",params:{orderId:t.order_number},query:Object.assign({},e.$route.query,{referrerPath:e.$route.name.replace(/___default$/,"")})})}},[e._v("\n            "+e._s(e.$t("View order"))+"\n          ")]):e._e()],1)])])}))],2):e._e(),e._v(" "),e.loading||!e.filtered||e.paymentRecords&&0!==e.paymentRecords.total_count?e._e():n("div",{staticClass:"payments-feed__no-search-results"},[e._v("\n    "+e._s(e.$t("No payment records match your criteria"))+"\n  ")]),e._v(" "),n("LazyHydrate",{attrs:{"when-idle":""}},[n("div",{staticClass:"pagination"},[n("span",{staticClass:"pseudo-element"}),e._v(" "),!e.loading&&e.paymentRecords?n("Pagination",{directives:[{name:"show",rawName:"v-show",value:e.paymentRecords.page_info.total_pages>1,expression:"paymentRecords.page_info.total_pages > 1"}],attrs:{"total-pages":e.paymentRecords.page_info.total_pages,"current-page":e.paymentRecords.page_info.current_page-1},on:{"set-current":e.goToPage}}
1):e._e()],1)])],1)}),[],!1,null,"14238a59",null);t.default=component.exports}}]);

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.