@everymatrix/transaction-history-page 0.0.2 → 0.0.4

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.
@@ -0,0 +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-fdmNbczy.cjs"),ye=require("./Tooltip-DhUkqLNN.cjs"),we=require("./EmptyStateIcon-idY3pDBO.cjs"),Z=require("./CashierTransactionHistory-B7sIQjnt.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-fdmNbczy.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-Bio5MK29.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-B7sIQjnt.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-Dy5h-yN8.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 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TransactionHistoryPage-BD9u27zc.cjs")).then(({default:t})=>{!customElements.get("transaction-history-page")&&customElements.define("transaction-history-page",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TransactionHistoryPage-DhFOsjyi.cjs")).then(({default:t})=>{!customElements.get("transaction-history-page")&&customElements.define("transaction-history-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/TransactionHistoryPage-XK3iHE5Q.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/TransactionHistoryPage-CGKaGI5y.js").then(({ default: t }) => {
14
14
  !customElements.get("transaction-history-page") && customElements.define("transaction-history-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { T as s } from "../components/TransactionHistoryPage-BcZfbYOo.js";
1
+ import { T as s } from "../components/TransactionHistoryPage-BMs3Hr2J.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/transaction-history-page",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "esnext/transaction-history-page.js",
6
6
  "module": "esnext/transaction-history-page.js",
@@ -1 +0,0 @@
1
- "use strict";const e=require("./CashierHeader-fdmNbczy.cjs");require("../stencil/ui-image-BMiZteNE.cjs");const Oe=require("./TxnTypeIcons-ClBY0FSw.cjs"),Ae=require("./TxnStatusIcon-BM7Yn9hb.cjs");var je={exports:{}};(function(s,t){(function(a,n){s.exports=n()})(e.commonjsGlobal,function(){var a=1e3,n=6e4,i=36e5,u="millisecond",l="second",c="minute",r="hour",_="day",S="week",d="month",g="quarter",T="year",D="date",H="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,W={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var p=["th","st","nd","rd"],h=k%100;return"["+k+(p[(h-20)%10]||p[h]||p[0])+"]"}},O=function(k,p,h){var m=String(k);return!m||m.length>=p?k:""+Array(p+1-m.length).join(h)+k},ee={s:O,z:function(k){var p=-k.utcOffset(),h=Math.abs(p),m=Math.floor(h/60),f=h%60;return(p<=0?"+":"-")+O(m,2,"0")+":"+O(f,2,"0")},m:function k(p,h){if(p.date()<h.date())return-k(h,p);var m=12*(h.year()-p.year())+(h.month()-p.month()),f=p.clone().add(m,d),y=h-f<0,w=p.clone().add(m+(y?-1:1),d);return+(-(m+(h-f)/(y?f-w:w-f))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:T,w:S,d:_,D,h:r,m:c,s:l,ms:u,Q:g}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},v="en",F={};F[v]=W;var x="$isDayjsObject",E=function(k){return k instanceof G||!(!k||!k[x])},q=function k(p,h,m){var f;if(!p)return v;if(typeof p=="string"){var y=p.toLowerCase();F[y]&&(f=y),h&&(F[y]=h,f=y);var w=p.split("-");if(!f&&w.length>1)return k(w[0])}else{var j=p.name;F[j]=p,f=j}return!m&&f&&(v=f),f||!m&&v},R=function(k,p){if(E(k))return k.clone();var h=typeof p=="object"?p:{};return h.date=k,h.args=arguments,new G(h)},M=ee;M.l=q,M.i=E,M.w=function(k,p){return R(k,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var G=function(){function k(h){this.$L=q(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[x]=!0}var p=k.prototype;return p.parse=function(h){this.$d=function(m){var f=m.date,y=m.utc;if(f===null)return new Date(NaN);if(M.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var w=f.match(Y);if(w){var j=w[2]-1||0,$=(w[7]||"0").substring(0,3);return y?new Date(Date.UTC(w[1],j,w[3]||1,w[4]||0,w[5]||0,w[6]||0,$)):new Date(w[1],j,w[3]||1,w[4]||0,w[5]||0,w[6]||0,$)}}return new Date(f)}(h),this.init()},p.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},p.$utils=function(){return M},p.isValid=function(){return this.$d.toString()!==H},p.isSame=function(h,m){var f=R(h);return this.startOf(m)<=f&&f<=this.endOf(m)},p.isAfter=function(h,m){return R(h)<this.startOf(m)},p.isBefore=function(h,m){return this.endOf(m)<R(h)},p.$g=function(h,m,f){return M.u(h)?this[m]:this.set(f,h)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(h,m){var f=this,y=!!M.u(m)||m,w=M.p(h),j=function(b,C){var A=M.w(f.$u?Date.UTC(f.$y,C,b):new Date(f.$y,C,b),f);return y?A:A.endOf(_)},$=function(b,C){return M.w(f.toDate()[b].apply(f.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(C)),f)},L=this.$W,N=this.$M,P=this.$D,Q="set"+(this.$u?"UTC":"");switch(w){case T:return y?j(1,0):j(31,11);case d:return y?j(1,N):j(0,N+1);case S:var B=this.$locale().weekStart||0,o=(L<B?L+7:L)-B;return j(y?P-o:P+(6-o),N);case _:case D:return $(Q+"Hours",0);case r:return $(Q+"Minutes",1);case c:return $(Q+"Seconds",2);case l:return $(Q+"Milliseconds",3);default:return this.clone()}},p.endOf=function(h){return this.startOf(h,!1)},p.$set=function(h,m){var f,y=M.p(h),w="set"+(this.$u?"UTC":""),j=(f={},f[_]=w+"Date",f[D]=w+"Date",f[d]=w+"Month",f[T]=w+"FullYear",f[r]=w+"Hours",f[c]=w+"Minutes",f[l]=w+"Seconds",f[u]=w+"Milliseconds",f)[y],$=y===_?this.$D+(m-this.$W):m;if(y===d||y===T){var L=this.clone().set(D,1);L.$d[j]($),L.init(),this.$d=L.set(D,Math.min(this.$D,L.daysInMonth())).$d}else j&&this.$d[j]($);return this.init(),this},p.set=function(h,m){return this.clone().$set(h,m)},p.get=function(h){return this[M.p(h)]()},p.add=function(h,m){var f,y=this;h=Number(h);var w=M.p(m),j=function(N){var P=R(y);return M.w(P.date(P.date()+Math.round(N*h)),y)};if(w===d)return this.set(d,this.$M+h);if(w===T)return this.set(T,this.$y+h);if(w===_)return j(1);if(w===S)return j(7);var $=(f={},f[c]=n,f[r]=i,f[l]=a,f)[w]||1,L=this.$d.getTime()+h*$;return M.w(L,this)},p.subtract=function(h,m){return this.add(-1*h,m)},p.format=function(h){var m=this,f=this.$locale();if(!this.isValid())return f.invalidDate||H;var y=h||"YYYY-MM-DDTHH:mm:ssZ",w=M.z(this),j=this.$H,$=this.$m,L=this.$M,N=f.weekdays,P=f.months,Q=f.meridiem,B=function(C,A,U,K){return C&&(C[A]||C(m,y))||U[A].slice(0,K)},o=function(C){return M.s(j%12||12,C,"0")},b=Q||function(C,A,U){var K=C<12?"AM":"PM";return U?K.toLowerCase():K};return y.replace(I,function(C,A){return A||function(U){switch(U){case"YY":return String(m.$y).slice(-2);case"YYYY":return M.s(m.$y,4,"0");case"M":return L+1;case"MM":return M.s(L+1,2,"0");case"MMM":return B(f.monthsShort,L,P,3);case"MMMM":return B(P,L);case"D":return m.$D;case"DD":return M.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return B(f.weekdaysMin,m.$W,N,2);case"ddd":return B(f.weekdaysShort,m.$W,N,3);case"dddd":return N[m.$W];case"H":return String(j);case"HH":return M.s(j,2,"0");case"h":return o(1);case"hh":return o(2);case"a":return b(j,$,!0);case"A":return b(j,$,!1);case"m":return String($);case"mm":return M.s($,2,"0");case"s":return String(m.$s);case"ss":return M.s(m.$s,2,"0");case"SSS":return M.s(m.$ms,3,"0");case"Z":return w}return null}(C)||w.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(h,m,f){var y,w=this,j=M.p(m),$=R(h),L=($.utcOffset()-this.utcOffset())*n,N=this-$,P=function(){return M.m(w,$)};switch(j){case T:y=P()/12;break;case d:y=P();break;case g:y=P()/3;break;case S:y=(N-L)/6048e5;break;case _:y=(N-L)/864e5;break;case r:y=N/i;break;case c:y=N/n;break;case l:y=N/a;break;default:y=N}return f?y:M.a(y)},p.daysInMonth=function(){return this.endOf(d).$D},p.$locale=function(){return F[this.$L]},p.locale=function(h,m){if(!h)return this.$L;var f=this.clone(),y=q(h,m,!0);return y&&(f.$L=y),f},p.clone=function(){return M.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},k}(),X=G.prototype;return R.prototype=X,[["$ms",u],["$s",l],["$m",c],["$H",r],["$W",_],["$M",d],["$y",T],["$D",D]].forEach(function(k){X[k[1]]=function(p){return this.$g(p,k[0],k[1])}}),R.extend=function(k,p){return k.$i||(k(p,G,R),k.$i=!0),R},R.locale=q,R.isDayjs=E,R.unix=function(k){return R(1e3*k)},R.en=F[v],R.Ls=F,R.p={},R})})(je);var Re=je.exports;const ne=e.getDefaultExportFromCjs(Re);function me(s,{delay:t=0,duration:a=400,easing:n=e.identity}={}){const i=+getComputedStyle(s).opacity;return{delay:t,duration:a,easing:n,css:u=>`opacity: ${u*i}`}}e.init$1({fallbackLocale:"en"});function _e(s,t){e.addMessages(s,t)}function $e(s){e.$locale.set(s)}const ve={en:{transactionHistoryTitle:"Transaction History",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",transactionStatusIconTitle:"Status",transactionTypeIconTitle:"Type",copyTransactionId:"Transaction Id copied to clipboard",transactionAmountTitle:"Amount",transactionPaymentMethodTitle:"Payment Method",transactionRejectionNoteTitle:"Rejection Note",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionDateTimeTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",transactionStatusIconTitle:"Durum",transactionTypeIconTitle:"Tip",transactionAmountTitle:"Tutar",transactionRejectionNoteTitle:"Reddetme Notu",transactionPaymentMethodTitle:"Ödeme Yöntemi",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function Ie(s){e.append_styles(s,"svelte-cx3kh",'.svelte-cx3kh.svelte-cx3kh,.svelte-cx3kh.svelte-cx3kh::before,.svelte-cx3kh.svelte-cx3kh::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-cx3kh.svelte-cx3kh{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-cx3kh.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh.svelte-cx3kh{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-cx3kh thead tr.svelte-cx3kh{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-cx3kh tbody tr.svelte-cx3kh:not(:last-child):not(.Expanded){border-bottom:1px solid #E8E9EB}.CashierTransactionHistory.svelte-cx3kh .TypeIcon.svelte-cx3kh{display:flex}.CashierTransactionHistory.svelte-cx3kh .StatusIcon svg.svelte-cx3kh{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-cx3kh .StatusIcon span.svelte-cx3kh{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{max-width:250px;vertical-align:middle;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-cx3kh td:last-child .CashierTransactionHistoryStatusText.svelte-cx3kh{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{text-align:left}.CashierTransactionHistory.svelte-cx3kh td .ExpandedContent.svelte-cx3kh{line-height:100%}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh{position:relative}.CashierTransactionHistory.svelte-cx3kh tr.svelte-cx3kh:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-cx3kh .CopyTooltip.svelte-cx3kh{width:100%}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-cx3kh .CashierTransactionHistoryWrapper.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-cx3kh td.svelte-cx3kh:first-child{width:40px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-cx3kh table.svelte-cx3kh{table-layout:fixed}.CashierTransactionHistory.svelte-cx3kh table td.svelte-cx3kh{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-cx3kh.svelte-cx3kh{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-cx3kh.svelte-cx3kh{display:none;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.Code.svelte-cx3kh.svelte-cx3kh{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.CashierTransactionHistoryStatus.svelte-cx3kh.svelte-cx3kh{display:flex;gap:5px}.Amount.Withdraw.svelte-cx3kh.svelte-cx3kh:before{content:"-"}.Amount.Deposit.svelte-cx3kh.svelte-cx3kh:before{content:"+"}.Amount.Deposit.Success.svelte-cx3kh.svelte-cx3kh{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-cx3kh.svelte-cx3kh{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-cx3kh.svelte-cx3kh{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-cx3kh.svelte-cx3kh{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-cx3kh.svelte-cx3kh{cursor:pointer}.ShortHistory.svelte-cx3kh .CashierTransactionHistoryTitle.svelte-cx3kh{display:inline-block}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh{cursor:auto}.ShortHistory.svelte-cx3kh .TransactionHistoryRow.svelte-cx3kh:hover{background:unset}.ExpandedContent.svelte-cx3kh.svelte-cx3kh{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-cx3kh .DetailsLogo.svelte-cx3kh{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-cx3kh.svelte-cx3kh,.DynamicDetails.svelte-cx3kh.svelte-cx3kh{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsTitle.svelte-cx3kh{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh,.DynamicDetails.svelte-cx3kh .DetailsValue.svelte-cx3kh{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-medium, 16px);white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-cx3kh.svelte-cx3kh{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-cx3kh.svelte-cx3kh:has(.Code){max-width:250px}td.svelte-cx3kh.svelte-cx3kh:has(.Code):hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh.svelte-cx3kh{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-cx3kh.svelte-cx3kh:hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-cx3kh span.svelte-cx3kh{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-cx3kh svg.svelte-cx3kh{flex-shrink:0}')}function ge(s,t,a){const n=s.slice();return n[42]=t[a],n[44]=a,n}function ke(s,t,a){const n=s.slice();return n[45]=t[a][0],n[46]=t[a][1],n}function ye(s,t,a){const n=s.slice();return n[49]=t[a],n[44]=a,n}function xe(s,t,a){const n=s.slice();return n[49]=t[a],n[44]=a,n}function ze(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[1]),e.set_custom_element_data(t,"clientstyling",s[0]),e.set_custom_element_data(t,"class","svelte-cx3kh")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&2&&e.set_custom_element_data(t,"clientstylingurl",a[1]),n[0]&1&&e.set_custom_element_data(t,"clientstyling",a[0])},i:e.noop,o:e.noop,d(a){a&&e.detach(t)}}}function Pe(s){let t,a,n,i=s[12]("transactionHistoryTitle")+"",u,l,c,r,_,S,d,g,T,D,H=s[8]&&we(s),Y=e.ensure_array_like(s[10]),I=[];for(let v=0;v<Y.length;v+=1)I[v]=Te(xe(s,Y,v));let W=e.ensure_array_like(s[7]),O=[];for(let v=0;v<W.length;v+=1)O[v]=Me(ge(s,W,v));const ee=v=>e.transition_out(O[v],1,1,()=>{O[v]=null});return{c(){t=e.element("div"),H&&H.c(),a=e.space(),n=e.element("h3"),u=e.text(i),l=e.space(),c=e.element("div"),r=e.element("div"),_=e.element("table"),S=e.element("thead"),d=e.element("tr");for(let v=0;v<I.length;v+=1)I[v].c();g=e.space(),T=e.element("tbody");for(let v=0;v<O.length;v+=1)O[v].c();e.attr(n,"class","CashierTransactionHistoryTitle svelte-cx3kh"),e.attr(d,"class","CashierTransactionHistoryHeader svelte-cx3kh"),e.attr(S,"class","svelte-cx3kh"),e.attr(T,"class","svelte-cx3kh"),e.attr(_,"class","svelte-cx3kh"),e.attr(r,"class","CashierTransactionHistoryContent svelte-cx3kh"),e.attr(c,"class","CashierTransactionHistoryWrapper svelte-cx3kh"),e.attr(t,"class","CashierTransactionHistory svelte-cx3kh"),e.toggle_class(t,"ShortHistory",s[3]==="true")},m(v,F){e.insert(v,t,F),H&&H.m(t,null),e.append(t,a),e.append(t,n),e.append(n,u),e.append(t,l),e.append(t,c),e.append(c,r),e.append(r,_),e.append(_,S),e.append(S,d);for(let x=0;x<I.length;x+=1)I[x]&&I[x].m(d,null);e.append(_,g),e.append(_,T);for(let x=0;x<O.length;x+=1)O[x]&&O[x].m(T,null);s[31](t),D=!0},p(v,F){if(v[8]?H?(H.p(v,F),F[0]&256&&e.transition_in(H,1)):(H=we(v),H.c(),e.transition_in(H,1),H.m(t,a)):H&&(e.group_outros(),e.transition_out(H,1,1,()=>{H=null}),e.check_outros()),(!D||F[0]&4096)&&i!==(i=v[12]("transactionHistoryTitle")+"")&&e.set_data(u,i),F[0]&5120){Y=e.ensure_array_like(v[10]);let x;for(x=0;x<Y.length;x+=1){const E=xe(v,Y,x);I[x]?I[x].p(E,F):(I[x]=Te(E),I[x].c(),I[x].m(d,null))}for(;x<I.length;x+=1)I[x].d(1);I.length=Y.length}if(F[0]&32184){W=e.ensure_array_like(v[7]);let x;for(x=0;x<W.length;x+=1){const E=ge(v,W,x);O[x]?(O[x].p(E,F),e.transition_in(O[x],1)):(O[x]=Me(E),O[x].c(),e.transition_in(O[x],1),O[x].m(T,null))}for(e.group_outros(),x=W.length;x<O.length;x+=1)ee(x);e.check_outros()}(!D||F[0]&8)&&e.toggle_class(t,"ShortHistory",v[3]==="true")},i(v){if(!D){e.transition_in(H);for(let F=0;F<W.length;F+=1)e.transition_in(O[F]);D=!0}},o(v){e.transition_out(H),O=O.filter(Boolean);for(let F=0;F<O.length;F+=1)e.transition_out(O[F]);D=!1},d(v){v&&e.detach(t),H&&H.d(),e.destroy_each(I,v),e.destroy_each(O,v),s[31](null)}}}function we(s){let t,a=s[12]("copyTransactionId")+"",n,i,u,l;return{c(){t=e.element("div"),n=e.text(a),e.attr(t,"class","CopyTooltip svelte-cx3kh")},m(c,r){e.insert(c,t,r),e.append(t,n),l=!0},p(c,r){s=c,(!l||r[0]&4096)&&a!==(a=s[12]("copyTransactionId")+"")&&e.set_data(n,a)},i(c){l||(c&&e.add_render_callback(()=>{l&&(u&&u.end(1),i=e.create_in_transition(t,me,{duration:100}),i.start())}),l=!0)},o(c){i&&i.invalidate(),c&&(u=e.create_out_transition(t,me,{duration:s[2]})),l=!1},d(c){c&&e.detach(t),c&&u&&u.end()}}}function Te(s){let t,a=s[12](`transaction${s[49]}Title`)+"",n;return{c(){t=e.element("td"),n=e.text(a),e.attr(t,"class","svelte-cx3kh")},m(i,u){e.insert(i,t,u),e.append(t,n)},p(i,u){u[0]&5120&&a!==(a=i[12](`transaction${i[49]}Title`)+"")&&e.set_data(n,a)},d(i){i&&e.detach(t)}}}function Le(s){let t,a=s[42][s[49]]+"",n;return{c(){t=e.element("span"),n=e.text(a),e.attr(t,"class","svelte-cx3kh")},m(i,u){e.insert(i,t,u),e.append(t,n)},p(i,u){u[0]&1152&&a!==(a=i[42][i[49]]+"")&&e.set_data(n,a)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ee(s){let t=ne(s[42].DateTime).format(s[5])+"",a;return{c(){a=e.text(t)},m(n,i){e.insert(n,a,i)},p(n,i){i[0]&160&&t!==(t=ne(n[42].DateTime).format(n[5])+"")&&e.set_data(a,t)},i:e.noop,o:e.noop,d(n){n&&e.detach(a)}}}function Ne(s){let t=ne(s[42].Date).format(s[4])+"",a;return{c(){a=e.text(t)},m(n,i){e.insert(n,a,i)},p(n,i){i[0]&144&&t!==(t=ne(n[42].Date).format(n[4])+"")&&e.set_data(a,t)},i:e.noop,o:e.noop,d(n){n&&e.detach(a)}}}function Ye(s){let t=s[12](`transactionStatus.${s[42].Status}`)+"",a;return{c(){a=e.text(t)},m(n,i){e.insert(n,a,i)},p(n,i){i[0]&4224&&t!==(t=n[12](`transactionStatus.${n[42].Status}`)+"")&&e.set_data(a,t)},i:e.noop,o:e.noop,d(n){n&&e.detach(a)}}}function We(s){let t,a,n=s[12](`transactionStatus.${s[42].Status}`)+"",i,u;return t=new Ae.TxnStatusIcon({props:{status:s[42].Status}}),{c(){e.create_component(t.$$.fragment),a=e.space(),i=e.text(n)},m(l,c){e.mount_component(t,l,c),e.insert(l,a,c),e.insert(l,i,c),u=!0},p(l,c){const r={};c[0]&128&&(r.status=l[42].Status),t.$set(r),(!u||c[0]&4224)&&n!==(n=l[12](`transactionStatus.${l[42].Status}`)+"")&&e.set_data(i,n)},i(l){u||(e.transition_in(t.$$.fragment,l),u=!0)},o(l){e.transition_out(t.$$.fragment,l),u=!1},d(l){l&&(e.detach(a),e.detach(i)),e.destroy_component(t,l)}}}function Ue(s){let t,a=s[42].Amount+"",n,i,u=s[42].Currency+"",l,c;return{c(){t=e.element("span"),n=e.text(a),i=e.space(),l=e.text(u),e.attr(t,"class",c="Amount "+s[42].Type+" "+s[42].Status+" svelte-cx3kh")},m(r,_){e.insert(r,t,_),e.append(t,n),e.append(t,i),e.append(t,l)},p(r,_){_[0]&128&&a!==(a=r[42].Amount+"")&&e.set_data(n,a),_[0]&128&&u!==(u=r[42].Currency+"")&&e.set_data(l,u),_[0]&128&&c!==(c="Amount "+r[42].Type+" "+r[42].Status+" svelte-cx3kh")&&e.attr(t,"class",c)},i:e.noop,o:e.noop,d(r){r&&e.detach(t)}}}function Ve(s){let t,a=s[42].Code+"",n,i,u,l;return{c(){t=e.element("span"),n=e.text(a),e.attr(t,"data-copy",i=s[42].Code),e.attr(t,"class","svelte-cx3kh"),e.toggle_class(t,"copied",s[8])},m(c,r){e.insert(c,t,r),e.append(t,n),u||(l=e.listen(t,"click",s[28]),u=!0)},p(c,r){r[0]&128&&a!==(a=c[42].Code+"")&&e.set_data(n,a),r[0]&128&&i!==(i=c[42].Code)&&e.attr(t,"data-copy",i),r[0]&256&&e.toggle_class(t,"copied",c[8])},i:e.noop,o:e.noop,d(c){c&&e.detach(t),u=!1,l()}}}function qe(s){let t,a;return t=new Oe.TxnTypeIcons({props:{type:s[42].Type}}),{c(){e.create_component(t.$$.fragment)},m(n,i){e.mount_component(t,n,i),a=!0},p(n,i){const u={};i[0]&128&&(u.type=n[42].Type),t.$set(u)},i(n){a||(e.transition_in(t.$$.fragment,n),a=!0)},o(n){e.transition_out(t.$$.fragment,n),a=!1},d(n){e.destroy_component(t,n)}}}function Be(s){let t,a=s[12](`transactionType.${s[42].Type}`)+"",n;return{c(){t=e.element("span"),n=e.text(a),e.attr(t,"class","svelte-cx3kh")},m(i,u){e.insert(i,t,u),e.append(t,n)},p(i,u){u[0]&4224&&a!==(a=i[12](`transactionType.${i[42].Type}`)+"")&&e.set_data(n,a)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function be(s){let t,a,n,i,u,l,c;const r=[Be,qe,Ve,Ue,We,Ye,Ne,Ee,Le],_=[];function S(d,g){return d[49]==="Type"?0:d[49]==="TypeIcon"?1:d[49]==="Code"?2:d[49]==="Amount"?3:d[49]==="StatusIcon"?4:d[49]==="Status"?5:d[49]==="Date"?6:d[49]==="DateTime"?7:8}return n=S(s),i=_[n]=r[n](s),{c(){t=e.element("td"),a=e.element("span"),i.c(),l=e.space(),e.attr(a,"class",u=e.null_to_empty(s[49])+" svelte-cx3kh"),e.attr(t,"class","svelte-cx3kh")},m(d,g){e.insert(d,t,g),e.append(t,a),_[n].m(a,null),e.append(t,l),c=!0},p(d,g){let T=n;n=S(d),n===T?_[n].p(d,g):(e.group_outros(),e.transition_out(_[T],1,1,()=>{_[T]=null}),e.check_outros(),i=_[n],i?i.p(d,g):(i=_[n]=r[n](d),i.c()),e.transition_in(i,1),i.m(a,null)),(!c||g[0]&1024&&u!==(u=e.null_to_empty(d[49])+" svelte-cx3kh"))&&e.attr(a,"class",u)},i(d){c||(e.transition_in(i),c=!0)},o(d){e.transition_out(i),c=!1},d(d){d&&e.detach(t),_[n].d()}}}function De(s){let t,a,n,i,u,l,c=s[12]("transactionTypeTitle")+"",r,_,S,d,g=s[12](`transactionType.${s[42].Type}`)+"",T,D,H,Y,I=s[12]("transactionDateTitle")+"",W,O,ee,v,F=ne(s[42].DateTime).format(s[5])+"",x,E,q,R,M=s[12]("transactionPaymentMethodTitle")+"",G,X,k,p,h=s[42].PaymentMethod+"",m,f,y,w,j=s[12]("transactionCodeTitle")+"",$,L,N,P,Q,B=s[42].Code+"",o,b,C,A,U,K,se,ue,de,ae,he,ie,te,re,oe,le,pe,ce,fe,J=s[42].RejectionNote&&Ce(s),Z=s[42].PaymentFields&&Se(s);return{c(){t=e.element("tr"),a=e.element("td"),n=e.element("div"),i=e.element("div"),u=e.element("div"),l=e.element("span"),r=e.text(c),_=e.text(" :"),S=e.space(),d=e.element("span"),T=e.text(g),D=e.space(),H=e.element("div"),Y=e.element("span"),W=e.text(I),O=e.text(" :"),ee=e.space(),v=e.element("span"),x=e.text(F),E=e.space(),q=e.element("div"),R=e.element("span"),G=e.text(M),X=e.text(" :"),k=e.space(),p=e.element("span"),m=e.text(h),f=e.space(),y=e.element("div"),w=e.element("span"),$=e.text(j),L=e.text(" :"),N=e.space(),P=e.element("span"),Q=e.element("span"),o=e.text(B),b=e.space(),C=e.svg_element("svg"),A=e.svg_element("g"),U=e.svg_element("path"),K=e.svg_element("path"),ue=e.space(),J&&J.c(),de=e.space(),ae=e.element("div"),Z&&Z.c(),he=e.space(),ie=e.element("div"),te=e.element("ui-image"),pe=e.space(),e.attr(l,"class","DetailsTitle svelte-cx3kh"),e.attr(d,"class","DetailsValue svelte-cx3kh"),e.attr(u,"class","DetailsRow svelte-cx3kh"),e.attr(Y,"class","DetailsTitle svelte-cx3kh"),e.attr(v,"class","DetailsValue svelte-cx3kh"),e.attr(H,"class","DetailsRow svelte-cx3kh"),e.attr(R,"class","DetailsTitle svelte-cx3kh"),e.attr(p,"class","DetailsValue svelte-cx3kh"),e.attr(q,"class","DetailsRow svelte-cx3kh"),e.attr(w,"class","DetailsTitle svelte-cx3kh"),e.attr(Q,"class","svelte-cx3kh"),e.attr(U,"d","M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"),e.attr(U,"stroke","#666666"),e.attr(U,"stroke-linecap","round"),e.attr(U,"stroke-linejoin","round"),e.attr(U,"class","svelte-cx3kh"),e.attr(K,"d","M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"),e.attr(K,"stroke","#666666"),e.attr(K,"stroke-linecap","round"),e.attr(K,"stroke-linejoin","round"),e.attr(K,"class","svelte-cx3kh"),e.attr(A,"opacity","0.5"),e.attr(A,"class","svelte-cx3kh"),e.attr(C,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"width","19"),e.attr(C,"height","19"),e.attr(C,"viewBox","0 0 19 19"),e.attr(C,"fill","none"),e.attr(C,"class","svelte-cx3kh"),e.attr(P,"data-copy",se=s[42].Code),e.attr(P,"class","DetailsValue CopyCode svelte-cx3kh"),e.attr(y,"class","DetailsRow svelte-cx3kh"),e.attr(i,"class","StaticDetails svelte-cx3kh"),e.attr(ae,"class","DynamicDetails svelte-cx3kh"),e.src_url_equal(te.src,re=s[42].Logo)||e.set_custom_element_data(te,"src",re),e.set_custom_element_data(te,"class","svelte-cx3kh"),e.attr(ie,"class","DetailsLogo svelte-cx3kh"),e.attr(n,"class","ExpandedContent svelte-cx3kh"),e.attr(a,"colspan",le=s[10].length),e.attr(a,"class","no-padding svelte-cx3kh"),e.attr(t,"class","ExpandedRow svelte-cx3kh")},m(z,V){e.insert(z,t,V),e.append(t,a),e.append(a,n),e.append(n,i),e.append(i,u),e.append(u,l),e.append(l,r),e.append(l,_),e.append(u,S),e.append(u,d),e.append(d,T),e.append(i,D),e.append(i,H),e.append(H,Y),e.append(Y,W),e.append(Y,O),e.append(H,ee),e.append(H,v),e.append(v,x),e.append(i,E),e.append(i,q),e.append(q,R),e.append(R,G),e.append(R,X),e.append(q,k),e.append(q,p),e.append(p,m),e.append(i,f),e.append(i,y),e.append(y,w),e.append(w,$),e.append(w,L),e.append(y,N),e.append(y,P),e.append(P,Q),e.append(Q,o),e.append(P,b),e.append(P,C),e.append(C,A),e.append(A,U),e.append(A,K),e.append(i,ue),J&&J.m(i,null),e.append(n,de),e.append(n,ae),Z&&Z.m(ae,null),e.append(n,he),e.append(n,ie),e.append(ie,te),e.append(t,pe),ce||(fe=e.listen(P,"mousedown",s[30]),ce=!0)},p(z,V){V[0]&4096&&c!==(c=z[12]("transactionTypeTitle")+"")&&e.set_data(r,c),V[0]&4224&&g!==(g=z[12](`transactionType.${z[42].Type}`)+"")&&e.set_data(T,g),V[0]&4096&&I!==(I=z[12]("transactionDateTitle")+"")&&e.set_data(W,I),V[0]&160&&F!==(F=ne(z[42].DateTime).format(z[5])+"")&&e.set_data(x,F),V[0]&4096&&M!==(M=z[12]("transactionPaymentMethodTitle")+"")&&e.set_data(G,M),V[0]&128&&h!==(h=z[42].PaymentMethod+"")&&e.set_data(m,h),V[0]&4096&&j!==(j=z[12]("transactionCodeTitle")+"")&&e.set_data($,j),V[0]&128&&B!==(B=z[42].Code+"")&&e.set_data(o,B),V[0]&128&&se!==(se=z[42].Code)&&e.attr(P,"data-copy",se),z[42].RejectionNote?J?J.p(z,V):(J=Ce(z),J.c(),J.m(i,null)):J&&(J.d(1),J=null),z[42].PaymentFields?Z?Z.p(z,V):(Z=Se(z),Z.c(),Z.m(ae,null)):Z&&(Z.d(1),Z=null),V[0]&128&&!e.src_url_equal(te.src,re=z[42].Logo)&&e.set_custom_element_data(te,"src",re),V[0]&1024&&le!==(le=z[10].length)&&e.attr(a,"colspan",le)},i(z){z&&(oe||e.add_render_callback(()=>{oe=e.create_in_transition(n,s[15],{}),oe.start()}))},o:e.noop,d(z){z&&e.detach(t),J&&J.d(),Z&&Z.d(),ce=!1,fe()}}}function Ce(s){let t,a,n=s[12]("transactionRejectionNoteTitle")+"",i,u,l,c,r=s[42].RejectionNote+"",_;return{c(){t=e.element("div"),a=e.element("span"),i=e.text(n),u=e.text(" :"),l=e.space(),c=e.element("span"),_=e.text(r),e.attr(a,"class","DetailsTitle svelte-cx3kh"),e.attr(c,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(S,d){e.insert(S,t,d),e.append(t,a),e.append(a,i),e.append(a,u),e.append(t,l),e.append(t,c),e.append(c,_)},p(S,d){d[0]&4096&&n!==(n=S[12]("transactionRejectionNoteTitle")+"")&&e.set_data(i,n),d[0]&128&&r!==(r=S[42].RejectionNote+"")&&e.set_data(_,r)},d(S){S&&e.detach(t)}}}function Se(s){let t,a=e.ensure_array_like(Object.entries(s[42].PaymentFields)),n=[];for(let i=0;i<a.length;i+=1)n[i]=He(ke(s,a,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=e.empty()},m(i,u){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(i,u);e.insert(i,t,u)},p(i,u){if(u[0]&4224){a=e.ensure_array_like(Object.entries(i[42].PaymentFields));let l;for(l=0;l<a.length;l+=1){const c=ke(i,a,l);n[l]?n[l].p(c,u):(n[l]=He(c),n[l].c(),n[l].m(t.parentNode,t))}for(;l<n.length;l+=1)n[l].d(1);n.length=a.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function He(s){let t,a,n=s[12](`transaction${s[45]}Detail`,{default:s[45]})+"",i,u,l,c,r=s[46]+"",_,S;return{c(){t=e.element("div"),a=e.element("span"),i=e.text(n),u=e.text(" :"),l=e.space(),c=e.element("span"),_=e.text(r),S=e.space(),e.attr(a,"class","DetailsTitle svelte-cx3kh"),e.attr(c,"class","DetailsValue svelte-cx3kh"),e.attr(t,"class","DetailsRow svelte-cx3kh")},m(d,g){e.insert(d,t,g),e.append(t,a),e.append(a,i),e.append(a,u),e.append(t,l),e.append(t,c),e.append(c,_),e.append(t,S)},p(d,g){g[0]&4224&&n!==(n=d[12](`transaction${d[45]}Detail`,{default:d[45]})+"")&&e.set_data(i,n),g[0]&128&&r!==(r=d[46]+"")&&e.set_data(_,r)},d(d){d&&e.detach(t)}}}function Me(s){let t,a,n,i,u,l,c=e.ensure_array_like(s[10]),r=[];for(let g=0;g<c.length;g+=1)r[g]=be(ye(s,c,g));const _=g=>e.transition_out(r[g],1,1,()=>{r[g]=null});function S(){return s[29](s[44])}let d=s[11]===s[44]&&De(s);return{c(){t=e.element("tr");for(let g=0;g<r.length;g+=1)r[g].c();a=e.space(),d&&d.c(),n=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-cx3kh"),e.toggle_class(t,"AllowExpand",s[3]==="true"),e.toggle_class(t,"Expanded",s[11]===s[44])},m(g,T){e.insert(g,t,T);for(let D=0;D<r.length;D+=1)r[D]&&r[D].m(t,null);e.insert(g,a,T),d&&d.m(g,T),e.insert(g,n,T),i=!0,u||(l=e.listen(t,"click",S),u=!0)},p(g,T){if(s=g,T[0]&13744){c=e.ensure_array_like(s[10]);let D;for(D=0;D<c.length;D+=1){const H=ye(s,c,D);r[D]?(r[D].p(H,T),e.transition_in(r[D],1)):(r[D]=be(H),r[D].c(),e.transition_in(r[D],1),r[D].m(t,null))}for(e.group_outros(),D=c.length;D<r.length;D+=1)_(D);e.check_outros()}(!i||T[0]&8)&&e.toggle_class(t,"AllowExpand",s[3]==="true"),(!i||T[0]&2048)&&e.toggle_class(t,"Expanded",s[11]===s[44]),s[11]===s[44]?d?(d.p(s,T),T[0]&2048&&e.transition_in(d,1)):(d=De(s),d.c(),e.transition_in(d,1),d.m(n.parentNode,n)):d&&(d.d(1),d=null)},i(g){if(!i){for(let T=0;T<c.length;T+=1)e.transition_in(r[T]);e.transition_in(d),i=!0}},o(g){r=r.filter(Boolean);for(let T=0;T<r.length;T+=1)e.transition_out(r[T]);i=!1},d(g){g&&(e.detach(t),e.detach(a),e.detach(n)),e.destroy_each(r,g),d&&d.d(g),u=!1,l()}}}function Je(s){let t,a,n,i;const u=[Pe,ze],l=[];function c(r,_){return r[7].length?0:r[9]?1:-1}return~(a=c(s))&&(n=l[a]=u[a](s)),{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-cx3kh")},m(r,_){e.insert(r,t,_),~a&&l[a].m(t,null),i=!0},p(r,_){let S=a;a=c(r),a===S?~a&&l[a].p(r,_):(n&&(e.group_outros(),e.transition_out(l[S],1,1,()=>{l[S]=null}),e.check_outros()),~a?(n=l[a],n?n.p(r,_):(n=l[a]=u[a](r),n.c()),e.transition_in(n,1),n.m(t,null)):n=null)},i(r){i||(e.transition_in(n),i=!0)},o(r){e.transition_out(n),i=!1},d(r){r&&e.detach(t),~a&&l[a].d()}}}function Ze(s,t,a){let n;e.component_subscribe(s,e.$format,o=>a(12,n=o));let{endpoint:i}=t,{session:u}=t,{lang:l="en"}=t,{customerid:c}=t,{clientstyling:r=""}=t,{clientstylingurl:_=""}=t,{translationurl:S}=t,{tooltipduration:d=1e3}=t,{txncount:g=3}=t,{mbsource:T=""}=t,{columns:D}=t,{page:H="0"}=t,{calculateprofit:Y="false"}=t,{fromdate:I=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString()}=t,{todate:W=new Date().toISOString()}=t,{isshorttransactionhistory:O="false"}=t,{dateformat:ee="DD.MM.YYYY"}=t,{datetimeformat:v="DD.MM.YYYY HH:mm:ss"}=t,F=[],x=!1,E,q,R=!1,M=[],G;var X;(function(o){o.Deposit="deposit",o.Withdraw="withdraw",o.Refund="refund",o.Unknown="unknown",o.TaxDeduction="taxDeduction"})(X||(X={}));const k=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var p;(function(o){o.Authorized="Authorized",o.Success="Success",o.Failed="Failed",o.Rejected="Rejected",o.Pending="Pending"})(p||(p={})),e.onMount(()=>()=>{});const h=()=>{let o=S;if(o)return fetch(o).then(b=>b.json()).then(b=>{Object.keys(b).forEach(C=>{_e(C,b[C])})}).catch(b=>{console.log(b)})};Object.keys(ve).forEach(o=>{_e(o,ve[o])});const m=()=>{$e(l)},f=()=>{const o=new URL(`${i}/api/v1/mm/payment/gettransactionshistory`),b=new Headers;b.append("accept","application/json"),b.append("Content-Type","application/json"),b.append("X-SessionId",`${u}`);const C={method:"POST",mode:"cors",headers:b,body:JSON.stringify({language:l,customerId:c,count:+g,page:+H,fromDate:I,toDate:W,statuses:{[X.Deposit]:k,[X.Withdraw]:k,[X.Refund]:["Unknown"],[X.TaxDeduction]:["Unknown"],[X.Unknown]:["Unknown"]},calculateProfit:Y==="true"})};a(9,R=!0),fetch(o,C).then(A=>A.json()).then(A=>{a(7,F=y((A==null?void 0:A.items)||[]));const U={type:"TransactionsLoaded",total:A.total};Y==="true"&&(U.statistic=A.statistic),window.postMessage(U,window.location.href)}).catch(A=>console.log(A)).finally(()=>a(9,R=!1))},y=o=>(a(10,M=D.split(",")),a(11,G=null),o.map(b=>{let C=b.generalFields.status;return b.generalFields.status.toLowerCase().includes("pending")&&(C=p.Pending),{Code:b.generalFields.code,Date:b.generalFields.created,DateTime:b.generalFields.created,Status:C,Type:b.generalFields.type,Amount:b.generalFields.amount,Currency:b.generalFields.currency,PaymentMethod:b.generalFields.paymentMethod,RejectionNote:b.generalFields.rejectionNote,PaymentFields:b.paymentFields&&Object.keys(b.paymentFields).length>0?b.paymentFields:null,Logo:w(b.logos)}})||[]),w=o=>{if(o&&o.length){const b=o.find(A=>A.logoType==="Mobile"),C=o.find(A=>A.logoType==="Desktop");return b&&b.logoUrl||C&&C.logoUrl}},j=(o,b=!0)=>{const A=o.currentTarget.dataset.copy;A&&navigator.clipboard.writeText(A).then(()=>{b&&(a(8,x=!0),clearTimeout(q),q=setTimeout(()=>{a(8,x=!1)},2e3))}).catch(U=>{console.error("Could not copy text: ",U)})},$=o=>{O!=="true"&&a(11,G=G===o?null:o)},L=(o,b)=>({delay:0,duration:250,css:C=>`overflow: hidden; transform: translateY(${(1-C)*20}px); opacity: ${C}`}),N=o=>j(o),P=o=>$(o),Q=o=>j(o,!1);function B(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,a(6,E)})}return s.$$set=o=>{"endpoint"in o&&a(16,i=o.endpoint),"session"in o&&a(17,u=o.session),"lang"in o&&a(18,l=o.lang),"customerid"in o&&a(19,c=o.customerid),"clientstyling"in o&&a(0,r=o.clientstyling),"clientstylingurl"in o&&a(1,_=o.clientstylingurl),"translationurl"in o&&a(20,S=o.translationurl),"tooltipduration"in o&&a(2,d=o.tooltipduration),"txncount"in o&&a(21,g=o.txncount),"mbsource"in o&&a(22,T=o.mbsource),"columns"in o&&a(23,D=o.columns),"page"in o&&a(24,H=o.page),"calculateprofit"in o&&a(25,Y=o.calculateprofit),"fromdate"in o&&a(26,I=o.fromdate),"todate"in o&&a(27,W=o.todate),"isshorttransactionhistory"in o&&a(3,O=o.isshorttransactionhistory),"dateformat"in o&&a(4,ee=o.dateformat),"datetimeformat"in o&&a(5,v=o.datetimeformat)},s.$$.update=()=>{s.$$.dirty[0]&262144&&l&&m(),s.$$.dirty[0]&65&&r&&E&&e.setClientStyling(E,r),s.$$.dirty[0]&66&&_&&E&&e.setClientStylingURL(E,_),s.$$.dirty[0]&252641280&&i&&u&&c&&l&&I&&W&&H&&Y&&f(),s.$$.dirty[0]&1048576&&S&&h(),s.$$.dirty[0]&4194368&&T&&E&&e.setStreamStyling(E,`${T}.Style`)},[r,_,d,O,ee,v,E,F,x,R,M,G,n,j,$,L,i,u,l,c,S,g,T,D,H,Y,I,W,N,P,Q,B]}class Fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ze,Je,e.safe_not_equal,{endpoint:16,session:17,lang:18,customerid:19,clientstyling:0,clientstylingurl:1,translationurl:20,tooltipduration:2,txncount:21,mbsource:22,columns:23,page:24,calculateprofit:25,fromdate:26,todate:27,isshorttransactionhistory:3,dateformat:4,datetimeformat:5},Ie,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get customerid(){return this.$$.ctx[19]}set customerid(t){this.$$set({customerid:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(t){this.$$set({tooltipduration:t}),e.flush()}get txncount(){return this.$$.ctx[21]}set txncount(t){this.$$set({txncount:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get columns(){return this.$$.ctx[23]}set columns(t){this.$$set({columns:t}),e.flush()}get page(){return this.$$.ctx[24]}set page(t){this.$$set({page:t}),e.flush()}get calculateprofit(){return this.$$.ctx[25]}set calculateprofit(t){this.$$set({calculateprofit:t}),e.flush()}get fromdate(){return this.$$.ctx[26]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[27]}set todate(t){this.$$set({todate:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[3]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get dateformat(){return this.$$.ctx[4]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[5]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}}e.create_custom_element(Fe,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{}},[],[],!0);const Ge=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"}));exports.CashierTransactionHistory_ce=Ge;exports.dayjs=ne;