PageSourceSearch

https://bids.gryphonusa.com/invoices.142ea69670ead8929bb9.js

js gryphonusa.com collected 2026-10-04 13:37:45 UTC 16,422 bytes, 2 lines download raw bytes

vendor: 5,889 bytes, lines 1-2
1/*! For license information please see invoices.142ea69670ead8929bb9.js.LICENSE.txt */
2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[667],{24133(e,t,n){n.r(t);var r,o,i=n(68909),a=n(16029),u=n(79101),c=n.n(u),l=n(77781),s=n(43241),f=n(45759),d=n(65756),p=n(90112),m=n(35019),v=n(32634),_=n(9606),y=n(96414),b=n(746),g=n(21665),h=n(40185),E=n(8992),w=n(62393),O=n(64058),k=n(97785),I=n(60098),T=n(94487),j=n(91950),N=n(39242),S=n(45650),A=n(75058),D=n(75389),P=n(44690);function x(){var e=G(),t=e.m(x),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,F(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(x=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new M(e,t)},AsyncIterator:L,async:function(e,t,n,o,a){return(r(t)?R:C)(i(e),t,n,o,a)},keys:Y,values:F}})()}function F(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(J(e)+" is not iterable")}function Y(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function C(e,t,n,r,o){var i=R(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function R(e,t,n,r,o){return new L(G().w(e,t,n,r),o||Promise)}function L(e,t){function n(r,o,i,a){try{var u=e[r](o),c=u.value;return c instanceof M?t.resolve(c.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(c).then(function(e){u.value=e,i(u)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(B(L.prototype),B(L.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),B(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function G(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return B(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,c=e,d.n=n,a}};function p(n,r){for(u=n,c=r,t=0;!f&&l&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,d.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),u=s,c=m;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,c)):d.n=c:d.v=c);try{if(l=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==a)break}catch(t){i=e,u=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(B(t={},r,function(){return this}),t),f=l.prototype=u.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,B(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,B(f,"constructor",l),B(l,"constructor",c),c.displayName="GeneratorFunction",B(l,o,"GeneratorFunction"),B(f),B(f,o,"Generator"),B(f,r,function(){return this}),B(f,"toString",function(){return"[object Generator]"}),(G=function(){return{w:i,m:d}})()}function B(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}B=function(e,t,n,r){function i(t,n){B(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},B(e,t,n,r)}function M(e,t){this.v=e,this.k=t}function U(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function V(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){U(i,r,o,a,u,"next",e)}function u(e){U(i,r,o,a,u,"throw",e)}a(void 0)})}}function $(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function z(e,t,n){return t=Q(t),function(e,t){if(t&&("object"==J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,K()?Reflect.construct(t,n||[],Q(e).constructor):t.apply(e,n))}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K=function(){return!!e})()}
2function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function W(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}var Z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":J(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ee=(0,A.Ng)(function(e){return{affiliateDomain:e.affiliateDomain}},null,null,{forwardRef:!0}),te=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(n=z(this,t,[e]),"payInvoicesModal",i.createRef()),W(n,"refetch",void 0),W(n,"state",{}),W(n,"defaultState",{page:1,pageSize:50,search:"",popover:null,filter:{},sort:[{c:"created_at",d:"desc"}]}),W(n,"debouncedOnQueryError",void 0),n.state=Object.assign({},n.defaultState),n.debouncedOnQueryError=(0,y.debounce)(n.onQueryError.bind(n),150),n.state.dataTableKey=(0,_.$8)({}),n.getColumns=n.getColumns.bind(n),n.renderAuctionTitle=n.renderAuctionTitle.bind(n),n.renderItemGroupTitle=n.renderItemGroupTitle.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,u=[{key:"onQueryError",value:function(e){(0,b.vu)(e)}},{key:"MY_USER",value:function(){return(0,a.Ay)(r||(r=$(["\n      query my_user_viewinvoices {\n        myUser {\n          user_id\n          credit_balance\n        }\n      }\n    "])))}},{key:"GET_INVOICES",value:function(){return(0,a.Ay)(o||(o=$(["\n      query get_invoices (\n        $filter: InvoiceFilterInput!,\n        $pagination: Pagination,\n        $order: [OrderBy] \n      ) {\n        myInvoices(filter: $filter, pagination: $pagination, order: $order) {\n          total\n          invoices {\n            invoice_id\n            invoice_ref\n            invoice_total\n            payment_total\n            invoice_balance\n            status\n            created_at\n            winning_bidder_number\n            public_domain\n            auction {\n              auction_id\n              title\n              end_time\n              auction_ref\n              is_visible_on_front\n              ","\n            }\n            item_group {\n              item_group_id\n              item_group_ref\n              title\n            }\n            payments {\n              payment_id\n              payment_status\n              deleted_at\n            }\n            full_buyer {\n              bidder_number\n            }\n          }\n        }\n      }\n    "])),this.ADDITIONAL_AUCTION_FIELDS())}},{key:"ADDITIONAL_AUCTION_FIELDS",value:function(){return""}},{key:"render",value:function(){var e=this,t=this.state.dataTableKey;return i.createElement(i.Fragment,null,i.createElement(g.mg,null,i.createElement("title",null,"My Invoices")),i.createElement(w.a,{setting_key:"users.super_admin_settings.user_credit.enabled"},i.createElement(N.X,{query:this.MY_USER()},function(e){var t,n=e.data,r=(null==n||null===(t=n.myUser)||void 0===t?void 0:t.credit_balance)||0;return r?i.createElement(p.A,{color:"info"},"You have an account credit of ",i.createElement("strong",null,(0,f.vj)(r))," that can be applied."):null})),i.createElement(w.a,{setting_key:"invoices.super_admin_settings.allow_front_pay_multiple_invoices"},i.createElement(O.y,{ref:this.payInvoicesModal})),i.createElement("div",null,i.createElement(w.a,{setting_key:"invoices.super_admin_settings.enable_lot_pickup_management"},i.createElement(w.a,{setting_key:"invoices.super_admin_settings.enable_view_lot_pickup_button"},i.createElement(d.A,{tag:l.N,to:"/account/lots-for-pickup"},"View lots pending pickup"))),i.createElement(w.a,{setting_key:"invoices.super_admin_settings.allow_front_pay_multiple_invoices"},i.createElement(d.A,{className:"float-right",onClick:function(){return e.payAll()}},"Pay Invoices"))),i.createElement(I.LB,{setting_key:{invoice_setting:"invoices.super_admin_settings.front_default_sort",item_group_custom_invoice_ref_prefix:"item_groups.super_admin_settings.invoice_custom_prefix",enable_multiple_invoices_multiple_bidder_numbers:"users.super_admin_settings.enable_multiple_bidder_numbers_multiple_invoices"},render:function(n){var r=n.settings;if(n.loading)return null;var o,a=(r.invoice_setting||"created_at desc").split(";
2").filter(Boolean).map(function(e){var t=e.split(" ");return{column:t[0],direction:t[1]}});return i.createElement(m.DataTable,{id:"accountInvoiceList",key:t,doNotUseHTML5Dialog:!0,fixedHeaders:!1,fixedColBg:"var(--dt-fixed-bg, white)",canReorderColumns:!0,hideSearchForm:!0,tableProps:{className:"table-responsive",id:"accountInvoiceList"},tableContainerProps:{className:"table"},classNames:{dialogButton:"btn",dialogApplyButton:"btn-primary",dialogCloseButton:"btn-secondary"},paginateOptions:{defaultPerPage:e.defaultState.pageSize},columns:e.getColumns(r),multiColumnSorts:!0,defaultSort:a,data:(o=V(x().mark(function t(n,r){var o,a;return x().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.pagination,a=n.sorts,t.abrupt("return",i.createElement(v.T,{query:e.GET_INVOICES(),variables:{filter:{is_visible_on_front:!0},pagination:{page:o.page,pageSize:o.perPage},order:a},fetchPolicy:"cache-and-network",onError:e.debouncedOnQueryError,onCompleted:function(t){var n,o,i,a;r({data:null!==(n=null==t||null===(o=t.myInvoices)||void 0===o?void 0:o.invoices)&&void 0!==n?n:[],total:null!==(i=null==t||null===(a=t.myInvoices)||void 0===a?void 0:a.total)&&void 0!==i?i:0}),e.setState({dataTableKey:(0,_.$8)({})})}}));case 2:case"end":return t.stop()}},t)})),function(e,t){return o.apply(this,arguments)})})}}))}},{key:"getColumns",value:function(e){var t=this,n=e.item_group_custom_invoice_ref_prefix;return[{accessor:"invoice_ref",header:"Ref",className:"shrinkToFit",render:function(e){return(0,T.j)(e,n)}},{accessor:"created_at",header:"Date",render:function(e){return e?i.createElement(i.Fragment,null,i.createElement(h.s,{render:function(t){return i.createElement(c(),{format:(null==t?void 0:t.date_format)===E.WebsiteDateFormat.DAY_FIRST.valueOf()?"D/M/YYYY":"M/D/YYYY"},e)}})," "):""}},e.enable_multiple_invoices_multiple_bidder_numbers&&{accessor:"winning_bidder_number",header:"Bidder Number",sortable:!1,render:function(e,t){var n,r,o;return i.createElement(i.Fragment,null,null!==(n=null!==(r=t.winning_bidder_number)&&void 0!==r?r:null===(o=t.full_buyer)||void 0===o?void 0:o.bidder_number)&&void 0!==n?n:"")}},{accessor:"auction",header:"Auction",render:function(e,n){return e?t.renderAuctionTitle(e):n.item_group?t.renderItemGroupTitle(n.item_group):null}},{accessor:"invoice_total",header:"Total",render:function(e){return(0,f.vj)(e)}},{accessor:"payment_total",header:"Payments",render:function(e){return(0,f.vj)(e)}},{accessor:"invoice_balance",header:"Balance",render:function(e,t){var n,r=(null!==(n=t.payments)&&void 0!==n?n:[]).some(function(e){return e.payment_status===E.PaymentStatus.PENDING.valueOf()&&!e.deleted_at});return i.createElement("span",null,(0,f.vj)(e),r?i.createElement("small",{className:"invoice-pending"}," (Payments pending)"):"")}},{accessor:"~~actions~~",header:"",sortable:!1,canToggleVisibility:!1,className:"shrinkToFit action-buttons",fixed:"right",render:function(e,n){var r=t.props.match,o="";return o=n.public_domain&&n.public_domain.toLowerCase()!=t.getDomain().toLowerCase()?(0,S.frontUrl)("".concat(r.url,"/").concat(n.invoice_id),{host:null==n?void 0:n.public_domain}):"".concat(r.url,"/").concat(n.invoice_id),i.createElement(d.A,{className:"viewInvoiceBtn",color:"secondary",size:"sm",tag:l.N,to:o},"View")}}].filter(function(e){return!!e})}},{key:"renderAuctionTitle",value:function(e){var t=this.getDomain(),n=null==e?void 0:e.is_visible_on_front;return i.createElement(i.Fragment,null,e.title," - ",i.createElement(h.s,{render:function(t){return i.createElement(c(),{format:(null==t?void 0:t.date_format)===E.WebsiteDateFormat.DAY_FIRST.valueOf()?"D/M/YYYY":"M/D/YYYY"},e.end_time)}}),"  (",e.auction_ref,")",!!n&&i.createElement(i.Fragment,null," ",i.createElement(l.N,{to:(0,P.uV)(t,e),title:"View auction"},i.createElement(s.FontAwesomeIcon,{icon:["far","external-link-square"]}))))}},{key:"renderItemGroupTitle",value:function(e){return i.createElement(i.Fragment,null,e.title," -  (",e.item_group_ref,") ",i.createElement(l.N,{to:(0,P.xi)(e),title:"View item group"},i.createElement(s.FontAwesomeIcon,{icon:["far","external-link-square"]})))}},{key:"payAll",value:(A=V(x().mark(function e(){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.payInvoicesModal.current){e.next=3;break}throw new Error("NO REF");case 3:return e.next=5,this.payInvoicesModal.current.open({});case 5:e.sent&&this.refetch&&this.refetch(),e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(0),"cancel"!==e.t0){e.next=13;break}return e.abrupt("return");case 13:k.oR.error("An unknown error has occurred"),console.log("Form ERROR:",e.t0);case 15:case"end":return e.stop()}},e,this,[[0,9]])})),function(){return A.apply(this,arguments)})},{key:"getDomain",value:function(){var e=this.props.affiliateDomain;return(null==e?void 0:e.hostname)||D.default.FRONT_DOMAIN||D.default.DEFAULT_DOMAIN}}],u&&q(n.prototype,u),j&&q(n,j),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,j,A}(i.Component);const ne=te=Z([ee,(0,j.override)("plugins/pages/account/invoices/index")],te);n.d(t,["default",0,ne])}}]);

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.