PageSourceSearch

https://my.freedomfirst.com/en/js/bannoweb-merchant-dashboard-JeCEQlVu.js

js freedomfirst.com collected 2026-10-01 15:29:31 UTC 15,997 bytes, 1 lines download raw bytes

1import{a as e}from"./standalone-app-Bj-IdwrG.js";import{E as t,_ as n,p as r,x as i}from"./institution-DyFDvNu6.js";import{t as a}from"./paths-BjKNBopk.js";import{t as o}from"./page-B8YwBOEr.js";import{E as s,_r as c,o as l,s as u,sn as d,vr as f,w as p}from"./main-5Sl8yySz.js";import"./jha-progress-CjUOO3no.js";import"./jha-card-DC-UH8vN.js";import"./jha-card-header-D2XWRnD9.js";import"./jha-button-Dyau4S4K.js";import"./jha-link-button-k4YCp-l3.js";import{r as m}from"./banno-styles-B3iGgKv1.js";import"./jha-dropdown-toggle-BD-PhqOy.js";import"./jha-list-UCQUTbOQ.js";import"./bannoweb-page-container-G_uPsQAr.js";import"./bannoweb-currency-B8mbcVJL.js";import{n as h}from"./string-util-D36Fq-Ug.js";import{A as g}from"./merchant-utils-DCUCb9GZ.js";import{t as _}from"./merchant-tracking-CnFJvGHZ.js";import"./bannoweb-merchant-activity-card-item-C54xhUY1.js";window.BannowebMerchantRevenueCard=class extends n{static get is(){return`bannoweb-merchant-revenue-card`}static get styles(){return t`jh-icon-triangle-exclamation{fill:var
1(--body-text-alert-color);width:20px;height:20px;margin-right:4px}jh-icon-arrow-circle-dollar-sign{fill:var(--body-text-secondary-color)}jha-progress{margin-right:4px}jha-list{gap:8px;padding:0 14px 14px 24px;display:flex}jha-list-item{box-sizing:border-box;flex:68px;min-width:68px;padding:0 2px}jha-list-item:last-of-type{justify-content:flex-end;align-items:center;display:flex}.content{flex-direction:column;display:flex}.title{color:var(--body-text-primary-color);padding:12px 24px;font-size:16px;font-style:normal;font-weight:500}.subtitle{color:var(--body-text-secondary-color);font-size:14px;font-style:normal;font-weight:400}.body{color:var(--body-text-primary-color);font-size:28px;font-style:normal}.footer{color:var(--body-text-secondary-color);white-space:nowrap;align-items:center;padding:12px 0;font-size:12px;font-style:normal;font-weight:400;display:flex}.fail{color:var(--body-text-secondary-color);align-items:center;margin-top:8px;font-size:14px;font-style:normal;font-weight:400;display:flex}.fail>div{display:flex}.try-again{margin-left:10px}`}static get properties(){return{revenue:{type:Object},loading:{type:Boolean},didFail:{type:Boolean}}}constructor(){super(),e(()=>import(`./icon-triangle-exclamation-CLDVL6G-.js`).then(e=>e.t),[]),e(()=>import(`./icon-arrow-circle-dollar-sign-u1h8xri1.js`),[]),this.loading=!1,this.didFail=!1,this.revenue={}}connectedCallback(){super.connectedCallback(),this.getRevenueData()}disconnectedCallback(){super.disconnectedCallback(),this.didFail=!1}async getRevenueData(){try{this.loading=!0,this.revenue=await l.merchantController.getMoovRevenue(),this.loading=!1}catch{this.loading=!1,this.didFail=!0}}maybeRenderDidFail(){return!this.didFail||this.loading?``:i`<div class="fail"> <jh-icon-triangle-exclamation></jh-icon-triangle-exclamation> ${`Failed to load sales.`} <jha-button @click="${this.getRevenueData}" link class="try-again" sync> ${`Try again`} </jha-button> </div>`}maybeRenderData(){return this.didFail||this.loading?``:i`<span class="body">$${this.revenue?.currentBalance}</span> <span class="footer"> <jh-icon-arrow-circle-dollar-sign></jh-icon-arrow-circle-dollar-sign> ${`Maintains \$${this.revenue?.maintainedDailyBalance} daily balance`} </span>`}renderPayments(){return this.revenue?.payments?this.revenue?.payments:0}handleAcceptPaymentClick(){_.trackQuickActionSelected()}maybeRenderLoadingSales(){return this.loading?i`<div> <jha-progress></jha-progress> ${`Loading sales…`} </div>`:``}maybeRenderSalesVolTitle(){return this.didFail?``:i`<span class="subtitle">${`Sales volume`}</span>`}maybeRenderPayments(){return this.loading||this.didFail?``:i`<jha-list-item> <div class="content"> <span class="subtitle">${`Payments`}</span> <div class="body">${this.renderPayments()}</div> </div> </jha-list-item>`}render(){return i`<jha-card .loading="${this.loading}"> <div class="title">${h(`today`)}</div> <jha-list borderless> <jha-list-item> <div class="content"> ${this.maybeRenderSalesVolTitle()} <div class="${`${this.didFail?``:`content`}`}"> ${this.maybeRenderDidFail()} ${this.maybeRenderLoadingSales()} ${this.maybeRenderData()} </div> </div> </jha-list-item> ${this.maybeRenderPayments()} <jha-list-item> <jha-link-button href="/merchant/accept-payment" @click="${this.handleAcceptPaymentClick}">${`Accept payment`}</jha-link-button> </jha-list-item> </jha-list> </jha-card>`}},customElements.define(window.BannowebMerchantRevenueCard.is,window.BannowebMerchantRevenueCard),window.BannowebMerchantRevenueCard;var v=[{name:`All`,key:`all`},{name:`Refunded`,key:`refunded`},{name:`Canceled`,key:`canceled`},{name:`Disputed`,key:`disputed`},{name:`Failed`,key:`failed`}];window.BannowebMerchantActivityFilter=class extends n{static get is(){return`bannoweb-merchant-activity-filter`}static get styles(){return t`jha-dropdown-menu-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;gap:8px;height:40px;padding:5px 16px;display:flex}jha-dropdown-menu-item>div{flex:1;justify-content:space-between;width:100%;display:flex}`}static get properties(){return{selected:{type:String}}}constructor(){super(),e(()=>import(`./icon-sliders-CuANG8sJ.js`).then(e=>e.t),[]),e(()=>import(`./icon-checkmark-Apyd0pTN.js`).then(e=>e.t),[]),this.selected=`all`}async handleMenuClick(e){this.selected=e,this.dispatchEvent(new CustomEvent(`filter-click`,{bubbles:!0,composed:!0,detail:this.selected.toLowerCase()}))}maybeRenderCheckIcon(e){return e?i`<jh-icon-checkmark></jh-icon-checkmark>`:``}render(){return i`<jha-dropdown focus-matching-item> <jha-dropdown-toggle id="accountDropdownToggle" slot="toggle"> <jh-icon-sliders></jh-icon-sliders> </jha-dropdown-toggle> <jha-dropdown-menu id="menu"> ${v.map(e=>i`<jha-dropdown-menu-item @click="${()=>this.handleMenuClick(e.key)}"> <div>${e.name} ${this.maybeRenderCheckIcon(e.key===this.selected)}</div> </jha-dropdown-menu-item>`)} </jha-dropdown-menu> </jha-dropdown>`}},customElements.define(window.BannowebMerchantActivityFilter.is,window.BannowebMerchantActivityFilter);var y=20;
1window.BannowebMerchantActivityCard=class extends n{static get is(){return`bannoweb-merchant-activity-card`}static get properties(){return{loading:{type:Boolean},activities:{type:Array},loadActivityFail:{type:Boolean},offset:{type:Number},currentFilter:{type:String}}}constructor(){super(),e(()=>import(`./icon-chevron-right-small-BraCudZ4.js`).then(e=>e.t),[]),e(()=>import(`./icon-sliders-CuANG8sJ.js`).then(e=>e.t),[]),e(()=>import(`./icon-triangle-exclamation-CLDVL6G-.js`).then(e=>e.t),[]),e(()=>import(`./icon-circle-exclamation-CPV1Eg_u.js`).then(e=>e.t),[]),e(()=>import(`./icon-arrow-dashed-rotate-left-zgm8dUnJ.js`),[]),e(()=>import(`./icon-circle-xmark-CYluEXDt.js`).then(e=>e.t),[]),e(()=>import(`./icon-credit-card-Cu3zVklN.js`).then(e=>e.t),[]),e(()=>import(`./icon-arrow-right-arrow-left-CYw-5ETv.js`),[]),e(()=>import(`./icon-list-ul-BrCaUD18.js`),[]),this.moovTransferSubscription=null,this.loading=!1,this.loadActivityFail=!1,this.accounts=l.store.accounts,this.activities=l.store.merchantMoovTransfer,this.offset=y,this.currentFilter=``}connectedCallback(){super.connectedCallback(),this.moovTransferSubscription=r.from(l.merchantController).subscribe(this.moovTransferObserver.bind(this)),this.refetchActivities()}disconnectedCallback(){super.disconnectedCallback(),this.moovTransferSubscription?.unsubscribe()}static get styles(){return[m,t`jh-icon-list-ul{fill:var(--body-text-secondary-color)}.loading{flex-direction:column;justify-content:center;align-items:center;padding-bottom:44px;display:flex}.activity-fail{flex-direction:column;align-items:center;padding:40px 32px;display:flex}.activity-fail span{color:var(--body-text-secondary-color)}.no-payments{color:var(--body-text-secondary-color);flex-direction:column;align-items:center;padding:40px 32px;font-size:14px;font-style:normal;font-weight:400;display:flex}.activity-fail jha-button{padding-top:16px}
1jh-icon-triangle-exclamation{fill:var(--body-text-alert-color)}.more-button{justify-content:flex-end;padding:24px;display:flex}`]}moovTransferObserver({type:e}){switch(e){case u.EventName.MOOV_TRANSFER_ACTIVITY_SUCCESS:this.loadActivity(),this.loading=!1;break;case u.EventName.MOOV_TRANSFER_ACTIVITY_FILTER_SUCCESS:this.loadActivity(),this.requestUpdate(void 0,void 0),this.loading=!1;break;case u.EventName.MOOV_TRANSFER_ACTIVITY_FAIL:this.handleLoadFail(),this.loading=!1;break;default:break}}maybeRenderLoading(){if(this.loading)return i`<jha-list-item class="loading"> <jha-progress></jha-progress> Loading activity... </jha-list-item>`}async handleMenuItemClick({detail:e}){if(this.currentFilter=e,e!==`all`&&_.trackActivityFiltered(e,!1),this.loading=!0,e===`all`){this.offset=y,await l.merchantController.getActivities(null,0,!0),this.requestUpdate(void 0,void 0);return}this.loading=!0,this.loadActivityFail=!1,this.requestUpdate(void 0,void 0),await l.merchantController.getActivities(e,0,!0),this.loading=!1,this.requestUpdate(void 0,void 0),this.offset=y}async handleLoadMore(){_.trackSeeMoreActivity(),await l.merchantController.getActivities(this.currentFilter,this.offset),this.offset+=y,this.requestUpdate(void 0,void 0)}renderCardHeaderTitle(){return i`<jha-card-header slot="header"> <h1>${`Activity`}</h1> <bannoweb-merchant-activity-filter @filter-click="${this.handleMenuItemClick}" slot="header-right"></bannoweb-merchant-activity-filter> </jha-card-header>`}loadActivity(){this.activities=l.store.merchantMoovTransfer}async refetchActivities(){this.loadActivityFail=!1,this.loading=!0,await l.merchantController.getActivities(null,0,!0)}handleLoadFail(){this.loadActivityFail=!0}maybeRenderLoadFail(){return this.loadActivityFail?i`<div class="activity-fail"> <jh-icon-triangle-exclamation></jh-icon-triangle-exclamation> <span>Failed to load payment activity</span> <jha-button link @click="${this.refetchActivities}">${`Try again`}</jha-button> </div>`:``}maybeRenderNoActivity(){return this.loading||this.activities?.items.length?``:i`<jha-list-item> <span class="no-payments"> <jh-icon-list-ul></jh-icon-list-ul> ${`No recent payments`} </span> </jha-list-item>`}maybeRenderMore(){return this.offset>this.activities?.items.length?``:i`<jha-button sync .isLoading="${this.loading}" @click="${this.handleLoadMore}"> ${`Load more`} </jha-button>`}renderActivityList(){return i`${this.activities?.items?.map(e=>i`<jha-list-item id="ACTIVITY"> <bannoweb-merchant-activity-card-item .transfer="${e}"></bannoweb-merchant-activity-card-item> </jha-list-item>`)} <div class="more-button">${this.maybeRenderMore()}</div>`}render(){return i`<jha-card> ${this.renderCardHeaderTitle()}${this.maybeRenderNoActivity()} ${this.renderActivityList()} ${this.maybeRenderLoading()} ${this.maybeRenderLoadFail()} </jha-card>`}},customElements.define(window.BannowebMerchantActivityCard.is,window.BannowebMerchantActivityCard),window.BannowebMerchantActivityCard,window.BannowebMerchantActionLinks=class extends n{static get is(){return`bannoweb-merchant-action-links`}static get properties(){return{showProductCatalog:{type:Boolean},showCustomers:{type:Boolean},showInvoices:{type:Boolean}}}constructor(){super(),e(()=>import(`./icon-link-DsE1lPG1.js`),[]),e(()=>import(`./icon-users-Dck-hzdT.js`).then(e=>e.t),[]),e(()=>import(`./icon-triangle-exclamation-CLDVL6G-.js`).then(e=>e.t),[]),e(()=>import(`./icon-folder-Dudtoxey.js`),[]),e(()=>import(`./icon-document-wIRJ9smp.js`).then(e=>e.t),[]),this.showProductCatalog=!1,this.showCustomers=!1,this.showInvoices=!1,d.evaluate(p.PRODUCT_CATALOG).then(e=>{this.showProductCatalog=e}),d.evaluate(p.CUSTOMERS).then(e=>{this.showCustomers=e}),d.evaluate(p.INVOICES).then(e=>{this.showInvoices=e})}static get styles(){return[m,t`a{text-decoration:none}.icon{fill:var(--body-text-theme-color);padding:16px}jha-button,jha-list-item{display:flex}.link-group{align-items:center;display:flex}.link-group span{color:var(--body-text-primary-color);font-size:14px;font-style:normal;font-weight:500}`]}handleNavItemClick(){_.trackNavMenuItemSelected()}renderLinks(){return[{title:`Payment links`,icon:i`<jh-icon-link class="icon"></jh-icon-link>`,href:a.BANNOWEB_MERCHANT_LINKS,showIf:!0},{title:`Customers`,icon:i`<jh-icon-users class="icon"></jh-icon-users>`,href:a.BANNOWEB_MERCHANT_CUSTOMERS,showIf:this.showCustomers},{title:`Invoices`,icon:i`<jh-icon-document class="icon"></jh-icon-document>`,href:a.BANNOWEB_MERCHANT_INVOICES,showIf:this.showInvoices},{title:`Disputes`,icon:i`<jh-icon-triangle-exclamation class="icon"></jh-icon-triangle-exclamation>`,href:a.BANNOWEB_MERCHANT_DISPUTES,showIf:!0},{title:`Product catalog`,icon:i`<jh-icon-folder class="icon"></jh-icon-folder>`,href:a.BANNOWEB_MERCHANT_PRODUCT_CATALOG,showIf:this.showProductCatalog}
1].filter(e=>e?.showIf).map(e=>i`<jha-list-item no-padding> <a href="${e.href}" class="reset" link @click="${this.handleNavItemClick}"> <div class="link-group"> <span>${e.icon}</span> <span>${e.title}</span> </div> </a> </jha-list-item>`)}render(){return i`<jha-card> <jha-list>${this.renderLinks()}</jha-list> </jha-card>`}},customElements.define(window.BannowebMerchantActionLinks.is,window.BannowebMerchantActionLinks),window.MerchantSettingsCard=class extends n{static get is(){return`merchant-settings-card`}static get styles(){return[m,t`jha-list-item{padding:16px 28px;display:flex}.link-group{align-items:center;display:flex}.link-group span{color:var(--body-text-primary-color);font-size:14px;font-style:normal;font-weight:500}.link{color:var(--body-text-primary-color);align-items:center;width:100%;text-decoration:none;display:flex}`]}handleNavItemClick(){_.trackNavMenuItemSelected()}maybeRenderButtonLink(e){return e?.path?i`<button class="reset" link> <div class="link-group"> <a href="${e.path}" class="link" @click="${this.handleNavItemClick}"> <span>${e.title}</span> </a> </div> </button>`:i`<div class="link-group"> <span>${e.title}</span> </div>`}renderLinks(){return[{title:`Settings`,path:null},{title:`Account info`,path:`/merchant/account-info`}].map(e=>i`<jha-list-item>${this.maybeRenderButtonLink(e)}</jha-list-item>`)}render(){return i`<jha-card> <jha-list>${this.renderLinks()}</jha-list> </jha-card>`}},customElements.define(window.MerchantSettingsCard.is,window.MerchantSettingsCard);var b=f(n,`fadeinup`);window.BannowebMerchantDashboard=class extends b{static get is(){return`bannoweb-merchant-dashboard`}static get styles(){return t`:host{background-size:100%;flex:1 0 auto;display:block}.columns{margin:42px 0;display:flex}.columns>div:first-child{flex:7 1 0;margin-right:16px}.columns>div{flex:5 0 0}.desktop{display:block}.mobile{display:none}@media (width<=1200px){.columns>div:first-child,.columns>div{flex:50%}}@media (width<=1024px){.columns{margin-top:18px}}@media (width<=768px){.desktop{display:none}.mobile{display:block}.columns{flex-direction:column;max-width:512px;margin:18px auto}.columns>div:first-child{margin:0}}`}static get properties(){return{enrollmentStatus:{type:Boolean}}}constructor(){super(),this.enrollmentStatus=l.merchantController.getStoredEnrollmentStatus()}handleEnrollmentStatus(){(!this.enrollmentStatus||!g(this.enrollmentStatus))&&c.go(`/merchant/enroll`)}async routeEnter(e,t,n,r){return o.setTitle(`Merchant`),this.handleEnrollmentStatus(),this.enrollmentStatus&&g(this.enrollmentStatus)&&_.trackScreenView(s.TAP2LOCAL_MERCHANT_HOME),super.routeEnter(e,t,n,r)}render(){return!this.enrollmentStatus||!g(this.enrollmentStatus)?``:i`<bannoweb-page-container heading="Merchant"> <div class="columns"> <div> <bannoweb-merchant-revenue-card></bannoweb-merchant-revenue-card> <bannoweb-merchant-activity-card></bannoweb-merchant-activity-card> </div> <div> <bannoweb-merchant-action-links></bannoweb-merchant-action-links> <merchant-settings-card></merchant-settings-card> </div> </div> </bannoweb-page-container>`}},customElements.define(window.BannowebMerchantDashboard.is,window.BannowebMerchantDashboard);var x=window.BannowebMerchantDashboard;export{x as default};

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.