PageSourceSearch

https://app.opus1.io/releases/20260925T143842Z-e1befdfb692b/async/23500.0571ce71.js

js opus1.io collected 2026-09-25 18:57:01 UTC 16,195 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b2950683-b9d6-46a8-9776-16bee09aee7e",e._sentryDebugIdIdentifier="sentry-dbid-b2950683-b9d6-46a8-9776-16bee09aee7e")}catch(e){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"e1befdfb692b28496829f71c2490b06d48ba02c9"},(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["23500"],{46155:function(e,t,n){var r=n(34932),i=n(47422),o=n(15389),s=n(5128),a=n(73937),u=n(27301),c=n(43714),l=n(83488),d=n(56449);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[l];var v=-1;return t=r(t,u(o)),a(s(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++v,value:e}}),function(e,t){return c(e,t,n)})}},73937:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},91372:function(e,t,n){var r=n(34932);e.exports=function(e,t){return r(t,function(t){return[t,e[t]]})}},30514:function(e,t,n){var r=n(34932);e.exports=function(e,t){return r(t,function(t){return e[t]})}},53730:function(e,t,n){var r=n(44394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,s=r(e),a=void 0!==t,u=null===t,c=t==t,l=r(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&e<t||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return -1}return 0}},43714:function(e,t,n){var r=n(53730);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c){if(i>=u)return c;return c*("desc"==n[i]?-1:1)}}return e.index-t.index}},5344:function(e,t,n){var r=n(91372),i=n(5861),o=n(20317),s=n(70799);e.exports=function(e){return function(t){var n=i(t);return"[object Map]"==n?o(t):"[object Set]"==n?s(t):r(t,e(t))}}},70799:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}},11741:function(e,t,n){var r=n(98023);e.exports=function(e){return r(e)&&e!=+e}},98023:function(e,t,n){var r=n(72552),i=n(40346);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},42877:function(e,t,n){var r=n(46155),i=n(56449);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},63560:function(e,t,n){var r=n(73170);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},18938:function(e,t,n){e.exports=n(5344)(n(95950))},35880:function(e,t,n){var r=n(30514),i=n(95950);e.exports=function(e){return null==e?[]:r(e,i(e))}},17124:function(e,t,n){"use strict";var r=n(84577);function i(){var e=(0,r._)(["\n    color: #888;\n    font-weight: 500;\n    margin-top: 10px;\n    margin-bottom: 10px;\n"]);return i=function(){return e},e}t.A=n(17378).Ay.div(i())},18258:function(e,t,n){"use strict";n.d(t,{QP:function(){return p},WI:function(){return v}});var r=n(84577),i=n(74848);n(96540);var o=n(5556),s=n(54625),a=n(17378),u=n(20615);function c(){var e=(0,r._)(["\n        font-size: 14px !important;\n    "]);return c=function(){return e},e}function l(){var e=(0,r._)(["\n        font-size: 13px !important;\n    "]);return l=function(){return e},e}function d(){var e=(0,r._)(["\n    color: "," !important;\n    font-style: "," !important;\n    font-size: 18px;\n    line-height: 1.2rem;\n    padding: 0px;\n    margin: 4px 0 0 0px;\n    font-family: 'Montserrat', tahoma;\n    font-weight: 600;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    width: 100%;\n    display: block;\n\n    :hover {\n        cursor: ",";\n        color: "," !important;\n    }\n\n    @media (max-width: 1400px) {\n        font-size: 16px !important;\n    }\n    @media (max-width: 1200px) {\n        font-size: 14px !important;\n    }\n    @media (max-width: 991px) {\n        font-size: 18px !important;\n    }\n    ",";\n    ",";\n"]);return d=function(){return e},e}var v=e=>{var{route:t,children:n,className:r,id:o}=e;return t?(0,i.jsx)(s.N_,{route:t,to:t,className:r,id:o,children:n}):(0,i.jsx)("h4",{className:r,id:o,children:n})};v.propTypes={children:o.PropTypes.node.isRequired,className:o.PropTypes.string.isRequired,route:o.PropTypes.string,id:o.PropTypes.string},v.defaultProps={route:void 0,id:""};var p=(0,a.Ay)(v)(d(),e=>e.isActive?"#39364b":"#747d8c",e=>e.isActive?"normal":"italic",e=>e.route?"pointer":"default",e=>e.route?"#4752a9":e.isActive?"#39364b":"#747d8c",u.$_.mobile(c()),u.$_.mobileSm(l()))},34262:function(e,t,n){"use strict";var r=n(71893),i=n(84577);n(96540);var o=n(95093),s=n.n(o),a=n(78258),u=n(11205),c=n(16517),l=n(53894);function d(){var e=(0,i._)(["\n        fragment subscriptionOption on Subscription {\n            id\n            plan {\n                name\n            }\n            startAt\n            endAt\n            status\n        }\n    "]);return d=function(){return e},e}var v=e=>{var t,n,i=(0,l.A)(),{className:o,cx:a,getStyles:d,isDisabled:v,isFocused:p,isSelected:f,innerRef:h,innerProps:m,data:g}=e,x=s()().toISOString(),b=g.status===c.KT,y=g.status===c.Qi&&g.startAt>x,A=g.startAt<x&&g.endAt>x;return g.endAt<x?n=" (Ended ".concat(i(g.endAt).format("MMMM Do YYYY"),")"):A?n=" (Ending ".concat(i(g.endAt).format("MMMM Do YYYY"),")"):y?n=" (Starting ".concat(i(g.startAt).format("MMMM Do YYYY"),")"):b&&(n=" (Active)"),(0,u.Y)("div",(0,r._)({ref:h,css:d("option",e),className:a({option:!0,"option--is-disabled":v,"option--is-focused":p,"option--is-selected":f},o)},m),null==g||null==(t=g.plan)?void 0:t.name,n)};v.fragments={subscription:(0,a.J1)(d())},t.A=v},18650:function(e,t,n){"use strict";var r=n(71893);n(96540);var i=n(95093),o=n.n(i),s=n(11205),a=n(16517),u=n(53894);t.A=e=>{var t,n,i=(0,u.A)(),{className:c,cx:l,getStyles:d,isDisabled:v,innerProps:p,data:f}=e,h=o()().toISOString(),m=f.status===a.KT,g=f.status===a.Qi&&f.startAt>h,x=f.startAt<h&&f.endAt>h;return f.endAt<h?n=" (Ended ".concat(i(f.endAt).format("MMMM Do YYYY"),")"):x?n=" (Ending ".concat(i(f.endAt).format("MMMM Do YYYY"),")"):g?n=" (Starting ".concat(i(f.startAt).format("MMMM Do YYYY"),")"):m&&(n=" (Active)"),(0,s.Y)("div",(0,r._)({css:d("singleValue",e),className:l({"single-value":!0,"single-value--is-disabled":v},c)},p),null==f||null==(t=f.plan)?void 0:t.name,n)}},34347:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}}),n(60726);var r=n(74848),i=n(96540),o=n(56347),s=n(41374),a=n(50467),u=n(84577),c=n(5556),l=n.n(c),d=n(17378),v=n(52956),p=n(27140),f=n.n(p),h=n(29436),m=n(59038),g=n(44495),x=n(7091),b=n(48689),y=n(26871),A=n(72557),w=n(61734),E=n(24988),_=n(79600),M=n(88853),j=n(78437);function L(){var e=(0,u._)(["\n    min-height: 110px;\n    display: flex;\n    flex-direction: column;\n    padding: 0px 15px !important;
1\n    align-items: center;\n    @media screen and (max-width: 768px) {\n        padding-bottom: 0px;\n        min-height: inherit;\n    }\n"]);return L=function(){return e},e}function Y(){var e=(0,u._)(["\n    width: 70%;\n    margin: auto;\n    margin-top: 25px;\n\n    @media screen and (max-width: 768px) {\n        width: 100%;\n    }\n\n    "," {\n        border-bottom: none;\n    }\n"]);return Y=function(){return e},e}function P(){var e=(0,u._)(["\n    .title {\n        text-align: center;\n        margin-top: 50px;\n\n        @media screen and (max-width: 768px) {\n            margin-top: 10px !important;\n        }\n    }\n"]);return P=function(){return e},e}var D=(0,d.Ay)(g.b)(L()),F=d.Ay.div(Y(),E.A),I=(0,d.Ay)(M.A)(P());class S extends i.Component{componentDidMount(){var{data:e,refetchCreditsFlag:t,dispatch:n}=this.props;document.addEventListener("scroll",this.handleScroll),e&&e.credit&&this.getFirstActivities(e),t&&e&&e.refetch&&(e.refetch(),n((0,A.nc)()))}UNSAFE_componentWillReceiveProps(e){var{data:t,dispatch:n}=e;this.getFirstActivities(t),e.refetchCreditsFlag&&t.refetch&&(t.refetch(),n((0,A.nc)()))}componentWillUnmount(){document.removeEventListener("scroll",this.handleScroll)}render(){var{displayedActivities:e,fetchingMore:t}=this.state,{data:n}=this.props,{loading:i,credit:o}=n||{};return i||!o?(0,r.jsx)(w.A,{}):(0,r.jsxs)(F,{children:[(0,r.jsx)(D,{children:(0,r.jsx)(j.A,{allCredits:[o],refetch:()=>(null==n?void 0:n.refetch)?n.refetch():null})}),(0,r.jsx)(I,{title:"Credit Activities",noActivitiesMessage:"No activities for this credit",activities:e,loading:t})]})}constructor(e){var t;super(e),t=this,(0,a._)(this,"getFirstActivities",e=>{var{credit:t}=e||{},n=(t||{}).paginatedActivities||{},r=n.activities,{cursor:i}=n;this.setState({displayedActivities:r,cursor:i})}),(0,a._)(this,"handleScroll",()=>{var e="innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight,{body:t}=document,n=document.documentElement,r=Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight);e+window.pageYOffset+50>=r&&!this.state.fetchingMore&&this.loadMore()}),(0,a._)(this,"loadMore",()=>(0,s._)(function*(){var e,{business:n,creditId:r}=t.props,{cursor:i}=t.state,o=[];if(t.setState({fetchingMore:!0}),i){var{credit:s}=(yield _.V.query({query:m.wh,variables:{business:n,limit:15,cursor:i,id:r}})).data;({activities:o}=s.paginatedActivities),e=s.paginatedActivities.cursor}var a=t.state.displayedActivities.concat(o);t.setState({fetchingMore:!1,displayedActivities:a,cursor:e})})()),this.state={fetchingMore:!1,displayedActivities:[],cursor:null}}}S.propTypes={refetchCreditsFlag:l().bool.isRequired,dispatch:l().func.isRequired,data:l().object},S.defaultProps={data:void 0};var N=f()(o.y,(0,v.connect)(e=>({business:e.app.business.name,currentUser:e.auth.currentUser,refetchCreditsFlag:e.profile.refetchCreditsFlag})),(0,h.U)(m.wh,{skip:()=>!(0,y.oz)(b.ACTION_READ,x.RESOURCE_CREDIT),options:e=>({variables:{business:e.business,creditId:e.creditId,limit:15}})}))(S),T=(0,o.y)(e=>{var{match:t}=e;return(0,r.jsx)(N,{creditId:t.params.creditId})})},99586:function(e,t,n){"use strict";var r=n(50467),i=n(84577);n(45336),n(23446),n(93632);var o=n(74848),s=n(96540),a=n(5556),u=n.n(a);function c(){var e=(0,i._)(["\n    margin-top: 5px;\n    #full-error-list-hover {\n        padding-top: 5px;\n        padding-bottom: 5px;\n        background-color: #fff;\n        box-shadow: 0px 2px 4px -1px;\n        z-index: 100;\n        max-height: ","px;\n        -webkit-overflow-scrolling: touch;\n        position: absolute;\n        visibility: hidden;\n        overflow-y: auto;\n    }\n"]);return c=function(){return e},e}var l=n(17378).Ay.div(c(),250);class d extends s.Component{componentDidMount(){this.props.errors.length>2&&(this.listPreview.addEventListener("mouseover",this.showFullErrorList),this.listPreview.addEventListener("mouseleave",this.hideFullErrorList))}UNSAFE_componentWillReceiveProps(e){var{errors:t}=e;t.length<=2?(this.hideFullErrorList(),this.listPreview.removeEventListener("mouseover",this.showFullErrorList),this.listPreview.removeEventListener("mouseleave",this.hideFullErrorList)):t.length>
12&&(this.listPreview.addEventListener("mouseover",this.showFullErrorList),this.listPreview.addEventListener("mouseleave",this.hideFullErrorList))}componentWillUnmount(){this.listPreview.removeEventListener("mouseover",this.showFullErrorList),this.listPreview.removeEventListener("mouseleave",this.hideFullErrorList),clearTimeout(this.hoverTimeout)}render(){var{className:e}=this.props,t=(this.props.errors||[]).length,n=t-2,r=this.props.errors.slice(0,2);return(0,o.jsxs)(l,{className:e,ref:e=>{this.listPreview=e},id:"found-conflicts",children:[(0,o.jsx)("div",{id:"full-error-list-hover",ref:e=>{this.listHover=e},children:(0,o.jsx)("div",{className:"error-detail bs-callout bs-callout-info px-3",children:this.props.errors.map((e,t)=>(0,o.jsx)("div",{className:"text-danger",children:e},"errorList-".concat(t,"-").concat(e)))})}),(0,o.jsxs)("div",{className:"error-detail bs-callout bs-callout-info",children:[r.map((e,t)=>(0,o.jsx)("div",{className:"text-danger",children:e},"errorListPreview-".concat(t,"-").concat(e))),t>2&&(0,o.jsxs)("div",{className:"text-danger",children:["+ ",n," more error",n>1&&"s"]})]})]})}constructor(...e){super(...e),(0,r._)(this,"showFullErrorList",()=>{this.listPreview.removeEventListener("mouseover",this.showFullErrorList),this.hoverTimeout=setTimeout(()=>{this.listHover.style.visibility="visible"},300)}),(0,r._)(this,"hideFullErrorList",()=>{clearTimeout(this.hoverTimeout),this.listHover.style.visibility="hidden",this.listPreview.addEventListener("mouseover",this.showFullErrorList)})}}(0,r._)(d,"defaultProps",{errors:[]}),(0,r._)(d,"propTypes",{errors:u().arrayOf(u().string)}),t.A=d},7574:function(e,t,n){"use strict";var r=n(84577);n(93632),n(60726);var i=n(74848);n(96540);var o=n(17378),s=n(5556),a=n.n(s),u=n(52956),c=n(56347),l=n(27140),d=n.n(l),v=n(29436),p=n(74612),f=n(94794),h=n(39124),m=n(36596),g=n(53539),x=n(16517),b=n(92544),y=n(53199),A=n(59769),w=n(60469),E=n(98869);function _(){var e=(0,r._)(["\n    .modal-content {\n        padding: 16px;\n        border-radius: 4px;\n    }\n    .invoice {\n        background: white;\n    }\n"]);return _=function(){return e},e}function M(){var e=(0,r._)(["\n    background: white;\n    border-radius: 4px;\n    margin-top: -31px;\n"]);return M=function(){return e},e}function j(){var e=(0,r._)([""]);return j=function(){return e},e}var L=(0,o.Ay)(m.A)(_()),Y=(0,o.Ay)(g.A)(M()),P=e=>{var t,n,r,o,s,a,c,l,d,v,{data:f,invoice:h,isOpen:m,toggle:g}=e,{uiPrimaryColor:_}=(0,u.useSelector)(e=>e.app.business),{invoice:M,myself:j,loading:P}=f||{},D=((j||{}).invoices||[])[0],F=M||D||h,[I,S]=(0,A.A)(!1);return F&&({paymentItems:t}=F,{remainingDue:n}=F,{totalDue:r}=F,{surchargeDue:o}=F,{surchargePaid:s}=F,{status:a}=F,c=a===x.Rf,l=a===x.Uh,d=(t||[]).length>0),h&&(v=h.currency),window.apolloCache=b.Ay,(0,i.jsxs)(L,{centered:!0,isOpen:m,toggle:g,modalName:"invoice-details",wrapClassName:"modal-primary no-modal-shadow",size:"lg",children:[P&&(0,i.jsx)(y.A,{id:"invoice-detail-modal-spinner",size:60,color:_}),!P&&(0,i.jsx)(p.A,{isInvoice:!0,disableDiscount:!0,quote:{invoice:F},currency:v}),!P&&F&&d&&(0,i.jsx)(Y,{remainingDue:n,totalDue:r,surchargeDue:o,surchargePaid:s,paymentItems:t,isInvoiceClosed:l,isInvoiceVoided:c,currency:v}),!P&&F&&(0,i.jsx)(w.A,{className:"btn btn-rounded btn-primary mt-1",type:"button",id:"save-as-pdf-download-modal",onClick:S,onMouseDown:e=>e.preventDefault(),children:"Save as PDF"}),I&&(0,i.jsx)(E.A,{isOpen:I,toggle:S,invoice:{invoice:F},isLoading:f.loading,remainingDue:n,totalDue:r,paymentItems:t,isInvoiceClosed:l,isInvoiceVoided:c,currency:v,surchargeDue:o,surchargePaid:s})]})};P.propTypes={data:a().object,isOpen:a().bool,toggle:a().func.isRequired,invoice:a().object},P.defaultProps={data:void 0,invoice:void 0,isOpen:!1};var D=(0,o.Ay)(P)(j()),F=e=>({variables:{business:e.business,invoiceId:(e.invoice||{}).id},errorPolicy:"all"});t.A=d()(c.y,(0,u.connect)(e=>({business:e.app.business.name,currentUser:e.auth.currentUser})),(0,v.U)(f.kQ,{skip:e=>{var{match:t,invoice:n}=e;return t.url.includes("self")||!(n||{}).id},options:F}),(0,v.U)(h.Rn,{skip:e=>{var{match:t,invoice:n}=e;return!t.url.includes("self")||!(n||{}).id},options:F}))(D)},93863:function(e,t,n){"use strict";n.d(t,{VX:function(){return o},fK:function(){return s},tF:function(){return function e(t){if("object"!=typeof t||null===t)return{};for(var n=i()(t),r=Object.keys(n),o=0;o<r.length;o+=1){var s=r[o];null===n[s]||void 0===n[s]?delete n[s]:"object"==typeof n[s]&&(n[s]=e(n[s]))}return n}}}),n(45336),n(69861),n(5409);var r=n(88055),i=n.n(r);function o(e){var t=[];
1return null==e?[]:(e.forEach(e=>{"string"==typeof e?t.push(e):t.push(e.id)}),t)}var s=e=>{e&&Object.keys(e).forEach(t=>{"__typename"===t?delete e[t]:"object"==typeof e[t]&&s(e[t])})}},68618:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var r=n(71893),i=n(2404),o=n.n(i),s=n(16517);function a(e,t,n){if(!e)return t;for(var i=(0,r._)({},t),a=Object.keys(e),u=0;u<a.length;u+=1)!(n&&n.includes(a[u]))&&o()(e[a[u]],t[a[u]])?delete i[a[u]]:void 0===t[a[u]]&&"string"==typeof e[a[u]]&&(i[a[u]]=s.M_);return i}}}]);
2//# sourceMappingURL=23500.0571ce71.js.map

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.