@everymatrix/transaction-history-page 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-O2SBlx9E.js → CashierHeader-5zy8g8OM.js} +1291 -1293
- package/components/{CashierHeader-D2AS2Agh.js → CashierHeader-D8XyDtbQ.js} +1184 -1186
- package/components/CashierHeader-WepsG79s.cjs +21 -0
- package/components/{CashierPagination-Diod1lF7.js → CashierPagination-BAxf9S89.js} +17 -17
- package/components/{CashierPagination-n1Rdi6TE.js → CashierPagination-DS04u5aL.js} +17 -17
- package/components/{CashierPagination-Bns0dhAx.cjs → CashierPagination-OH0bY8kI.cjs} +1 -1
- package/components/{CashierTransactionHistory-BzBY38xi.js → CashierTransactionHistory-Bi_Dg1r7.js} +68 -68
- package/components/{CashierTransactionHistory-CpakWe7E.js → CashierTransactionHistory-D9vfwQXz.js} +68 -68
- package/components/{CashierTransactionHistory-DK_T0y3K.cjs → CashierTransactionHistory-DFJD2BIp.cjs} +1 -1
- package/components/{EmptyStateIcon-Bvkg_gUP.js → EmptyStateIcon-BKTXVMxl.js} +6 -6
- package/components/{EmptyStateIcon-CG990aV4.cjs → EmptyStateIcon-BXdFAthb.cjs} +1 -1
- package/components/{EmptyStateIcon-Cnh2o5D9.js → EmptyStateIcon-BmntjMXF.js} +6 -6
- package/components/{Tooltip-CMYgN8-J.cjs → Tooltip-CH7HmcK4.cjs} +1 -1
- package/components/{Tooltip-D0aX_eaK.js → Tooltip-WAE69Wpz.js} +15 -15
- package/components/{Tooltip-DwUjXU5S.js → Tooltip-XvNWUv3X.js} +15 -15
- package/components/{TransactionHistoryCalendar-CKgc5oRI.js → TransactionHistoryCalendar-0sP18oSc.js} +86 -86
- package/components/{TransactionHistoryCalendar-C4hh4GPW.cjs → TransactionHistoryCalendar-CPC6t2gm.cjs} +1 -1
- package/components/{TransactionHistoryCalendar-Bcq3t082.js → TransactionHistoryCalendar-gsjAens0.js} +84 -84
- package/components/{TransactionHistoryPage-BXabEQ9K.cjs → TransactionHistoryPage-Bwb8fcJm.cjs} +1 -1
- package/components/{TransactionHistoryPage-ByF3ZH_-.js → TransactionHistoryPage-DN_C6xIV.js} +60 -60
- package/components/{TransactionHistoryPage-CkZ1QpWE.js → TransactionHistoryPage-DOP2l34z.js} +57 -57
- package/components/{TxnStatusIcon-BhenBY5o.js → TxnStatusIcon-BkEEMoFp.js} +19 -19
- package/components/{TxnStatusIcon-vTgFujrK.cjs → TxnStatusIcon-CknmbHtX.cjs} +1 -1
- package/components/{TxnStatusIcon-CYWQkX_B.js → TxnStatusIcon-ajCxZslH.js} +19 -19
- package/components/{TxnTypeIcons-D2uk1QXc.js → TxnTypeIcons-D70zalMR.js} +14 -14
- package/components/{TxnTypeIcons-waunbeLw.cjs → TxnTypeIcons-DevbhR7w.cjs} +1 -1
- package/components/{TxnTypeIcons-k1qbeCHp.js → TxnTypeIcons-ETOHW7Tq.js} +14 -14
- package/es2015/transaction-history-page.cjs +1 -1
- package/es2015/transaction-history-page.js +1 -1
- package/esnext/transaction-history-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-CYuYAlOX.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-D3_FGUyo.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJWD4G-S.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/components/CashierHeader-BHRa04VL.cjs +0 -8
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
package/components/{TransactionHistoryPage-BXabEQ9K.cjs → TransactionHistoryPage-Bwb8fcJm.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=(s,t,n)=>new Promise((a,h)=>{var f=o=>{try{c(n.next(o))}catch(m){h(m)}},r=o=>{try{c(n.throw(o))}catch(m){h(m)}},c=o=>o.done?a(o.value):Promise.resolve(o.value).then(f,r);c((n=n.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-BHRa04VL.cjs"),ye=require("./Tooltip-CMYgN8-J.cjs"),we=require("./EmptyStateIcon-CG990aV4.cjs"),Z=require("./CashierTransactionHistory-DK_T0y3K.cjs");e.init$1({fallbackLocale:"en"});function x(s,t){e.addMessages(s,t)}const $={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionTypeIconTitle:"Type",transactionStatusTitle:"Status",transactionLifetimeDeposit:"Lifetime deposits",transactionNetProfit:"Net Profit",transactionNetProfitTooltip:"This value represents the sum of your lifetime deposits minus the sum of your lifetime withdrawals.",transactionLifetimeDepositTooltip:"Cumulative sum of all deposits made over the lifetime of your account.",noTransactionData:"No transactions found for selected date",copyTransactionId:"Transaction Id copied to clipboard"},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionTypeIconTitle:"Tip",transactionStatusTitle:"Durum",transactionLifetimeDeposit:"Ömür boyu yatırımlar",transactionNetProfit:"Net Kar",transactionNetProfitTooltip:"Bu değer, ömür boyu yatırımlarınızın toplamından ömür boyu çekimlerinizin toplamı çıkarıldığında elde edilen tutarı temsil eder.",transactionLifetimeDepositTooltip:"Hesabınızın kullanım süresi boyunca yapılan tüm yatırımların toplamı.",noTransactionData:"Seçilen tarih için işlem bulunamadı.",copyTransactionId:"İşlem ID’si kopyalandı"}};if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BHRa04VL.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TransactionHistoryCalendar-C4hh4GPW.cjs")).then(({default:t})=>{!customElements.get("transaction-history-calendar")&&customElements.define("transaction-history-calendar",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierTransactionHistory-DK_T0y3K.cjs")).then(t=>t.CashierTransactionHistory_ce).then(({default:t})=>{!customElements.get("cashier-transaction-history")&&customElements.define("cashier-transaction-history",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierPagination-Bns0dhAx.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}function Te(s){e.append_styles(s,"svelte-1mgt8hq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.TransactionHistoryWidget{container-type:inline-size;container-name:history-page}.CashierHeaderTitle{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-x-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.TransactionHistoryBody{padding:var(--emw--spacing-small, 12px)}.TransactionHistoryFilter{display:flex;flex-direction:row;align-items:center}.TransactionHistoryDateFilter{margin-left:auto}.TransactionHistorySummary{display:flex;justify-content:space-between;padding-bottom:var(--emw--spacing-small, 12px);gap:var(--emw--spacing-small, 12px)}.TransactionHistoryBox{display:flex;flex-direction:column;height:65px;cursor:pointer;width:50%;background-color:var(--emw--color-grey-100, #F8F8F8);border-radius:6px;min-width:150px;justify-content:center;align-items:center;gap:5px}.BoxTile{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-10, #111)}.BoxValue{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-290, #666)}.TransactionHistoryEmptyState{width:100%;display:flex;align-items:center;font-size:var(--emw--font-size-medium, 14px);flex-direction:column;color:var(--emw--color-grey-290, #666);padding-top:50px;gap:20px}@container history-page (max-width: 750px){.TransactionHistoryWidget{--emw--font-size-medium:var(--emw--font-size-large, 16px)}.TransactionHistoryFilter{flex-direction:column}.TransactionHistoryDateFilter{margin-left:unset}.TransactionHistoryBox{min-width:unset}.TransactionHistorySummary,.TransactionHistoryDateFilter{width:100%}}")}function ee(s){let t,n,a,h=s[29](s[6])+"",f;return{c(){t=e.element("cashier-header"),n=e.element("div"),a=e.element("span"),f=e.text(h),e.attr(n,"slot","title"),e.attr(n,"class","CashierHeaderTitle"),e.set_custom_element_data(t,"class","Header"),e.set_custom_element_data(t,"lang",s[3]),e.set_custom_element_data(t,"translationurl",s[4]),e.set_custom_element_data(t,"clientstylingurl",s[10]),e.set_custom_element_data(t,"clientstyling",s[9]),e.set_custom_element_data(t,"showclosebutton",s[5])},m(r,c){e.insert(r,t,c),e.append(t,n),e.append(n,a),e.append(a,f)},p(r,c){c[0]&536870976&&h!==(h=r[29](r[6])+"")&&e.set_data(f,h),c[0]&8&&e.set_custom_element_data(t,"lang",r[3]),c[0]&16&&e.set_custom_element_data(t,"translationurl",r[4]),c[0]&1024&&e.set_custom_element_data(t,"clientstylingurl",r[10]),c[0]&512&&e.set_custom_element_data(t,"clientstyling",r[9]),c[0]&32&&e.set_custom_element_data(t,"showclosebutton",r[5])},d(r){r&&e.detach(t)}}}function te(s){let t,n,a=s[29]("transactionLifetimeDeposit")+"",h,f,r,c,o=s[24]&&ne(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[35]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionLifetimeDeposit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ne(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ne(s){let t,n=s[24].depositSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].depositSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function se(s){let t,n,a=s[29]("transactionNetProfit")+"",h,f,r,c,o=s[24]&&ie(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[36]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionNetProfit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ie(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ie(s){let t,n=s[24].profitSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].profitSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function ae(s){let t;return{c(){t=e.element("cashier-pagination"),e.set_custom_element_data(t,"totalpages",s[22])},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&4194304&&e.set_custom_element_data(t,"totalpages",n[22])},d(n){n&&e.detach(t)}}}function oe(s){let t,n,a,h,f=s[29]("noTransactionData")+"",r,c;return n=new we.EmptyStateIcon({}),{c(){t=e.element("div"),e.create_component(n.$$.fragment),a=e.space(),h=e.element("span"),r=e.text(f),e.attr(t,"class","TransactionHistoryEmptyState")},m(o,m){e.insert(o,t,m),e.mount_component(n,t,null),e.append(t,a),e.append(t,h),e.append(h,r),c=!0},p(o,m){(!c||m[0]&536870912)&&f!==(f=o[29]("noTransactionData")+"")&&e.set_data(r,f)},i(o){c||(e.transition_in(n.$$.fragment,o),c=!0)},o(o){e.transition_out(n.$$.fragment,o),c=!1},d(o){o&&e.detach(t),e.destroy_component(n)}}}function be(s){let t,n,a,h,f,r,c,o,m,b,u,L,v,k,C,E,_,w=s[13]==="true"&&ee(s),g=s[14]==="true"&&te(s),y=s[15]==="true"&&se(s),T=s[22]&&ae(s),p=s[22]===0&&oe(s);return E=new ye.Tooltip({props:{text:s[25],top:s[27],left:s[28],visible:s[26]}}),{c(){t=e.element("div"),w&&w.c(),n=e.space(),a=e.element("section"),h=e.element("section"),f=e.element("section"),g&&g.c(),r=e.space(),y&&y.c(),c=e.space(),o=e.element("section"),m=e.element("transaction-history-calendar"),b=e.space(),u=e.element("cashier-transaction-history"),v=e.space(),T&&T.c(),k=e.space(),p&&p.c(),C=e.space(),e.create_component(E.$$.fragment),e.attr(f,"class","TransactionHistorySummary"),e.set_custom_element_data(m,"lang",s[3]),e.set_custom_element_data(m,"dateformat",s[16]),e.set_custom_element_data(m,"fromdate",s[19]),e.set_custom_element_data(m,"todate",s[20]),e.attr(o,"class","TransactionHistoryDateFilter"),e.attr(h,"class","TransactionHistoryFilter"),e.set_custom_element_data(u,"lang",s[3]),e.set_custom_element_data(u,"translationurl",s[4]),e.set_custom_element_data(u,"endpoint",s[1]),e.set_custom_element_data(u,"customerid",s[2]),e.set_custom_element_data(u,"clientstylingurl",s[10]),e.set_custom_element_data(u,"clientstyling",s[9]),e.set_custom_element_data(u,"txncount",s[7]),e.set_custom_element_data(u,"session",s[0]),e.set_custom_element_data(u,"columns",s[8]),e.set_custom_element_data(u,"isshorttransactionhistory",s[12]),e.set_custom_element_data(u,"dateformat",s[16]),e.set_custom_element_data(u,"datetimeformat",s[17]),e.set_custom_element_data(u,"page",L=`${+s[21]-1}`),e.set_custom_element_data(u,"fromdate",s[19]),e.set_custom_element_data(u,"todate",s[20]),e.set_custom_element_data(u,"calculateprofit",s[23]),e.attr(a,"class","TransactionHistoryBody"),e.attr(t,"class","TransactionHistoryWidget")},m(l,d){e.insert(l,t,d),w&&w.m(t,null),e.append(t,n),e.append(t,a),e.append(a,h),e.append(h,f),g&&g.m(f,null),e.append(f,r),y&&y.m(f,null),e.append(h,c),e.append(h,o),e.append(o,m),e.append(a,b),e.append(a,u),e.append(a,v),T&&T.m(a,null),e.append(a,k),p&&p.m(a,null),e.append(a,C),e.mount_component(E,a,null),s[37](t),_=!0},p(l,d){l[13]==="true"?w?w.p(l,d):(w=ee(l),w.c(),w.m(t,n)):w&&(w.d(1),w=null),l[14]==="true"?g?g.p(l,d):(g=te(l),g.c(),g.m(f,r)):g&&(g.d(1),g=null),l[15]==="true"?y?y.p(l,d):(y=se(l),y.c(),y.m(f,null)):y&&(y.d(1),y=null),(!_||d[0]&8)&&e.set_custom_element_data(m,"lang",l[3]),(!_||d[0]&65536)&&e.set_custom_element_data(m,"dateformat",l[16]),(!_||d[0]&524288)&&e.set_custom_element_data(m,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(m,"todate",l[20]),(!_||d[0]&8)&&e.set_custom_element_data(u,"lang",l[3]),(!_||d[0]&16)&&e.set_custom_element_data(u,"translationurl",l[4]),(!_||d[0]&2)&&e.set_custom_element_data(u,"endpoint",l[1]),(!_||d[0]&4)&&e.set_custom_element_data(u,"customerid",l[2]),(!_||d[0]&1024)&&e.set_custom_element_data(u,"clientstylingurl",l[10]),(!_||d[0]&512)&&e.set_custom_element_data(u,"clientstyling",l[9]),(!_||d[0]&128)&&e.set_custom_element_data(u,"txncount",l[7]),(!_||d[0]&1)&&e.set_custom_element_data(u,"session",l[0]),(!_||d[0]&256)&&e.set_custom_element_data(u,"columns",l[8]),(!_||d[0]&4096)&&e.set_custom_element_data(u,"isshorttransactionhistory",l[12]),(!_||d[0]&65536)&&e.set_custom_element_data(u,"dateformat",l[16]),(!_||d[0]&131072)&&e.set_custom_element_data(u,"datetimeformat",l[17]),(!_||d[0]&2097152&&L!==(L=`${+l[21]-1}`))&&e.set_custom_element_data(u,"page",L),(!_||d[0]&524288)&&e.set_custom_element_data(u,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(u,"todate",l[20]),(!_||d[0]&8388608)&&e.set_custom_element_data(u,"calculateprofit",l[23]),l[22]?T?T.p(l,d):(T=ae(l),T.c(),T.m(a,k)):T&&(T.d(1),T=null),l[22]===0?p?(p.p(l,d),d[0]&4194304&&e.transition_in(p,1)):(p=oe(l),p.c(),e.transition_in(p,1),p.m(a,C)):p&&(e.group_outros(),e.transition_out(p,1,1,()=>{p=null}),e.check_outros());const D={};d[0]&33554432&&(D.text=l[25]),d[0]&134217728&&(D.top=l[27]),d[0]&268435456&&(D.left=l[28]),d[0]&67108864&&(D.visible=l[26]),E.$set(D)},i(l){_||(e.transition_in(p),e.transition_in(E.$$.fragment,l),_=!0)},o(l){e.transition_out(p),e.transition_out(E.$$.fragment,l),_=!1},d(l){l&&e.detach(t),w&&w.d(),g&&g.d(),y&&y.d(),T&&T.d(),p&&p.d(),e.destroy_component(E),s[37](null)}}}function De(s,t,n){let a;e.component_subscribe(s,e.$format,i=>n(29,a=i));let{session:h}=t,{endpoint:f}=t,{customerid:r}=t,{lang:c="en"}=t,{translationurl:o}=t,{showclosebutton:m="false"}=t,{title:b="transactionHistoryTitle"}=t,{txncount:u}=t,{columns:L="TypeIcon,Date,Amount,Status"}=t,{clientstyling:v=""}=t,{clientstylingurl:k=""}=t,{mbsource:C}=t,{currency:E}=t,{isshorttransactionhistory:_="false"}=t,{showheader:w="true"}=t,{showlifetimedeposit:g="true"}=t,{shownetprofit:y="true"}=t,{dateformat:T="DD.MM.YYYY"}=t,{datetimeformat:p="DD.MM.YYYY HH:mm:ss"}=t,{fromdate:l}=t,{todate:d}=t,D,z=Z.dayjs().subtract(1,"day"),I=Z.dayjs(),M=1,Y,B,j,O="",N=!1,W=0,A=0;const q=(i,H)=>{const S=i.currentTarget.getBoundingClientRect(),pe=250,G=10;let P=S.left+S.width/2,F;const ge=S.top;window.innerHeight-S.bottom>ge?F=S.bottom+window.scrollY+8:F=S.top+window.scrollY-8;const K=pe/2,J=G+K,Q=window.innerWidth-G-K;P<J?P=J:P>Q&&(P=Q),n(25,O=H),n(27,W=F),n(28,A=P),n(26,N=!!H.trim().length)},re=()=>{n(26,N=!1)},ce=(i,H)=>{i&&n(19,z=i),H&&n(20,I=H)};e.onMount(()=>X(this,null,function*(){return document.addEventListener("pageChange",R),document.addEventListener("dateChange",V),window.addEventListener("message",U,!1),()=>{document.removeEventListener("dateChange",V),document.removeEventListener("pageChange",R),window.removeEventListener("message",U,!1)}})),Object.keys($).forEach(i=>{x(i,$[i])});const me=()=>{let i=o;if(i)return fetch(i).then(H=>H.json()).then(H=>{Object.keys(H).forEach(S=>{x(S,H[S])})}).catch(H=>{console.log(H)})},V=i=>{n(19,z=i.detail.dates[0]),n(20,I=i.detail.dates[1]),n(21,M=1),n(23,B="false")},R=i=>{n(21,M=i.detail.page),n(23,B="false")},ue=i=>{n(22,Y=Math.ceil(i/u))},fe=i=>{i&&n(24,j=i.find(H=>H.currency===E))},U=i=>{switch(i.data.type){case"TransactionsLoaded":ue(i.data.total),fe(i.data.statistic);break}},de=i=>q(i,a("transactionLifetimeDepositTooltip")),he=i=>q(i,a("transactionNetProfitTooltip"));function _e(i){e.binding_callbacks[i?"unshift":"push"](()=>{D=i,n(18,D)})}return s.$$set=i=>{"session"in i&&n(0,h=i.session),"endpoint"in i&&n(1,f=i.endpoint),"customerid"in i&&n(2,r=i.customerid),"lang"in i&&n(3,c=i.lang),"translationurl"in i&&n(4,o=i.translationurl),"showclosebutton"in i&&n(5,m=i.showclosebutton),"title"in i&&n(6,b=i.title),"txncount"in i&&n(7,u=i.txncount),"columns"in i&&n(8,L=i.columns),"clientstyling"in i&&n(9,v=i.clientstyling),"clientstylingurl"in i&&n(10,k=i.clientstylingurl),"mbsource"in i&&n(32,C=i.mbsource),"currency"in i&&n(11,E=i.currency),"isshorttransactionhistory"in i&&n(12,_=i.isshorttransactionhistory),"showheader"in i&&n(13,w=i.showheader),"showlifetimedeposit"in i&&n(14,g=i.showlifetimedeposit),"shownetprofit"in i&&n(15,y=i.shownetprofit),"dateformat"in i&&n(16,T=i.dateformat),"datetimeformat"in i&&n(17,p=i.datetimeformat),"fromdate"in i&&n(33,l=i.fromdate),"todate"in i&&n(34,d=i.todate)},s.$$.update=()=>{s.$$.dirty[0]&262656&&v&&D&&e.setClientStyling(D,v),s.$$.dirty[0]&263168&&k&&D&&e.setClientStylingURL(D,k),s.$$.dirty[0]&262144|s.$$.dirty[1]&2&&C&&D&&e.setStreamStyling(D,`${C}.Style`),s.$$.dirty[0]&16&&o&&me(),s.$$.dirty[1]&12&&ce(l,d),s.$$.dirty[0]&49152&&(y||g)&&n(23,B="true")},[h,f,r,c,o,m,b,u,L,v,k,E,_,w,g,y,T,p,D,z,I,M,Y,B,j,O,N,W,A,a,q,re,C,l,d,de,he,_e]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,De,be,e.safe_not_equal,{session:0,endpoint:1,customerid:2,lang:3,translationurl:4,showclosebutton:5,title:6,txncount:7,columns:8,clientstyling:9,clientstylingurl:10,mbsource:32,currency:11,isshorttransactionhistory:12,showheader:13,showlifetimedeposit:14,shownetprofit:15,dateformat:16,datetimeformat:17,fromdate:33,todate:34},Te,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get customerid(){return this.$$.ctx[2]}set customerid(t){this.$$set({customerid:t}),e.flush()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showclosebutton(){return this.$$.ctx[5]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}get txncount(){return this.$$.ctx[7]}set txncount(t){this.$$set({txncount:t}),e.flush()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[32]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[12]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get showheader(){return this.$$.ctx[13]}set showheader(t){this.$$set({showheader:t}),e.flush()}get showlifetimedeposit(){return this.$$.ctx[14]}set showlifetimedeposit(t){this.$$set({showlifetimedeposit:t}),e.flush()}get shownetprofit(){return this.$$.ctx[15]}set shownetprofit(t){this.$$set({shownetprofit:t}),e.flush()}get dateformat(){return this.$$.ctx[16]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[17]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}get fromdate(){return this.$$.ctx[33]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[34]}set todate(t){this.$$set({todate:t}),e.flush()}}e.create_custom_element(le,{session:{},endpoint:{},customerid:{},lang:{},translationurl:{},showclosebutton:{},title:{},txncount:{},columns:{},clientstyling:{},clientstylingurl:{},mbsource:{},currency:{},isshorttransactionhistory:{},showheader:{},showlifetimedeposit:{},shownetprofit:{},dateformat:{},datetimeformat:{},fromdate:{},todate:{}},[],[],!0);exports.default=le;
|
|
1
|
+
"use strict";var X=(s,t,n)=>new Promise((a,h)=>{var f=o=>{try{c(n.next(o))}catch(m){h(m)}},r=o=>{try{c(n.throw(o))}catch(m){h(m)}},c=o=>o.done?a(o.value):Promise.resolve(o.value).then(f,r);c((n=n.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-WepsG79s.cjs"),ye=require("./Tooltip-CH7HmcK4.cjs"),we=require("./EmptyStateIcon-BXdFAthb.cjs"),Z=require("./CashierTransactionHistory-DFJD2BIp.cjs");e.init$1({fallbackLocale:"en"});function x(s,t){e.addMessages(s,t)}const $={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionTypeIconTitle:"Type",transactionStatusTitle:"Status",transactionLifetimeDeposit:"Lifetime deposits",transactionNetProfit:"Net Profit",transactionNetProfitTooltip:"This value represents the sum of your lifetime deposits minus the sum of your lifetime withdrawals.",transactionLifetimeDepositTooltip:"Cumulative sum of all deposits made over the lifetime of your account.",noTransactionData:"No transactions found for selected date",copyTransactionId:"Transaction Id copied to clipboard"},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionTypeIconTitle:"Tip",transactionStatusTitle:"Durum",transactionLifetimeDeposit:"Ömür boyu yatırımlar",transactionNetProfit:"Net Kar",transactionNetProfitTooltip:"Bu değer, ömür boyu yatırımlarınızın toplamından ömür boyu çekimlerinizin toplamı çıkarıldığında elde edilen tutarı temsil eder.",transactionLifetimeDepositTooltip:"Hesabınızın kullanım süresi boyunca yapılan tüm yatırımların toplamı.",noTransactionData:"Seçilen tarih için işlem bulunamadı.",copyTransactionId:"İşlem ID’si kopyalandı"}};if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-WepsG79s.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TransactionHistoryCalendar-CPC6t2gm.cjs")).then(({default:t})=>{!customElements.get("transaction-history-calendar")&&customElements.define("transaction-history-calendar",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierTransactionHistory-DFJD2BIp.cjs")).then(t=>t.CashierTransactionHistory_ce).then(({default:t})=>{!customElements.get("cashier-transaction-history")&&customElements.define("cashier-transaction-history",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierPagination-OH0bY8kI.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}function Te(s){e.append_styles(s,"svelte-1mgt8hq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.TransactionHistoryWidget{container-type:inline-size;container-name:history-page}.CashierHeaderTitle{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-x-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.TransactionHistoryBody{padding:var(--emw--spacing-small, 12px)}.TransactionHistoryFilter{display:flex;flex-direction:row;align-items:center}.TransactionHistoryDateFilter{margin-left:auto}.TransactionHistorySummary{display:flex;justify-content:space-between;padding-bottom:var(--emw--spacing-small, 12px);gap:var(--emw--spacing-small, 12px)}.TransactionHistoryBox{display:flex;flex-direction:column;height:65px;cursor:pointer;width:50%;background-color:var(--emw--color-grey-100, #F8F8F8);border-radius:6px;min-width:150px;justify-content:center;align-items:center;gap:5px}.BoxTile{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-10, #111)}.BoxValue{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-290, #666)}.TransactionHistoryEmptyState{width:100%;display:flex;align-items:center;font-size:var(--emw--font-size-medium, 14px);flex-direction:column;color:var(--emw--color-grey-290, #666);padding-top:50px;gap:20px}@container history-page (max-width: 750px){.TransactionHistoryWidget{--emw--font-size-medium:var(--emw--font-size-large, 16px)}.TransactionHistoryFilter{flex-direction:column}.TransactionHistoryDateFilter{margin-left:unset}.TransactionHistoryBox{min-width:unset}.TransactionHistorySummary,.TransactionHistoryDateFilter{width:100%}}")}function ee(s){let t,n,a,h=s[29](s[6])+"",f;return{c(){t=e.element("cashier-header"),n=e.element("div"),a=e.element("span"),f=e.text(h),e.attr(n,"slot","title"),e.attr(n,"class","CashierHeaderTitle"),e.set_custom_element_data(t,"class","Header"),e.set_custom_element_data(t,"lang",s[3]),e.set_custom_element_data(t,"translationurl",s[4]),e.set_custom_element_data(t,"clientstylingurl",s[10]),e.set_custom_element_data(t,"clientstyling",s[9]),e.set_custom_element_data(t,"showclosebutton",s[5])},m(r,c){e.insert(r,t,c),e.append(t,n),e.append(n,a),e.append(a,f)},p(r,c){c[0]&536870976&&h!==(h=r[29](r[6])+"")&&e.set_data(f,h),c[0]&8&&e.set_custom_element_data(t,"lang",r[3]),c[0]&16&&e.set_custom_element_data(t,"translationurl",r[4]),c[0]&1024&&e.set_custom_element_data(t,"clientstylingurl",r[10]),c[0]&512&&e.set_custom_element_data(t,"clientstyling",r[9]),c[0]&32&&e.set_custom_element_data(t,"showclosebutton",r[5])},d(r){r&&e.detach(t)}}}function te(s){let t,n,a=s[29]("transactionLifetimeDeposit")+"",h,f,r,c,o=s[24]&&ne(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[35]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionLifetimeDeposit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ne(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ne(s){let t,n=s[24].depositSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].depositSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function se(s){let t,n,a=s[29]("transactionNetProfit")+"",h,f,r,c,o=s[24]&&ie(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[36]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionNetProfit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ie(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ie(s){let t,n=s[24].profitSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].profitSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function ae(s){let t;return{c(){t=e.element("cashier-pagination"),e.set_custom_element_data(t,"totalpages",s[22])},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&4194304&&e.set_custom_element_data(t,"totalpages",n[22])},d(n){n&&e.detach(t)}}}function oe(s){let t,n,a,h,f=s[29]("noTransactionData")+"",r,c;return n=new we.EmptyStateIcon({}),{c(){t=e.element("div"),e.create_component(n.$$.fragment),a=e.space(),h=e.element("span"),r=e.text(f),e.attr(t,"class","TransactionHistoryEmptyState")},m(o,m){e.insert(o,t,m),e.mount_component(n,t,null),e.append(t,a),e.append(t,h),e.append(h,r),c=!0},p(o,m){(!c||m[0]&536870912)&&f!==(f=o[29]("noTransactionData")+"")&&e.set_data(r,f)},i(o){c||(e.transition_in(n.$$.fragment,o),c=!0)},o(o){e.transition_out(n.$$.fragment,o),c=!1},d(o){o&&e.detach(t),e.destroy_component(n)}}}function be(s){let t,n,a,h,f,r,c,o,m,b,u,L,v,k,C,E,_,w=s[13]==="true"&&ee(s),g=s[14]==="true"&&te(s),y=s[15]==="true"&&se(s),T=s[22]&&ae(s),p=s[22]===0&&oe(s);return E=new ye.Tooltip({props:{text:s[25],top:s[27],left:s[28],visible:s[26]}}),{c(){t=e.element("div"),w&&w.c(),n=e.space(),a=e.element("section"),h=e.element("section"),f=e.element("section"),g&&g.c(),r=e.space(),y&&y.c(),c=e.space(),o=e.element("section"),m=e.element("transaction-history-calendar"),b=e.space(),u=e.element("cashier-transaction-history"),v=e.space(),T&&T.c(),k=e.space(),p&&p.c(),C=e.space(),e.create_component(E.$$.fragment),e.attr(f,"class","TransactionHistorySummary"),e.set_custom_element_data(m,"lang",s[3]),e.set_custom_element_data(m,"dateformat",s[16]),e.set_custom_element_data(m,"fromdate",s[19]),e.set_custom_element_data(m,"todate",s[20]),e.attr(o,"class","TransactionHistoryDateFilter"),e.attr(h,"class","TransactionHistoryFilter"),e.set_custom_element_data(u,"lang",s[3]),e.set_custom_element_data(u,"translationurl",s[4]),e.set_custom_element_data(u,"endpoint",s[1]),e.set_custom_element_data(u,"customerid",s[2]),e.set_custom_element_data(u,"clientstylingurl",s[10]),e.set_custom_element_data(u,"clientstyling",s[9]),e.set_custom_element_data(u,"txncount",s[7]),e.set_custom_element_data(u,"session",s[0]),e.set_custom_element_data(u,"columns",s[8]),e.set_custom_element_data(u,"isshorttransactionhistory",s[12]),e.set_custom_element_data(u,"dateformat",s[16]),e.set_custom_element_data(u,"datetimeformat",s[17]),e.set_custom_element_data(u,"page",L=`${+s[21]-1}`),e.set_custom_element_data(u,"fromdate",s[19]),e.set_custom_element_data(u,"todate",s[20]),e.set_custom_element_data(u,"calculateprofit",s[23]),e.attr(a,"class","TransactionHistoryBody"),e.attr(t,"class","TransactionHistoryWidget")},m(l,d){e.insert(l,t,d),w&&w.m(t,null),e.append(t,n),e.append(t,a),e.append(a,h),e.append(h,f),g&&g.m(f,null),e.append(f,r),y&&y.m(f,null),e.append(h,c),e.append(h,o),e.append(o,m),e.append(a,b),e.append(a,u),e.append(a,v),T&&T.m(a,null),e.append(a,k),p&&p.m(a,null),e.append(a,C),e.mount_component(E,a,null),s[37](t),_=!0},p(l,d){l[13]==="true"?w?w.p(l,d):(w=ee(l),w.c(),w.m(t,n)):w&&(w.d(1),w=null),l[14]==="true"?g?g.p(l,d):(g=te(l),g.c(),g.m(f,r)):g&&(g.d(1),g=null),l[15]==="true"?y?y.p(l,d):(y=se(l),y.c(),y.m(f,null)):y&&(y.d(1),y=null),(!_||d[0]&8)&&e.set_custom_element_data(m,"lang",l[3]),(!_||d[0]&65536)&&e.set_custom_element_data(m,"dateformat",l[16]),(!_||d[0]&524288)&&e.set_custom_element_data(m,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(m,"todate",l[20]),(!_||d[0]&8)&&e.set_custom_element_data(u,"lang",l[3]),(!_||d[0]&16)&&e.set_custom_element_data(u,"translationurl",l[4]),(!_||d[0]&2)&&e.set_custom_element_data(u,"endpoint",l[1]),(!_||d[0]&4)&&e.set_custom_element_data(u,"customerid",l[2]),(!_||d[0]&1024)&&e.set_custom_element_data(u,"clientstylingurl",l[10]),(!_||d[0]&512)&&e.set_custom_element_data(u,"clientstyling",l[9]),(!_||d[0]&128)&&e.set_custom_element_data(u,"txncount",l[7]),(!_||d[0]&1)&&e.set_custom_element_data(u,"session",l[0]),(!_||d[0]&256)&&e.set_custom_element_data(u,"columns",l[8]),(!_||d[0]&4096)&&e.set_custom_element_data(u,"isshorttransactionhistory",l[12]),(!_||d[0]&65536)&&e.set_custom_element_data(u,"dateformat",l[16]),(!_||d[0]&131072)&&e.set_custom_element_data(u,"datetimeformat",l[17]),(!_||d[0]&2097152&&L!==(L=`${+l[21]-1}`))&&e.set_custom_element_data(u,"page",L),(!_||d[0]&524288)&&e.set_custom_element_data(u,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(u,"todate",l[20]),(!_||d[0]&8388608)&&e.set_custom_element_data(u,"calculateprofit",l[23]),l[22]?T?T.p(l,d):(T=ae(l),T.c(),T.m(a,k)):T&&(T.d(1),T=null),l[22]===0?p?(p.p(l,d),d[0]&4194304&&e.transition_in(p,1)):(p=oe(l),p.c(),e.transition_in(p,1),p.m(a,C)):p&&(e.group_outros(),e.transition_out(p,1,1,()=>{p=null}),e.check_outros());const D={};d[0]&33554432&&(D.text=l[25]),d[0]&134217728&&(D.top=l[27]),d[0]&268435456&&(D.left=l[28]),d[0]&67108864&&(D.visible=l[26]),E.$set(D)},i(l){_||(e.transition_in(p),e.transition_in(E.$$.fragment,l),_=!0)},o(l){e.transition_out(p),e.transition_out(E.$$.fragment,l),_=!1},d(l){l&&e.detach(t),w&&w.d(),g&&g.d(),y&&y.d(),T&&T.d(),p&&p.d(),e.destroy_component(E),s[37](null)}}}function De(s,t,n){let a;e.component_subscribe(s,e.$format,i=>n(29,a=i));let{session:h}=t,{endpoint:f}=t,{customerid:r}=t,{lang:c="en"}=t,{translationurl:o}=t,{showclosebutton:m="false"}=t,{title:b="transactionHistoryTitle"}=t,{txncount:u}=t,{columns:L="TypeIcon,Date,Amount,Status"}=t,{clientstyling:v=""}=t,{clientstylingurl:k=""}=t,{mbsource:C}=t,{currency:E}=t,{isshorttransactionhistory:_="false"}=t,{showheader:w="true"}=t,{showlifetimedeposit:g="true"}=t,{shownetprofit:y="true"}=t,{dateformat:T="DD.MM.YYYY"}=t,{datetimeformat:p="DD.MM.YYYY HH:mm:ss"}=t,{fromdate:l}=t,{todate:d}=t,D,z=Z.dayjs().subtract(1,"day"),I=Z.dayjs(),M=1,Y,B,j,O="",N=!1,W=0,A=0;const q=(i,H)=>{const S=i.currentTarget.getBoundingClientRect(),pe=250,G=10;let P=S.left+S.width/2,F;const ge=S.top;window.innerHeight-S.bottom>ge?F=S.bottom+window.scrollY+8:F=S.top+window.scrollY-8;const K=pe/2,J=G+K,Q=window.innerWidth-G-K;P<J?P=J:P>Q&&(P=Q),n(25,O=H),n(27,W=F),n(28,A=P),n(26,N=!!H.trim().length)},re=()=>{n(26,N=!1)},ce=(i,H)=>{i&&n(19,z=i),H&&n(20,I=H)};e.onMount(()=>X(this,null,function*(){return document.addEventListener("pageChange",R),document.addEventListener("dateChange",V),window.addEventListener("message",U,!1),()=>{document.removeEventListener("dateChange",V),document.removeEventListener("pageChange",R),window.removeEventListener("message",U,!1)}})),Object.keys($).forEach(i=>{x(i,$[i])});const me=()=>{let i=o;if(i)return fetch(i).then(H=>H.json()).then(H=>{Object.keys(H).forEach(S=>{x(S,H[S])})}).catch(H=>{console.log(H)})},V=i=>{n(19,z=i.detail.dates[0]),n(20,I=i.detail.dates[1]),n(21,M=1),n(23,B="false")},R=i=>{n(21,M=i.detail.page),n(23,B="false")},ue=i=>{n(22,Y=Math.ceil(i/u))},fe=i=>{i&&n(24,j=i.find(H=>H.currency===E))},U=i=>{switch(i.data.type){case"TransactionsLoaded":ue(i.data.total),fe(i.data.statistic);break}},de=i=>q(i,a("transactionLifetimeDepositTooltip")),he=i=>q(i,a("transactionNetProfitTooltip"));function _e(i){e.binding_callbacks[i?"unshift":"push"](()=>{D=i,n(18,D)})}return s.$$set=i=>{"session"in i&&n(0,h=i.session),"endpoint"in i&&n(1,f=i.endpoint),"customerid"in i&&n(2,r=i.customerid),"lang"in i&&n(3,c=i.lang),"translationurl"in i&&n(4,o=i.translationurl),"showclosebutton"in i&&n(5,m=i.showclosebutton),"title"in i&&n(6,b=i.title),"txncount"in i&&n(7,u=i.txncount),"columns"in i&&n(8,L=i.columns),"clientstyling"in i&&n(9,v=i.clientstyling),"clientstylingurl"in i&&n(10,k=i.clientstylingurl),"mbsource"in i&&n(32,C=i.mbsource),"currency"in i&&n(11,E=i.currency),"isshorttransactionhistory"in i&&n(12,_=i.isshorttransactionhistory),"showheader"in i&&n(13,w=i.showheader),"showlifetimedeposit"in i&&n(14,g=i.showlifetimedeposit),"shownetprofit"in i&&n(15,y=i.shownetprofit),"dateformat"in i&&n(16,T=i.dateformat),"datetimeformat"in i&&n(17,p=i.datetimeformat),"fromdate"in i&&n(33,l=i.fromdate),"todate"in i&&n(34,d=i.todate)},s.$$.update=()=>{s.$$.dirty[0]&262656&&v&&D&&e.setClientStyling(D,v),s.$$.dirty[0]&263168&&k&&D&&e.setClientStylingURL(D,k),s.$$.dirty[0]&262144|s.$$.dirty[1]&2&&C&&D&&e.setStreamStyling(D,`${C}.Style`),s.$$.dirty[0]&16&&o&&me(),s.$$.dirty[1]&12&&ce(l,d),s.$$.dirty[0]&49152&&(y||g)&&n(23,B="true")},[h,f,r,c,o,m,b,u,L,v,k,E,_,w,g,y,T,p,D,z,I,M,Y,B,j,O,N,W,A,a,q,re,C,l,d,de,he,_e]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,De,be,e.safe_not_equal,{session:0,endpoint:1,customerid:2,lang:3,translationurl:4,showclosebutton:5,title:6,txncount:7,columns:8,clientstyling:9,clientstylingurl:10,mbsource:32,currency:11,isshorttransactionhistory:12,showheader:13,showlifetimedeposit:14,shownetprofit:15,dateformat:16,datetimeformat:17,fromdate:33,todate:34},Te,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get customerid(){return this.$$.ctx[2]}set customerid(t){this.$$set({customerid:t}),e.flush()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showclosebutton(){return this.$$.ctx[5]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}get txncount(){return this.$$.ctx[7]}set txncount(t){this.$$set({txncount:t}),e.flush()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[32]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[12]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get showheader(){return this.$$.ctx[13]}set showheader(t){this.$$set({showheader:t}),e.flush()}get showlifetimedeposit(){return this.$$.ctx[14]}set showlifetimedeposit(t){this.$$set({showlifetimedeposit:t}),e.flush()}get shownetprofit(){return this.$$.ctx[15]}set shownetprofit(t){this.$$set({shownetprofit:t}),e.flush()}get dateformat(){return this.$$.ctx[16]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[17]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}get fromdate(){return this.$$.ctx[33]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[34]}set todate(t){this.$$set({todate:t}),e.flush()}}e.create_custom_element(le,{session:{},endpoint:{},customerid:{},lang:{},translationurl:{},showclosebutton:{},title:{},txncount:{},columns:{},clientstyling:{},clientstylingurl:{},mbsource:{},currency:{},isshorttransactionhistory:{},showheader:{},showlifetimedeposit:{},shownetprofit:{},dateformat:{},datetimeformat:{},fromdate:{},todate:{}},[],[],!0);exports.default=le;
|
package/components/{TransactionHistoryPage-ByF3ZH_-.js → TransactionHistoryPage-DN_C6xIV.js}
RENAMED
|
@@ -14,10 +14,10 @@ var rt = (i, t, e) => new Promise((s, h) => {
|
|
|
14
14
|
}, c = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(m, r);
|
|
15
15
|
c((e = e.apply(i, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import { T as
|
|
19
|
-
import { E as
|
|
20
|
-
import { d as ct } from "./CashierTransactionHistory-
|
|
17
|
+
import { C as Nt, D as Pt, S as Mt, i as Ft, f as p, c as Yt, s as Ot, a as jt, b as T, g as C, R as Tt, h as L, J as a, j as M, k as g, T as _t, G as W, E as R, F as Wt, m as F, U as bt, H as At, p as Rt, t as N, u as P, l as V, r as Dt, I as Vt, v as Ut, w as qt, x as Gt, y as Jt, O as Kt } from "./CashierHeader-5zy8g8OM.js";
|
|
18
|
+
import { T as Xt } from "./Tooltip-XvNWUv3X.js";
|
|
19
|
+
import { E as Qt } from "./EmptyStateIcon-BKTXVMxl.js";
|
|
20
|
+
import { d as ct } from "./CashierTransactionHistory-D9vfwQXz.js";
|
|
21
21
|
Nt({
|
|
22
22
|
fallbackLocale: "en"
|
|
23
23
|
});
|
|
@@ -66,7 +66,7 @@ if (typeof window != "undefined") {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
customElements.define = i(customElements.define), import("./CashierHeader-
|
|
69
|
+
customElements.define = i(customElements.define), import("./CashierHeader-5zy8g8OM.js").then((t) => t.X).then(({ default: t }) => {
|
|
70
70
|
!customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@ if (typeof window != "undefined") {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
customElements.define = i(customElements.define), import("./TransactionHistoryCalendar-
|
|
85
|
+
customElements.define = i(customElements.define), import("./TransactionHistoryCalendar-0sP18oSc.js").then(({ default: t }) => {
|
|
86
86
|
!customElements.get("transaction-history-calendar") && customElements.define("transaction-history-calendar", t.element);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -98,7 +98,7 @@ if (typeof window != "undefined") {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
customElements.define = i(customElements.define), import("./CashierTransactionHistory-
|
|
101
|
+
customElements.define = i(customElements.define), import("./CashierTransactionHistory-D9vfwQXz.js").then((t) => t.C).then(({ default: t }) => {
|
|
102
102
|
!customElements.get("cashier-transaction-history") && customElements.define("cashier-transaction-history", t.element);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -114,7 +114,7 @@ if (typeof window != "undefined") {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
customElements.define = i(customElements.define), import("./CashierPagination-
|
|
117
|
+
customElements.define = i(customElements.define), import("./CashierPagination-DS04u5aL.js").then(({ default: t }) => {
|
|
118
118
|
!customElements.get("cashier-pagination") && customElements.define("cashier-pagination", t.element);
|
|
119
119
|
});
|
|
120
120
|
}
|
|
@@ -131,7 +131,7 @@ function mt(i) {
|
|
|
131
131
|
), m;
|
|
132
132
|
return {
|
|
133
133
|
c() {
|
|
134
|
-
t = T("cashier-header"), e = T("div"), s = T("span"), m =
|
|
134
|
+
t = T("cashier-header"), e = T("div"), s = T("span"), m = N(h), L(e, "slot", "title"), L(e, "class", "CashierHeaderTitle"), a(t, "class", "Header"), a(
|
|
135
135
|
t,
|
|
136
136
|
"lang",
|
|
137
137
|
/*lang*/
|
|
@@ -159,7 +159,7 @@ function mt(i) {
|
|
|
159
159
|
);
|
|
160
160
|
},
|
|
161
161
|
m(r, c) {
|
|
162
|
-
|
|
162
|
+
M(r, t, c), g(t, e), g(e, s), g(s, m);
|
|
163
163
|
},
|
|
164
164
|
p(r, c) {
|
|
165
165
|
c[0] & /*$_, title*/
|
|
@@ -167,7 +167,7 @@ function mt(i) {
|
|
|
167
167
|
r[29](
|
|
168
168
|
/*title*/
|
|
169
169
|
r[6]
|
|
170
|
-
) + "") &&
|
|
170
|
+
) + "") && P(m, h), c[0] & /*lang*/
|
|
171
171
|
8 && a(
|
|
172
172
|
t,
|
|
173
173
|
"lang",
|
|
@@ -200,7 +200,7 @@ function mt(i) {
|
|
|
200
200
|
);
|
|
201
201
|
},
|
|
202
202
|
d(r) {
|
|
203
|
-
r &&
|
|
203
|
+
r && F(t);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
}
|
|
@@ -214,10 +214,10 @@ function dt(i) {
|
|
|
214
214
|
);
|
|
215
215
|
return {
|
|
216
216
|
c() {
|
|
217
|
-
t = T("div"), e = T("span"), h =
|
|
217
|
+
t = T("div"), e = T("span"), h = N(s), m = C(), o && o.c(), L(e, "class", "BoxTile"), L(t, "class", "TransactionHistoryBox tooltip-wrapper");
|
|
218
218
|
},
|
|
219
219
|
m(f, E) {
|
|
220
|
-
|
|
220
|
+
M(f, t, E), g(t, e), g(e, h), g(t, m), o && o.m(t, null), r || (c = [
|
|
221
221
|
V(
|
|
222
222
|
t,
|
|
223
223
|
"mouseenter",
|
|
@@ -235,11 +235,11 @@ function dt(i) {
|
|
|
235
235
|
p(f, E) {
|
|
236
236
|
E[0] & /*$_*/
|
|
237
237
|
536870912 && s !== (s = /*$_*/
|
|
238
|
-
f[29]("transactionLifetimeDeposit") + "") &&
|
|
238
|
+
f[29]("transactionLifetimeDeposit") + "") && P(h, s), /*statistic*/
|
|
239
239
|
f[24] ? o ? o.p(f, E) : (o = ht(f), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
240
240
|
},
|
|
241
241
|
d(f) {
|
|
242
|
-
f &&
|
|
242
|
+
f && F(t), o && o.d(), r = !1, Dt(c);
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
@@ -250,26 +250,26 @@ function ht(i) {
|
|
|
250
250
|
), s, h, m;
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
t = T("span"), s =
|
|
253
|
+
t = T("span"), s = N(e), h = C(), m = N(
|
|
254
254
|
/*currency*/
|
|
255
255
|
i[11]
|
|
256
256
|
), L(t, "class", "BoxValue");
|
|
257
257
|
},
|
|
258
258
|
m(r, c) {
|
|
259
|
-
|
|
259
|
+
M(r, t, c), g(t, s), g(t, h), g(t, m);
|
|
260
260
|
},
|
|
261
261
|
p(r, c) {
|
|
262
262
|
c[0] & /*statistic*/
|
|
263
263
|
16777216 && e !== (e = /*statistic*/
|
|
264
|
-
r[24].depositSum + "") &&
|
|
265
|
-
2048 &&
|
|
264
|
+
r[24].depositSum + "") && P(s, e), c[0] & /*currency*/
|
|
265
|
+
2048 && P(
|
|
266
266
|
m,
|
|
267
267
|
/*currency*/
|
|
268
268
|
r[11]
|
|
269
269
|
);
|
|
270
270
|
},
|
|
271
271
|
d(r) {
|
|
272
|
-
r &&
|
|
272
|
+
r && F(t);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
@@ -283,10 +283,10 @@ function gt(i) {
|
|
|
283
283
|
);
|
|
284
284
|
return {
|
|
285
285
|
c() {
|
|
286
|
-
t = T("div"), e = T("span"), h =
|
|
286
|
+
t = T("div"), e = T("span"), h = N(s), m = C(), o && o.c(), L(e, "class", "BoxTile"), L(t, "class", "TransactionHistoryBox tooltip-wrapper");
|
|
287
287
|
},
|
|
288
288
|
m(f, E) {
|
|
289
|
-
|
|
289
|
+
M(f, t, E), g(t, e), g(e, h), g(t, m), o && o.m(t, null), r || (c = [
|
|
290
290
|
V(
|
|
291
291
|
t,
|
|
292
292
|
"mouseenter",
|
|
@@ -304,11 +304,11 @@ function gt(i) {
|
|
|
304
304
|
p(f, E) {
|
|
305
305
|
E[0] & /*$_*/
|
|
306
306
|
536870912 && s !== (s = /*$_*/
|
|
307
|
-
f[29]("transactionNetProfit") + "") &&
|
|
307
|
+
f[29]("transactionNetProfit") + "") && P(h, s), /*statistic*/
|
|
308
308
|
f[24] ? o ? o.p(f, E) : (o = yt(f), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
309
309
|
},
|
|
310
310
|
d(f) {
|
|
311
|
-
f &&
|
|
311
|
+
f && F(t), o && o.d(), r = !1, Dt(c);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -319,26 +319,26 @@ function yt(i) {
|
|
|
319
319
|
), s, h, m;
|
|
320
320
|
return {
|
|
321
321
|
c() {
|
|
322
|
-
t = T("span"), s =
|
|
322
|
+
t = T("span"), s = N(e), h = C(), m = N(
|
|
323
323
|
/*currency*/
|
|
324
324
|
i[11]
|
|
325
325
|
), L(t, "class", "BoxValue");
|
|
326
326
|
},
|
|
327
327
|
m(r, c) {
|
|
328
|
-
|
|
328
|
+
M(r, t, c), g(t, s), g(t, h), g(t, m);
|
|
329
329
|
},
|
|
330
330
|
p(r, c) {
|
|
331
331
|
c[0] & /*statistic*/
|
|
332
332
|
16777216 && e !== (e = /*statistic*/
|
|
333
|
-
r[24].profitSum + "") &&
|
|
334
|
-
2048 &&
|
|
333
|
+
r[24].profitSum + "") && P(s, e), c[0] & /*currency*/
|
|
334
|
+
2048 && P(
|
|
335
335
|
m,
|
|
336
336
|
/*currency*/
|
|
337
337
|
r[11]
|
|
338
338
|
);
|
|
339
339
|
},
|
|
340
340
|
d(r) {
|
|
341
|
-
r &&
|
|
341
|
+
r && F(t);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
}
|
|
@@ -354,7 +354,7 @@ function wt(i) {
|
|
|
354
354
|
);
|
|
355
355
|
},
|
|
356
356
|
m(e, s) {
|
|
357
|
-
|
|
357
|
+
M(e, t, s);
|
|
358
358
|
},
|
|
359
359
|
p(e, s) {
|
|
360
360
|
s[0] & /*totalPages*/
|
|
@@ -366,7 +366,7 @@ function wt(i) {
|
|
|
366
366
|
);
|
|
367
367
|
},
|
|
368
368
|
d(e) {
|
|
369
|
-
e &&
|
|
369
|
+
e && F(t);
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
}
|
|
@@ -375,17 +375,17 @@ function pt(i) {
|
|
|
375
375
|
/*$_*/
|
|
376
376
|
i[29]("noTransactionData") + ""
|
|
377
377
|
), r, c;
|
|
378
|
-
return e = new
|
|
378
|
+
return e = new Qt({}), {
|
|
379
379
|
c() {
|
|
380
|
-
t = T("div"),
|
|
380
|
+
t = T("div"), Tt(e.$$.fragment), s = C(), h = T("span"), r = N(m), L(t, "class", "TransactionHistoryEmptyState");
|
|
381
381
|
},
|
|
382
382
|
m(o, f) {
|
|
383
|
-
|
|
383
|
+
M(o, t, f), _t(e, t, null), g(t, s), g(t, h), g(h, r), c = !0;
|
|
384
384
|
},
|
|
385
385
|
p(o, f) {
|
|
386
386
|
(!c || f[0] & /*$_*/
|
|
387
387
|
536870912) && m !== (m = /*$_*/
|
|
388
|
-
o[29]("noTransactionData") + "") &&
|
|
388
|
+
o[29]("noTransactionData") + "") && P(r, m);
|
|
389
389
|
},
|
|
390
390
|
i(o) {
|
|
391
391
|
c || (W(e.$$.fragment, o), c = !0);
|
|
@@ -394,7 +394,7 @@ function pt(i) {
|
|
|
394
394
|
R(e.$$.fragment, o), c = !1;
|
|
395
395
|
},
|
|
396
396
|
d(o) {
|
|
397
|
-
o &&
|
|
397
|
+
o && F(t), bt(e);
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
}
|
|
@@ -415,7 +415,7 @@ function xt(i) {
|
|
|
415
415
|
/*totalPages*/
|
|
416
416
|
i[22] === 0 && pt(i)
|
|
417
417
|
);
|
|
418
|
-
return v = new
|
|
418
|
+
return v = new Xt({
|
|
419
419
|
props: {
|
|
420
420
|
text: (
|
|
421
421
|
/*tooltipText*/
|
|
@@ -436,7 +436,7 @@ function xt(i) {
|
|
|
436
436
|
}
|
|
437
437
|
}), {
|
|
438
438
|
c() {
|
|
439
|
-
t = T("div"), D && D.c(), e = C(), s = T("section"), h = T("section"), m = T("section"), _ && _.c(), r = C(), b && b.c(), c = C(), o = T("section"), f = T("transaction-history-calendar"), E = C(), u = T("cashier-transaction-history"), O = C(), H && H.c(), z = C(), w && w.c(), I = C(),
|
|
439
|
+
t = T("div"), D && D.c(), e = C(), s = T("section"), h = T("section"), m = T("section"), _ && _.c(), r = C(), b && b.c(), c = C(), o = T("section"), f = T("transaction-history-calendar"), E = C(), u = T("cashier-transaction-history"), O = C(), H && H.c(), z = C(), w && w.c(), I = C(), Tt(v.$$.fragment), L(m, "class", "TransactionHistorySummary"), a(
|
|
440
440
|
f,
|
|
441
441
|
"lang",
|
|
442
442
|
/*lang*/
|
|
@@ -535,7 +535,7 @@ function xt(i) {
|
|
|
535
535
|
), L(s, "class", "TransactionHistoryBody"), L(t, "class", "TransactionHistoryWidget");
|
|
536
536
|
},
|
|
537
537
|
m(l, d) {
|
|
538
|
-
|
|
538
|
+
M(l, t, d), D && D.m(t, null), g(t, e), g(t, s), g(s, h), g(h, m), _ && _.m(m, null), g(m, r), b && b.m(m, null), g(h, c), g(h, o), g(o, f), g(s, E), g(s, u), g(s, O), H && H.m(s, null), g(s, z), w && w.m(s, null), g(s, I), _t(v, s, null), i[37](t), y = !0;
|
|
539
539
|
},
|
|
540
540
|
p(l, d) {
|
|
541
541
|
/*showheader*/
|
|
@@ -660,9 +660,9 @@ function xt(i) {
|
|
|
660
660
|
), /*totalPages*/
|
|
661
661
|
l[22] ? H ? H.p(l, d) : (H = wt(l), H.c(), H.m(s, z)) : H && (H.d(1), H = null), /*totalPages*/
|
|
662
662
|
l[22] === 0 ? w ? (w.p(l, d), d[0] & /*totalPages*/
|
|
663
|
-
4194304 && W(w, 1)) : (w = pt(l), w.c(), W(w, 1), w.m(s, I)) : w && (
|
|
663
|
+
4194304 && W(w, 1)) : (w = pt(l), w.c(), W(w, 1), w.m(s, I)) : w && (Vt(), R(w, 1, 1, () => {
|
|
664
664
|
w = null;
|
|
665
|
-
}),
|
|
665
|
+
}), Wt());
|
|
666
666
|
const k = {};
|
|
667
667
|
d[0] & /*tooltipText*/
|
|
668
668
|
33554432 && (k.text = /*tooltipText*/
|
|
@@ -681,27 +681,27 @@ function xt(i) {
|
|
|
681
681
|
R(w), R(v.$$.fragment, l), y = !1;
|
|
682
682
|
},
|
|
683
683
|
d(l) {
|
|
684
|
-
l &&
|
|
684
|
+
l && F(t), D && D.d(), _ && _.d(), b && b.d(), H && H.d(), w && w.d(), bt(v), i[37](null);
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
function $t(i, t, e) {
|
|
689
689
|
let s;
|
|
690
|
-
|
|
691
|
-
let { session: h } = t, { endpoint: m } = t, { customerid: r } = t, { lang: c = "en" } = t, { translationurl: o } = t, { showclosebutton: f = "false" } = t, { title: E = "transactionHistoryTitle" } = t, { txncount: u } = t, { columns: Y = "TypeIcon,Date,Amount,Status" } = t, { clientstyling: O = "" } = t, { clientstylingurl: z = "" } = t, { mbsource: I } = t, { currency: v } = t, { isshorttransactionhistory: y = "false" } = t, { showheader: D = "true" } = t, { showlifetimedeposit: _ = "true" } = t, { shownetprofit: b = "true" } = t, { dateformat: H = "DD.MM.YYYY" } = t, { datetimeformat: w = "DD.MM.YYYY HH:mm:ss" } = t, { fromdate: l } = t, { todate: d } = t, k,
|
|
690
|
+
At(i, Kt, (n) => e(29, s = n));
|
|
691
|
+
let { session: h } = t, { endpoint: m } = t, { customerid: r } = t, { lang: c = "en" } = t, { translationurl: o } = t, { showclosebutton: f = "false" } = t, { title: E = "transactionHistoryTitle" } = t, { txncount: u } = t, { columns: Y = "TypeIcon,Date,Amount,Status" } = t, { clientstyling: O = "" } = t, { clientstylingurl: z = "" } = t, { mbsource: I } = t, { currency: v } = t, { isshorttransactionhistory: y = "false" } = t, { showheader: D = "true" } = t, { showlifetimedeposit: _ = "true" } = t, { shownetprofit: b = "true" } = t, { dateformat: H = "DD.MM.YYYY" } = t, { datetimeformat: w = "DD.MM.YYYY HH:mm:ss" } = t, { fromdate: l } = t, { todate: d } = t, k, U = ct().subtract(1, "day"), q = ct(), G = 1, Q, A, Z, x = "", J = !1, $ = 0, tt = 0;
|
|
692
692
|
const K = (n, S) => {
|
|
693
693
|
const B = n.currentTarget.getBoundingClientRect(), zt = 250, st = 10;
|
|
694
|
-
let j = B.left + B.width / 2,
|
|
694
|
+
let j = B.left + B.width / 2, X;
|
|
695
695
|
const It = B.top;
|
|
696
|
-
window.innerHeight - B.bottom > It ?
|
|
696
|
+
window.innerHeight - B.bottom > It ? X = B.bottom + window.scrollY + 8 : X = B.top + window.scrollY - 8;
|
|
697
697
|
const ot = zt / 2, at = st + ot, lt = window.innerWidth - st - ot;
|
|
698
|
-
j < at ? j = at : j > lt && (j = lt), e(25, x = S), e(27, $ =
|
|
698
|
+
j < at ? j = at : j > lt && (j = lt), e(25, x = S), e(27, $ = X), e(28, tt = j), e(26, J = !!S.trim().length);
|
|
699
699
|
}, Ht = () => {
|
|
700
700
|
e(26, J = !1);
|
|
701
701
|
}, Et = (n, S) => {
|
|
702
|
-
n && e(19,
|
|
702
|
+
n && e(19, U = n), S && e(20, q = S);
|
|
703
703
|
};
|
|
704
|
-
|
|
704
|
+
Rt(() => rt(this, null, function* () {
|
|
705
705
|
return document.addEventListener("pageChange", it), document.addEventListener("dateChange", et), window.addEventListener("message", nt, !1), () => {
|
|
706
706
|
document.removeEventListener("dateChange", et), document.removeEventListener("pageChange", it), window.removeEventListener("message", nt, !1);
|
|
707
707
|
};
|
|
@@ -719,11 +719,11 @@ function $t(i, t, e) {
|
|
|
719
719
|
console.log(S);
|
|
720
720
|
});
|
|
721
721
|
}, et = (n) => {
|
|
722
|
-
e(19,
|
|
722
|
+
e(19, U = n.detail.dates[0]), e(20, q = n.detail.dates[1]), e(21, G = 1), e(23, A = "false");
|
|
723
723
|
}, it = (n) => {
|
|
724
724
|
e(21, G = n.detail.page), e(23, A = "false");
|
|
725
725
|
}, St = (n) => {
|
|
726
|
-
e(22,
|
|
726
|
+
e(22, Q = Math.ceil(n / u));
|
|
727
727
|
}, Lt = (n) => {
|
|
728
728
|
n && e(24, Z = n.find((S) => S.currency === v));
|
|
729
729
|
}, nt = (n) => {
|
|
@@ -734,7 +734,7 @@ function $t(i, t, e) {
|
|
|
734
734
|
}
|
|
735
735
|
}, Ct = (n) => K(n, s("transactionLifetimeDepositTooltip")), vt = (n) => K(n, s("transactionNetProfitTooltip"));
|
|
736
736
|
function Bt(n) {
|
|
737
|
-
|
|
737
|
+
Ut[n ? "unshift" : "push"](() => {
|
|
738
738
|
k = n, e(18, k);
|
|
739
739
|
});
|
|
740
740
|
}
|
|
@@ -742,10 +742,10 @@ function $t(i, t, e) {
|
|
|
742
742
|
"session" in n && e(0, h = n.session), "endpoint" in n && e(1, m = n.endpoint), "customerid" in n && e(2, r = n.customerid), "lang" in n && e(3, c = n.lang), "translationurl" in n && e(4, o = n.translationurl), "showclosebutton" in n && e(5, f = n.showclosebutton), "title" in n && e(6, E = n.title), "txncount" in n && e(7, u = n.txncount), "columns" in n && e(8, Y = n.columns), "clientstyling" in n && e(9, O = n.clientstyling), "clientstylingurl" in n && e(10, z = n.clientstylingurl), "mbsource" in n && e(32, I = n.mbsource), "currency" in n && e(11, v = n.currency), "isshorttransactionhistory" in n && e(12, y = n.isshorttransactionhistory), "showheader" in n && e(13, D = n.showheader), "showlifetimedeposit" in n && e(14, _ = n.showlifetimedeposit), "shownetprofit" in n && e(15, b = n.shownetprofit), "dateformat" in n && e(16, H = n.dateformat), "datetimeformat" in n && e(17, w = n.datetimeformat), "fromdate" in n && e(33, l = n.fromdate), "todate" in n && e(34, d = n.todate);
|
|
743
743
|
}, i.$$.update = () => {
|
|
744
744
|
i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
745
|
-
262656 && O && k &&
|
|
746
|
-
263168 && z && k &&
|
|
745
|
+
262656 && O && k && qt(k, O), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
746
|
+
263168 && z && k && Gt(k, z), i.$$.dirty[0] & /*customStylingContainer*/
|
|
747
747
|
262144 | i.$$.dirty[1] & /*mbsource*/
|
|
748
|
-
2 && I && k &&
|
|
748
|
+
2 && I && k && Jt(k, `${I}.Style`), i.$$.dirty[0] & /*translationurl*/
|
|
749
749
|
16 && o && kt(), i.$$.dirty[1] & /*fromdate, todate*/
|
|
750
750
|
12 && Et(l, d), i.$$.dirty[0] & /*shownetprofit, showlifetimedeposit*/
|
|
751
751
|
49152 && (b || _) && e(23, A = "true");
|
|
@@ -769,10 +769,10 @@ function $t(i, t, e) {
|
|
|
769
769
|
H,
|
|
770
770
|
w,
|
|
771
771
|
k,
|
|
772
|
-
q,
|
|
773
772
|
U,
|
|
773
|
+
q,
|
|
774
774
|
G,
|
|
775
|
-
|
|
775
|
+
Q,
|
|
776
776
|
A,
|
|
777
777
|
Z,
|
|
778
778
|
x,
|
|
@@ -797,7 +797,7 @@ class te extends Mt {
|
|
|
797
797
|
t,
|
|
798
798
|
$t,
|
|
799
799
|
xt,
|
|
800
|
-
|
|
800
|
+
Ot,
|
|
801
801
|
{
|
|
802
802
|
session: 0,
|
|
803
803
|
endpoint: 1,
|
|
@@ -952,7 +952,7 @@ class te extends Mt {
|
|
|
952
952
|
this.$$set({ todate: t }), p();
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
Yt(te, { session: {}, endpoint: {}, customerid: {}, lang: {}, translationurl: {}, showclosebutton: {}, title: {}, txncount: {}, columns: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, currency: {}, isshorttransactionhistory: {}, showheader: {}, showlifetimedeposit: {}, shownetprofit: {}, dateformat: {}, datetimeformat: {}, fromdate: {}, todate: {} }, [], [], !0);
|
|
956
956
|
export {
|
|
957
957
|
te as default
|
|
958
958
|
};
|