PageSourceSearch

https://app.opus1.io/releases/20261001T232935Z-57ecc7b471fc/async/23500.7d8bbea4.js

js opus1.io collected 2026-10-03 21:43:46 UTC 16,195 bytes, 2 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b19a0a1d-a0d0-429a-b74c-ee2d5876d165",t._sentryDebugIdIdentifier="sentry-dbid-b19a0a1d-a0d0-429a-b74c-ee2d5876d165")}catch(t){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"57ecc7b471fce630a9a83e03af7702d6977a38be"},(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["23500"],{46155:function(t,e,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);t.exports=function(t,e,n){e=e.length?r(e,function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[l];var v=-1;return e=r(e,u(o)),a(s(t,function(t,n,i){return{criteria:r(e,function(e){return e(t)}),index:++v,value:t}}),function(t,e){return c(t,e,n)})}},73937:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},91372:function(t,e,n){var r=n(34932);t.exports=function(t,e){return r(e,function(e){return[e,t[e]]})}},30514:function(t,e,n){var r=n(34932);t.exports=function(t,e){return r(e,function(e){return t[e]})}},53730:function(t,e,n){var r=n(44394);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return -1}return 0}},43714:function(t,e,n){var r=n(53730);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.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 t.index-e.index}},5344:function(t,e,n){var r=n(91372),i=n(5861),o=n(20317),s=n(70799);t.exports=function(t){return function(e){var n=i(e);return"[object Map]"==n?o(e):"[object Set]"==n?s(e):r(e,t(e))}}},70799:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}},11741:function(t,e,n){var r=n(98023);t.exports=function(t){return r(t)&&t!=+t}},98023:function(t,e,n){var r=n(72552),i=n(40346);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},42877:function(t,e,n){var r=n(46155),i=n(56449);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},63560:function(t,e,n){var r=n(73170);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},18938:function(t,e,n){t.exports=n(5344)(n(95950))},35880:function(t,e,n){var r=n(30514),i=n(95950);t.exports=function(t){return null==t?[]:r(t,i(t))}},17124:function(t,e,n){"use strict";var r=n(84577);function i(){var t=(0,r._)(["\n    color: #888;\n    font-weight: 500;\n    margin-top: 10px;\n    margin-bottom: 10px;\n"]);return i=function(){return t},t}e.A=n(17378).Ay.div(i())},18258:function(t,e,n){"use strict";n.d(e,{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 t=(0,r._)(["\n        font-size: 14px !important;\n    "]);return c=function(){return t},t}function l(){var t=(0,r._)(["\n        font-size: 13px !important;\n    "]);return l=function(){return t},t}function d(){var t=(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 t},t}var v=t=>{var{route:e,children:n,className:r,id:o}=t;return e?(0,i.jsx)(s.N_,{route:e,to:e,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(),t=>t.isActive?"#39364b":"#747d8c",t=>t.isActive?"normal":"italic",t=>t.route?"pointer":"default",t=>t.route?"#4752a9":t.isActive?"#39364b":"#747d8c",u.$_.mobile(c()),u.$_.mobileSm(l()))},34262:function(t,e,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 t=(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 t},t}var v=t=>{var e,n,i=(0,l.A)(),{className:o,cx:a,getStyles:d,isDisabled:v,isFocused:p,isSelected:f,innerRef:h,innerProps:m,data:g}=t,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",t),className:a({option:!0,"option--is-disabled":v,"option--is-focused":p,"option--is-selected":f},o)},m),null==g||null==(e=g.plan)?void 0:e.name,n)};v.fragments={subscription:(0,a.J1)(d())},e.A=v},18650:function(t,e,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);e.A=t=>{var e,n,i=(0,u.A)(),{className:c,cx:l,getStyles:d,isDisabled:v,innerProps:p,data:f}=t,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",t),className:l({"single-value":!0,"single-value--is-disabled":v},c)},p),null==f||null==(e=f.plan)?void 0:e.name,n)}},34347:function(t,e,n){"use strict";n.r(e),n.d(e,{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 t=(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 t},t}function Y(){var t=(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 t},t}function P(){var t=(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 t},t}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:t,refetchCreditsFlag:e,dispatch:n}=this.props;document.addEventListener("scroll",this.handleScroll),t&&t.credit&&this.getFirstActivities(t),e&&t&&t.refetch&&(t.refetch(),n((0,A.nc)()))}UNSAFE_componentWillReceiveProps(t){var{data:e,dispatch:n}=t;this.getFirstActivities(e),t.refetchCreditsFlag&&e.refetch&&(e.refetch(),n((0,A.nc)()))}componentWillUnmount(){document.removeEventListener("scroll",this.handleScroll)}render(){var{displayedActivities:t,fetchingMore:e}=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:t,loading:e})]})}constructor(t){var e;super(t),e=this,(0,a._)(this,"getFirstActivities",t=>{var{credit:e}=t||{},n=(e||{}).paginatedActivities||{},r=n.activities,{cursor:i}=n;this.setState({displayedActivities:r,cursor:i})}),(0,a._)(this,"handleScroll",()=>{var t="innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight,{body:e}=document,n=document.documentElement,r=Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight);t+window.pageYOffset+50>=r&&!this.state.fetchingMore&&this.loadMore()}),(0,a._)(this,"loadMore",()=>(0,s._)(function*(){var t,{business:n,creditId:r}=e.props,{cursor:i}=e.state,o=[];if(e.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),t=s.paginatedActivities.cursor}var a=e.state.displayedActivities.concat(o);e.setState({fetchingMore:!1,displayedActivities:a,cursor:t})})()),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)(t=>({business:t.app.business.name,currentUser:t.auth.currentUser,refetchCreditsFlag:t.profile.refetchCreditsFlag})),(0,h.U)(m.wh,{skip:()=>!(0,y.oz)(b.ACTION_READ,x.RESOURCE_CREDIT),options:t=>({variables:{business:t.business,creditId:t.creditId,limit:15}})}))(S),T=(0,o.y)(t=>{var{match:e}=t;return(0,r.jsx)(N,{creditId:e.params.creditId})})},99586:function(t,e,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 t=(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 t},t}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(t){var{errors:e}=t;e.length<=2?(this.hideFullErrorList(),this.listPreview.removeEventListener("mouseover",this.showFullErrorList),this.listPreview.removeEventListener("mouseleave",this.hideFullErrorList)):e.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:t}=this.props,e=(this.props.errors||[]).length,n=e-2,r=this.props.errors.slice(0,2);return(0,o.jsxs)(l,{className:t,ref:t=>{this.listPreview=t},id:"found-conflicts",children:[(0,o.jsx)("div",{id:"full-error-list-hover",ref:t=>{this.listHover=t},children:(0,o.jsx)("div",{className:"error-detail bs-callout bs-callout-info px-3",children:this.props.errors.map((t,e)=>(0,o.jsx)("div",{className:"text-danger",children:t},"errorList-".concat(e,"-").concat(t)))})}),(0,o.jsxs)("div",{className:"error-detail bs-callout bs-callout-info",children:[r.map((t,e)=>(0,o.jsx)("div",{className:"text-danger",children:t},"errorListPreview-".concat(e,"-").concat(t))),e>2&&(0,o.jsxs)("div",{className:"text-danger",children:["+ ",n," more error",n>1&&"s"]})]})]})}constructor(...t){super(...t),(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)}),e.A=d},7574:function(t,e,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 t=(0,r._)(["\n    .modal-content {\n        padding: 16px;\n        border-radius: 4px;\n    }\n    .invoice {\n        background: white;\n    }\n"]);return _=function(){return t},t}function M(){var t=(0,r._)(["\n    background: white;\n    border-radius: 4px;\n    margin-top: -31px;\n"]);return M=function(){return t},t}function j(){var t=(0,r._)([""]);return j=function(){return t},t}var L=(0,o.Ay)(m.A)(_()),Y=(0,o.Ay)(g.A)(M()),P=t=>{var e,n,r,o,s,a,c,l,d,v,{data:f,invoice:h,isOpen:m,toggle:g}=t,{uiPrimaryColor:_}=(0,u.useSelector)(t=>t.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:e}=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=(e||[]).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:e,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:t=>t.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:e,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=t=>({variables:{business:t.business,invoiceId:(t.invoice||{}).id},errorPolicy:"all"});e.A=d()(c.y,(0,u.connect)(t=>({business:t.app.business.name,currentUser:t.auth.currentUser})),(0,v.U)(f.kQ,{skip:t=>{var{match:e,invoice:n}=t;return e.url.includes("self")||!(n||{}).id},options:F}),(0,v.U)(h.Rn,{skip:t=>{var{match:e,invoice:n}=t;return!e.url.includes("self")||!(n||{}).id},options:F}))(D)},93863:function(t,e,n){"use strict";n.d(e,{VX:function(){return o},fK:function(){return s},tF:function(){return function t(e){if("object"!=typeof e||null===e)return{};for(var n=i()(e),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]=t(n[s]))}return n}}}),n(45336),n(69861),n(5409);var r=n(88055),i=n.n(r);function o(t){var e=[];return null==t?[]:(t.forEach(t=>{"string"==typeof t?e.push(t):e.push(t.id)}),e)}var s=t=>
1{t&&Object.keys(t).forEach(e=>{"__typename"===e?delete t[e]:"object"==typeof t[e]&&s(t[e])})}},68618:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var r=n(71893),i=n(2404),o=n.n(i),s=n(16517);function a(t,e,n){if(!t)return e;for(var i=(0,r._)({},e),a=Object.keys(t),u=0;u<a.length;u+=1)!(n&&n.includes(a[u]))&&o()(t[a[u]],e[a[u]])?delete i[a[u]]:void 0===e[a[u]]&&"string"==typeof t[a[u]]&&(i[a[u]]=s.M_);return i}}}]);
2//# sourceMappingURL=23500.7d8bbea4.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.