1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="749efac9-1dfd-43b5-878a-94e1926d507b",e._sentryDebugIdIdentifier="sentry-dbid-749efac9-1dfd-43b5-878a-94e1926d507b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58365],{8907:(e,t,s)=>{s.d(t,{A:()=>X});var n=s(14836),o=s(49336),a=s(74635),r=s.n(a),i=s(66625),c=s(80834),p=s(92032),l=s(79196),d=s(86848),h=s(6139),u=s(53681),m=s(31067),g=s(68190),C=s(85838),y=s(80096),x=s(67144),f=s(19114),b=s(59160),_=s(38809),R=s(73660),w=s(90759),A=s(12132),S=s(97931),j=s(88681),v=s(59397),E=s(13524),P=s(91024),k=s(97326),I=s(99257),T=s(12984),N=s(33484);class O extends o.Component{handlePullStatus(e){let{spaceSelected:t,view:s}=this.props;this.props.pullStatus(s,t,e)}getEntityName(e){return e.recipient_type===f.oO.USER?e.recipient_user.fullname:e.recipient_type===f.oO.GROUP?e.recipient_group.name:e.emitter_type===f.A8.USER?e.emitter_user.fullname:e.emitter_type===f.A8.GROUP?e.emitter_group.name:void 0}getInvoiceOrCreditNoteLink(e){let{i18n:t}=this.props;if(e.target_invoice&&this.context.hasPermission({type:I.gD.VIEW,module:I.e$.INVOICES}))return(0,n.jsx)(T.A,{onClick:()=>{this.handleOpenInvoice(e.target_invoice)},permission:{type:I.gD.VIEW,module:I.e$.INVOICES},children:(0,n.jsx)(c.nB,{children:e.target_invoice.reference?`#${e.target_invoice.reference}`:t.t("pages.transactions.invoice-not-sent")})});if(e.target_credit_note&&this.context.hasPermission({type:I.gD.VIEW,module:I.e$.INVOICES}))return(0,n.jsx)(T.A,{onClick:()=>{this.handleOpenCreditNote(e.target_credit_note)},permission:{type:I.gD.VIEW,module:I.e$.INVOICES},children:(0,n.jsx)(c.nB,{children:e.target_credit_note.reference?`#${e.target_credit_note.reference}`:t.t("pages.transactions.credit-note-not-sent")})});if(e.status===f.XQ.SUCCEEDED)if(e.recipient_type===f.oO.SPACE)return(0,n.jsx)(c.nB,{children:t.t("pages.transactions.added-to-balance")});else return(0,n.jsx)(c.nB,{children:t.t("pages.transactions.subtracted-to-balance")})}handleOpenInvoice(e){this.props.openInvoicePreview(e.uuid,e.href,this.props.spaceSelected,!0)}handleOpenCreditNote(e){this.props.openCreditNotePreview(e.uuid,e.href,this.props.spaceSelected,!0)}handleOpenEntity(e){e.recipient_type===f.oO.USER?this.props.openSidePanel(N.tF.USER_ACCOUNT,null,{userUUID:e.recipient_user.uuid,subTemplate:"general"}):e.recipient_type===f.oO.GROUP?this.props.openSidePanel(N.tF.GROUP_ACCOUNT,null,{groupUUID:e.recipient_group.uuid,subTemplate:"general"}):e.emitter_type===f.A8.USER?this.props.openSidePanel(N.tF.USER_ACCOUNT,null,{userUUID:e.emitter_user.uuid,subTemplate:"general"}):e.emitter_type===f.A8.GROUP&&this.props.openSidePanel(N.tF.GROUP_ACCOUNT,null,{groupUUID:e.emitter_group.uuid,subTemplate:"general"})}render(){let{payments:e,pagination:t,sorting:s,isFetching:o,spaceSelected:a,i18n:r,onLoadMore:h,onSortChange:u,margin:m,height:C,noDataPlaceholder:y,renderDropdownAction:x,view:R}=this.props,w=[f.h1.USER_SIDE_PANEL,f.h1.GROUP_SIDE_PANEL].includes(R);return(0,n.jsxs)(i.Ay,{height:C,margin:m,uniqKey:"uuid",pagination:t,sorting:s,onLoadMore:h,onSortChange:u,isFetching:o,dataSource:e,noDataPlaceholder:y,renderDropdownAction:x,isSuperAdmin:this.context.isSuperAdmin,children:[(0,n.jsx)(i.p3,{cells:[{component:r.t(w?"pages.transactions.table-payments-head-cell-method":"pages.transactions.table-payments-head-cell-name"),sortBy:!w&&f.QY.ENTITY_NAME},{component:r.t("pages.transactions.table-payments-head-cell-amount"),sortBy:f.QY.AMOUNT},{component:r.t("pages.transactions.table-payments-head-cell-date"),sortBy:f.QY.PAYMENT_DATE},{component:r.t("pages.transactions.table-payments-head-cell-invoice"),sortBy:f.QY.INVOICE_OR_CREDIT_NOTE_REFERENCE,hide:!this.context.hasPermission({type:I.gD.VIEW,module:I.e$.INVOICES})},{component:r.t("pages.transactions.table-payments-head-cell-status"),sortBy:f.QY.STATUS}]}),(0,n.jsx)(i.nB,{cells:[{render:e=>{let t=(0,S.gl)(e),s=(0,S.PX)(e);return w?(0,n.jsxs)(c.st,{children:[(0,n.jsx)(c.mH,{children:this.renderPaymentMethod(e)}),t&&(0,n.jsxs)(c.HL,{color:"grayBase",withIconRight:!0,children:[`${(0,g.C8)(j.D,s,r)} id ${t}`,e.status===f.XQ.PROCESSING&&(0,n.jsx)(b.A,{id:_.T7.REFRESH_CW,width:14,height:14,color:"grayBase",onClick:()=>{this.handlePullStatus(e)}})]})]}):(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(p.e,{fallback:(0,l.yC)(this.getEntityName(e)),width:40,height:40,url:e.emitter_group?.logo||e.emitter_user?.profile_picture}),(0,n.jsxs)(c.st,{children:[(0,n.jsx)(T.A,{onClick:()=>{this.handleOpenEntity(e)},permission:{type:I.gD.VIEW,module:I.e$.ACCOUNTS},children:(0,n.jsx)(c.IV,{padding:"0 0 0 16px",align:"left",children:this.getEntityName(e)})}),(0,n.jsx)(c.mH,{padding:"0 0 0 16px",children:this.renderPaymentMethod(e)}),t?(0,n.jsxs)(c.HL,{withIconRight:!0,padding:"0 0 0 16px",color:"grayBase",children:[`${(0,g.C8)(j.D,s,r)} id ${t}`,e.status===f.XQ.PROCESSING&&(0,n.jsx)(b.A,{id:_.T7.REFRESH_CW,width:14,height:14,color:"grayBase",onClick:()=>{this.handlePullStatus(e)}})]}):e.status===f.XQ.PROCESSING?(0,n.jsx)(c.HL,{padding:"0 0 0 16px",color:"grayBase",children:r.t("constants.invoices.constant.processing-payment")}):null]})]})}},{render:e=>{let t=e.cancelled||e.status===f.XQ.FAILED?"red":"green";return(0,n.jsxs)(c.st,{children:[(0,n.jsx)(c.nB,{color:t,children:(0,l.$g)(a.currency,!0,e.amount,e.amount)}),!!e.processing_fee_amount&&(0,n.jsx)(c.HL,{color:"grayBase",children:r.t("pages.transactions.table-payments.amount.processing-fee.included",{fees:(0,l.$g)(a.currency,!1,e.processing_fee_amount)})})]})}},{render:e=>(0,n.jsxs)(c.st,{children:[(0,n.jsx)(c.nB,{children:(0,d.Cd)(e.payment_date,a.time_zone).format("lll")}),e.cancelled&&(0,n.jsx)(c.HL,{color:"red",children:r.t("pages.transactions.table-payments-head-cell-cancellation-date",{date:(0,d.Cd)(e.cancellation_date,a.time_zone).format("lll")})})]})},{render:e=>this.getInvoiceOrCreditNoteLink(e),hide:!this.context.hasPermission({type:I.gD.VIEW,module:I.e$.INVOICES})},{render:this.getStatus}]})]})}
1constructor(...e){super(...e),this.getStatus=e=>{let{i18n:t,spaceSelected:s}=this.props,o=(0,S.PX)(e);if(e.cancelled)return(0,n.jsx)(R.qc,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-cancelled")});if(e.recipient_type===f.oO.SPACE)if(e.status===f.XQ.FAILED)return(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(R.qc,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-failed")}),(0,n.jsxs)(k.m_,{placement:"bottom-end",children:[(0,n.jsx)(k.k$,{children:(0,n.jsx)(b.A,{id:_.T7.INFO,height:18,width:18,color:"black",cursor:"pointer"})}),(0,n.jsx)(k.ZI,{children:o===j.M.STRIPE?t.t([`backend_messages:stripe.${e.error_code}`,"backend_messages:stripe.unknown"]):e.error_code})]})]});else if(e.status===f.XQ.PROCESSING)return(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(R.Dc,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-processing")}),""!==e.note&&(0,n.jsxs)(k.m_,{placement:"bottom-end",children:[(0,n.jsx)(k.k$,{children:(0,n.jsx)(b.A,{id:_.T7.INFO,height:18,width:18,color:"black",cursor:"pointer"})}),(0,n.jsx)(k.ZI,{children:e.note})]})]});else return(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(R.ue,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-success")}),""!==e.note&&(0,n.jsxs)(k.m_,{placement:"bottom-end",children:[(0,n.jsx)(k.k$,{children:(0,n.jsx)(b.A,{id:_.T7.INFO,height:18,width:18,color:"black",cursor:"pointer"})}),(0,n.jsx)(k.ZI,{children:e.note})]})]});return e.status===f.XQ.FAILED?(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(R.qc,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-refunded-failed")}),(0,n.jsxs)(k.m_,{placement:"bottom-end",children:[(0,n.jsx)(k.k$,{children:(0,n.jsx)(b.A,{id:_.T7.INFO,height:18,width:18,color:"black",cursor:"pointer"})}),(0,n.jsx)(k.ZI,{children:(0,d.Cd)(e.creation_date,s.time_zone).format("lll")})]})]}):(0,n.jsxs)(c.mH,{children:[(0,n.jsx)(R.iL,{margin:"0 8px 0 0",children:t.t("pages.transactions.table-payments-head-cell-refunded-success")}),(0,n.jsxs)(k.m_,{placement:"bottom-end",children:[(0,n.jsx)(k.k$,{children:(0,n.jsx)(b.A,{id:_.T7.INFO,height:18,width:18,color:"black",cursor:"pointer"})}),(0,n.jsx)(k.ZI,{children:(0,d.Cd)(e.creation_date,s.time_zone).format("lll")})]})]})},this.renderPaymentMethod=e=>{let{i18n:t}=this.props,s=(0,x.N0)(e.payment_account,t),o=(0,l._f)(e.payment_method),a=null;switch(e.payment_account.type){case x.QE.DIRECT_DEBIT:let r=v.LQ[e.payment_method?.type];a=r?(0,n.jsx)(c.xf,{height:26,width:26,src:r,margin:"0 4px 0 0"}):(0,n.jsxs)(c.mH,{margin:"0 4px 0 0",children:[(0,n.jsx)(b.A,{id:_.T7.BANK,height:26,width:26,color:"black"}),E.tm[e.payment_method?.type]?(0,n.jsx)(c.nB,{margin:"0 0 0 4px",children:E.tm[e.payment_method?.type]}):null]});break;case x.QE.CREDIT_CARD:let i=v.LQ[e.payment_method?.brand];a=i?(0,n.jsx)(c.xf,{height:26,width:26,src:i,margin:"0 8px 0 0"}):(0,n.jsxs)(c.mH,{margin:"0 4px 0 0",children:[(0,n.jsx)(b.A,{id:_.T7.CREDIT_CARD,height:26,width:26,color:"black"}),e.payment_method?.brand?(0,n.jsx)(c.nB,{margin:"0 0 0 4px",children:(0,l.ZH)(e.payment_method.brand)}):null]})}return(0,n.jsxs)(c.mH,{children:[a,o," ",s]})}}}O.contextType=P.x,O.propTypes={height:r().string,isFetching:r().bool,spaceSelected:r().object,payments:r().array,noDataPlaceholder:r().string,pagination:r().object,sorting:r().object,onLoadMore:r().func,onSortChange:r().func,openInvoicePreview:r().func,openSidePanel:r().func,margin:r().string,renderDropdownAction:r().func,view:r().string};let X=(0,g.Zz)(C.A,(0,y.Ng)(null,e=>({openCreditNotePreview:(t,s,n,o)=>e(w.A.open(t,s,n,o)),openInvoicePreview:(t,s,n,o)=>e(m.A.open(h.tm.PREVIEW,t,s,n,o)),openSidePanel:(t,s,n)=>e(u.A.push(t,s,n)),pullStatus:(t,s,n)=>e(A.A.pullStatus(t,s,n))})))(O)},12984:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(14836),o=s(85838),a=s(74635),r=s.n(a),i=s(49336),c=s(80834),p=s(23236),l=s(68190),d=s(80096),h=s(91024);class u extends i.Component{render(){let{children:e,permission:t,withEllipsis:s,margin:o,flex:a,color:r}=this.props,i=!t||this.context.hasPermission(t);return i&&this.props.onClick?(0,n.jsx)(c.wZ,{onClick:i?this.props.onClick:null,withEllipsis:s,margin:o,color:r,flex:a,children:e}):e}}u.contextType=h.x,u.propTypes={children:r().string.isRequired,withEllipsis:r().bool,margin:r().string,flex:r().string,color:r().str
1ing};let m=(0,l.Zz)(o.A,(0,d.Ng)(e=>({spaceSelected:(0,p.AK)(e.spaces.entities,{UUID:e.spaces.spaceUUIDSelected})})))(u)},16638:(e,t,s)=>{s.d(t,{f:()=>n});let n=s(4492).default.div.withConfig({componentId:"sc-a1c8886c-0"})(["display:flex;height:18px;width:18px;align-items:center;justify-content:center;background-color:",";border:1px solid ",";border-radius:50%;"],e=>e.backgroundColor?e.theme.color[e.backgroundColor]:e.theme.brand.primaryColor,e=>e.theme.color.white)},44913:(e,t,s)=>{s.d(t,{_:()=>r,e:()=>a});var n=s(18534),o=s(56434);let a=(0,n.Mz)(o.eu,({array:e,spaceUUID:t})=>e.filter(e=>e.relations.space_uuid===t).map(e=>({...e._}))),r=(0,n.Mz)(o.eu,({array:e,spaceUUID:t,entityType:s,entityUUID:n})=>e.filter(e=>e.relations.entity_uuid===n&&e.relations.entity_type===s&&e.relations.space_uuid===t).map(e=>({...e._})))},64908:(e,t,s)=>{s.d(t,{F:()=>o,X:()=>a});var n=s(4492);let o=n.default.sup.withConfig({componentId:"sc-aec7e65c-0"})(["width:6px;height:6px;border-radius:50%;margin:",";box-shadow:0 0 0 1px ",";background:",";"],e=>e.margin||"0",e=>e.theme.color.white,e=>e.theme.color[e.color||"green"]),a=n.default.sup.withConfig({componentId:"sc-aec7e65c-1"})(["height:16px;min-width:16px;border-radius:8px;padding:0 4px 0 4px;margin:",";font-size:",";background:",";display:flex;align-items:center;justify-content:center;color:",";box-sizing:content-box;z-index:1;"],e=>e.margin||"0",e=>e.theme.fontSize.extraSmallSize,e=>e.theme.color[e.color||"green"],e=>e.theme.color.white)},67850:(e,t,s)=>{s.d(t,{A:()=>C});var n=s(14836),o=s(49336),a=s(74635),r=s.n(a),i=s(1518),c=s(83120),p=s(68190),l=s(85838),d=s(80856),h=s(19114),u=s(79196),m=s(38809);class g extends o.Component{render(){let{i18n:e,form:t,spaceSelected:s,filtersDisplayed:o,rightContent:a,persistURL:r}=this.props;return(0,n.jsxs)(i.Ay,{form:t,rightContent:a,persistURL:r,children:[(0,d.aN)(o,h.As.SEARCH)&&(0,n.jsx)(i.G2,{name:h.As.SEARCH,isPersisted:!0,title:e.t("pages.payments.filter-field-search-user-title"),placeholder:e.t("pages.payments.filter-field-search-user-placeholder"),isResettable:!0}),(0,d.aN)(o,h.As.DATE_RANGE)&&(0,n.jsx)(c.A,{title:e.t("pages.payments.filter-field-date-title"),names:h.As.DATE_RANGE,isPersisted:!0,dateFormat:s.date_format,timeZone:s.time_zone,firstDayOfWeek:s.first_day_of_week,renderValue:t=>(0,c.F)(e,t,s.date_format,s.time_format,s.time_zone,s.half_day_break),isResettable:!0}),(0,d.aN)(o,h.As.CHARGE_ID)&&s.integrations.stripe&&(0,n.jsx)(i.G2,{name:h.As.CHARGE_ID,isPersisted:!0,title:e.t("pages.payments.filter-field-search-stripe-id-title"),placeholder:e.t("pages.payments.filter-field-search-stripe-id-placeholder"),isResettable:!0}),(0,d.aN)(o,h.As.STATUS)&&(0,n.jsx)(i.Jt,{title:e.t("pages.payments.filter-status-title"),name:h.As.STATUS,isPersisted:!0,inputProps:{placeholder:e.t("pages.payments.filter-status-placeholder")},renderValue:t=>{let s=t.map(t=>(0,p.C8)(h.nW,t,e));return(0,u.HB)(e,s)},allowMultipleChoices:!0,isHighlightable:!0,isResettable:!0,groupElements:[{name:e.t("pages.payments.filter-status-placeholder"),primaryKey:"name",valueKey:"value",items:(0,p.WH)(h.nW,e)}],filterIcon:{id:m.T7.CHECK_LIST}})]})}}g.propTypes={spaceSelected:r().object,form:r().string,filtersDisplayed:r().arrayOf(r().oneOf(Object.values(h.As))),rightContent:r().node,persistURL:r().bool};let C=(0,p.Zz)(l.A)(g)},80260:(e,t,s)=>{s.d(t,{a:()=>i});var n=s(17949),o=s(31008),a=s(77224),r=s(52297);let i=(e,t,s,i,c)=>{i.json({event:"subscribe",destination:`/spaces/${s.uuid}/files/${c.uuid}`}),n.oR.loading(e.t("pages.reports.toast.generating-report"),{id:c.uuid,action:(0,r.oI)(s.features)?{label:e.t("pages.reports.toast.generating-report.action"),onClick:()=>t.push((0,o.fB)(a.PAGES.DOWNLOADS,{spaceDomain:t.query.spaceDomain}))}:null,classNames:{actionButton:"toast-action-button"}})}},83120:(e,t,s)=>{s.d(t,{A:()=>l,F:()=>r.FM});var n=s(14836),o=s(49336),a=s(3860),r=s(39464),i=s(23864),c=s(38809);class p extends o.Component{static{this.defaultProps={filterIcon:{id:c.T7.CALENDAR}}}render(){let{names:e,fieldValidation:t,...s}=this.props;return(0,n.jsx)(i.A,{component:r.Ay,names:e,validate:t,...s})}}p.propTypes=r.tu;let l=(0,a.A)({width:a.F.DOUBLE})(p)},83276:(e,t,s)=>{s.d(t,{d:()=>w,F:()=>S});var n=s(14836),o=s(36287),a=s(49336),r=s(80096),i=s(68190),c=s(57192),p=s(30355),l=s(83151),d=s(13758),h=s(23034),u=s(23236),m=s(66950),g=s(24789),C=s(90810),y=s(28954),x=s(14264),f=s(56672),b=s(17949),_=s(85838),R=s(77224);let w=(0,a.createContext)();w.displayName="socket";class A extends a.Component{componentDidMount(){let{spaceSelected:e,router:t}=this.props;e&&!R.PUBLIC_PAGES.includes(t.route)&&this.initSocket(this.props)}componentDidUpdate(e,t){this.props.spaceSelected&&null===this.ws&&!R.PUBLIC_PAGES.includes(this.props.router.route)&&this.initSocket(this.props)}componentWillUnmount(){this.ws&&this.ws.close()}initSocket(e,t){this.ws&&(this.ws.close(),clearTimeout(this.refreshTimeout)),this.ws=new c.A(this.getWsUrl(e,t),{timeout:5e3,maxAttempts:1/0,onmessage:this.handleOnMessage,onopen:()=>{this.setState({open:!0}),Object.values(this.consumers).map(e=>{e()})},onclose:e=>{if([1e3,1001,1005].includes(e.code)){let e=setTimeout(()=>{this.ws.reconnect(),clearTimeout(e)},5e3)}this.setState({open:!1})}})}getWsUrl(e){let t="https:"===window.location.protocol?"wss://":"ws://",s=window.location.hostname,n=window.location.port,o="&path-origin="+e.router.pathname;return`${t}${s}:${n}/ws?X-Platform=web${o}`}render(){return(0,n.jsx)(w.Provider,{value:{ws:{json:this.json,send:this.send,onConnectionRestored:this.subscribeConsumer}},children:this.props.children})}constructor(...e){super(...e),this.consumers={},this.lastConsumerId=0,this.ws=null,this.state={open:!1},this.handleOnMessage=e=>{let{me:t,i18n:s}=this.props,n=JSON.parse(e.data);if(n.hasOwnProperty("event"))switch(n.event){case"ping":this.props.updateVersion(n.data.version);break;case"data":switch(n.data.type){case"team":switch(n.data.action){case"new-not-read-post-channel":n.data.user_uuid!==t.uuid&&this.props.incrementNotReadCountChannel(n.data.team_uuid);break;case"not-read-count-change-channel":this.props.updateNotReadCountChannel(n.data.team_uuid,n.data.count)}break;case"conversation":switch(n.data.action){case"new_conversation":let o=JSON.parse(n.data.value);this.props.addConversation(o);break;case"new_post":let a=JSON.parse(n.data.value);this.props.conversationAddPost(n.data.conversation_uuid,t,a);break;case"read_all":this.props.conversationReadAll(n.data.conversation_uuid);break;case"typing":let r=setTimeout(()=>{this.props.conversationRemoveTyping(n.data.conversation_uuid,n.data.user_uuid)},3e3);this.props.conversationAddTyping(n.data.conversation_uuid,n.data.user_uuid,r)}break;case"user":switch(n.data.action){case"new-not-read-post-conversation":n.data.user_uuid!==t.uuid&&this.props.incrementNotReadCountConversation();break;case"not-read-count-change-conversation":this.props.updateNotReadCountConversation(n.data.count)}break;case"file":switch(n.data.action){case"generation-completed":let c=JSON.parse(n.data.value);this.props.updateFile(c),b.oR.dismiss(c.uuid),b.oR.success(s.t("socket.file.generation-completed"),{action:{label:s.t("socket.file.generation-completed.action"),onClick:()=>(0,i.V3)(c.href)},classNames:{actionButton:"toast-action-button-success"}});break;case"generation-failed":this.props.updateFile(JSON.parse(n.data.value)),b.oR.error(s.t("socket.file.generation-failed"))}break;case"evacuation":"update-evacuation"===n.data.action&&this.props.updateEvacuation(JSON.parse(n.data.value));break;case"conference-room":switch(n.data.action){case"new-booking":this.props.addBooking(JSON.parse(n.data.value),this.props.spaceSelected?.uuid);break;case"update-booking":this.props.updateBooking(JSON.parse(n.data.value));break;case"cancel-booking":this.props.removeBooking(n.data.booking_uuid)}}}},this.json=e=>{try{this.ws.json(e)}catch(t){setTimeout(()=>{this.json(e)},200)}},this.send=e=>{try{this.ws.send(e)}catch(t){setTimeout(()=>{this.send(e)},200)}},this.subscribeConsumer=e=>{let t=++this.lastConsumerId;return this.consumers[t]=e,()=>{delete this.consumers[t]}}}}let S=(0,i.Zz)(o.withRouter,_.A,(0,r.Ng)(e=>({spaceSelected:(0,u.AK)(e.spaces.entities,{UUID:e.spaces.spaceUUIDSelected}),me:(0,f.OZ)(e.users.me)}),e=>({updateVersion:t=>{let s;return e((s=t,async e=>await e({type:p.rG.MESSAGE_BANNER_UPDATE_VERSION,version:s})))},conversationReadAll:t=>e(d.Ay.conversationsReadAll(t)),updateNotReadCountChannel:(t,s)=>e(m.Ay.teamsUpdateNotReadCount(t,s)),updateNotReadCountConversation:t=>e(g.Ay.meUpdateNotReadCount(t)),incrementNotReadCountChannel:t=>e(m.Ay.teamsIncrementNotReadCount(t)),incrementNotReadCountConversation:()=>e(g.Ay.meIncrementNotReadCount()),addConversation:t=>e(d.Ay.conversationsAddSuccess(t)),conversationAddPost:(t,s,n)=>Promise.all([e(h.Ay.postsAddForConversationSuccess(t,n)),e(d.Ay.c
1onversationsNewNotReadPost(t,s,n))]),conversationRemoveTyping:(t,s)=>e(d.Ay.conversationsUserStopTypingSuccess(t,s)),conversationAddTyping:(t,s,n)=>e(d.Ay.conversationsUserStartTypingSuccess(t,s,n)),openModal:(t,s,n)=>e(l.A.push(t,s,n)),updateFile:t=>e(C.Ay.fileUpdateSuccess(t)),updateEvacuation:t=>e(y.Ay.evacuationReportsUpdateSuccess(t)),addBooking:(t,s)=>e(x.Ay.bookingsGetSuccess({booking:t},{space_uuid:t.space?.uuid||s})),updateBooking:t=>e(x.Ay.bookingsUpdateSuccess({bookings:[t]})),removeBooking:t=>e(x.Ay.bookingsRemoveSuccess({bookingUUIDs:[t]}))})))(A)},86312:(e,t,s)=>{s.d(t,{A:()=>n});let n={exportAccountReceivableDetails:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/accountReceivableDetails`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),exportAccountReceivableSummary:(e,t,s,n,o)=>(a,r,i)=>new Promise((a,r)=>i.post(`${e.href}/reports/accountReceivableSummary`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,entityType:s,entityUUID:n,columns:o}}).then(({data:e})=>{a(e)}).catch(e=>{r(e)})),exportRentRoll:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/rentRoll`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),revenuePerGLAccount:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/revenuePerGLAccount`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportActiveDepositsSnapshot:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/activeDepositsSnapshot`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),exportDepositsHistory:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/depositsHistory`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportInvoiceSummary:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/invoiceSummary`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportSalesJournal:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/salesJournal`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportInvoices:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/invoiceLines`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportInvoicesByGLAccount:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/invoicesByGLAccount`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportSubscriptions:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/subscriptions`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportTransactions:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/transactions`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportBookings:(e,t,s,n,o,a,r)=>(i,c,p)=>new Promise((i,c)=>p.post(`${e.href}/reports/bookings`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,withCancelled:a,columns:r}}).then(({data:e})=>{i(e)}).catch(e=>{c(e)})),exportUsers:(e,t)=>(s,n,o)=>new Promise((s,n)=>o.post(`${e.href}/reports/users`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{columns:t}}).then(({data:e})=>{s(e)}).catch(e=>{n(e)})),exportPresenceLog:(e,t,s,n,o)=>(a,r,i)=>new Promise((a,r)=>i.post(`${e.href}
1/reports/presenceLog`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:s,endDate:n,columns:t,onlyInBuilding:o}}).then(({data:e})=>{a(e)}).catch(e=>{r(e)})),exportHealthCheckPoint:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/healthCheckPoint`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportEvents:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/events`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{eventUUID:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),exportVacancyLoss:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/subscriptionVacancyLoss`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportOccupancyRevenue:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/subscriptionOccupancyRevenue`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportOccupancySummary:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/subscriptionOccupancySummary`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),exportOccupancyDetails:(e,t,s)=>(n,o,a)=>new Promise((n,o)=>a.post(`${e.href}/reports/subscriptionOccupancyDetails`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{date:t,columns:s}}).then(({data:e})=>{n(e)}).catch(e=>{o(e)})),exportCreditNoteSummary:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/creditNoteSummary`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportCreditNotes:(e,t,s,n,o,a)=>(r,i,c)=>new Promise((r,i)=>c.post(`${e.href}/reports/creditNoteLines`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,entityType:n,entityUUID:o,columns:a}}).then(({data:e})=>{r(e)}).catch(e=>{i(e)})),exportVisits:(e,t,s,n)=>(o,a,r)=>new Promise((o,a)=>r.post(`${e.href}/reports/visits`,null,{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},params:{startDate:t,endDate:s,columns:n}}).then(({data:e})=>{o(e)}).catch(e=>{a(e)})),exportRawSubscriptions:(e,t,s,n,o)=>(a,r,i)=>new Promise((a,r)=>i.post(`${e.href}/reports/raw/subscriptions`,{columns:t,filters:s,period_start_date:n,period_end_date:o},{headers:{"Cache-Control":"no-cache","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).then(({data:e})=>{a(e)}).catch(e=>{r(e)}))}},92032:(e,t,s)=>{s.d(t,{e:()=>c});var n=s(4492),o=s(64908),a=s(66858),r=s(16638);let i=(0,n.keyframes)(["0%,20%,50%,80%,100%{transform:translateY(0);}40%{transform:translateY(-10px);}60%{transform:translateY(-5px);}"]),c=n.default.div.withConfig({componentId:"sc-283598a-0"})(["border:",";width:",";height:",";min-width:",";min-height:",";background-image:url(",");background-color:",";background-position:center center;background-repeat:no-repeat;background-size:",";position:relative;margin:",";border-radius:",";margin:",";cursor:",";animation:",";> ","{position:absolute;display:",";left:100%;top:-2px;transform:translateX(-50%);}> ","{position:absolute;top:-10px;left:100%;transform:translateX(-50%);display:",";}> ","{position:absolute;bottom:-4px;right:-4px;display:",";}&:after{position:absolute;color:",";left:0;top:0;padding-top:",";width:",";height:",";font-size:","px;text-align:center;line-height:",";font-family:",";font-weight:300;content:",";}"],e=>e.borderColor?`1px solid ${e.theme.color[e.borderColor]}`:"none",e=>e.width?e.width+"px":"48px",e=>e.height?e.height+"px":"48px",e=>e.width?e.width+"px":"48px",e=>e.height?e.height+"px":"48px",e=>e.url,e=>e.url?e.theme.color.white:e.theme.color[e.backgroundColor]||e.theme.brand.primaryColor,e=>e.backgroundSize||"contain",e=>e.margin||0,e=>(0,a.px)(e.theme.borderRadius.button),e=>e.margin||0,e=>e.onClick?"pointer":e.cursor||"default",e=>e.bounce?(0,n.css)([""," 2s ease-in-out infinite;"],i):"none",o.F,e=>e.badge?"block":"none",o.X,e=>e.badge?"flex":"none",r.f,e=>e.badge?"flex":"none",e=>(0,a.HQ)(e.theme.brand.primaryColor),e=>e.paddingTop?e.paddingTop:"0",e=>e.width?e.width+"px":"48px",e=>e.height?e.height+"px":"48px",e=>e.width/2.6,e=>e.height?e.width+"px":"48px",e=>e.theme.font,e=>""!==e.url&&e.url?"":'"'+e.fallback+'"')},97931:(e,t,s)=>{s.d(t,{E0:()=>p,PX:()=>c,gl:()=>i});var n=s(88681),o=s(13524),a=s(32579),r=s(68190);let i=e=>e.stripe_data?.stripe_charge_id||e.go_cardless_data?.payment_id,c=e=>e.stripe_data?n.M.STRIPE:e.go_cardless_data?n.M.GO_CARDLESS:null,p=(e,t,s)=>{let{capabilities:i={}}=t||{},c=e===n.M.STRIPE?o.Ex:a.E;return Object.keys(i).filter(e=>i[e]).map(e=>({name:(0,r.C8)(c,e,s),value:e}))}}}]);
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.