@everymatrix/cashier-page 1.92.8 → 1.92.21

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.
Files changed (78) hide show
  1. package/components/CashierCarousel-B-cM-nlR.js +5797 -0
  2. package/components/CashierCarousel-CXoovlrR.js +5835 -0
  3. package/components/CashierCarousel-DMrMmClP.cjs +23 -0
  4. package/components/{CashierError-C854_1dB.js → CashierError-66WHxjwV.js} +45 -44
  5. package/components/{CashierError-D638x9x-.js → CashierError-BCtelxyY.js} +46 -45
  6. package/components/CashierError-BL_rmfvV.cjs +1 -0
  7. package/components/CashierHeader-B7FnLv3f.js +397 -0
  8. package/components/CashierHeader-BbP0idUh.js +397 -0
  9. package/components/CashierHeader-PvXFHPzQ.cjs +1 -0
  10. package/components/CashierIframeRedirect-C0AQ3pLh.cjs +1 -0
  11. package/components/{CashierIframeRedirect-BUcU3T5U.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
  12. package/components/{CashierIframeRedirect-BhmYmTKc.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
  13. package/components/{CashierMethodDetails-iZTHVxaU.js → CashierMethodDetails-C7odWYEI.js} +3987 -3408
  14. package/components/CashierMethodDetails-DjLhLSey.cjs +85 -0
  15. package/components/{CashierMethodDetails-BOhUmKCH.js → CashierMethodDetails-JQOw_ppF.js} +4016 -3438
  16. package/components/{CashierMethodsList-B97v3Xuh.js → CashierMethodsList-C-7-CmRx.js} +65 -65
  17. package/components/CashierMethodsList-CNxb5rVf.cjs +1 -0
  18. package/components/{CashierMethodsList-eUczF6XC.js → CashierMethodsList-CZxMoF32.js} +56 -56
  19. package/components/{CashierModal-C4MoXHG7.js → CashierModal-B1pfSpCs.js} +36 -37
  20. package/components/{CashierModal-BUkNhHpl.js → CashierModal-BsrmgnKi.js} +32 -33
  21. package/components/CashierModal-DF8meLAZ.cjs +1 -0
  22. package/components/CashierNotifications-B8bRZMac.cjs +1 -0
  23. package/components/{CashierNotifications-BatwRhbq.js → CashierNotifications-BXxNDzMM.js} +3 -3
  24. package/components/{CashierNotifications-C0NjswTn.js → CashierNotifications-DbJuswYZ.js} +5 -5
  25. package/components/CashierPage-Bhgj76MY.js +4490 -0
  26. package/components/CashierPage-CIxAkXYb.js +4460 -0
  27. package/components/CashierPage-iIGUB5g4.cjs +1 -0
  28. package/components/CashierReceiptPage-B530KWIS.cjs +26 -0
  29. package/components/{CashierReceiptPage-CdqmVXe9.js → CashierReceiptPage-DGZSqJFO.js} +169 -156
  30. package/components/{CashierReceiptPage-2rVfG2fm.js → CashierReceiptPage-DjfCUH2F.js} +177 -164
  31. package/components/{CashierSessionExpirationModal-CK0YLZbU.js → CashierSessionExpirationModal-BKxhGCj9.js} +254 -267
  32. package/components/CashierSessionExpirationModal-C6owPr_u.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-0EbJrsdx.js → CashierSessionExpirationModal-CU8HtTwA.js} +267 -280
  34. package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
  35. package/components/{CashierSpinner-hEROg29-.js → CashierSpinner-DMrM0bGx.js} +10 -11
  36. package/components/{CashierSpinner-DGz_dycp.js → CashierSpinner-gJqeYU1n.js} +12 -13
  37. package/components/{CashierStepUp-CrJocLXp.js → CashierStepUp-B530YrSp.js} +168 -169
  38. package/components/{CashierStepUp-q7iSJelQ.js → CashierStepUp-BtmD9q4i.js} +245 -246
  39. package/components/CashierStepUp-DKytvkqu.cjs +1 -0
  40. package/components/{CashierTransactionHistory-sGV35WcB.js → CashierTransactionHistory-CWxjn4dO.js} +71 -71
  41. package/components/CashierTransactionHistory-CYaB1hEN.cjs +1 -0
  42. package/components/{CashierTransactionHistory-BrgrDNsw.js → CashierTransactionHistory-D1hopcmz.js} +66 -66
  43. package/components/{CashierVerifications-yC2Ur1H-.js → CashierVerifications-B3UcXWeI.js} +142 -158
  44. package/components/{CashierVerifications-DnM9z8za.js → CashierVerifications-CWsTc0hE.js} +102 -118
  45. package/components/CashierVerifications-D3X4oFbB.cjs +1 -0
  46. package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
  47. package/components/{TxnStatusIcon-BduMMfo6.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
  48. package/components/{TxnStatusIcon-rwPr0B_L.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
  49. package/components/{TxnTypeIcons-ByJ8NlBp.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
  50. package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
  51. package/components/{TxnTypeIcons-DQrCawdt.js → TxnTypeIcons-D37zQDwq.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +7 -7
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-CFDrfBto.cjs +0 -1
  57. package/components/CashierCarousel-JhSTmzvt.js +0 -672
  58. package/components/CashierCarousel-PsCjjLe2.js +0 -675
  59. package/components/CashierError-zeIQl4g_.cjs +0 -1
  60. package/components/CashierHeader-Bp8vaWrp.cjs +0 -1
  61. package/components/CashierHeader-D-mMGt-Y.js +0 -456
  62. package/components/CashierHeader-il09PBLP.js +0 -456
  63. package/components/CashierIframeRedirect-CMcw96Fv.cjs +0 -1
  64. package/components/CashierMethodDetails-DnbNzQW6.cjs +0 -85
  65. package/components/CashierMethodsList-B_9i2Q2s.cjs +0 -1
  66. package/components/CashierModal-Dq36GGc7.cjs +0 -1
  67. package/components/CashierNotifications-BB8FN1j_.cjs +0 -1
  68. package/components/CashierPage-Cc-WWhS2.cjs +0 -23
  69. package/components/CashierPage-DRWrUyaV.js +0 -9936
  70. package/components/CashierPage-HxKce2E6.js +0 -9989
  71. package/components/CashierReceiptPage-CF7knTfT.cjs +0 -26
  72. package/components/CashierSessionExpirationModal-Dht4fdo7.cjs +0 -2
  73. package/components/CashierSpinner-D78lroyw.cjs +0 -1
  74. package/components/CashierStepUp-Dr4sPwOr.cjs +0 -1
  75. package/components/CashierTransactionHistory-sQ3KzTVb.cjs +0 -1
  76. package/components/CashierVerifications-t7V-5Qq2.cjs +0 -1
  77. package/components/TxnStatusIcon-DwP4kCaz.cjs +0 -1
  78. package/components/TxnTypeIcons-DwmzII52.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var Ve=Object.defineProperty,Be=Object.defineProperties;var He=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var ge=(a,n,t)=>n in a?Ve(a,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[n]=t,ce=(a,n)=>{for(var t in n||(n={}))Ne.call(n,t)&&ge(a,t,n[t]);if(he)for(var t of he(n))We.call(n,t)&&ge(a,t,n[t]);return a},_e=(a,n)=>Be(a,He(n));var ae=(a,n,t)=>new Promise((r,l)=>{var o=p=>{try{s(t.next(p))}catch(u){l(u)}},c=p=>{try{s(t.throw(p))}catch(u){l(u)}},s=p=>p.done?r(p.value):Promise.resolve(p.value).then(o,c);s((t=t.apply(a,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DMrMmClP.cjs");function be(a,n){e.addMessages(a,n)}function qe(a){e.$locale.set(a)}const we={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Doğrulama yöntemi seçin",selectChannelMessage:"Doğrulama kodunuzu nasıl almak istediğinizi seçin",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s’est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"}};function Fe(a){e.append_styles(a,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function ye(a,n,t){const r=a.slice();return r[69]=n[t],r[70]=n,r[71]=t,r}function Ue(a){let n,t,r,l,o,c,s,p,u,b,_,E,C,g,f,w,v,M=a[19]("channelSMS")+"",H,D,A,T,X,j,q,Y,F,k,O,P,J,Q,Z=a[19]("channelEmail")+"",V,re,B,R,W,$,ee;function te(d,y){return d[9]?Ye:d[12]?Ke:Ge}let U=te(a),N=U(a),I=a[0]&&ke(a);function le(d,y){if(d[3]&&d[12])return tt;if(d[12]&&d[4])return et}let K=le(a),x=K&&K(a);function ie(d,y){if(d[9])return at;if(d[12]&&d[4])return nt}let G=ie(a),L=G&&G(a);return{c(){n=e.element("div"),N.c(),t=e.space(),r=e.element("div"),l=e.element("label"),o=e.element("div"),c=e.space(),s=e.element("input"),u=e.space(),b=e.element("div"),_=e.svg_element("svg"),E=e.svg_element("path"),C=e.svg_element("circle"),g=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),v=e.element("span"),H=e.text(M),D=e.space(),A=e.element("label"),T=e.element("div"),X=e.space(),j=e.element("input"),Y=e.space(),F=e.element("div"),k=e.svg_element("svg"),O=e.svg_element("rect"),P=e.svg_element("path"),J=e.space(),Q=e.element("span"),V=e.text(Z),re=e.space(),I&&I.c(),B=e.space(),x&&x.c(),R=e.space(),W=e.element("div"),L&&L.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",a[0]===a[20].SMS),e.attr(s,"type","radio"),e.attr(s,"name","channel"),s.value=a[20].SMS,s.checked=p=a[0]===a[20].SMS,e.attr(E,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),e.attr(C,"cx","9"),e.attr(C,"cy","11"),e.attr(C,"r","0.5"),e.attr(C,"fill","currentColor"),e.attr(g,"cx","12"),e.attr(g,"cy","11"),e.attr(g,"r","0.5"),e.attr(g,"fill","currentColor"),e.attr(f,"cx","15"),e.attr(f,"cy","11"),e.attr(f,"r","0.5"),e.attr(f,"fill","currentColor"),e.attr(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","24"),e.attr(_,"height","24"),e.attr(_,"viewBox","0 0 24 24"),e.attr(_,"fill","none"),e.attr(_,"stroke","currentColor"),e.attr(_,"stroke-width","2"),e.attr(_,"stroke-linecap","round"),e.attr(_,"stroke-linejoin","round"),e.attr(b,"class","ChannelContent"),e.attr(l,"class","ChannelCheckbox"),e.toggle_class(l,"selected",a[0]===a[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",a[0]===a[20].EMAIL),e.attr(j,"type","radio"),e.attr(j,"name","channel"),j.value=a[20].EMAIL,j.checked=q=a[0]===a[20].EMAIL,e.attr(O,"x","2"),e.attr(O,"y","4"),e.attr(O,"width","20"),e.attr(O,"height","16"),e.attr(O,"rx","2"),e.attr(P,"d","m2 7 10 6 10-6"),e.attr(k,"xmlns","http://www.w3.org/2000/svg"),e.attr(k,"width","24"),e.attr(k,"height","24"),e.attr(k,"viewBox","0 0 24 24"),e.attr(k,"fill","none"),e.attr(k,"stroke","currentColor"),e.attr(k,"stroke-width","2"),e.attr(k,"stroke-linecap","round"),e.attr(k,"stroke-linejoin","round"),e.attr(F,"class","ChannelContent"),e.attr(A,"class","ChannelCheckbox"),e.toggle_class(A,"selected",a[0]===a[20].EMAIL),e.attr(r,"class","ChannelSelection"),e.attr(W,"class","OtpActionButtons")},m(d,y){e.insert(d,n,y),N.m(n,null),e.insert(d,t,y),e.insert(d,r,y),e.append(r,l),e.append(l,o),e.append(l,c),e.append(l,s),e.append(l,u),e.append(l,b),e.append(b,_),e.append(_,E),e.append(_,C),e.append(_,g),e.append(_,f),e.append(b,w),e.append(b,v),e.append(v,H),e.append(r,D),e.append(r,A),e.append(A,T),e.append(A,X),e.append(A,j),e.append(A,Y),e.append(A,F),e.append(F,k),e.append(k,O),e.append(k,P),e.append(F,J),e.append(F,Q),e.append(Q,V),e.insert(d,re,y),I&&I.m(d,y),e.insert(d,B,y),x&&x.m(d,y),e.insert(d,R,y),e.insert(d,W,y),L&&L.m(W,null),$||(ee=[e.listen(s,"change",a[39]),e.listen(j,"change",a[40])],$=!0)},p(d,y){U===(U=te(d))&&N?N.p(d,y):(N.d(1),N=U(d),N&&(N.c(),N.m(n,null))),y[0]&1048577&&e.toggle_class(o,"checked",d[0]===d[20].SMS),y[0]&1&&p!==(p=d[0]===d[20].SMS)&&(s.checked=p),y[0]&524288&&M!==(M=d[19]("channelSMS")+"")&&e.set_data(H,M),y[0]&1048577&&e.toggle_class(l,"selected",d[0]===d[20].SMS),y[0]&1048577&&e.toggle_class(T,"checked",d[0]===d[20].EMAIL),y[0]&1&&q!==(q=d[0]===d[20].EMAIL)&&(j.checked=q),y[0]&524288&&Z!==(Z=d[19]("channelEmail")+"")&&e.set_data(V,Z),y[0]&1048577&&e.toggle_class(A,"selected",d[0]===d[20].EMAIL),d[0]?I?I.p(d,y):(I=ke(d),I.c(),I.m(B.parentNode,B)):I&&(I.d(1),I=null),K===(K=le(d))&&x?x.p(d,y):(x&&x.d(1),x=K&&K(d),x&&(x.c(),x.m(R.parentNode,R))),G===(G=ie(d))&&L?L.p(d,y):(L&&L.d(1),L=G&&G(d),L&&(L.c(),L.m(W,null)))},d(d){d&&(e.detach(n),e.detach(t),e.detach(r),e.detach(re),e.detach(B),e.detach(R),e.detach(W)),N.d(),I&&I.d(d),x&&x.d(d),L&&L.d(),$=!1,e.run_all(ee)}}}function Xe(a){let n,t,r,l,o,c,s=a[19]("errorHeader")+"",p,u,b,_,E,C,g=a[19]("close")+"",f,w,v;return{c(){n=e.element("div"),t=e.element("div"),r=e.svg_element("svg"),l=e.svg_element("path"),o=e.space(),c=e.element("h2"),p=e.text(s),u=e.space(),b=e.element("p"),_=e.text(a[8]),E=e.space(),C=e.element("button"),f=e.text(g),e.attr(l,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(r,"viewBox","0 0 512 512"),e.attr(t,"class","OtpErrorHeader"),e.attr(C,"class","OtpButton error"),e.attr(n,"class","OtpError")},m(M,H){e.insert(M,n,H),e.append(n,t),e.append(t,r),e.append(r,l),e.append(t,o),e.append(t,c),e.append(c,p),e.append(n,u),e.append(n,b),e.append(b,_),e.append(n,E),e.append(n,C),e.append(C,f),w||(v=e.listen(C,"click",a[28]),w=!0)},p(M,H){H[0]&524288&&s!==(s=M[19]("errorHeader")+"")&&e.set_data(p,s),H[0]&256&&e.set_data(_,M[8]),H[0]&524288&&g!==(g=M[19]("close")+"")&&e.set_data(f,g)},d(M){M&&e.detach(n),w=!1,v()}}}function Ke(a){let n,t,r,l;function o(u,b){return u[10]?Qe:Je}let c=o(a),s=c(a),p=a[6]&&ve(a);return{c(){n=e.element("p"),s.c(),r=e.space(),p&&p.c(),l=e.empty(),e.attr(n,"class",t=a[10]?"LastWarningMessage":"")},m(u,b){e.insert(u,n,b),s.m(n,null),e.insert(u,r,b),p&&p.m(u,b),e.insert(u,l,b)},p(u,b){c===(c=o(u))&&s?s.p(u,b):(s.d(1),s=c(u),s&&(s.c(),s.m(n,null))),b[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?p?p.p(u,b):(p=ve(u),p.c(),p.m(l.parentNode,l)):p&&(p.d(1),p=null)},d(u){u&&(e.detach(n),e.detach(r),e.detach(l)),s.d(),p&&p.d(u)}}}function Ge(a){let n,t=(a[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",r;return{c(){n=e.element("p"),r=e.text(t)},m(l,o){e.insert(l,n,o),e.append(n,r)},p(l,o){o[0]&524288&&t!==(t=(l[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(r,t)},d(l){l&&e.detach(n)}}}function Ye(a){let n,t=a[19]("otpExpiredMessage")+"",r;return{c(){n=e.element("p"),r=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(l,o){e.insert(l,n,o),e.append(n,r)},p(l,o){o[0]&524288&&t!==(t=l[19]("otpExpiredMessage")+"")&&e.set_data(r,t)},d(l){l&&e.detach(n)}}}function Je(a){let n=a[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("popupMessage")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function Qe(a){let n=a[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function ve(a){let n,t;return{c(){n=e.element("p"),t=e.text(a[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(r,l){e.insert(r,n,l),e.append(n,t)},p(r,l){l[0]&256&&e.set_data(t,r[8])},d(r){r&&e.detach(n)}}}function ke(a){let n,t,r,l;function o(p,u){return p[17]>0?$e:Ze}let c=o(a),s=c(a);return{c(){n=e.element("button"),s.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!a[18],e.toggle_class(n,"disabled",!a[18]||a[16])},m(p,u){e.insert(p,n,u),s.m(n,null),r||(l=e.listen(n,"click",a[22]),r=!0)},p(p,u){c===(c=o(p))&&s?s.p(p,u):(s.d(1),s=c(p),s&&(s.c(),s.m(n,null))),u[0]&262144&&t!==(t=!p[18])&&(n.disabled=t),u[0]&327680&&e.toggle_class(n,"disabled",!p[18]||p[16])},d(p){p&&e.detach(n),s.d(),r=!1,l()}}}function Ze(a){let n=a[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("sendCode")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function $e(a){let n=a[19]("waitSeconds")+"",t,r,l,o;return{c(){t=e.text(n),r=e.text(" ("),l=e.text(a[17]),o=e.text("s)")},m(c,s){e.insert(c,t,s),e.insert(c,r,s),e.insert(c,l,s),e.insert(c,o,s)},p(c,s){s[0]&524288&&n!==(n=c[19]("waitSeconds")+"")&&e.set_data(t,n),s[0]&131072&&e.set_data(l,c[17])},d(c){c&&(e.detach(t),e.detach(r),e.detach(l),e.detach(o))}}}function et(a){let n,t,r=a[19]("timeRemaining")+"",l,o,c=a[23](a[5])+"",s,p,u=a[19]("minutes")+"",b,_,E,C=e.ensure_array_like(a[2]),g=[];for(let f=0;f<C.length;f+=1)g[f]=Ce(ye(a,C,f));return{c(){n=e.element("div"),t=e.element("div"),l=e.text(r),o=e.space(),s=e.text(c),p=e.space(),b=e.text(u),_=e.space(),E=e.element("div");for(let f=0;f<g.length;f+=1)g[f].c();e.attr(t,"class","OtpTimer"),e.attr(E,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,l),e.append(t,o),e.append(t,s),e.append(t,p),e.append(t,b),e.append(n,_),e.append(n,E);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(E,null)},p(f,w){if(w[0]&524288&&r!==(r=f[19]("timeRemaining")+"")&&e.set_data(l,r),w[0]&32&&c!==(c=f[23](f[5])+"")&&e.set_data(s,c),w[0]&524288&&u!==(u=f[19]("minutes")+"")&&e.set_data(b,u),w[0]&117458964){C=e.ensure_array_like(f[2]);let v;for(v=0;v<C.length;v+=1){const M=ye(f,C,v);g[v]?g[v].p(M,w):(g[v]=Ce(M),g[v].c(),g[v].m(E,null))}for(;v<g.length;v+=1)g[v].d(1);g.length=C.length}},d(f){f&&e.detach(n),e.destroy_each(g,f)}}}function tt(a){let n;return{c(){n=e.element("div"),n.innerHTML='<span class="OtpLoader"></span>',e.attr(n,"class","OtpLoaderContainer")},m(t,r){e.insert(t,n,r)},p:e.noop,d(t){t&&e.detach(n)}}}function Ce(a){let n,t,r,l=a[71],o,c;const s=()=>a[41](n,l),p=()=>a[41](null,l);function u(..._){return a[42](a[71],..._)}function b(..._){return a[43](a[71],..._)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${a[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${a[4].inputLength%2===0&&a[71]===a[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=r=a[69],e.attr(n,"inputmode","numeric"),n.disabled=a[11],e.attr(n,"autocomplete","off")},m(_,E){e.insert(_,n,E),s(),o||(c=[e.listen(n,"input",u),e.listen(n,"keydown",b),e.listen(n,"paste",a[24])],o=!0)},p(_,E){a=_,E[0]&16&&t!==(t=`otp-box ${a[4].inputLength%2===0&&a[71]===a[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),E[0]&4&&r!==(r=a[69])&&n.value!==r&&(n.value=r),E[0]&2048&&(n.disabled=a[11]),l!==a[71]&&(p(),l=a[71],s())},d(_){_&&e.detach(n),p(),o=!1,e.run_all(c)}}}function nt(a){let n,t=a[19]("submit")+"",r,l,o,c;return{c(){n=e.element("button"),r=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=l=a[2].join("").length!==a[4].inputLength||a[13]||a[15]},m(s,p){e.insert(s,n,p),e.append(n,r),o||(c=e.listen(n,"click",a[29]),o=!0)},p(s,p){p[0]&524288&&t!==(t=s[19]("submit")+"")&&e.set_data(r,t),p[0]&40980&&l!==(l=s[2].join("").length!==s[4].inputLength||s[13]||s[15])&&(n.disabled=l)},d(s){s&&e.detach(n),o=!1,c()}}}function at(a){let n,t=a[19]("resendOtp")+"",r,l,o;return{c(){n=e.element("button"),r=e.text(t),e.attr(n,"class","OtpButton")},m(c,s){e.insert(c,n,s),e.append(n,r),l||(o=e.listen(n,"click",a[27]),l=!0)},p(c,s){s[0]&524288&&t!==(t=c[19]("resendOtp")+"")&&e.set_data(r,t)},d(c){c&&e.detach(n),l=!1,o()}}}function rt(a){let n;function t(o,c){return o[7]?Xe:Ue}let r=t(a),l=r(a);return{c(){n=e.element("div"),l.c(),e.attr(n,"class","OtpContent")},m(o,c){e.insert(o,n,c),l.m(n,null),a[44](n)},p(o,c){r===(r=t(o))&&l?l.p(o,c):(l.d(1),l=r(o),l&&(l.c(),l.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),l.d(),a[44](null)}}}function lt(a,n,t){let r,l,o;e.component_subscribe(a,e.$format,i=>t(19,o=i));let{clientstyling:c=""}=n,{clientstylingurl:s=""}=n,{mbsource:p}=n,{lang:u="en"}=n,{endpoint:b}=n,{session:_}=n,{translationurl:E}=n,{templateid:C}=n,g=[],f=!0,w=null,v=0,M="",H="",D=!1,A=!1,T="",X="",j="",q=!1,Y=!1,F=!1,k="",O={},P=null,J=!1,Q=!1,Z="",V,re,B=[],R=null,W=0,$=!1,ee=!1;const te={SMS:"sms",EMAIL:"email"},U={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(we).forEach(i=>{be(i,we[i])});const N=()=>{qe(u)},I=()=>{fetch(E).then(i=>i.json()).then(i=>{Object.keys(i).forEach(m=>{be(m,i[m])})}).catch(i=>{console.log(i)})},le=i=>ae(this,null,function*(){var m;if((m=i.detail)!=null&&m["x-step-up-required"]){if(t(7,A=!1),t(6,D=!1),t(8,T=""),X=i.detail["x-step-up-token"],j=i.detail.flow,!X||!j){t(3,f=!1),t(7,A=!0),t(8,T=o("configError"));return}t(12,J=!1),t(3,f=!1)}}),K=()=>{R&&(clearInterval(R),R=null),P&&(clearInterval(P),P=null),t(6,D=!1),t(7,A=!1),t(8,T=""),t(10,Y=!1),t(2,g=[]),t(4,w=null),t(3,f=!0),t(0,k=""),t(12,J=!1),t(38,O={})},x=()=>{K()},ie=()=>new Promise((i,m)=>{const h=new URL(`${b}/api/pam/v1/mfa/challenge/${X}`),S=new Headers;S.append("accept","application/json"),S.append("Content-Type","application/json"),S.append("X-SessionId",`${_}`),t(16,ee=!0);const ne={method:"PATCH",headers:S,body:JSON.stringify({channel:k,templateId:C})};fetch(h,ne).then(me=>me.json()).then(()=>{t(15,$=!1),y(),se(),i()}).catch(me=>{m()})}),G=()=>{P&&clearInterval(P),P=setInterval(()=>{const i=ce({},O);let m=!1;Object.keys(i).forEach(h=>{i[h]>0&&(i[h]--,m=!0)}),t(38,O=i),!m&&P&&(clearInterval(P),P=null)},1e3)},L=i=>{t(0,k=i)},d=()=>ae(this,null,function*(){if(!(!k||O[k]&&O[k]>0)){t(3,f=!0),C&&C.startsWith("2fa-")&&t(30,C=`2fa-${k}`);try{yield ie(),yield pe(),t(38,O=_e(ce({},O),{[k]:30})),G(),t(12,J=!0),y(),se()}catch(i){console.error("Error submitting channel:",i),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),y=()=>{const i=new Date(M),m=new Date(H),h=new Date,S=m.getTime()-h.getTime();W=i.getTime()-S;const z=Date.now(),ne=Math.max(0,Math.floor((W-z)/1e3));t(5,v=ne)},se=()=>{R&&clearInterval(R),R=setInterval(()=>{const i=Date.now(),m=Math.max(0,Math.floor((W-i)/1e3));t(5,v=m),t(11,F=m<=0),m<=0&&(clearInterval(R),R=null,t(9,q=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Oe=i=>{const m=Math.floor(i/60),h=i%60;return`${m.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`},oe=(i,m)=>{const h=[...g];h[i]=m.toUpperCase(),t(2,g=h),h.join("")!==Z&&t(13,Q=!1)},Se=i=>{var S,z,ne;i.preventDefault();const h=(((z=(S=i.clipboardData)==null?void 0:S.getData("text"))==null?void 0:z.trim())||"").slice(0,w.inputLength).split("");t(2,g=[...h,...Array(w.inputLength-h.length).fill("")]),(ne=B[h.length])==null||ne.focus(),h.length===w.inputLength&&fe()},de=(i,m)=>{const h=i.target,S=h.value;if(/^[a-z0-9]$/i.test(S)){oe(m,S);const z=B[m+1];z==null||z.focus()}h.value=""},ue=(i,m)=>{const h=i.key,S=i.ctrlKey||i.metaKey;if(/^[a-z0-9]$/i.test(h)){if(S&&h.toLowerCase()==="v")return;i.preventDefault(),oe(m,h);const z=B[m+1];z==null||z.focus()}else if(h==="Backspace"){i.preventDefault(),g[m]!==""&&oe(m,"");const z=B[m-1];z==null||z.focus()}},Me=()=>{j=="stateful"&&(ie(),t(9,q=!1));const i=new CustomEvent("otpResendRequested");window.dispatchEvent(i)},Te=i=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:i,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},Le=i=>ae(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/validate`,b);m.searchParams.append("input",i);try{const h=yield fetch(m.href,{method:"POST"});if(h.status===200){xe();return}const S=yield h.json();throw new Error(S.message)}catch(h){if(yield pe(),h.message===U.INTERNAL_SERVER_ERROR){if(w.numberOfValidateAttempts===w.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}t(6,D=!0),t(8,T=o("invalidOtp")),pe();return}h.message===U.MAX_INVALIDATE&&(t(6,D=!0),t(8,T=o("invalidOtp"))),h.details===U.MAX_ATTEMPTS_EXCEEDED&&t(15,$=!0),console.error("OTP submission failed:",h),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}),xe=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},ze=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},fe=()=>ae(this,null,function*(){if(g.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const i=g.join("");t(13,Q=!0),Z=i,t(3,f=!0),t(6,D=!1),t(8,T=""),j==="stateless"&&Te(i),j==="stateful"&&(yield Le(i))}),pe=()=>ae(this,null,function*(){if(b)try{t(3,f=!0);const i=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/config`,b),m=yield fetch(i.href),h=yield m.json();if(m.ok)t(4,w=h),t(2,g=Array(w.inputLength).fill("")),t(9,q=!1),M=w.expirationTime,H=w.serverTime,w.numberOfValidateAttempts!==0&&(t(6,D=!0),t(8,T=o("invalidOtp"))),w.numberOfValidateAttempts===w.maxValidationAttempts-1&&t(10,Y=!0),t(3,f=!1),y(),se(),t(16,ee=!1);else if(h&&h.details===U.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const S=h&&h.message||`Failed to load config. Status: ${m.status}`;throw new Error(S)}}catch(i){t(3,f=!1),t(7,A=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",i)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",le,!1),window.addEventListener("closePopup",x,!1),()=>{window.removeEventListener("stepUpAuthRequired",le),window.removeEventListener("closePopup",x,!1),R&&clearInterval(R),P&&clearInterval(P)}));const Ae=()=>L(te.SMS),Re=()=>L(te.EMAIL);function Ie(i,m){e.binding_callbacks[i?"unshift":"push"](()=>{B[m]=i,t(14,B)})}const Pe=(i,m)=>de(m,i),De=(i,m)=>ue(m,i);function je(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,t(1,V)})}return a.$$set=i=>{"clientstyling"in i&&t(31,c=i.clientstyling),"clientstylingurl"in i&&t(32,s=i.clientstylingurl),"mbsource"in i&&t(33,p=i.mbsource),"lang"in i&&t(34,u=i.lang),"endpoint"in i&&t(35,b=i.endpoint),"session"in i&&t(36,_=i.session),"translationurl"in i&&t(37,E=i.translationurl),"templateid"in i&&t(30,C=i.templateid)},a.$$.update=()=>{a.$$.dirty[0]&2|a.$$.dirty[1]&1&&c&&V&&e.setClientStyling(V,c),a.$$.dirty[0]&2|a.$$.dirty[1]&2&&s&&V&&e.setClientStylingURL(V,s),a.$$.dirty[0]&2|a.$$.dirty[1]&4&&p&&V&&e.setStreamStyling(V,`${p}.Style`,re),a.$$.dirty[1]&8&&u&&N(),a.$$.dirty[1]&72&&u&&E&&I(),a.$$.dirty[0]&1|a.$$.dirty[1]&128&&t(18,r=k&&(!O[k]||O[k]===0)),a.$$.dirty[0]&1|a.$$.dirty[1]&128&&t(17,l=k&&O[k]||0)},[k,V,g,f,w,v,D,A,T,q,Y,F,J,Q,B,$,ee,l,r,o,te,L,d,Oe,Se,de,ue,Me,ze,fe,C,c,s,p,u,b,_,E,O,Ae,Re,Ie,Pe,De,je]}class Ee extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,lt,rt,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},Fe,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[31]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}get lang(){return this.$$.ctx[34]}set lang(n){this.$$set({lang:n}),e.flush()}get endpoint(){return this.$$.ctx[35]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get session(){return this.$$.ctx[36]}set session(n){this.$$set({session:n}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get templateid(){return this.$$.ctx[30]}set templateid(n){this.$$set({templateid:n}),e.flush()}}e.create_custom_element(Ee,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{}},[],[],!0);exports.default=Ee;
@@ -1,9 +1,9 @@
1
- import { a as it, $ as at, i as lt, S as nt, b as rt, s as ot, f as z, c as ct, e as R, t as B, g as F, a8 as ye, a9 as _e, k as A, m as h, o as m, p as ut, M as te, q as mt, D as $, E as He, v as H, L as ee, l as r, n as S, w, y as M, O as Q, x as dt, ac as ft, H as Ke, ad as Qe, z as Ae, r as $e, ae as ke, J as Pe, P as De, af as et, ag as tt, ah as st, A as pt, B as ht } from "./CashierPage-HxKce2E6.js";
2
- import { f as Fe } from "./CashierSessionExpirationModal-CK0YLZbU.js";
3
- import { s as vt, a as gt, b as xt } from "./CashierHeader-D-mMGt-Y.js";
1
+ import { a as it, $ as at, i as lt, S as nt, b as rt, s as ot, f as z, c as ct, e as R, t as B, g as P, a6 as ye, a7 as _e, k as A, m as h, o as m, p as ut, q as mt, Z as $, a4 as He, v as H, W as ee, l as r, n as S, w, G as M, A as Q, y as dt, ad as ft, L as Ke, ae as Qe, x as Ae, r as $e, ah as ke, z as Fe, X as De, ai as et, aj as tt, ak as st, B as pt, C as ht, D as vt, E as gt, F as xt } from "./CashierCarousel-CXoovlrR.js";
2
+ import { f as Pe } from "./CashierReceiptPage-DGZSqJFO.js";
3
+ import { d as te } from "./CashierMethodDetails-C7odWYEI.js";
4
4
  import "../stencil/ui-image-CNaRr0ax.js";
5
- import { T as yt } from "./TxnTypeIcons-ByJ8NlBp.js";
6
- import { T as _t } from "./TxnStatusIcon-rwPr0B_L.js";
5
+ import { T as yt } from "./TxnTypeIcons-Bg7QJKuH.js";
6
+ import { T as _t } from "./TxnStatusIcon-DCSCOAn2.js";
7
7
  lt({
8
8
  fallbackLocale: "en"
9
9
  });
@@ -157,18 +157,18 @@ function bt(i) {
157
157
  ), c, o, l, g, q, f, d, x, _, T = (
158
158
  /*copied*/
159
159
  i[8] && Ve(i)
160
- ), P = $(
160
+ ), F = $(
161
161
  /*tableColumns*/
162
162
  i[10]
163
163
  ), k = [];
164
- for (let p = 0; p < P.length; p += 1)
165
- k[p] = We(Ue(i, P, p));
164
+ for (let p = 0; p < F.length; p += 1)
165
+ k[p] = We(Ue(i, F, p));
166
166
  let N = $(
167
167
  /*txnHistory*/
168
168
  i[7]
169
169
  ), b = [];
170
170
  for (let p = 0; p < N.length; p += 1)
171
- b[p] = Ze(Ee(i, N, p));
171
+ b[p] = Je(Ee(i, N, p));
172
172
  const se = (p) => B(b[p], 1, 1, () => {
173
173
  b[p] = null;
174
174
  });
@@ -199,24 +199,24 @@ function bt(i) {
199
199
  p(p, C) {
200
200
  if (/*copied*/
201
201
  p[8] ? T ? (T.p(p, C), C[0] & /*copied*/
202
- 256 && F(T, 1)) : (T = Ve(p), T.c(), F(T, 1), T.m(e, s)) : T && (ye(), B(T, 1, 1, () => {
202
+ 256 && P(T, 1)) : (T = Ve(p), T.c(), P(T, 1), T.m(e, s)) : T && (ye(), B(T, 1, 1, () => {
203
203
  T = null;
204
204
  }), _e()), (!_ || C[0] & /*$_*/
205
205
  4096) && u !== (u = /*$_*/
206
206
  p[12]("transactionHistoryTitle") + "") && H(c, u), C[0] & /*$_, tableColumns*/
207
207
  5120) {
208
- P = $(
208
+ F = $(
209
209
  /*tableColumns*/
210
210
  p[10]
211
211
  );
212
212
  let v;
213
- for (v = 0; v < P.length; v += 1) {
214
- const V = Ue(p, P, v);
213
+ for (v = 0; v < F.length; v += 1) {
214
+ const V = Ue(p, F, v);
215
215
  k[v] ? k[v].p(V, C) : (k[v] = We(V), k[v].c(), k[v].m(f, null));
216
216
  }
217
217
  for (; v < k.length; v += 1)
218
218
  k[v].d(1);
219
- k.length = P.length;
219
+ k.length = F.length;
220
220
  }
221
221
  if (C[0] & /*tableColumns, txnHistory, $_, copyToClipboard, datetimeformat, expandedRow, isshorttransactionhistory, expandRow, copied, dateformat*/
222
222
  32184) {
@@ -227,7 +227,7 @@ function bt(i) {
227
227
  let v;
228
228
  for (v = 0; v < N.length; v += 1) {
229
229
  const V = Ee(p, N, v);
230
- b[v] ? (b[v].p(V, C), F(b[v], 1)) : (b[v] = Ze(V), b[v].c(), F(b[v], 1), b[v].m(x, null));
230
+ b[v] ? (b[v].p(V, C), P(b[v], 1)) : (b[v] = Je(V), b[v].c(), P(b[v], 1), b[v].m(x, null));
231
231
  }
232
232
  for (ye(), v = N.length; v < b.length; v += 1)
233
233
  se(v);
@@ -243,9 +243,9 @@ function bt(i) {
243
243
  },
244
244
  i(p) {
245
245
  if (!_) {
246
- F(T);
246
+ P(T);
247
247
  for (let C = 0; C < N.length; C += 1)
248
- F(b[C]);
248
+ P(b[C]);
249
249
  _ = !0;
250
250
  }
251
251
  },
@@ -279,11 +279,11 @@ function Ve(i) {
279
279
  },
280
280
  i(o) {
281
281
  c || (o && Ke(() => {
282
- c && (u && u.end(1), a = Qe(e, Fe, { duration: 100 }), a.start());
282
+ c && (u && u.end(1), a = Qe(e, Pe, { duration: 100 }), a.start());
283
283
  }), c = !0);
284
284
  },
285
285
  o(o) {
286
- a && a.invalidate(), o && (u = ft(e, Fe, { duration: (
286
+ a && a.invalidate(), o && (u = ft(e, Pe, { duration: (
287
287
  /*tooltipduration*/
288
288
  i[2]
289
289
  ) })), c = !1;
@@ -465,7 +465,7 @@ function St(i) {
465
465
  o[45].Status}`) + "") && H(u, a);
466
466
  },
467
467
  i(o) {
468
- c || (F(e.$$.fragment, o), c = !0);
468
+ c || (P(e.$$.fragment, o), c = !0);
469
469
  },
470
470
  o(o) {
471
471
  B(e.$$.fragment, o), c = !1;
@@ -573,7 +573,7 @@ function jt(i) {
573
573
  t[45].Type), e.$set(u);
574
574
  },
575
575
  i(t) {
576
- s || (F(e.$$.fragment, t), s = !0);
576
+ s || (P(e.$$.fragment, t), s = !0);
577
577
  },
578
578
  o(t) {
579
579
  B(e.$$.fragment, t), s = !1;
@@ -664,7 +664,7 @@ function Ye(i) {
664
664
  let _ = t;
665
665
  t = f(d), t === _ ? q[t].p(d, x) : (ye(), B(q[_], 1, 1, () => {
666
666
  q[_] = null;
667
- }), _e(), a = q[t], a ? a.p(d, x) : (a = q[t] = g[t](d), a.c()), F(a, 1), a.m(s, null)), (!l || x[0] & /*tableColumns*/
667
+ }), _e(), a = q[t], a ? a.p(d, x) : (a = q[t] = g[t](d), a.c()), P(a, 1), a.m(s, null)), (!l || x[0] & /*tableColumns*/
668
668
  1024 && u !== (u = ke(
669
669
  /*columnName*/
670
670
  d[52]
@@ -673,7 +673,7 @@ function Ye(i) {
673
673
  d[52]}`) + " svelte-1xsmrqu")) && m(e, "class", o);
674
674
  },
675
675
  i(d) {
676
- l || (F(a), l = !0);
676
+ l || (P(a), l = !0);
677
677
  },
678
678
  o(d) {
679
679
  B(a), l = !1;
@@ -691,7 +691,7 @@ function Be(i) {
691
691
  /*$_*/
692
692
  i[12](`transactionType.${/*transaction*/
693
693
  i[45].Type}`) + ""
694
- ), x, _, T, P, k = (
694
+ ), x, _, T, F, k = (
695
695
  /*$_*/
696
696
  i[12]("transactionDateTitle") + ""
697
697
  ), N, b, se, p, C = te(
@@ -700,34 +700,34 @@ function Be(i) {
700
700
  ).format(
701
701
  /*datetimeformat*/
702
702
  i[5]
703
- ) + "", v, V, E, G, re = (
703
+ ) + "", v, V, E, Z, re = (
704
704
  /*$_*/
705
705
  i[12]("transactionPaymentMethodTitle") + ""
706
- ), ie, pe, he, X, W = (
706
+ ), ie, pe, he, G, W = (
707
707
  /*transaction*/
708
708
  i[45].PaymentMethod + ""
709
- ), oe, ce, Z, ae, ue = (
709
+ ), oe, ce, J, ae, ue = (
710
710
  /*$_*/
711
711
  i[12]("transactionCodeTitle") + ""
712
712
  ), ve, qe, me, Y, de, fe = (
713
713
  /*transaction*/
714
714
  i[45].Code + ""
715
- ), ge, Te, J, K, n, y, j, I, le, xe, je, we, ne, be, Se, Ce, Ie, Re, ze, O = (
715
+ ), ge, Te, X, K, n, y, j, I, le, xe, je, we, ne, be, Se, Ce, Ie, Re, ze, O = (
716
716
  /*transaction*/
717
- i[45].RejectionNote && Je(i)
717
+ i[45].RejectionNote && Xe(i)
718
718
  ), U = (
719
719
  /*transaction*/
720
- i[45].PaymentFields && Xe(i)
720
+ i[45].PaymentFields && Ge(i)
721
721
  );
722
722
  return {
723
723
  c() {
724
- e = h("tr"), s = h("td"), t = h("div"), a = h("div"), u = h("div"), c = h("span"), l = w(o), g = w(" :"), q = S(), f = h("span"), x = w(d), _ = S(), T = h("div"), P = h("span"), N = w(k), b = w(" :"), se = S(), p = h("span"), v = w(C), V = S(), E = h("div"), G = h("span"), ie = w(re), pe = w(" :"), he = S(), X = h("span"), oe = w(W), ce = S(), Z = h("div"), ae = h("span"), ve = w(ue), qe = w(" :"), me = S(), Y = h("span"), de = h("span"), ge = w(fe), Te = S(), J = De("svg"), K = De("g"), n = De("path"), y = De("path"), I = S(), O && O.c(), le = S(), xe = h("div"), U && U.c(), je = S(), we = h("div"), ne = h("ui-image"), Ie = S(), m(c, "class", "DetailsTitle svelte-1xsmrqu"), m(f, "class", "DetailsValue svelte-1xsmrqu"), m(u, "class", "DetailsRow svelte-1xsmrqu"), m(P, "class", "DetailsTitle svelte-1xsmrqu"), m(p, "class", "DetailsValue svelte-1xsmrqu"), m(T, "class", "DetailsRow svelte-1xsmrqu"), m(G, "class", "DetailsTitle svelte-1xsmrqu"), m(X, "class", "DetailsValue svelte-1xsmrqu"), m(E, "class", "DetailsRow svelte-1xsmrqu"), m(ae, "class", "DetailsTitle svelte-1xsmrqu"), m(de, "class", "svelte-1xsmrqu"), m(n, "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"), m(n, "stroke", "#666666"), m(n, "stroke-linecap", "round"), m(n, "stroke-linejoin", "round"), m(n, "class", "svelte-1xsmrqu"), m(y, "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"), m(y, "stroke", "#666666"), m(y, "stroke-linecap", "round"), m(y, "stroke-linejoin", "round"), m(y, "class", "svelte-1xsmrqu"), m(K, "opacity", "0.5"), m(K, "class", "svelte-1xsmrqu"), m(J, "xmlns", "http://www.w3.org/2000/svg"), m(J, "width", "19"), m(J, "height", "19"), m(J, "viewBox", "0 0 19 19"), m(J, "fill", "none"), m(J, "class", "svelte-1xsmrqu"), m(Y, "data-copy", j = /*transaction*/
725
- i[45].Code), m(Y, "class", "DetailsValue CopyCode svelte-1xsmrqu"), m(Z, "class", "DetailsRow svelte-1xsmrqu"), m(a, "class", "StaticDetails svelte-1xsmrqu"), m(xe, "class", "DynamicDetails svelte-1xsmrqu"), Pe(ne.src, be = /*transaction*/
724
+ e = h("tr"), s = h("td"), t = h("div"), a = h("div"), u = h("div"), c = h("span"), l = w(o), g = w(" :"), q = S(), f = h("span"), x = w(d), _ = S(), T = h("div"), F = h("span"), N = w(k), b = w(" :"), se = S(), p = h("span"), v = w(C), V = S(), E = h("div"), Z = h("span"), ie = w(re), pe = w(" :"), he = S(), G = h("span"), oe = w(W), ce = S(), J = h("div"), ae = h("span"), ve = w(ue), qe = w(" :"), me = S(), Y = h("span"), de = h("span"), ge = w(fe), Te = S(), X = De("svg"), K = De("g"), n = De("path"), y = De("path"), I = S(), O && O.c(), le = S(), xe = h("div"), U && U.c(), je = S(), we = h("div"), ne = h("ui-image"), Ie = S(), m(c, "class", "DetailsTitle svelte-1xsmrqu"), m(f, "class", "DetailsValue svelte-1xsmrqu"), m(u, "class", "DetailsRow svelte-1xsmrqu"), m(F, "class", "DetailsTitle svelte-1xsmrqu"), m(p, "class", "DetailsValue svelte-1xsmrqu"), m(T, "class", "DetailsRow svelte-1xsmrqu"), m(Z, "class", "DetailsTitle svelte-1xsmrqu"), m(G, "class", "DetailsValue svelte-1xsmrqu"), m(E, "class", "DetailsRow svelte-1xsmrqu"), m(ae, "class", "DetailsTitle svelte-1xsmrqu"), m(de, "class", "svelte-1xsmrqu"), m(n, "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"), m(n, "stroke", "#666666"), m(n, "stroke-linecap", "round"), m(n, "stroke-linejoin", "round"), m(n, "class", "svelte-1xsmrqu"), m(y, "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"), m(y, "stroke", "#666666"), m(y, "stroke-linecap", "round"), m(y, "stroke-linejoin", "round"), m(y, "class", "svelte-1xsmrqu"), m(K, "opacity", "0.5"), m(K, "class", "svelte-1xsmrqu"), m(X, "xmlns", "http://www.w3.org/2000/svg"), m(X, "width", "19"), m(X, "height", "19"), m(X, "viewBox", "0 0 19 19"), m(X, "fill", "none"), m(X, "class", "svelte-1xsmrqu"), m(Y, "data-copy", j = /*transaction*/
725
+ i[45].Code), m(Y, "class", "DetailsValue CopyCode svelte-1xsmrqu"), m(J, "class", "DetailsRow svelte-1xsmrqu"), m(a, "class", "StaticDetails svelte-1xsmrqu"), m(xe, "class", "DynamicDetails svelte-1xsmrqu"), Fe(ne.src, be = /*transaction*/
726
726
  i[45].Logo) || Q(ne, "src", be), Q(ne, "class", "svelte-1xsmrqu"), m(we, "class", "DetailsLogo svelte-1xsmrqu"), m(t, "class", "ExpandedContent svelte-1xsmrqu"), m(s, "colspan", Ce = /*tableColumns*/
727
727
  i[10].length), m(s, "class", "no-padding svelte-1xsmrqu"), m(e, "class", "ExpandedRow svelte-1xsmrqu");
728
728
  },
729
729
  m(D, L) {
730
- A(D, e, L), r(e, s), r(s, t), r(t, a), r(a, u), r(u, c), r(c, l), r(c, g), r(u, q), r(u, f), r(f, x), r(a, _), r(a, T), r(T, P), r(P, N), r(P, b), r(T, se), r(T, p), r(p, v), r(a, V), r(a, E), r(E, G), r(G, ie), r(G, pe), r(E, he), r(E, X), r(X, oe), r(a, ce), r(a, Z), r(Z, ae), r(ae, ve), r(ae, qe), r(Z, me), r(Z, Y), r(Y, de), r(de, ge), r(Y, Te), r(Y, J), r(J, K), r(K, n), r(K, y), r(a, I), O && O.m(a, null), r(t, le), r(t, xe), U && U.m(xe, null), r(t, je), r(t, we), r(we, ne), r(e, Ie), Re || (ze = Ae(
730
+ A(D, e, L), r(e, s), r(s, t), r(t, a), r(a, u), r(u, c), r(c, l), r(c, g), r(u, q), r(u, f), r(f, x), r(a, _), r(a, T), r(T, F), r(F, N), r(F, b), r(T, se), r(T, p), r(p, v), r(a, V), r(a, E), r(E, Z), r(Z, ie), r(Z, pe), r(E, he), r(E, G), r(G, oe), r(a, ce), r(a, J), r(J, ae), r(ae, ve), r(ae, qe), r(J, me), r(J, Y), r(Y, de), r(de, ge), r(Y, Te), r(Y, X), r(X, K), r(K, n), r(K, y), r(a, I), O && O.m(a, null), r(t, le), r(t, xe), U && U.m(xe, null), r(t, je), r(t, we), r(we, ne), r(e, Ie), Re || (ze = Ae(
731
731
  Y,
732
732
  "mousedown",
733
733
  /*mousedown_handler*/
@@ -760,9 +760,9 @@ function Be(i) {
760
760
  D[45].Code + "") && H(ge, fe), L[0] & /*txnHistory*/
761
761
  128 && j !== (j = /*transaction*/
762
762
  D[45].Code) && m(Y, "data-copy", j), /*transaction*/
763
- D[45].RejectionNote ? O ? O.p(D, L) : (O = Je(D), O.c(), O.m(a, null)) : O && (O.d(1), O = null), /*transaction*/
764
- D[45].PaymentFields ? U ? U.p(D, L) : (U = Xe(D), U.c(), U.m(xe, null)) : U && (U.d(1), U = null), L[0] & /*txnHistory*/
765
- 128 && !Pe(ne.src, be = /*transaction*/
763
+ D[45].RejectionNote ? O ? O.p(D, L) : (O = Xe(D), O.c(), O.m(a, null)) : O && (O.d(1), O = null), /*transaction*/
764
+ D[45].PaymentFields ? U ? U.p(D, L) : (U = Ge(D), U.c(), U.m(xe, null)) : U && (U.d(1), U = null), L[0] & /*txnHistory*/
765
+ 128 && !Fe(ne.src, be = /*transaction*/
766
766
  D[45].Logo) && Q(ne, "src", be), L[0] & /*tableColumns*/
767
767
  1024 && Ce !== (Ce = /*tableColumns*/
768
768
  D[10].length) && m(s, "colspan", Ce);
@@ -783,7 +783,7 @@ function Be(i) {
783
783
  }
784
784
  };
785
785
  }
786
- function Je(i) {
786
+ function Xe(i) {
787
787
  let e, s, t = (
788
788
  /*$_*/
789
789
  i[12]("transactionRejectionNoteTitle") + ""
@@ -810,13 +810,13 @@ function Je(i) {
810
810
  }
811
811
  };
812
812
  }
813
- function Xe(i) {
813
+ function Ge(i) {
814
814
  let e, s = $(Object.entries(
815
815
  /*transaction*/
816
816
  i[45].PaymentFields
817
817
  )), t = [];
818
818
  for (let a = 0; a < s.length; a += 1)
819
- t[a] = Ge(Le(i, s, a));
819
+ t[a] = Ze(Le(i, s, a));
820
820
  return {
821
821
  c() {
822
822
  for (let a = 0; a < t.length; a += 1)
@@ -838,7 +838,7 @@ function Xe(i) {
838
838
  let c;
839
839
  for (c = 0; c < s.length; c += 1) {
840
840
  const o = Le(a, s, c);
841
- t[c] ? t[c].p(o, u) : (t[c] = Ge(o), t[c].c(), t[c].m(e.parentNode, e));
841
+ t[c] ? t[c].p(o, u) : (t[c] = Ze(o), t[c].c(), t[c].m(e.parentNode, e));
842
842
  }
843
843
  for (; c < t.length; c += 1)
844
844
  t[c].d(1);
@@ -850,7 +850,7 @@ function Xe(i) {
850
850
  }
851
851
  };
852
852
  }
853
- function Ge(i) {
853
+ function Ze(i) {
854
854
  let e, s, t = (
855
855
  /*$_*/
856
856
  i[12](`transaction${/*key*/
@@ -885,7 +885,7 @@ function Ge(i) {
885
885
  }
886
886
  };
887
887
  }
888
- function Ze(i) {
888
+ function Je(i) {
889
889
  let e, s, t, a, u, c, o = $(
890
890
  /*tableColumns*/
891
891
  i[10]
@@ -943,7 +943,7 @@ function Ze(i) {
943
943
  let _;
944
944
  for (_ = 0; _ < o.length; _ += 1) {
945
945
  const T = Oe(i, o, _);
946
- l[_] ? (l[_].p(T, x), F(l[_], 1)) : (l[_] = Ye(T), l[_].c(), F(l[_], 1), l[_].m(e, null));
946
+ l[_] ? (l[_].p(T, x), P(l[_], 1)) : (l[_] = Ye(T), l[_].c(), P(l[_], 1), l[_].m(e, null));
947
947
  }
948
948
  for (ye(), _ = o.length; _ < l.length; _ += 1)
949
949
  g(_);
@@ -965,13 +965,13 @@ function Ze(i) {
965
965
  ), /*expandedRow*/
966
966
  i[11] === /*index*/
967
967
  i[47] ? f ? (f.p(i, x), x[0] & /*expandedRow*/
968
- 2048 && F(f, 1)) : (f = Be(i), f.c(), F(f, 1), f.m(t.parentNode, t)) : f && (f.d(1), f = null);
968
+ 2048 && P(f, 1)) : (f = Be(i), f.c(), P(f, 1), f.m(t.parentNode, t)) : f && (f.d(1), f = null);
969
969
  },
970
970
  i(d) {
971
971
  if (!a) {
972
972
  for (let x = 0; x < o.length; x += 1)
973
- F(l[x]);
974
- F(f), a = !0;
973
+ P(l[x]);
974
+ P(f), a = !0;
975
975
  }
976
976
  },
977
977
  o(d) {
@@ -1008,10 +1008,10 @@ function zt(i) {
1008
1008
  let q = s;
1009
1009
  s = o(l), s === q ? ~s && c[s].p(l, g) : (t && (ye(), B(c[q], 1, 1, () => {
1010
1010
  c[q] = null;
1011
- }), _e()), ~s ? (t = c[s], t ? t.p(l, g) : (t = c[s] = u[s](l), t.c()), F(t, 1), t.m(e, null)) : t = null);
1011
+ }), _e()), ~s ? (t = c[s], t ? t.p(l, g) : (t = c[s] = u[s](l), t.c()), P(t, 1), t.m(e, null)) : t = null);
1012
1012
  },
1013
1013
  i(l) {
1014
- a || (F(t), a = !0);
1014
+ a || (P(t), a = !0);
1015
1015
  },
1016
1016
  o(l) {
1017
1017
  B(t), a = !1;
@@ -1021,10 +1021,10 @@ function zt(i) {
1021
1021
  }
1022
1022
  };
1023
1023
  }
1024
- function Pt(i, e, s) {
1024
+ function Ft(i, e, s) {
1025
1025
  let t;
1026
- ut(i, ht, (n) => s(12, t = n));
1027
- let { endpoint: a } = e, { session: u } = e, { lang: c = "en" } = e, { customerid: o } = e, { clientstyling: l = "" } = e, { clientstylingurl: g = "" } = e, { translationurl: q } = e, { tooltipduration: f = 1e3 } = e, { txncount: d } = e, { mbsource: x = "" } = e, { columns: _ } = e, { page: T = "0" } = e, { calculateprofit: P = "false" } = e, { fromdate: k = te().subtract(3, "month") } = e, { todate: N = te() } = e, { isshorttransactionhistory: b = "false" } = e, { dateformat: se = "DD.MM.YYYY" } = e, { datetimeformat: p = "DD.MM.YYYY HH:mm:ss" } = e, { userroles: C = "" } = e, v = [], V = !1, E, G, re, ie = !1, pe = [], he = [], X;
1026
+ ut(i, xt, (n) => s(12, t = n));
1027
+ let { endpoint: a } = e, { session: u } = e, { lang: c = "en" } = e, { customerid: o } = e, { clientstyling: l = "" } = e, { clientstylingurl: g = "" } = e, { translationurl: q } = e, { tooltipduration: f = 1e3 } = e, { txncount: d } = e, { mbsource: x = "" } = e, { columns: _ } = e, { page: T = "0" } = e, { calculateprofit: F = "false" } = e, { fromdate: k = te().subtract(3, "month") } = e, { todate: N = te() } = e, { isshorttransactionhistory: b = "false" } = e, { dateformat: se = "DD.MM.YYYY" } = e, { datetimeformat: p = "DD.MM.YYYY HH:mm:ss" } = e, { userroles: C = "" } = e, v = [], V = !1, E, Z, re, ie = !1, pe = [], he = [], G;
1028
1028
  var W;
1029
1029
  (function(n) {
1030
1030
  n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
@@ -1046,7 +1046,7 @@ function Pt(i, e, s) {
1046
1046
  n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
1047
1047
  })(ce || (ce = {})), mt(() => () => {
1048
1048
  });
1049
- const Z = () => {
1049
+ const J = () => {
1050
1050
  let n = q;
1051
1051
  if (n)
1052
1052
  return fetch(n).then((y) => y.json()).then((y) => {
@@ -1083,7 +1083,7 @@ function Pt(i, e, s) {
1083
1083
  [W.TaxDeduction]: ["Unknown"],
1084
1084
  [W.Unknown]: ["Unknown"]
1085
1085
  },
1086
- calculateProfit: P === "true"
1086
+ calculateProfit: F === "true"
1087
1087
  })
1088
1088
  };
1089
1089
  s(9, ie = !0), fetch(n, j).then((I) => I.json()).then((I) => {
@@ -1092,9 +1092,9 @@ function Pt(i, e, s) {
1092
1092
  type: "TransactionsLoaded",
1093
1093
  total: I.total
1094
1094
  };
1095
- P === "true" && (le.statistic = I.statistic), window.postMessage(le, window.location.href);
1095
+ F === "true" && (le.statistic = I.statistic), window.postMessage(le, window.location.href);
1096
1096
  }).catch((I) => console.log(I)).finally(() => s(9, ie = !1));
1097
- }, ve = (n) => (s(10, he = _.split(",")), s(11, X = null), n.map((y) => {
1097
+ }, ve = (n) => (s(10, he = _.split(",")), s(11, G = null), n.map((y) => {
1098
1098
  let j = y.generalFields.status;
1099
1099
  return y.generalFields.status.toLowerCase().includes("pending") && (j = ce.Pending), {
1100
1100
  Code: y.generalFields.code,
@@ -1117,7 +1117,7 @@ function Pt(i, e, s) {
1117
1117
  }, me = (n, y = !0) => {
1118
1118
  const I = n.currentTarget.dataset.copy;
1119
1119
  I && navigator.clipboard.writeText(I).then(() => {
1120
- y && (s(8, V = !0), clearTimeout(G), G = setTimeout(
1120
+ y && (s(8, V = !0), clearTimeout(Z), Z = setTimeout(
1121
1121
  () => {
1122
1122
  s(8, V = !1);
1123
1123
  },
@@ -1127,29 +1127,29 @@ function Pt(i, e, s) {
1127
1127
  console.error("Could not copy text: ", le);
1128
1128
  });
1129
1129
  }, Y = (n) => {
1130
- b !== "true" && s(11, X = X === n ? null : n);
1130
+ b !== "true" && s(11, G = G === n ? null : n);
1131
1131
  }, de = (n, y) => ({
1132
1132
  delay: 0,
1133
1133
  duration: 250,
1134
1134
  css: (j) => `overflow: hidden; transform: translateY(${(1 - j) * 20}px); opacity: ${j}`
1135
1135
  }), fe = () => {
1136
1136
  C.length > 0 && (pe = C.split(","));
1137
- }, ge = (n) => me(n), Te = (n) => Y(n), J = (n) => me(n, !1);
1137
+ }, ge = (n) => me(n), Te = (n) => Y(n), X = (n) => me(n, !1);
1138
1138
  function K(n) {
1139
1139
  dt[n ? "unshift" : "push"](() => {
1140
1140
  E = n, s(6, E);
1141
1141
  });
1142
1142
  }
1143
1143
  return i.$$set = (n) => {
1144
- "endpoint" in n && s(16, a = n.endpoint), "session" in n && s(17, u = n.session), "lang" in n && s(18, c = n.lang), "customerid" in n && s(19, o = n.customerid), "clientstyling" in n && s(0, l = n.clientstyling), "clientstylingurl" in n && s(1, g = n.clientstylingurl), "translationurl" in n && s(20, q = n.translationurl), "tooltipduration" in n && s(2, f = n.tooltipduration), "txncount" in n && s(21, d = n.txncount), "mbsource" in n && s(22, x = n.mbsource), "columns" in n && s(23, _ = n.columns), "page" in n && s(24, T = n.page), "calculateprofit" in n && s(25, P = n.calculateprofit), "fromdate" in n && s(26, k = n.fromdate), "todate" in n && s(27, N = n.todate), "isshorttransactionhistory" in n && s(3, b = n.isshorttransactionhistory), "dateformat" in n && s(4, se = n.dateformat), "datetimeformat" in n && s(5, p = n.datetimeformat), "userroles" in n && s(28, C = n.userroles);
1144
+ "endpoint" in n && s(16, a = n.endpoint), "session" in n && s(17, u = n.session), "lang" in n && s(18, c = n.lang), "customerid" in n && s(19, o = n.customerid), "clientstyling" in n && s(0, l = n.clientstyling), "clientstylingurl" in n && s(1, g = n.clientstylingurl), "translationurl" in n && s(20, q = n.translationurl), "tooltipduration" in n && s(2, f = n.tooltipduration), "txncount" in n && s(21, d = n.txncount), "mbsource" in n && s(22, x = n.mbsource), "columns" in n && s(23, _ = n.columns), "page" in n && s(24, T = n.page), "calculateprofit" in n && s(25, F = n.calculateprofit), "fromdate" in n && s(26, k = n.fromdate), "todate" in n && s(27, N = n.todate), "isshorttransactionhistory" in n && s(3, b = n.isshorttransactionhistory), "dateformat" in n && s(4, se = n.dateformat), "datetimeformat" in n && s(5, p = n.datetimeformat), "userroles" in n && s(28, C = n.userroles);
1145
1145
  }, i.$$.update = () => {
1146
1146
  i.$$.dirty[0] & /*lang*/
1147
1147
  262144 && c && ae(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1148
- 65 && l && E && vt(E, l), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1149
- 66 && g && E && gt(E, g), i.$$.dirty[0] & /*endpoint, session, customerid, lang, fromdate, todate, page, calculateprofit*/
1150
- 252641280 && a && u && o && c && k && N && T && P && ue(), i.$$.dirty[0] & /*translationurl*/
1151
- 1048576 && q && Z(), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
1152
- 4194368 && x && E && xt(E, `${x}.Style`, re), i.$$.dirty[0] & /*userroles*/
1148
+ 65 && l && E && pt(E, l), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1149
+ 66 && g && E && ht(E, g), i.$$.dirty[0] & /*endpoint, session, customerid, lang, fromdate, todate, page, calculateprofit*/
1150
+ 252641280 && a && u && o && c && k && N && T && F && ue(), i.$$.dirty[0] & /*translationurl*/
1151
+ 1048576 && q && J(), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
1152
+ 4194368 && x && E && vt(E, `${x}.Style`, re), i.$$.dirty[0] & /*userroles*/
1153
1153
  268435456 && C && fe();
1154
1154
  }, [
1155
1155
  l,
@@ -1163,7 +1163,7 @@ function Pt(i, e, s) {
1163
1163
  V,
1164
1164
  ie,
1165
1165
  he,
1166
- X,
1166
+ G,
1167
1167
  t,
1168
1168
  me,
1169
1169
  Y,
@@ -1177,22 +1177,22 @@ function Pt(i, e, s) {
1177
1177
  x,
1178
1178
  _,
1179
1179
  T,
1180
- P,
1180
+ F,
1181
1181
  k,
1182
1182
  N,
1183
1183
  C,
1184
1184
  ge,
1185
1185
  Te,
1186
- J,
1186
+ X,
1187
1187
  K
1188
1188
  ];
1189
1189
  }
1190
- class Ft extends nt {
1190
+ class Pt extends nt {
1191
1191
  constructor(e) {
1192
1192
  super(), rt(
1193
1193
  this,
1194
1194
  e,
1195
- Pt,
1195
+ Ft,
1196
1196
  zt,
1197
1197
  ot,
1198
1198
  {
@@ -1335,7 +1335,7 @@ class Ft extends nt {
1335
1335
  this.$$set({ userroles: e }), z();
1336
1336
  }
1337
1337
  }
1338
- pt(Ft, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {}, columns: {}, page: {}, calculateprofit: {}, fromdate: {}, todate: {}, isshorttransactionhistory: {}, dateformat: {}, datetimeformat: {}, userroles: {} }, [], [], !0);
1338
+ gt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {}, columns: {}, page: {}, calculateprofit: {}, fromdate: {}, todate: {}, isshorttransactionhistory: {}, dateformat: {}, datetimeformat: {}, userroles: {} }, [], [], !0);
1339
1339
  export {
1340
- Ft as default
1340
+ Pt as default
1341
1341
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DMrMmClP.cjs"),he=require("./CashierReceiptPage-B530KWIS.cjs"),O=require("./CashierMethodDetails-DjLhLSey.cjs");require("../stencil/ui-image-IJc7Zz_R.cjs");const je=require("./TxnTypeIcons-CTQXT_j5.cjs"),Ie=require("./TxnStatusIcon-CWkyVMIU.cjs");e.init({fallbackLocale:"en"});function _e(a,t){e.addMessages(a,t)}function Ae(a){e.$locale.set(a)}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"}},fr:{transactionHistoryTitle:"Historique des transactions",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Statut",transactionStatusIconTitle:"Statut",transactionTypeIconTitle:"Type",copyTransactionId:"ID de transaction copié dans le presse-papiers",transactionAmountTitle:"Montant",transactionPaymentMethodTitle:"Moyen de paiement",transactionRejectionNoteTitle:"Motif du rejet",transactionStatus:{Authorized:"Autorisé",Success:"Succès",Failed:"Échec",Rejected:"Rejeté",Pending:"En attente"},transactionType:{Deposit:"Dépôt",Withdraw:"Retrait"}}};function Pe(a){e.append_styles(a,"svelte-1xsmrqu",'.svelte-1xsmrqu.svelte-1xsmrqu,.svelte-1xsmrqu.svelte-1xsmrqu::before,.svelte-1xsmrqu.svelte-1xsmrqu::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1xsmrqu.svelte-1xsmrqu{width:50%;max-width:400px;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, rgba(249, 196, 5, 0.6078431373));transform:translateX(-50%);color:var(--emw--color-typography-button, #000000);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:2;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:15px;position:fixed;left:50%;top:40%;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.2)}.CashierTransactionHistoryContainer.svelte-1xsmrqu.svelte-1xsmrqu{position:relative;width:calc(100% - 20px);margin:auto}.CashierTransactionHistory.svelte-1xsmrqu.svelte-1xsmrqu{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-1xsmrqu table.svelte-1xsmrqu{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-1xsmrqu table.svelte-1xsmrqu:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1xsmrqu thead tr.svelte-1xsmrqu{color:var(--emw--color-primary, #F9C405);font-size:12px;height:50px;background-color:rgba(255, 255, 255, 0.05)}.CashierTransactionHistory.svelte-1xsmrqu tbody tr.svelte-1xsmrqu{color:var(--emw--color-typography, #fff);font-size:12px;font-weight:200}.CashierTransactionHistory.svelte-1xsmrqu tbody tr.svelte-1xsmrqu:not(:last-child):not(.Expanded){border-bottom:1px solid rgba(232, 233, 235, 0.2117647059)}.CashierTransactionHistory.svelte-1xsmrqu .TypeIcon.svelte-1xsmrqu{display:flex}.CashierTransactionHistory.svelte-1xsmrqu .StatusIcon svg.svelte-1xsmrqu{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-1xsmrqu .StatusIcon span.svelte-1xsmrqu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:80px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{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-1xsmrqu td:last-child .CashierTransactionHistoryStatusText.svelte-1xsmrqu{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:first-child{text-align:left;border-radius:10px 0 0 10px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:last-child{border-radius:0 10px 10px 0}.CashierTransactionHistory.svelte-1xsmrqu td .ExpandedContent.svelte-1xsmrqu{line-height:100%}.CashierTransactionHistory.svelte-1xsmrqu tr.svelte-1xsmrqu{position:relative}.CashierTransactionHistory.svelte-1xsmrqu tr.svelte-1xsmrqu:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1xsmrqu .CopyTooltip.svelte-1xsmrqu{width:100%}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1xsmrqu .CashierTransactionHistoryWrapper.svelte-1xsmrqu{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1xsmrqu td.column-TypeIcon.svelte-1xsmrqu:first-child{width:40px;text-align:left}.CashierTransactionHistory.svelte-1xsmrqu td.column-Code.svelte-1xsmrqu:first-child{max-width:60px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1xsmrqu table.svelte-1xsmrqu{table-layout:fixed}.CashierTransactionHistory.svelte-1xsmrqu table td.svelte-1xsmrqu{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1xsmrqu.svelte-1xsmrqu{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));width:100%;box-sizing:border-box;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:10px;z-index:1}.CashierTransactionHistoryWrapper.svelte-1xsmrqu.svelte-1xsmrqu::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-black, #000000) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 60%, var(--emw--color-white, #f5f5f5) 95%);opacity:0.2}.CashierTransactionHistoryTitle.svelte-1xsmrqu.svelte-1xsmrqu{display:none;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.Code.svelte-1xsmrqu.svelte-1xsmrqu{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.StatusIcon.svelte-1xsmrqu .StatusIconText.svelte-1xsmrqu{width:100px}.CashierTransactionHistoryStatus.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;gap:5px}.Amount.Withdraw.svelte-1xsmrqu.svelte-1xsmrqu:before{content:"-"}.Amount.Deposit.svelte-1xsmrqu.svelte-1xsmrqu:before{content:"+"}.Amount.Deposit.Success.svelte-1xsmrqu.svelte-1xsmrqu{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-1xsmrqu.svelte-1xsmrqu{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1xsmrqu.svelte-1xsmrqu{width:100%;overflow:auto}.CashierTransactionHistoryIcon.svelte-1xsmrqu.svelte-1xsmrqu{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-1xsmrqu.svelte-1xsmrqu{cursor:pointer}.ShortHistory.svelte-1xsmrqu .CashierTransactionHistoryTitle.svelte-1xsmrqu{display:inline-block;margin:10px;font-weight:500}.ShortHistory.svelte-1xsmrqu .TransactionHistoryRow.svelte-1xsmrqu{cursor:auto}.ShortHistory.svelte-1xsmrqu .TransactionHistoryRow.svelte-1xsmrqu:hover{background:unset}.ExpandedContent.svelte-1xsmrqu.svelte-1xsmrqu{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-1xsmrqu .DetailsLogo.svelte-1xsmrqu{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-1xsmrqu.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-1xsmrqu .DetailsTitle.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu .DetailsTitle.svelte-1xsmrqu{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-1xsmrqu .DetailsValue.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu .DetailsValue.svelte-1xsmrqu{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 12px);font-weight:200;white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-1xsmrqu.svelte-1xsmrqu:has(.Code){max-width:250px}td.svelte-1xsmrqu.svelte-1xsmrqu:has(.Code):hover{background:rgba(255, 255, 255, 0.2);border-radius:10px}.CopyCode.svelte-1xsmrqu.svelte-1xsmrqu{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-1xsmrqu.svelte-1xsmrqu:hover{background:var(--emw--color-primary, rgba(249, 196, 5, 0.4117647059))}.CopyCode.svelte-1xsmrqu span.svelte-1xsmrqu{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-1xsmrqu svg.svelte-1xsmrqu{flex-shrink:0}')}function ge(a,t,n){const s=a.slice();return s[45]=t[n],s[47]=n,s}function xe(a,t,n){const s=a.slice();return s[48]=t[n][0],s[49]=t[n][1],s}function ye(a,t,n){const s=a.slice();return s[52]=t[n],s[47]=n,s}function qe(a,t,n){const s=a.slice();return s[52]=t[n],s[47]=n,s}function ze(a){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",a[1]),e.set_custom_element_data(t,"clientstyling",a[0]),e.set_custom_element_data(t,"class","svelte-1xsmrqu")},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",n[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",n[0])},i:e.noop,o:e.noop,d(n){n&&e.detach(t)}}}function Fe(a){let t,n,s,i,u=a[12]("transactionHistoryTitle")+"",c,o,l,h,x,p,d,_,g,y=a[8]&&Te(a),D=e.ensure_array_like(a[10]),w=[];for(let m=0;m<D.length;m+=1)w[m]=we(qe(a,D,m));let S=e.ensure_array_like(a[7]),q=[];for(let m=0;m<S.length;m+=1)q[m]=He(ge(a,S,m));const U=m=>e.transition_out(q[m],1,1,()=>{q[m]=null});return{c(){t=e.element("div"),y&&y.c(),n=e.space(),s=e.element("div"),i=e.element("h3"),c=e.text(u),o=e.space(),l=e.element("div"),h=e.element("table"),x=e.element("thead"),p=e.element("tr");for(let m=0;m<w.length;m+=1)w[m].c();d=e.space(),_=e.element("tbody");for(let m=0;m<q.length;m+=1)q[m].c();e.attr(i,"class","CashierTransactionHistoryTitle svelte-1xsmrqu"),e.attr(p,"class","CashierTransactionHistoryHeader svelte-1xsmrqu"),e.attr(x,"class","svelte-1xsmrqu"),e.attr(_,"class","svelte-1xsmrqu"),e.attr(h,"class","svelte-1xsmrqu"),e.attr(l,"class","CashierTransactionHistoryContent svelte-1xsmrqu"),e.attr(s,"class","CashierTransactionHistoryWrapper svelte-1xsmrqu"),e.attr(t,"class","CashierTransactionHistory svelte-1xsmrqu"),e.toggle_class(t,"ShortHistory",a[3]==="true")},m(m,T){e.insert(m,t,T),y&&y.m(t,null),e.append(t,n),e.append(t,s),e.append(s,i),e.append(i,c),e.append(s,o),e.append(s,l),e.append(l,h),e.append(h,x),e.append(x,p);for(let f=0;f<w.length;f+=1)w[f]&&w[f].m(p,null);e.append(h,d),e.append(h,_);for(let f=0;f<q.length;f+=1)q[f]&&q[f].m(_,null);a[32](t),g=!0},p(m,T){if(m[8]?y?(y.p(m,T),T[0]&256&&e.transition_in(y,1)):(y=Te(m),y.c(),e.transition_in(y,1),y.m(t,n)):y&&(e.group_outros(),e.transition_out(y,1,1,()=>{y=null}),e.check_outros()),(!g||T[0]&4096)&&u!==(u=m[12]("transactionHistoryTitle")+"")&&e.set_data(c,u),T[0]&5120){D=e.ensure_array_like(m[10]);let f;for(f=0;f<D.length;f+=1){const A=qe(m,D,f);w[f]?w[f].p(A,T):(w[f]=we(A),w[f].c(),w[f].m(p,null))}for(;f<w.length;f+=1)w[f].d(1);w.length=D.length}if(T[0]&32184){S=e.ensure_array_like(m[7]);let f;for(f=0;f<S.length;f+=1){const A=ge(m,S,f);q[f]?(q[f].p(A,T),e.transition_in(q[f],1)):(q[f]=He(A),q[f].c(),e.transition_in(q[f],1),q[f].m(_,null))}for(e.group_outros(),f=S.length;f<q.length;f+=1)U(f);e.check_outros()}(!g||T[0]&8)&&e.toggle_class(t,"ShortHistory",m[3]==="true")},i(m){if(!g){e.transition_in(y);for(let T=0;T<S.length;T+=1)e.transition_in(q[T]);g=!0}},o(m){e.transition_out(y),q=q.filter(Boolean);for(let T=0;T<q.length;T+=1)e.transition_out(q[T]);g=!1},d(m){m&&e.detach(t),y&&y.d(),e.destroy_each(w,m),e.destroy_each(q,m),a[32](null)}}}function Te(a){let t,n=a[12]("copyTransactionId")+"",s,i,u,c;return{c(){t=e.element("div"),s=e.text(n),e.attr(t,"class","CopyTooltip svelte-1xsmrqu")},m(o,l){e.insert(o,t,l),e.append(t,s),c=!0},p(o,l){a=o,(!c||l[0]&4096)&&n!==(n=a[12]("copyTransactionId")+"")&&e.set_data(s,n)},i(o){c||(o&&e.add_render_callback(()=>{c&&(u&&u.end(1),i=e.create_in_transition(t,he.fade,{duration:100}),i.start())}),c=!0)},o(o){i&&i.invalidate(),o&&(u=e.create_out_transition(t,he.fade,{duration:a[2]})),c=!1},d(o){o&&e.detach(t),o&&u&&u.end()}}}function we(a){let t,n=a[12](`transaction${a[52]}Title`)+"",s;return{c(){t=e.element("td"),s=e.text(n),e.attr(t,"class","svelte-1xsmrqu")},m(i,u){e.insert(i,t,u),e.append(t,s)},p(i,u){u[0]&5120&&n!==(n=i[12](`transaction${i[52]}Title`)+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function Me(a){let t,n=a[45][a[52]]+"",s;return{c(){t=e.element("span"),s=e.text(n),e.attr(t,"class","svelte-1xsmrqu")},m(i,u){e.insert(i,t,u),e.append(t,s)},p(i,u){u[0]&1152&&n!==(n=i[45][i[52]]+"")&&e.set_data(s,n)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ne(a){let t=O.dayjs(a[45].DateTime).format(a[5])+"",n;return{c(){n=e.text(t)},m(s,i){e.insert(s,n,i)},p(s,i){i[0]&160&&t!==(t=O.dayjs(s[45].DateTime).format(s[5])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(s){s&&e.detach(n)}}}function Ee(a){let t=O.dayjs(a[45].Date).format(a[4])+"",n;return{c(){n=e.text(t)},m(s,i){e.insert(s,n,i)},p(s,i){i[0]&144&&t!==(t=O.dayjs(s[45].Date).format(s[4])+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(s){s&&e.detach(n)}}}function Le(a){let t=a[12](`transactionStatus.${a[45].Status}`)+"",n;return{c(){n=e.text(t)},m(s,i){e.insert(s,n,i)},p(s,i){i[0]&4224&&t!==(t=s[12](`transactionStatus.${s[45].Status}`)+"")&&e.set_data(n,t)},i:e.noop,o:e.noop,d(s){s&&e.detach(n)}}}function Oe(a){let t,n,s,i=a[12](`transactionStatus.${a[45].Status}`)+"",u,c;return t=new Ie.TxnStatusIcon({props:{status:a[45].Status}}),{c(){e.create_component(t.$$.fragment),n=e.space(),s=e.element("span"),u=e.text(i),e.attr(s,"class","StatusIconText svelte-1xsmrqu")},m(o,l){e.mount_component(t,o,l),e.insert(o,n,l),e.insert(o,s,l),e.append(s,u),c=!0},p(o,l){const h={};l[0]&128&&(h.status=o[45].Status),t.$set(h),(!c||l[0]&4224)&&i!==(i=o[12](`transactionStatus.${o[45].Status}`)+"")&&e.set_data(u,i)},i(o){c||(e.transition_in(t.$$.fragment,o),c=!0)},o(o){e.transition_out(t.$$.fragment,o),c=!1},d(o){o&&(e.detach(n),e.detach(s)),e.destroy_component(t,o)}}}function Ue(a){let t,n=a[45].Amount+"",s,i,u=a[45].Currency+"",c,o;return{c(){t=e.element("span"),s=e.text(n),i=e.space(),c=e.text(u),e.attr(t,"class",o="Amount "+a[45].Type+" "+a[45].Status+" svelte-1xsmrqu")},m(l,h){e.insert(l,t,h),e.append(t,s),e.append(t,i),e.append(t,c)},p(l,h){h[0]&128&&n!==(n=l[45].Amount+"")&&e.set_data(s,n),h[0]&128&&u!==(u=l[45].Currency+"")&&e.set_data(c,u),h[0]&128&&o!==(o="Amount "+l[45].Type+" "+l[45].Status+" svelte-1xsmrqu")&&e.attr(t,"class",o)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Ve(a){let t,n=a[45].Code+"",s,i,u,c;return{c(){t=e.element("span"),s=e.text(n),e.attr(t,"data-copy",i=a[45].Code),e.attr(t,"class","svelte-1xsmrqu"),e.toggle_class(t,"copied",a[8])},m(o,l){e.insert(o,t,l),e.append(t,s),u||(c=e.listen(t,"click",a[29]),u=!0)},p(o,l){l[0]&128&&n!==(n=o[45].Code+"")&&e.set_data(s,n),l[0]&128&&i!==(i=o[45].Code)&&e.attr(t,"data-copy",i),l[0]&256&&e.toggle_class(t,"copied",o[8])},i:e.noop,o:e.noop,d(o){o&&e.detach(t),u=!1,c()}}}function We(a){let t,n;return t=new je.TxnTypeIcons({props:{type:a[45].Type}}),{c(){e.create_component(t.$$.fragment)},m(s,i){e.mount_component(t,s,i),n=!0},p(s,i){const u={};i[0]&128&&(u.type=s[45].Type),t.$set(u)},i(s){n||(e.transition_in(t.$$.fragment,s),n=!0)},o(s){e.transition_out(t.$$.fragment,s),n=!1},d(s){e.destroy_component(t,s)}}}function Ye(a){let t,n=a[12](`transactionType.${a[45].Type}`)+"",s;return{c(){t=e.element("span"),s=e.text(n),e.attr(t,"class","svelte-1xsmrqu")},m(i,u){e.insert(i,t,u),e.append(t,s)},p(i,u){u[0]&4224&&n!==(n=i[12](`transactionType.${i[45].Type}`)+"")&&e.set_data(s,n)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function be(a){let t,n,s,i,u,c,o,l;const h=[Ye,We,Ve,Ue,Oe,Le,Ee,Ne,Me],x=[];function p(d,_){return d[52]==="Type"?0:d[52]==="TypeIcon"?1:d[52]==="Code"?2:d[52]==="Amount"?3:d[52]==="StatusIcon"?4:d[52]==="Status"?5:d[52]==="Date"?6:d[52]==="DateTime"?7:8}return s=p(a),i=x[s]=h[s](a),{c(){t=e.element("td"),n=e.element("span"),i.c(),c=e.space(),e.attr(n,"class",u=e.null_to_empty(a[52])+" svelte-1xsmrqu"),e.attr(t,"class",o=e.null_to_empty(`column-${a[52]}`)+" svelte-1xsmrqu")},m(d,_){e.insert(d,t,_),e.append(t,n),x[s].m(n,null),e.append(t,c),l=!0},p(d,_){let g=s;s=p(d),s===g?x[s].p(d,_):(e.group_outros(),e.transition_out(x[g],1,1,()=>{x[g]=null}),e.check_outros(),i=x[s],i?i.p(d,_):(i=x[s]=h[s](d),i.c()),e.transition_in(i,1),i.m(n,null)),(!l||_[0]&1024&&u!==(u=e.null_to_empty(d[52])+" svelte-1xsmrqu"))&&e.attr(n,"class",u),(!l||_[0]&1024&&o!==(o=e.null_to_empty(`column-${d[52]}`)+" svelte-1xsmrqu"))&&e.attr(t,"class",o)},i(d){l||(e.transition_in(i),l=!0)},o(d){e.transition_out(i),l=!1},d(d){d&&e.detach(t),x[s].d()}}}function Ce(a){let t,n,s,i,u,c,o=a[12]("transactionTypeTitle")+"",l,h,x,p,d=a[12](`transactionType.${a[45].Type}`)+"",_,g,y,D,w=a[12]("transactionDateTitle")+"",S,q,U,m,T=O.dayjs(a[45].DateTime).format(a[5])+"",f,A,H,N,X=a[12]("transactionPaymentMethodTitle")+"",V,ee,te,M,P=a[45].PaymentMethod+"",G,J,E,W,Z=a[12]("transactionCodeTitle")+"",se,ie,K,z,Q,$=a[45].Code+"",ne,le,F,L,r,v,C,k,Y,ae,pe,re,B,oe,ue,ce,me,de,fe,j=a[45].RejectionNote&&ke(a),I=a[45].PaymentFields&&De(a);return{c(){t=e.element("tr"),n=e.element("td"),s=e.element("div"),i=e.element("div"),u=e.element("div"),c=e.element("span"),l=e.text(o),h=e.text(" :"),x=e.space(),p=e.element("span"),_=e.text(d),g=e.space(),y=e.element("div"),D=e.element("span"),S=e.text(w),q=e.text(" :"),U=e.space(),m=e.element("span"),f=e.text(T),A=e.space(),H=e.element("div"),N=e.element("span"),V=e.text(X),ee=e.text(" :"),te=e.space(),M=e.element("span"),G=e.text(P),J=e.space(),E=e.element("div"),W=e.element("span"),se=e.text(Z),ie=e.text(" :"),K=e.space(),z=e.element("span"),Q=e.element("span"),ne=e.text($),le=e.space(),F=e.svg_element("svg"),L=e.svg_element("g"),r=e.svg_element("path"),v=e.svg_element("path"),k=e.space(),j&&j.c(),Y=e.space(),ae=e.element("div"),I&&I.c(),pe=e.space(),re=e.element("div"),B=e.element("ui-image"),me=e.space(),e.attr(c,"class","DetailsTitle svelte-1xsmrqu"),e.attr(p,"class","DetailsValue svelte-1xsmrqu"),e.attr(u,"class","DetailsRow svelte-1xsmrqu"),e.attr(D,"class","DetailsTitle svelte-1xsmrqu"),e.attr(m,"class","DetailsValue svelte-1xsmrqu"),e.attr(y,"class","DetailsRow svelte-1xsmrqu"),e.attr(N,"class","DetailsTitle svelte-1xsmrqu"),e.attr(M,"class","DetailsValue svelte-1xsmrqu"),e.attr(H,"class","DetailsRow svelte-1xsmrqu"),e.attr(W,"class","DetailsTitle svelte-1xsmrqu"),e.attr(Q,"class","svelte-1xsmrqu"),e.attr(r,"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(r,"stroke","#666666"),e.attr(r,"stroke-linecap","round"),e.attr(r,"stroke-linejoin","round"),e.attr(r,"class","svelte-1xsmrqu"),e.attr(v,"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(v,"stroke","#666666"),e.attr(v,"stroke-linecap","round"),e.attr(v,"stroke-linejoin","round"),e.attr(v,"class","svelte-1xsmrqu"),e.attr(L,"opacity","0.5"),e.attr(L,"class","svelte-1xsmrqu"),e.attr(F,"xmlns","http://www.w3.org/2000/svg"),e.attr(F,"width","19"),e.attr(F,"height","19"),e.attr(F,"viewBox","0 0 19 19"),e.attr(F,"fill","none"),e.attr(F,"class","svelte-1xsmrqu"),e.attr(z,"data-copy",C=a[45].Code),e.attr(z,"class","DetailsValue CopyCode svelte-1xsmrqu"),e.attr(E,"class","DetailsRow svelte-1xsmrqu"),e.attr(i,"class","StaticDetails svelte-1xsmrqu"),e.attr(ae,"class","DynamicDetails svelte-1xsmrqu"),e.src_url_equal(B.src,oe=a[45].Logo)||e.set_custom_element_data(B,"src",oe),e.set_custom_element_data(B,"class","svelte-1xsmrqu"),e.attr(re,"class","DetailsLogo svelte-1xsmrqu"),e.attr(s,"class","ExpandedContent svelte-1xsmrqu"),e.attr(n,"colspan",ce=a[10].length),e.attr(n,"class","no-padding svelte-1xsmrqu"),e.attr(t,"class","ExpandedRow svelte-1xsmrqu")},m(b,R){e.insert(b,t,R),e.append(t,n),e.append(n,s),e.append(s,i),e.append(i,u),e.append(u,c),e.append(c,l),e.append(c,h),e.append(u,x),e.append(u,p),e.append(p,_),e.append(i,g),e.append(i,y),e.append(y,D),e.append(D,S),e.append(D,q),e.append(y,U),e.append(y,m),e.append(m,f),e.append(i,A),e.append(i,H),e.append(H,N),e.append(N,V),e.append(N,ee),e.append(H,te),e.append(H,M),e.append(M,G),e.append(i,J),e.append(i,E),e.append(E,W),e.append(W,se),e.append(W,ie),e.append(E,K),e.append(E,z),e.append(z,Q),e.append(Q,ne),e.append(z,le),e.append(z,F),e.append(F,L),e.append(L,r),e.append(L,v),e.append(i,k),j&&j.m(i,null),e.append(s,Y),e.append(s,ae),I&&I.m(ae,null),e.append(s,pe),e.append(s,re),e.append(re,B),e.append(t,me),de||(fe=e.listen(z,"mousedown",a[31]),de=!0)},p(b,R){R[0]&4096&&o!==(o=b[12]("transactionTypeTitle")+"")&&e.set_data(l,o),R[0]&4224&&d!==(d=b[12](`transactionType.${b[45].Type}`)+"")&&e.set_data(_,d),R[0]&4096&&w!==(w=b[12]("transactionDateTitle")+"")&&e.set_data(S,w),R[0]&160&&T!==(T=O.dayjs(b[45].DateTime).format(b[5])+"")&&e.set_data(f,T),R[0]&4096&&X!==(X=b[12]("transactionPaymentMethodTitle")+"")&&e.set_data(V,X),R[0]&128&&P!==(P=b[45].PaymentMethod+"")&&e.set_data(G,P),R[0]&4096&&Z!==(Z=b[12]("transactionCodeTitle")+"")&&e.set_data(se,Z),R[0]&128&&$!==($=b[45].Code+"")&&e.set_data(ne,$),R[0]&128&&C!==(C=b[45].Code)&&e.attr(z,"data-copy",C),b[45].RejectionNote?j?j.p(b,R):(j=ke(b),j.c(),j.m(i,null)):j&&(j.d(1),j=null),b[45].PaymentFields?I?I.p(b,R):(I=De(b),I.c(),I.m(ae,null)):I&&(I.d(1),I=null),R[0]&128&&!e.src_url_equal(B.src,oe=b[45].Logo)&&e.set_custom_element_data(B,"src",oe),R[0]&1024&&ce!==(ce=b[10].length)&&e.attr(n,"colspan",ce)},i(b){b&&(ue||e.add_render_callback(()=>{ue=e.create_in_transition(s,a[15],{}),ue.start()}))},o:e.noop,d(b){b&&e.detach(t),j&&j.d(),I&&I.d(),de=!1,fe()}}}function ke(a){let t,n,s=a[12]("transactionRejectionNoteTitle")+"",i,u,c,o,l=a[45].RejectionNote+"",h;return{c(){t=e.element("div"),n=e.element("span"),i=e.text(s),u=e.text(" :"),c=e.space(),o=e.element("span"),h=e.text(l),e.attr(n,"class","DetailsTitle svelte-1xsmrqu"),e.attr(o,"class","DetailsValue svelte-1xsmrqu"),e.attr(t,"class","DetailsRow svelte-1xsmrqu")},m(x,p){e.insert(x,t,p),e.append(t,n),e.append(n,i),e.append(n,u),e.append(t,c),e.append(t,o),e.append(o,h)},p(x,p){p[0]&4096&&s!==(s=x[12]("transactionRejectionNoteTitle")+"")&&e.set_data(i,s),p[0]&128&&l!==(l=x[45].RejectionNote+"")&&e.set_data(h,l)},d(x){x&&e.detach(t)}}}function De(a){let t,n=e.ensure_array_like(Object.entries(a[45].PaymentFields)),s=[];for(let i=0;i<n.length;i+=1)s[i]=Se(xe(a,n,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=e.empty()},m(i,u){for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(i,u);e.insert(i,t,u)},p(i,u){if(u[0]&4224){n=e.ensure_array_like(Object.entries(i[45].PaymentFields));let c;for(c=0;c<n.length;c+=1){const o=xe(i,n,c);s[c]?s[c].p(o,u):(s[c]=Se(o),s[c].c(),s[c].m(t.parentNode,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=n.length}},d(i){i&&e.detach(t),e.destroy_each(s,i)}}}function Se(a){let t,n,s=a[12](`transaction${a[48]}Detail`,{default:a[48]})+"",i,u,c,o,l=a[49]+"",h,x;return{c(){t=e.element("div"),n=e.element("span"),i=e.text(s),u=e.text(" :"),c=e.space(),o=e.element("span"),h=e.text(l),x=e.space(),e.attr(n,"class","DetailsTitle svelte-1xsmrqu"),e.attr(o,"class","DetailsValue svelte-1xsmrqu"),e.attr(t,"class","DetailsRow svelte-1xsmrqu")},m(p,d){e.insert(p,t,d),e.append(t,n),e.append(n,i),e.append(n,u),e.append(t,c),e.append(t,o),e.append(o,h),e.append(t,x)},p(p,d){d[0]&4224&&s!==(s=p[12](`transaction${p[48]}Detail`,{default:p[48]})+"")&&e.set_data(i,s),d[0]&128&&l!==(l=p[49]+"")&&e.set_data(h,l)},d(p){p&&e.detach(t)}}}function He(a){let t,n,s,i,u,c,o=e.ensure_array_like(a[10]),l=[];for(let d=0;d<o.length;d+=1)l[d]=be(ye(a,o,d));const h=d=>e.transition_out(l[d],1,1,()=>{l[d]=null});function x(){return a[30](a[47])}let p=a[11]===a[47]&&Ce(a);return{c(){t=e.element("tr");for(let d=0;d<l.length;d+=1)l[d].c();n=e.space(),p&&p.c(),s=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-1xsmrqu"),e.toggle_class(t,"AllowExpand",a[3]==="true"),e.toggle_class(t,"Expanded",a[11]===a[47])},m(d,_){e.insert(d,t,_);for(let g=0;g<l.length;g+=1)l[g]&&l[g].m(t,null);e.insert(d,n,_),p&&p.m(d,_),e.insert(d,s,_),i=!0,u||(c=e.listen(t,"click",x),u=!0)},p(d,_){if(a=d,_[0]&13744){o=e.ensure_array_like(a[10]);let g;for(g=0;g<o.length;g+=1){const y=ye(a,o,g);l[g]?(l[g].p(y,_),e.transition_in(l[g],1)):(l[g]=be(y),l[g].c(),e.transition_in(l[g],1),l[g].m(t,null))}for(e.group_outros(),g=o.length;g<l.length;g+=1)h(g);e.check_outros()}(!i||_[0]&8)&&e.toggle_class(t,"AllowExpand",a[3]==="true"),(!i||_[0]&2048)&&e.toggle_class(t,"Expanded",a[11]===a[47]),a[11]===a[47]?p?(p.p(a,_),_[0]&2048&&e.transition_in(p,1)):(p=Ce(a),p.c(),e.transition_in(p,1),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i(d){if(!i){for(let _=0;_<o.length;_+=1)e.transition_in(l[_]);e.transition_in(p),i=!0}},o(d){l=l.filter(Boolean);for(let _=0;_<l.length;_+=1)e.transition_out(l[_]);i=!1},d(d){d&&(e.detach(t),e.detach(n),e.detach(s)),e.destroy_each(l,d),p&&p.d(d),u=!1,c()}}}function Be(a){let t,n,s,i;const u=[Fe,ze],c=[];function o(l,h){return l[7].length?0:l[9]?1:-1}return~(n=o(a))&&(s=c[n]=u[n](a)),{c(){t=e.element("div"),s&&s.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-1xsmrqu")},m(l,h){e.insert(l,t,h),~n&&c[n].m(t,null),i=!0},p(l,h){let x=n;n=o(l),n===x?~n&&c[n].p(l,h):(s&&(e.group_outros(),e.transition_out(c[x],1,1,()=>{c[x]=null}),e.check_outros()),~n?(s=c[n],s?s.p(l,h):(s=c[n]=u[n](l),s.c()),e.transition_in(s,1),s.m(t,null)):s=null)},i(l){i||(e.transition_in(s),i=!0)},o(l){e.transition_out(s),i=!1},d(l){l&&e.detach(t),~n&&c[n].d()}}}function Xe(a,t,n){let s;e.component_subscribe(a,e.$format,r=>n(12,s=r));let{endpoint:i}=t,{session:u}=t,{lang:c="en"}=t,{customerid:o}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{translationurl:x}=t,{tooltipduration:p=1e3}=t,{txncount:d}=t,{mbsource:_=""}=t,{columns:g}=t,{page:y="0"}=t,{calculateprofit:D="false"}=t,{fromdate:w=O.dayjs().subtract(3,"month")}=t,{todate:S=O.dayjs()}=t,{isshorttransactionhistory:q="false"}=t,{dateformat:U="DD.MM.YYYY"}=t,{datetimeformat:m="DD.MM.YYYY HH:mm:ss"}=t,{userroles:T=""}=t,f=[],A=!1,H,N,X,V=!1,ee=[],te=[],M;var P;(function(r){r.Deposit="deposit",r.Withdraw="withdraw",r.Refund="refund",r.Unknown="unknown",r.TaxDeduction="taxDeduction"})(P||(P={}));const G=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var J;(function(r){r.Authorized="Authorized",r.Success="Success",r.Failed="Failed",r.Rejected="Rejected",r.Pending="Pending"})(J||(J={})),e.onMount(()=>()=>{});const E=()=>{let r=x;if(r)return fetch(r).then(v=>v.json()).then(v=>{Object.keys(v).forEach(C=>{_e(C,v[C])})}).catch(v=>{console.log(v)})};Object.keys(ve).forEach(r=>{_e(r,ve[r])});const W=()=>{Ae(c)},Z=()=>{const r=new URL(`${i}/api/v1/mm/payment/gettransactionshistory`),v=new Headers;v.append("accept","application/json"),v.append("Content-Type","application/json"),v.append("X-SessionId",`${u}`),ee.indexOf("MM_CHANNEL_BETA")!=-1&&v.append("MM_CHANNEL","BETA");const C={method:"POST",mode:"cors",headers:v,body:JSON.stringify({language:c,customerId:o,count:+d,page:+y,fromDate:w,toDate:S,statuses:{[P.Deposit]:G,[P.Withdraw]:G,[P.Refund]:["Unknown"],[P.TaxDeduction]:["Unknown"],[P.Unknown]:["Unknown"]},calculateProfit:D==="true"})};n(9,V=!0),fetch(r,C).then(k=>k.json()).then(k=>{n(7,f=se((k==null?void 0:k.items)||[]));const Y={type:"TransactionsLoaded",total:k.total};D==="true"&&(Y.statistic=k.statistic),window.postMessage(Y,window.location.href)}).catch(k=>console.log(k)).finally(()=>n(9,V=!1))},se=r=>(n(10,te=g.split(",")),n(11,M=null),r.map(v=>{let C=v.generalFields.status;return v.generalFields.status.toLowerCase().includes("pending")&&(C=J.Pending),{Code:v.generalFields.code,Date:v.generalFields.created,DateTime:v.generalFields.created,Status:C,Type:v.generalFields.type,Amount:v.generalFields.amount,Currency:v.generalFields.currency,PaymentMethod:v.generalFields.paymentMethod,RejectionNote:v.generalFields.rejectionNote,PaymentFields:v.paymentFields&&Object.keys(v.paymentFields).length>0?v.paymentFields:null,Logo:ie(v.logos)}})||[]),ie=r=>{if(r&&r.length){const v=r.find(k=>k.logoType==="Mobile"),C=r.find(k=>k.logoType==="Desktop");return v&&v.logoUrl||C&&C.logoUrl}},K=(r,v=!0)=>{const k=r.currentTarget.dataset.copy;k&&navigator.clipboard.writeText(k).then(()=>{v&&(n(8,A=!0),clearTimeout(N),N=setTimeout(()=>{n(8,A=!1)},2e3))}).catch(Y=>{console.error("Could not copy text: ",Y)})},z=r=>{q!=="true"&&n(11,M=M===r?null:r)},Q=(r,v)=>({delay:0,duration:250,css:C=>`overflow: hidden; transform: translateY(${(1-C)*20}px); opacity: ${C}`}),$=()=>{T.length>0&&(ee=T.split(","))},ne=r=>K(r),le=r=>z(r),F=r=>K(r,!1);function L(r){e.binding_callbacks[r?"unshift":"push"](()=>{H=r,n(6,H)})}return a.$$set=r=>{"endpoint"in r&&n(16,i=r.endpoint),"session"in r&&n(17,u=r.session),"lang"in r&&n(18,c=r.lang),"customerid"in r&&n(19,o=r.customerid),"clientstyling"in r&&n(0,l=r.clientstyling),"clientstylingurl"in r&&n(1,h=r.clientstylingurl),"translationurl"in r&&n(20,x=r.translationurl),"tooltipduration"in r&&n(2,p=r.tooltipduration),"txncount"in r&&n(21,d=r.txncount),"mbsource"in r&&n(22,_=r.mbsource),"columns"in r&&n(23,g=r.columns),"page"in r&&n(24,y=r.page),"calculateprofit"in r&&n(25,D=r.calculateprofit),"fromdate"in r&&n(26,w=r.fromdate),"todate"in r&&n(27,S=r.todate),"isshorttransactionhistory"in r&&n(3,q=r.isshorttransactionhistory),"dateformat"in r&&n(4,U=r.dateformat),"datetimeformat"in r&&n(5,m=r.datetimeformat),"userroles"in r&&n(28,T=r.userroles)},a.$$.update=()=>{a.$$.dirty[0]&262144&&c&&W(),a.$$.dirty[0]&65&&l&&H&&e.setClientStyling(H,l),a.$$.dirty[0]&66&&h&&H&&e.setClientStylingURL(H,h),a.$$.dirty[0]&252641280&&i&&u&&o&&c&&w&&S&&y&&D&&Z(),a.$$.dirty[0]&1048576&&x&&E(),a.$$.dirty[0]&4194368&&_&&H&&e.setStreamStyling(H,`${_}.Style`,X),a.$$.dirty[0]&268435456&&T&&$()},[l,h,p,q,U,m,H,f,A,V,te,M,s,K,z,Q,i,u,c,o,x,d,_,g,y,D,w,S,T,ne,le,F,L]}class Re extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Xe,Be,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,userroles:28},Pe,[-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()}get userroles(){return this.$$.ctx[28]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(Re,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{},userroles:{}},[],[],!0);exports.default=Re;