paymob-pixel-alpha 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Inter-Regular.ttf → Inter.ttf} +0 -0
- package/Inter.woff +0 -0
- package/Inter.woff2 +0 -0
- package/assets/fonts/{SAR-Symbol/Inter-Regular.ttf → Currency-Symbols/Inter.ttf} +0 -0
- package/assets/fonts/Currency-Symbols/Inter.woff +0 -0
- package/assets/fonts/Currency-Symbols/Inter.woff2 +0 -0
- package/checkGreenIcon.2fdf1421207f99ebe329055b1350a193.svg +16 -0
- package/{xmark.de98e58abcad3fa106c3784223a0479b.svg → close.374155211751ebb93f68c551799e96d4.svg} +2 -2
- package/main.js +761 -575
- package/package.json +1 -1
- package/styles.css +69 -27
- package/chevron-left.0db02cc783fd28339af092ce632655a5.svg +0 -16
- package/chevron-right.7f4f648f04bde910c6e81a24aed750ea.svg +0 -16
package/main.js
CHANGED
|
@@ -10101,7 +10101,7 @@ const premium_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA
|
|
|
10101
10101
|
;// ../../libs/kit-components/src/assets/icons/souhoola.png
|
|
10102
10102
|
const souhoola_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbCSURBVHgB1VppbFRVFP7umzfTmSkdRruzdaoUUZHSsqkUGQSMIBr4Y0xIZNFoMCZiMKJWYQiCwR8oP3CJP8QoJsZEGjFKiAQEg5BQGHYKBcomUGg7dKOzveu57w10n3c7lDr9kk765p53e8493zn33nPK0BvgPrelxTqHc4zhFpanamyMnatuK1fct0UalFBVhPEqpvFDmgY/LOGdcPiqcJdgSBSkNELWt8CZl568SASM+6FhPZC4MT03oFXxJfTkRm+B8Y3Qwit7akjPDAiuXtHrincE4z6klK6UFpeSuvWJB4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7PEumUEvaXjyKlXo0rW/TDSDibUxHIa8CNItN1FTgvjK0yk+K0JkcXV6J6fA3cpwbipVkzaU+wd3ngUoMMaVcdd5x/bNFZBLJuYuA1F2a/8TSNq52IwWiiYdszMWnNOP2vHXv1NEJqGKZg8FtQOiOHfjGtv2hWjrPTLqDgNw8yKzIw+seHYLtGK+ogHtYoyDjrxvBfhmDmkiko+bQYh948jTApEbVH0ZgXxMjNecg4fj/ytw5C47BmBAe2gFOVN+twOko+K8a0dychpdmG64U1+GPDLoStEZiC42um1zqDtjpIwnXZgWdLJ2PET/lEQcpOtOUbniA/cRVcieLAO0exddVuGo9tSjQ+dsMjmFr6JGzkAfFFlDbDqBJBSsROFDVOPv+WVKPs+z8pXdfLKcND+YY3W9aIi7wXkmCMYag/GwVlHuT+k4m0RiflWIbq4bXwLzqBs95LlPbb80vcG4Ycz0XJ8kIM3TEYarMRD+EBUdwYV4uTiypRPvckgtagrBp+2D8oit3I6KLM2AokCH0SLr9XDWhyYOApFzS6Q9wc1ohb4lzFenhz4HwhHKUbjT9p0EhcKZOwnNINiD6iRhQjKd3wOV+P/gLRS4gVuFq3VXv4c0jsykkB0QiJodWA/uIFztt1cTqHXXAN9QIgfUfuY1RR5ml3f+l8MtPYXCQnlQJ616YDOhvgeJ/aO/xtJBtYdGFXLaeuz8aUX3WuJQuELikflXU1FH/rucsNrlegB22pr7th870zuIa6NfgWfb/JBXQqCzbEgXyb1Wh8eNAX0Dv44bkybdaeVWTvPaWMvSgOZTqi5yVl4Q3RS2CYj96Dobg4DcQaF7JIvCauG0J1Vab/64FUda8TOP6ij52JKH4bvVPUv2MM7eBGR9/ToWAW0IsHnPmp7ED7jEJn+WBZokq3xX+Xuo/33e1pkAAAAABJRU5ErkJggg==";
|
|
10103
10103
|
;// ../../libs/kit-components/src/assets/icons/forsa.png
|
|
10104
|
-
const forsa_namespaceObject = "data:image/png;base64,
|
|
10104
|
+
const forsa_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUh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G7NLsViwGVsQATp9P1+wdfVeT6phzM8DCVtQjUGM5ez0gNCqpqa4QA1TdJ9Qis+nJduYtYq0bWmq2m4lk8PTbFp4JxELaIxVMxzNZ+2mmd3cxBRDhw50b5DY59uW3oJkqYpJdEcu2eYhjMjUAvDmEVXCnPpvDD+mbNHzMtJYSfd0NZiyBVsloWUyTItFeEDBtMGS7WNSwj0bqCqlLGTTpElW2cpMKC4TjS32MmHEFiQUl0ESQRzF9+nqkGSDdeUbyWtTJsIw76dwQDxM+IzlbLzLpmRldNHKLsMcpeG2iZfncFGFaRhqmQyuuFUjOfpxrm+IyET3iZiehrNSY1Kw25wsN7m3TilYs+kT9NUfQVz0gS0YH6ZylbeYj5F+NMcfe7S1wns1+IX6+tqqDpPyWMW9wWOPfAJkbq4u/1iDswm/sl8rZz+qvImB7fTuJIb7IyO2KlkoCvNZqwYXhk7uGJmcjcHVdF29czeSsWVpO683EdUpm5NE/06GLRQ6jFKPJ7vwAkStZDYs4rd8+Du62sJCUzmbO0ZWg0/zgNfzyUIqJoqLXRtVtMyyklb6IgZhWIUhlFv5KWG6kpSUmZvBiCGQA8pE1znx3NjuTFsH4bxn7UTdfDBkQ++v/cnoDjWXRZuAxnQvzZ/7LYppFPqo5wl60+lcn5/Od+FUaL6z2NaPb/zxrTJjjN7zdntqVTh/5y+ABmm4XK+XVTH4th8rTScf3/rjqufF0Oo+nW/FcmRTN47z19Ctv0tnFztt4hmu302WWZxu6Mu6u/P1uDeP8/V6fjR3Bzl/A05f/KNQCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLi/8p/gEiVuHKRekAOwAAAABJRU5ErkJggg==";
|
|
10105
10105
|
;// ../../libs/kit-components/src/assets/icons/tabby.png
|
|
10106
10106
|
const tabby_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAA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BsMa4UAoLT4mRN8OAi8a7DBFeElsdVtKiupY2xqcMahJaEZIjm4QgexLAVCEdQGQaV/uCsjIK+hJQqDvuKg28e0P/FwpewEq2kIKNpuEKH438Qv7XnvLVM/QAAAABJRU5ErkJggg==";
|
|
10107
10107
|
;// ../../libs/kit-components/src/assets/icons/postpay.png
|
|
@@ -10274,6 +10274,11 @@ function Accordion(props) {
|
|
|
10274
10274
|
const {
|
|
10275
10275
|
t
|
|
10276
10276
|
} = useTranslation('kitComponents');
|
|
10277
|
+
const {
|
|
10278
|
+
t: tPayments
|
|
10279
|
+
} = useTranslation('flash', {
|
|
10280
|
+
keyPrefix: 'payments'
|
|
10281
|
+
});
|
|
10277
10282
|
const {
|
|
10278
10283
|
title,
|
|
10279
10284
|
type,
|
|
@@ -10314,7 +10319,7 @@ function Accordion(props) {
|
|
|
10314
10319
|
alt: title
|
|
10315
10320
|
}), /*#__PURE__*/_jsx("span", {
|
|
10316
10321
|
className: "text-gray-900 capitalize font-semibold",
|
|
10317
|
-
children: title
|
|
10322
|
+
children: tPayments(title)
|
|
10318
10323
|
}), /*#__PURE__*/_jsxs("div", {
|
|
10319
10324
|
className: "flex ml-auto gap-2",
|
|
10320
10325
|
children: [!!discountCount && /*#__PURE__*/_jsxs("div", {
|
|
@@ -10583,7 +10588,8 @@ function ModalView_ModalView(props) {
|
|
|
10583
10588
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
10584
10589
|
className: `relative bg-white shadow ${borderStyle === borderStyle_borderStyleConstants.RECTANGULAR ? 'rounded-none' : 'rounded-lg'}`,
|
|
10585
10590
|
style: {
|
|
10586
|
-
borderRadius: (customStyle == null ? void 0 : customStyle['borderRadius']) || ''
|
|
10591
|
+
borderRadius: (customStyle == null ? void 0 : customStyle['borderRadius']) || '',
|
|
10592
|
+
backgroundColor: (customStyle == null ? void 0 : customStyle['backgroundColor']) || ''
|
|
10587
10593
|
},
|
|
10588
10594
|
children: children
|
|
10589
10595
|
})
|
|
@@ -10591,7 +10597,7 @@ function ModalView_ModalView(props) {
|
|
|
10591
10597
|
})
|
|
10592
10598
|
});
|
|
10593
10599
|
}
|
|
10594
|
-
/* harmony default export */ const components_ModalView = (
|
|
10600
|
+
/* harmony default export */ const components_ModalView = (ModalView_ModalView);
|
|
10595
10601
|
;// ../../libs/kit-components/src/assets/icons/Delete-icon.svg
|
|
10596
10602
|
var _rect, Delete_icon_path;
|
|
10597
10603
|
var Delete_icon_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
@@ -13700,12 +13706,20 @@ const ContactForm = /*#__PURE__*/(/* unused pure expression or super */ null &&
|
|
|
13700
13706
|
});
|
|
13701
13707
|
} else {
|
|
13702
13708
|
const name = e.target.value;
|
|
13703
|
-
const nameRegex = /^((?:[A-Za-z]+ ?){1,3})$/;
|
|
13704
|
-
const displayValue = name.replace(/[
|
|
13709
|
+
const nameRegex = /^((?:(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u065F\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06EF\u06FA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07CA-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E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D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u103F\u1050-\u108F\u109A-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u180B-\u180D\u180F\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B6B-\u1B73\u1B80-\u1BAF\u1BBA-\u1BF3\u1C00-\u1C37\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005\u3006\u302A-\u302F\u3031-\u3035\u303B\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6E5\uA6F0\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8E0-\uA8F7\uA8FB\uA8FD-\uA8FF\uA90A-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF\uA9E0-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A-\uAAC2\u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DDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE80-\uDEB8\uDF00-\uDF1A\uDF1D-\uDF2B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD2F]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\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CD0-\uDCD6\uDD00-\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])+ ?){1,3})$/;
|
|
13710
|
+
const displayValue = name.replace(/(?:[\0-\x1F!-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u0660-\u066D\u06D4\u06DD\u06DE\u06E9\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07C9\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u086F\u0888\u088F-\u0896\u08E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0DF4-\u0E00\u0E3B-\u0E3F\u0E4F-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECF-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u1040-\u104F\u1090-\u1099\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1716-\u171E\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE-\u180A\u180E\u1810-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A80-\u1AA6\u1AA8-\u1AAF\u1ACF-\u1AFF\u1B4D-\u1B6A\u1B74-\u1B7F\u1BB0-\u1BB9\u1BF4-\u1BFF\u1C38-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3007-\u3029\u3030\u3036-\u303A\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA673\uA67E\uA6E6-\uA6EF\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8DF\uA8F8-\uA8FA\uA8FC\uA900-\uA909\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9D0-\uA9DF\uA9F0-\uA9F9\uA9FF\uAA37-\uAA3F\uAA4E-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD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00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, '').replace(/\s+/g, ' ');
|
|
13705
13711
|
if (nameRegex.test(displayValue)) {
|
|
13706
|
-
|
|
13712
|
+
if (/^[A-Za-z ]+$/.test(displayValue)) {
|
|
13713
|
+
setValue(_field2, displayValue.toUpperCase());
|
|
13714
|
+
} else {
|
|
13715
|
+
setValue(_field2, displayValue);
|
|
13716
|
+
}
|
|
13707
13717
|
} else {
|
|
13708
|
-
|
|
13718
|
+
if (/^[A-Za-z ]+$/.test(displayValue.trim())) {
|
|
13719
|
+
setValue(_field2, displayValue.trim().toUpperCase());
|
|
13720
|
+
} else {
|
|
13721
|
+
setValue(_field2, displayValue.trim());
|
|
13722
|
+
}
|
|
13709
13723
|
}
|
|
13710
13724
|
}
|
|
13711
13725
|
},
|
|
@@ -17715,6 +17729,56 @@ var phone_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null
|
|
|
17715
17729
|
/* harmony default export */ const phone = (__webpack_require__.p + "phone.c867b950ae5b9bfd86c96f7a0937d482.svg");
|
|
17716
17730
|
;// ../../libs/kit-components/src/assets/icons/lock.png
|
|
17717
17731
|
const lock_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAYAAAAmlE46AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD1SURBVHgB5VPLjcJADLWd3DdbwbIdUEJKoANSQPiMKIDkjGAQ4kAXUEIogQoIHXCH2HgCCIgAAVcsjWU/+fk3Mwj3ZBCHRFh3JtNuAWaWV0OwCpCN+wiUqLk9QYEAJ2ym6U3cteMNW5Ejaba0MJNfd5ztMN/G4UMiIDZAYLk3k+QMHW3JBLB5HerfEuVH9RqqIrhR/f+44huCYLuBB8VcW6mpH5zwbSUuwHJJkLu2GTzjExcREIbAkD6rIOdKhB3lrHRGLDNx77KQZ0KjduQ4H8/4DUQfSXLdUo1se/0KQe/zT19YXv4Oz3Ybwlx/hUhE2d6MswNUDks896etVwAAAABJRU5ErkJggg==";
|
|
17732
|
+
;// ../../libs/kit-components/src/utils/formatCurrencyForDisplay.ts
|
|
17733
|
+
const specialCurrencyMap = {
|
|
17734
|
+
SAR: '\uFAA5',
|
|
17735
|
+
AED: '\uFAA4'
|
|
17736
|
+
};
|
|
17737
|
+
const formatCurrencyForDisplay_formatCurrencyForDisplay = originalCurrency => {
|
|
17738
|
+
const symbol = specialCurrencyMap[originalCurrency];
|
|
17739
|
+
if (symbol) {
|
|
17740
|
+
return {
|
|
17741
|
+
displayCurrency: symbol,
|
|
17742
|
+
currencyClassName: 'currency-symbols',
|
|
17743
|
+
currencyFontFamily: 'Currency-Symbols'
|
|
17744
|
+
};
|
|
17745
|
+
}
|
|
17746
|
+
return {
|
|
17747
|
+
displayCurrency: originalCurrency,
|
|
17748
|
+
currencyClassName: '',
|
|
17749
|
+
currencyFontFamily: ''
|
|
17750
|
+
};
|
|
17751
|
+
};
|
|
17752
|
+
;// ../../libs/kit-components/src/assets/icons/checkGreenIcon.svg
|
|
17753
|
+
var checkGreenIcon_path;
|
|
17754
|
+
var checkGreenIcon_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
17755
|
+
function checkGreenIcon_extends() { return checkGreenIcon_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, checkGreenIcon_extends.apply(null, arguments); }
|
|
17756
|
+
function checkGreenIcon_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = checkGreenIcon_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17757
|
+
function checkGreenIcon_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17758
|
+
|
|
17759
|
+
|
|
17760
|
+
var SvgCheckGreenIcon = function SvgCheckGreenIcon(_ref, ref) {
|
|
17761
|
+
var title = _ref.title,
|
|
17762
|
+
titleId = _ref.titleId,
|
|
17763
|
+
props = checkGreenIcon_objectWithoutProperties(_ref, checkGreenIcon_excluded);
|
|
17764
|
+
return /*#__PURE__*/React.createElement("svg", checkGreenIcon_extends({
|
|
17765
|
+
width: 17,
|
|
17766
|
+
height: 16,
|
|
17767
|
+
viewBox: "0 0 17 16",
|
|
17768
|
+
fill: "none",
|
|
17769
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17770
|
+
ref: ref,
|
|
17771
|
+
"aria-labelledby": titleId
|
|
17772
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
17773
|
+
id: titleId
|
|
17774
|
+
}, title) : null, checkGreenIcon_path || (checkGreenIcon_path = /*#__PURE__*/React.createElement("path", {
|
|
17775
|
+
d: "M13.5742 4.49902C13.8086 4.7334 13.8086 5.08496 13.5742 5.2959L7.38672 11.4834C7.17578 11.7178 6.82422 11.7178 6.61328 11.4834L3.42578 8.2959C3.19141 8.08496 3.19141 7.7334 3.42578 7.49902C3.63672 7.28809 3.98828 7.28809 4.19922 7.49902L7.01172 10.3115L12.8008 4.49902C13.0117 4.28809 13.3633 4.28809 13.5742 4.49902Z",
|
|
17776
|
+
fill: "#038F6E"
|
|
17777
|
+
})));
|
|
17778
|
+
};
|
|
17779
|
+
var checkGreenIcon_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgCheckGreenIcon)));
|
|
17780
|
+
|
|
17781
|
+
/* harmony default export */ const checkGreenIcon = (__webpack_require__.p + "checkGreenIcon.2fdf1421207f99ebe329055b1350a193.svg");
|
|
17718
17782
|
;// ../../libs/kit-components/src/components/InvoiceComponent/index.tsx
|
|
17719
17783
|
|
|
17720
17784
|
|
|
@@ -17728,8 +17792,9 @@ const lock_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4A
|
|
|
17728
17792
|
|
|
17729
17793
|
|
|
17730
17794
|
|
|
17795
|
+
|
|
17731
17796
|
function InvoiceComponent(props) {
|
|
17732
|
-
var _plan$extra, _plan$extra2, _plan$extra3, _paymentDetails$produ;
|
|
17797
|
+
var _plan$extra, _plan$extra2, _plan$extra3, _paymentDetails$produ, _plan$discountDetails, _plan$discountDetails2;
|
|
17733
17798
|
const {
|
|
17734
17799
|
amount,
|
|
17735
17800
|
currency,
|
|
@@ -17759,31 +17824,40 @@ function InvoiceComponent(props) {
|
|
|
17759
17824
|
currencyClassName
|
|
17760
17825
|
} = formatCurrencyForDisplay(currency);
|
|
17761
17826
|
return /*#__PURE__*/_jsxs("div", {
|
|
17762
|
-
className: `w-1/2 flex bg-gray-50 justify-between flex-col mobile:hidden ${isDark(colors.accent) ? '[&_*]:text-white' : ''}`,
|
|
17827
|
+
className: `w-1/2 flex bg-gray-50 justify-between flex-col mobile:hidden ${isDark(colors == null ? void 0 : colors.accent) ? '[&_*]:text-white' : ''}`,
|
|
17763
17828
|
style: {
|
|
17764
|
-
background: colors.accent
|
|
17829
|
+
background: colors == null ? void 0 : colors.accent
|
|
17765
17830
|
},
|
|
17766
17831
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
17767
17832
|
className: "px-20",
|
|
17768
17833
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
17769
|
-
className: "flex items-center gap-4 border-b border-gray-200 py-8",
|
|
17770
|
-
children: [
|
|
17771
|
-
className: "
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
|
|
17777
|
-
className: "
|
|
17778
|
-
children:
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
17834
|
+
className: "flex items-center gap-4 border-b border-gray-200 py-8 justify-between",
|
|
17835
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
17836
|
+
className: "flex items-center gap-4",
|
|
17837
|
+
children: [merchantLogo && /*#__PURE__*/_jsx("img", {
|
|
17838
|
+
className: "w-[70px] h-[70px] rounded-full object-cover",
|
|
17839
|
+
src: merchantLogo,
|
|
17840
|
+
alt: ""
|
|
17841
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
17842
|
+
className: "flex flex-col gap-2",
|
|
17843
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
17844
|
+
className: "text-base font-semibold text-gray-900",
|
|
17845
|
+
children: paymentDetails == null ? void 0 : paymentDetails.company
|
|
17846
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
17847
|
+
className: "text-sm text-gray-500",
|
|
17848
|
+
style: {
|
|
17849
|
+
direction: 'ltr'
|
|
17850
|
+
},
|
|
17851
|
+
children: paymentDetails == null ? void 0 : paymentDetails.address
|
|
17852
|
+
})]
|
|
17782
17853
|
})]
|
|
17783
17854
|
}), !isEmpty(paymentDetails.phone) && /*#__PURE__*/_jsxs("div", {
|
|
17784
|
-
className: "
|
|
17855
|
+
className: "flex gap-4 shrink-0 items-center",
|
|
17856
|
+
style: {
|
|
17857
|
+
direction: 'ltr'
|
|
17858
|
+
},
|
|
17785
17859
|
children: [/*#__PURE__*/_jsx("img", {
|
|
17786
|
-
className: isDark(colors.accent) ? 'brightness-0 invert' : '',
|
|
17860
|
+
className: isDark(colors == null ? void 0 : colors.accent) ? 'brightness-0 invert' : '',
|
|
17787
17861
|
src: phoneIcon,
|
|
17788
17862
|
alt: "phone number"
|
|
17789
17863
|
}), /*#__PURE__*/_jsx("p", {
|
|
@@ -17796,18 +17870,33 @@ function InvoiceComponent(props) {
|
|
|
17796
17870
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17797
17871
|
className: "text-lg font-medium text-gray-700",
|
|
17798
17872
|
children: t('ORDER_AMOUNT')
|
|
17799
|
-
}), /*#__PURE__*/_jsxs("
|
|
17800
|
-
className: "
|
|
17801
|
-
children: [
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
children:
|
|
17805
|
-
|
|
17806
|
-
|
|
17873
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
17874
|
+
className: "flex flex-col xl:flex-row justify-between items-start xl:items-center gap-2",
|
|
17875
|
+
children: [/*#__PURE__*/_jsxs("p", {
|
|
17876
|
+
className: "text-3xl font-bold",
|
|
17877
|
+
children: [amount && /*#__PURE__*/_jsxs(_Fragment, {
|
|
17878
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
17879
|
+
className: currencyClassName,
|
|
17880
|
+
children: t(displayCurrency)
|
|
17881
|
+
}), ' ', Number(amount.replaceAll(',', '')).toLocaleString('en-US', {
|
|
17882
|
+
minimumFractionDigits: 2
|
|
17883
|
+
})]
|
|
17884
|
+
}), !amount && /*#__PURE__*/_jsx(Skeleton, {
|
|
17885
|
+
width: 240,
|
|
17886
|
+
height: 60
|
|
17887
|
+
})]
|
|
17888
|
+
}), (plan == null ? void 0 : plan.discountDetails) && /*#__PURE__*/_jsxs("div", {
|
|
17889
|
+
className: "flex flex-row px-[0.6rem] justify-center items-center gap-1 h-[1.4rem] rounded-2xl bg-[#e1f2ef] -ms-1 xl:ms-0",
|
|
17890
|
+
children: [/*#__PURE__*/_jsx(CheckIcon, {
|
|
17891
|
+
className: "w-4 h-4"
|
|
17892
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
17893
|
+
className: "text-green-400 text-center text-sm font-medium leading-6 tracking-[0.01rem]",
|
|
17894
|
+
children: t('DISCOUNT_DETAILS', {
|
|
17895
|
+
percentage: plan.discountDetails.discountPercentage,
|
|
17896
|
+
currency: currency,
|
|
17897
|
+
discount: plan.discountDetails.discountAmount
|
|
17898
|
+
})
|
|
17807
17899
|
})]
|
|
17808
|
-
}), !amount && /*#__PURE__*/_jsx(Skeleton, {
|
|
17809
|
-
width: 240,
|
|
17810
|
-
height: 60
|
|
17811
17900
|
})]
|
|
17812
17901
|
}), customMessage && /*#__PURE__*/_jsx("span", {
|
|
17813
17902
|
className: "text-xs font-medium text-gray-700",
|
|
@@ -17816,28 +17905,31 @@ function InvoiceComponent(props) {
|
|
|
17816
17905
|
className: "flex flex-col gap-4",
|
|
17817
17906
|
children: [(paymentLinkToken || paymentDetails.showItems) && (paymentDetails == null || (_paymentDetails$produ = paymentDetails.products) == null ? void 0 : _paymentDetails$produ.map(product => {
|
|
17818
17907
|
return /*#__PURE__*/_jsxs("div", {
|
|
17819
|
-
className: "flex gap-3 items-center",
|
|
17820
|
-
children: [/*#__PURE__*/
|
|
17821
|
-
className: "
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
children:
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17908
|
+
className: "flex gap-3 items-center justify-between",
|
|
17909
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
17910
|
+
className: "flex gap-3 items-center",
|
|
17911
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
17912
|
+
className: "w-12 h-12 bg-gray-400 rounded-2xl",
|
|
17913
|
+
src: product.image ? product.image : emptyImage,
|
|
17914
|
+
alt: product == null ? void 0 : product.name
|
|
17915
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
17916
|
+
children: [/*#__PURE__*/_jsx("p", {
|
|
17917
|
+
className: "font-medium text-sm text-gray-900",
|
|
17918
|
+
children: product == null ? void 0 : product.name
|
|
17919
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
17920
|
+
className: "text-sm text-gray-600",
|
|
17921
|
+
dangerouslySetInnerHTML: {
|
|
17922
|
+
__html: product == null ? void 0 : product.description
|
|
17923
|
+
}
|
|
17924
|
+
})]
|
|
17833
17925
|
})]
|
|
17834
17926
|
}), /*#__PURE__*/_jsxs("div", {
|
|
17835
|
-
className: "
|
|
17927
|
+
className: "flex flex-col gap-2 items-end",
|
|
17836
17928
|
children: [(product == null ? void 0 : product.amount) && /*#__PURE__*/_jsxs("p", {
|
|
17837
17929
|
className: "font-medium text-sm text-gray-900",
|
|
17838
17930
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17839
17931
|
className: currencyClassName,
|
|
17840
|
-
children: displayCurrency
|
|
17932
|
+
children: t(displayCurrency)
|
|
17841
17933
|
}), ' ', formatAmountBasedOnCurrency(product.amount, currency, !!customMessage)]
|
|
17842
17934
|
}), (product == null ? void 0 : product.quantity) && /*#__PURE__*/_jsx("p", {
|
|
17843
17935
|
className: "text-sm text-gray-600",
|
|
@@ -17852,7 +17944,7 @@ function InvoiceComponent(props) {
|
|
|
17852
17944
|
className: "font-medium text-gray-900",
|
|
17853
17945
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17854
17946
|
className: currencyClassName,
|
|
17855
|
-
children: displayCurrency
|
|
17947
|
+
children: t(displayCurrency)
|
|
17856
17948
|
}), ' ', paymentDetails.subtotal]
|
|
17857
17949
|
})]
|
|
17858
17950
|
}), !isEmpty(paymentDetails.vat) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -17861,7 +17953,7 @@ function InvoiceComponent(props) {
|
|
|
17861
17953
|
className: "font-medium text-gray-900",
|
|
17862
17954
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17863
17955
|
className: currencyClassName,
|
|
17864
|
-
children: displayCurrency
|
|
17956
|
+
children: t(displayCurrency)
|
|
17865
17957
|
}), ' ', paymentDetails.vat]
|
|
17866
17958
|
})]
|
|
17867
17959
|
}), !isEmpty(paymentDetails.fees) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -17870,7 +17962,7 @@ function InvoiceComponent(props) {
|
|
|
17870
17962
|
className: "font-medium text-gray-900",
|
|
17871
17963
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17872
17964
|
className: currencyClassName,
|
|
17873
|
-
children: displayCurrency
|
|
17965
|
+
children: t(displayCurrency)
|
|
17874
17966
|
}), ' ', paymentDetails.fees]
|
|
17875
17967
|
})]
|
|
17876
17968
|
}), !isEmpty(paymentDetails.discount) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -17879,7 +17971,7 @@ function InvoiceComponent(props) {
|
|
|
17879
17971
|
className: "font-medium text-green-400",
|
|
17880
17972
|
children: ["( - )", ' ', /*#__PURE__*/_jsx("span", {
|
|
17881
17973
|
className: currencyClassName,
|
|
17882
|
-
children: displayCurrency
|
|
17974
|
+
children: t(displayCurrency)
|
|
17883
17975
|
}), ' ', paymentDetails.discount]
|
|
17884
17976
|
})]
|
|
17885
17977
|
}), !isEmpty(paymentDetails.total) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -17888,7 +17980,7 @@ function InvoiceComponent(props) {
|
|
|
17888
17980
|
className: "font-semibold text-gray-900",
|
|
17889
17981
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17890
17982
|
className: currencyClassName,
|
|
17891
|
-
children: displayCurrency
|
|
17983
|
+
children: t(displayCurrency)
|
|
17892
17984
|
}), ' ', paymentDetails.total.toLocaleString('en-US', {
|
|
17893
17985
|
minimumFractionDigits: 2
|
|
17894
17986
|
})]
|
|
@@ -17897,14 +17989,14 @@ function InvoiceComponent(props) {
|
|
|
17897
17989
|
})]
|
|
17898
17990
|
}), plan && /*#__PURE__*/_jsxs("div", {
|
|
17899
17991
|
className: "flex flex-col gap-4",
|
|
17900
|
-
children: [plan.discount ? /*#__PURE__*/_jsxs("p", {
|
|
17992
|
+
children: [plan.discount || (_plan$discountDetails = plan.discountDetails) != null && _plan$discountDetails.discountAmount ? /*#__PURE__*/_jsxs("p", {
|
|
17901
17993
|
className: "pt-4 font-medium text-sm text-gray-600 flex justify-between items-center",
|
|
17902
17994
|
children: [t('DISCOUNT_AMOUNT'), ' ', /*#__PURE__*/_jsxs("span", {
|
|
17903
17995
|
className: "font-medium text-green-400",
|
|
17904
17996
|
children: ["( - )", ' ', /*#__PURE__*/_jsx("span", {
|
|
17905
17997
|
className: currencyClassName,
|
|
17906
|
-
children: displayCurrency
|
|
17907
|
-
}), ' ', Number(plan.discount).toLocaleString('en-US', {
|
|
17998
|
+
children: t(displayCurrency)
|
|
17999
|
+
}), ' ', Number(plan.discount || ((_plan$discountDetails2 = plan.discountDetails) == null ? void 0 : _plan$discountDetails2.discountAmount)).toLocaleString('en-US', {
|
|
17908
18000
|
minimumFractionDigits: 2
|
|
17909
18001
|
})]
|
|
17910
18002
|
})]
|
|
@@ -17914,7 +18006,7 @@ function InvoiceComponent(props) {
|
|
|
17914
18006
|
className: "font-medium text-gray-900",
|
|
17915
18007
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17916
18008
|
className: currencyClassName,
|
|
17917
|
-
children: displayCurrency
|
|
18009
|
+
children: t(displayCurrency)
|
|
17918
18010
|
}), ' ', Number(downPayment).toLocaleString('en-US', {
|
|
17919
18011
|
minimumFractionDigits: 2
|
|
17920
18012
|
})]
|
|
@@ -17925,18 +18017,18 @@ function InvoiceComponent(props) {
|
|
|
17925
18017
|
className: "font-medium text-gray-900",
|
|
17926
18018
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17927
18019
|
className: currencyClassName,
|
|
17928
|
-
children: displayCurrency
|
|
18020
|
+
children: t(displayCurrency)
|
|
17929
18021
|
}), ' ', Number(plan.cashback).toLocaleString('en-US', {
|
|
17930
18022
|
minimumFractionDigits: 2
|
|
17931
18023
|
})]
|
|
17932
18024
|
})]
|
|
17933
18025
|
}), !!(plan != null && plan.giftCard) && /*#__PURE__*/_jsxs("p", {
|
|
17934
18026
|
className: "pt-4 font-medium text-sm text-gray-600 border-t border-t-gray-200 flex justify-between items-center",
|
|
17935
|
-
children: [t('
|
|
18027
|
+
children: [t('FLIP'), ' ', /*#__PURE__*/_jsxs("span", {
|
|
17936
18028
|
className: "font-medium text-gray-900",
|
|
17937
18029
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17938
18030
|
className: currencyClassName,
|
|
17939
|
-
children: displayCurrency
|
|
18031
|
+
children: t(displayCurrency)
|
|
17940
18032
|
}), ' ', Number(plan.giftCard).toLocaleString('en-US', {
|
|
17941
18033
|
minimumFractionDigits: 2
|
|
17942
18034
|
})]
|
|
@@ -17947,7 +18039,7 @@ function InvoiceComponent(props) {
|
|
|
17947
18039
|
className: "font-medium text-gray-900",
|
|
17948
18040
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17949
18041
|
className: currencyClassName,
|
|
17950
|
-
children: displayCurrency
|
|
18042
|
+
children: t(displayCurrency)
|
|
17951
18043
|
}), ' ', Number(plan.financedAmount >= 0 ? plan.financedAmount : amount.replace(/,/g, '')).toLocaleString('en-US', {
|
|
17952
18044
|
minimumFractionDigits: 2
|
|
17953
18045
|
})]
|
|
@@ -17976,7 +18068,7 @@ function InvoiceComponent(props) {
|
|
|
17976
18068
|
className: "font-medium text-gray-900",
|
|
17977
18069
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17978
18070
|
className: currencyClassName,
|
|
17979
|
-
children: displayCurrency
|
|
18071
|
+
children: t(displayCurrency)
|
|
17980
18072
|
}), ' ', Number(plan.amount).toLocaleString('en-US', {
|
|
17981
18073
|
minimumFractionDigits: 2
|
|
17982
18074
|
}), ' ', "per month / ", plan.months, " months"]
|
|
@@ -17987,7 +18079,7 @@ function InvoiceComponent(props) {
|
|
|
17987
18079
|
className: "font-medium text-gray-900",
|
|
17988
18080
|
children: [/*#__PURE__*/_jsx("span", {
|
|
17989
18081
|
className: currencyClassName,
|
|
17990
|
-
children: displayCurrency
|
|
18082
|
+
children: t(displayCurrency)
|
|
17991
18083
|
}), ' ', Number(purchaseFees).toLocaleString('en-US', {
|
|
17992
18084
|
minimumFractionDigits: 2
|
|
17993
18085
|
})]
|
|
@@ -17998,7 +18090,7 @@ function InvoiceComponent(props) {
|
|
|
17998
18090
|
className: "font-medium text-gray-900",
|
|
17999
18091
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18000
18092
|
className: currencyClassName,
|
|
18001
|
-
children: displayCurrency
|
|
18093
|
+
children: t(displayCurrency)
|
|
18002
18094
|
}), ' ', Number(adminFees).toLocaleString('en-US', {
|
|
18003
18095
|
minimumFractionDigits: 2
|
|
18004
18096
|
})]
|
|
@@ -18009,7 +18101,7 @@ function InvoiceComponent(props) {
|
|
|
18009
18101
|
className: "font-semibold text-gray-900",
|
|
18010
18102
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18011
18103
|
className: currencyClassName,
|
|
18012
|
-
children: displayCurrency
|
|
18104
|
+
children: t(displayCurrency)
|
|
18013
18105
|
}), ' ', total.toLocaleString('en-US', {
|
|
18014
18106
|
minimumFractionDigits: 2
|
|
18015
18107
|
})]
|
|
@@ -18226,6 +18318,11 @@ function PaymentTitle(props) {
|
|
|
18226
18318
|
const {
|
|
18227
18319
|
t
|
|
18228
18320
|
} = useTranslation('kitComponents');
|
|
18321
|
+
const {
|
|
18322
|
+
t: tPayments
|
|
18323
|
+
} = useTranslation('flash', {
|
|
18324
|
+
keyPrefix: 'payments'
|
|
18325
|
+
});
|
|
18229
18326
|
const stepOneData = useSelector(state => state.stepOneData);
|
|
18230
18327
|
const sortedPaymentNames = {
|
|
18231
18328
|
card: 'card',
|
|
@@ -18236,7 +18333,7 @@ function PaymentTitle(props) {
|
|
|
18236
18333
|
kiosk: 'kiosk'
|
|
18237
18334
|
};
|
|
18238
18335
|
const isInstallment = [sortedPaymentNames.installments, sortedPaymentNames.bankInstallments].includes(title == null ? void 0 : title.toLowerCase());
|
|
18239
|
-
const updatedTitle = isInstallment && stepOneData != null && (_stepOneData$selected = stepOneData.selectedBank) != null && _stepOneData$selected.label ? 'Installment with ' + stepOneData.selectedBank.label : title;
|
|
18336
|
+
const updatedTitle = isInstallment && stepOneData != null && (_stepOneData$selected = stepOneData.selectedBank) != null && _stepOneData$selected.label ? 'Installment with ' + stepOneData.selectedBank.label : tPayments(title);
|
|
18240
18337
|
const installmentIcon = isInstallment && (stepOneData == null || (_stepOneData$selected2 = stepOneData.selectedBank) == null ? void 0 : _stepOneData$selected2.icon);
|
|
18241
18338
|
return /*#__PURE__*/_jsxs("div", {
|
|
18242
18339
|
className: "flex items-center pb-4 mb-4 border-b border-gray-200",
|
|
@@ -18456,7 +18553,7 @@ const close_icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg
|
|
|
18456
18553
|
|
|
18457
18554
|
|
|
18458
18555
|
function OrderDetailsModal(props) {
|
|
18459
|
-
var _plan$extra, _plan$extra2, _plan$extra3;
|
|
18556
|
+
var _plan$extra, _plan$extra2, _plan$extra3, _plan$discountDetails, _plan$discountDetails2;
|
|
18460
18557
|
const {
|
|
18461
18558
|
amount,
|
|
18462
18559
|
currency,
|
|
@@ -18508,7 +18605,7 @@ function OrderDetailsModal(props) {
|
|
|
18508
18605
|
className: "font-medium text-gray-900",
|
|
18509
18606
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18510
18607
|
className: currencyClassName,
|
|
18511
|
-
children: displayCurrency
|
|
18608
|
+
children: t(displayCurrency)
|
|
18512
18609
|
}), ' ', formattedAmount]
|
|
18513
18610
|
})]
|
|
18514
18611
|
}), (paymentLinkToken || paymentDetails.showItems) && (paymentDetails == null ? void 0 : paymentDetails.products.map(product => {
|
|
@@ -18534,7 +18631,7 @@ function OrderDetailsModal(props) {
|
|
|
18534
18631
|
className: "font-medium text-sm text-gray-900",
|
|
18535
18632
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18536
18633
|
className: currencyClassName,
|
|
18537
|
-
children: displayCurrency
|
|
18634
|
+
children: t(displayCurrency)
|
|
18538
18635
|
}), ' ', formatAmountBasedOnCurrency(product.amount, currency, !!customMessage)]
|
|
18539
18636
|
}), (product == null ? void 0 : product.quantity) && /*#__PURE__*/_jsx("p", {
|
|
18540
18637
|
className: "text-sm text-gray-600",
|
|
@@ -18549,7 +18646,7 @@ function OrderDetailsModal(props) {
|
|
|
18549
18646
|
className: "font-medium text-gray-900",
|
|
18550
18647
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18551
18648
|
className: currencyClassName,
|
|
18552
|
-
children: displayCurrency
|
|
18649
|
+
children: t(displayCurrency)
|
|
18553
18650
|
}), ' ', paymentDetails.subtotal]
|
|
18554
18651
|
})]
|
|
18555
18652
|
}), !isEmpty(paymentDetails.vat) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -18558,7 +18655,7 @@ function OrderDetailsModal(props) {
|
|
|
18558
18655
|
className: "font-medium text-gray-900",
|
|
18559
18656
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18560
18657
|
className: currencyClassName,
|
|
18561
|
-
children: displayCurrency
|
|
18658
|
+
children: t(displayCurrency)
|
|
18562
18659
|
}), ' ', paymentDetails.vat]
|
|
18563
18660
|
})]
|
|
18564
18661
|
}), !isEmpty(paymentDetails.fees) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -18567,7 +18664,7 @@ function OrderDetailsModal(props) {
|
|
|
18567
18664
|
className: "font-medium text-gray-900",
|
|
18568
18665
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18569
18666
|
className: currencyClassName,
|
|
18570
|
-
children: displayCurrency
|
|
18667
|
+
children: t(displayCurrency)
|
|
18571
18668
|
}), ' ', paymentDetails.fees]
|
|
18572
18669
|
})]
|
|
18573
18670
|
}), !isEmpty(paymentDetails.discount) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -18576,7 +18673,7 @@ function OrderDetailsModal(props) {
|
|
|
18576
18673
|
className: "font-medium text-green-400",
|
|
18577
18674
|
children: ["( - )", ' ', /*#__PURE__*/_jsx("span", {
|
|
18578
18675
|
className: currencyClassName,
|
|
18579
|
-
children: displayCurrency
|
|
18676
|
+
children: t(displayCurrency)
|
|
18580
18677
|
}), ' ', paymentDetails.discount]
|
|
18581
18678
|
})]
|
|
18582
18679
|
}), !isEmpty(paymentDetails.total) && /*#__PURE__*/_jsxs("p", {
|
|
@@ -18585,7 +18682,7 @@ function OrderDetailsModal(props) {
|
|
|
18585
18682
|
className: "font-semibold text-lg text-gray-900",
|
|
18586
18683
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18587
18684
|
className: currencyClassName,
|
|
18588
|
-
children: displayCurrency
|
|
18685
|
+
children: t(displayCurrency)
|
|
18589
18686
|
}), ' ', paymentDetails.total]
|
|
18590
18687
|
})]
|
|
18591
18688
|
})]
|
|
@@ -18598,7 +18695,7 @@ function OrderDetailsModal(props) {
|
|
|
18598
18695
|
className: "font-medium text-gray-900",
|
|
18599
18696
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18600
18697
|
className: currencyClassName,
|
|
18601
|
-
children: displayCurrency
|
|
18698
|
+
children: t(displayCurrency)
|
|
18602
18699
|
}), ' ', Number(amount.replaceAll(',', '')).toLocaleString('en-US', {
|
|
18603
18700
|
minimumFractionDigits: 2
|
|
18604
18701
|
})]
|
|
@@ -18606,14 +18703,14 @@ function OrderDetailsModal(props) {
|
|
|
18606
18703
|
}), customMessage && /*#__PURE__*/_jsx("span", {
|
|
18607
18704
|
className: "text-xs font-medium text-gray-700 px-4 text-center",
|
|
18608
18705
|
children: customMessage
|
|
18609
|
-
}), plan.discount ? /*#__PURE__*/_jsxs("p", {
|
|
18706
|
+
}), plan.discount || (_plan$discountDetails = plan.discountDetails) != null && _plan$discountDetails.discountAmount ? /*#__PURE__*/_jsxs("p", {
|
|
18610
18707
|
className: "pt-4 font-medium text-sm text-gray-600 flex justify-between items-center",
|
|
18611
18708
|
children: [t('DISCOUNT_AMOUNT'), ' ', /*#__PURE__*/_jsxs("span", {
|
|
18612
18709
|
className: "font-medium text-green-400",
|
|
18613
18710
|
children: ["( - )", ' ', /*#__PURE__*/_jsx("span", {
|
|
18614
18711
|
className: currencyClassName,
|
|
18615
|
-
children: displayCurrency
|
|
18616
|
-
}), ' ', Number(plan.discount).toLocaleString('en-US', {
|
|
18712
|
+
children: t(displayCurrency)
|
|
18713
|
+
}), ' ', Number(plan.discount || ((_plan$discountDetails2 = plan.discountDetails) == null ? void 0 : _plan$discountDetails2.discountAmount)).toLocaleString('en-US', {
|
|
18617
18714
|
minimumFractionDigits: 2
|
|
18618
18715
|
})]
|
|
18619
18716
|
})]
|
|
@@ -18623,7 +18720,7 @@ function OrderDetailsModal(props) {
|
|
|
18623
18720
|
className: "font-medium text-gray-900",
|
|
18624
18721
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18625
18722
|
className: currencyClassName,
|
|
18626
|
-
children: displayCurrency
|
|
18723
|
+
children: t(displayCurrency)
|
|
18627
18724
|
}), ' ', Number(downPayment).toLocaleString('en-US', {
|
|
18628
18725
|
minimumFractionDigits: 2
|
|
18629
18726
|
})]
|
|
@@ -18634,18 +18731,18 @@ function OrderDetailsModal(props) {
|
|
|
18634
18731
|
className: "font-medium text-gray-900",
|
|
18635
18732
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18636
18733
|
className: currencyClassName,
|
|
18637
|
-
children: displayCurrency
|
|
18734
|
+
children: t(displayCurrency)
|
|
18638
18735
|
}), ' ', Number(plan.cashback).toLocaleString('en-US', {
|
|
18639
18736
|
minimumFractionDigits: 2
|
|
18640
18737
|
})]
|
|
18641
18738
|
})]
|
|
18642
18739
|
}), !!(plan != null && plan.giftCard) && /*#__PURE__*/_jsxs("p", {
|
|
18643
18740
|
className: "pt-4 font-medium text-sm text-gray-600 border-t border-t-gray-200 flex justify-between items-center",
|
|
18644
|
-
children: [t('
|
|
18741
|
+
children: [t('FLIP'), ' ', /*#__PURE__*/_jsxs("span", {
|
|
18645
18742
|
className: "font-medium text-gray-900",
|
|
18646
18743
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18647
18744
|
className: currencyClassName,
|
|
18648
|
-
children: displayCurrency
|
|
18745
|
+
children: t(displayCurrency)
|
|
18649
18746
|
}), ' ', Number(plan.giftCard).toLocaleString('en-US', {
|
|
18650
18747
|
minimumFractionDigits: 2
|
|
18651
18748
|
})]
|
|
@@ -18656,7 +18753,7 @@ function OrderDetailsModal(props) {
|
|
|
18656
18753
|
className: "font-medium text-gray-900",
|
|
18657
18754
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18658
18755
|
className: currencyClassName,
|
|
18659
|
-
children: displayCurrency
|
|
18756
|
+
children: t(displayCurrency)
|
|
18660
18757
|
}), ' ', Number(plan.financedAmount).toLocaleString('en-US', {
|
|
18661
18758
|
minimumFractionDigits: 2
|
|
18662
18759
|
})]
|
|
@@ -18667,7 +18764,7 @@ function OrderDetailsModal(props) {
|
|
|
18667
18764
|
className: "font-medium text-gray-900",
|
|
18668
18765
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18669
18766
|
className: currencyClassName,
|
|
18670
|
-
children: displayCurrency
|
|
18767
|
+
children: t(displayCurrency)
|
|
18671
18768
|
}), ' ', Number(amount.replace(/,/g, '')).toLocaleString('en-US', {
|
|
18672
18769
|
minimumFractionDigits: 2
|
|
18673
18770
|
})]
|
|
@@ -18696,7 +18793,7 @@ function OrderDetailsModal(props) {
|
|
|
18696
18793
|
className: "font-medium text-gray-900",
|
|
18697
18794
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18698
18795
|
className: currencyClassName,
|
|
18699
|
-
children: displayCurrency
|
|
18796
|
+
children: t(displayCurrency)
|
|
18700
18797
|
}), ' ', Number(plan.amount).toLocaleString('en-US', {
|
|
18701
18798
|
minimumFractionDigits: 2
|
|
18702
18799
|
}), ' ', "per month / ", plan.months, " months"]
|
|
@@ -18707,7 +18804,7 @@ function OrderDetailsModal(props) {
|
|
|
18707
18804
|
className: "font-medium text-gray-900",
|
|
18708
18805
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18709
18806
|
className: currencyClassName,
|
|
18710
|
-
children: displayCurrency
|
|
18807
|
+
children: t(displayCurrency)
|
|
18711
18808
|
}), ' ', Number(purchaseFees).toLocaleString('en-US', {
|
|
18712
18809
|
minimumFractionDigits: 2
|
|
18713
18810
|
})]
|
|
@@ -18718,7 +18815,7 @@ function OrderDetailsModal(props) {
|
|
|
18718
18815
|
className: "font-medium text-gray-900",
|
|
18719
18816
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18720
18817
|
className: currencyClassName,
|
|
18721
|
-
children: displayCurrency
|
|
18818
|
+
children: t(displayCurrency)
|
|
18722
18819
|
}), ' ', Number(adminFees).toLocaleString('en-US', {
|
|
18723
18820
|
minimumFractionDigits: 2
|
|
18724
18821
|
})]
|
|
@@ -18729,7 +18826,7 @@ function OrderDetailsModal(props) {
|
|
|
18729
18826
|
className: "font-semibold text-gray-900",
|
|
18730
18827
|
children: [/*#__PURE__*/_jsx("span", {
|
|
18731
18828
|
className: currencyClassName,
|
|
18732
|
-
children: displayCurrency
|
|
18829
|
+
children: t(displayCurrency)
|
|
18733
18830
|
}), ' ', total.toLocaleString('en-US', {
|
|
18734
18831
|
minimumFractionDigits: 2
|
|
18735
18832
|
})]
|
|
@@ -19004,96 +19101,34 @@ function TermsConditions_TermsConditions() {
|
|
|
19004
19101
|
})
|
|
19005
19102
|
});
|
|
19006
19103
|
}
|
|
19007
|
-
;// ../../libs/kit-components/src/assets/icons/chevron-left.
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
function chevron_left_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = chevron_left_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19012
|
-
function chevron_left_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
var SvgChevronLeft = function SvgChevronLeft(_ref, ref) {
|
|
19016
|
-
var title = _ref.title,
|
|
19017
|
-
titleId = _ref.titleId,
|
|
19018
|
-
props = chevron_left_objectWithoutProperties(_ref, chevron_left_excluded);
|
|
19019
|
-
return /*#__PURE__*/React.createElement("svg", chevron_left_extends({
|
|
19020
|
-
width: 24,
|
|
19021
|
-
height: 24,
|
|
19022
|
-
viewBox: "0 0 24 24",
|
|
19023
|
-
fill: "none",
|
|
19024
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
19025
|
-
ref: ref,
|
|
19026
|
-
"aria-labelledby": titleId
|
|
19027
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
19028
|
-
id: titleId
|
|
19029
|
-
}, title) : null, _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
19030
|
-
id: "chevron-left"
|
|
19031
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
19032
|
-
id: "Vector",
|
|
19033
|
-
d: "M14.6082 19.3126L8.17456 12.5977C7.99878 12.3868 7.92847 12.1758 7.92847 11.9649C7.92847 11.7891 7.99878 11.5782 8.1394 11.4024L14.573 4.68755C14.8894 4.33599 15.4519 4.33599 15.7683 4.6524C16.1199 4.9688 16.1199 5.49615 15.8035 5.84771L9.93237 11.9649L15.8386 18.1524C16.155 18.4688 16.155 19.0313 15.8035 19.3477C15.4871 19.6641 14.9246 19.6641 14.6082 19.3126Z",
|
|
19034
|
-
fill: "#101828"
|
|
19035
|
-
}))));
|
|
19036
|
-
};
|
|
19037
|
-
var chevron_left_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgChevronLeft)));
|
|
19038
|
-
|
|
19039
|
-
/* harmony default export */ const chevron_left = (__webpack_require__.p + "chevron-left.0db02cc783fd28339af092ce632655a5.svg");
|
|
19040
|
-
;// ../../libs/kit-components/src/assets/icons/chevron-right.svg
|
|
19041
|
-
var chevron_right_g;
|
|
19042
|
-
var chevron_right_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
19043
|
-
function chevron_right_extends() { return chevron_right_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, chevron_right_extends.apply(null, arguments); }
|
|
19044
|
-
function chevron_right_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = chevron_right_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19045
|
-
function chevron_right_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
var SvgChevronRight = function SvgChevronRight(_ref, ref) {
|
|
19049
|
-
var title = _ref.title,
|
|
19050
|
-
titleId = _ref.titleId,
|
|
19051
|
-
props = chevron_right_objectWithoutProperties(_ref, chevron_right_excluded);
|
|
19052
|
-
return /*#__PURE__*/React.createElement("svg", chevron_right_extends({
|
|
19053
|
-
width: 24,
|
|
19054
|
-
height: 24,
|
|
19055
|
-
viewBox: "0 0 24 24",
|
|
19056
|
-
fill: "none",
|
|
19057
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
19058
|
-
ref: ref,
|
|
19059
|
-
"aria-labelledby": titleId
|
|
19060
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
19061
|
-
id: titleId
|
|
19062
|
-
}, title) : null, chevron_right_g || (chevron_right_g = /*#__PURE__*/React.createElement("g", {
|
|
19063
|
-
id: "chevron-right"
|
|
19064
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
19065
|
-
id: "Vector",
|
|
19066
|
-
d: "M9.39202 4.70513L15.8256 11.42C15.9662 11.5958 16.0717 11.8067 16.0717 12.0176C16.0717 12.2286 15.9662 12.4395 15.8256 12.5801L9.39202 19.295C9.07561 19.6465 8.51311 19.6465 8.19671 19.3301C7.84514 19.0137 7.84514 18.4864 8.16155 18.1348L14.0678 11.9825L8.16155 5.86529C7.84514 5.54888 7.84514 4.98638 8.19671 4.66997C8.51311 4.35357 9.07561 4.35357 9.39202 4.70513Z",
|
|
19067
|
-
fill: "#101828"
|
|
19068
|
-
}))));
|
|
19069
|
-
};
|
|
19070
|
-
var chevron_right_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgChevronRight)));
|
|
19071
|
-
|
|
19072
|
-
/* harmony default export */ const chevron_right = (__webpack_require__.p + "chevron-right.7f4f648f04bde910c6e81a24aed750ea.svg");
|
|
19104
|
+
;// ../../libs/kit-components/src/assets/icons/chevron-left.png
|
|
19105
|
+
const chevron_left_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABkUlEQVR4AeyUvUvDUBDA7720mza2om1EEUGtEXFQXP0apOjgqIuz/4Orf4Sri6M4KmqHLi4Ogh9tUHRQaavW9GOy2uS8VzoEh7wk1EEw3CXHy7vfL++GcPjl618gHXDgEUUSozNdmr4hMwQSqJo+xYGnAXG77YJubURniCcEt0iy0laBGk8OWahkCBq2GS6ZxewN1a7heUSxvokBxiCDAJ3chlSteHvuSm699CToSAz32HaDvpxpwGHVfDXOWv3Sh1QQ6R+PKRAmOAwig/Vq3jiWUh0bZAKFN+xTBqgjss1qwdh39HoqZQKgmdebJI7Svc19P26yJovXP1PUc8kQdtS4vka1r5AJoFx+qNohvgAM7hnDvWhCX/ZjkAoErPacNUNfbI7qRwQ8oF/ELNWewpNAkEqlXIHzkJC8A+Khqo1Ni3VZehYIkJm/frKt5kk+GEI62pucFOtu6UsgQLW33B3B5+kUiJwdiTW39C0QsPKLcQWKskj1FqVrBBIIYiWfvagUjV1Ru2VggRvU+e7vC74BAAD//xjGgQMAAAAGSURBVAMAdl1zMcmeA8IAAAAASUVORK5CYII=";
|
|
19106
|
+
;// ../../libs/kit-components/src/assets/icons/chevron-right.png
|
|
19107
|
+
const chevron_right_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABlElEQVR4AeyTu0oDQRSGz5lEG4O5SG6igqDGDRJbK4OihVpZWVha+Qw+gI9gZWlhZaegoMTK1iAuGrFQMSYm2SRgk8scz8o2CpvZKSwEh3+Yf2fP/B87yxHwy+MfoLxg5RUF48ZWKDY1q0xyKVABEJF2QYjzoeSk4ZLRc1sFIJS0xAn9XfLlgvHUOHstqQBgle/ygnCZUwcQIRcZnhll71lKgJ1UK5lXgLgCgHEpO7lAYiIKHocngJ1VL5qXCLjOfswHfbnBkXSEvVKeAXaS9WYeE+EmAk2LjryIRtMBe7/X1ALYQY2SeUgI2+wzbR+d8NpT2oBvafw5/Iw8XaUN4MbbQII9Tsxjq7XGK/F0lRYgnDBWufEOAOFB+sWCZT02XJOdF54BoaQxT0BHfO7J38Zs8+W2xl4pT4BI3JgD+vqhVSH82UrFLCqTnQIlIBxLZSTSGdd/yC5ma683z+w9SwVAEnjKaS0fdrPNd7PAXksqABHhDki5WC0WTK1kp1gFAG6s/Xr5/tqp116UAO3EHwf+PuATAAD///oT9wMAAAAGSURBVAMAvkxyMX6YPS0AAAAASUVORK5CYII=";
|
|
19073
19108
|
;// ../../libs/kit-components/src/assets/icons/BankPlaceholder.tsx
|
|
19074
19109
|
|
|
19075
|
-
const
|
|
19076
|
-
return /*#__PURE__*/
|
|
19110
|
+
const BankPlaceholder = () => {
|
|
19111
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
19077
19112
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19078
19113
|
width: "40",
|
|
19079
19114
|
height: "40",
|
|
19080
19115
|
viewBox: "0 0 40 40",
|
|
19081
19116
|
fill: "none",
|
|
19082
|
-
children: [/*#__PURE__*/
|
|
19117
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
19083
19118
|
x: "0.5",
|
|
19084
19119
|
y: "0.5",
|
|
19085
19120
|
width: "39",
|
|
19086
19121
|
height: "39",
|
|
19087
19122
|
rx: "19.5",
|
|
19088
19123
|
fill: "#EAECF0"
|
|
19089
|
-
}), /*#__PURE__*/
|
|
19124
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
19090
19125
|
x: "0.5",
|
|
19091
19126
|
y: "0.5",
|
|
19092
19127
|
width: "39",
|
|
19093
19128
|
height: "39",
|
|
19094
19129
|
rx: "19.5",
|
|
19095
19130
|
stroke: "#EAECF0"
|
|
19096
|
-
}), /*#__PURE__*/
|
|
19131
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
19097
19132
|
d: "M28.3672 15.522C28.7539 15.7329 29 16.1196 29 16.5415C29 17.2095 28.4375 17.7368 27.7695 17.7368H12.1953C11.5273 17.7368 11 17.2095 11 16.5415C11 16.1196 11.2109 15.7329 11.5977 15.522L19.5781 11.0923C19.8242 10.9868 20.1406 10.9868 20.3867 11.0923L28.3672 15.522ZM18.875 15.4868C18.875 14.8892 19.3672 14.3618 20 14.3618C20.5977 14.3618 21.125 14.8892 21.125 15.4868C21.125 15.6978 21.0547 15.9087 20.9492 16.0493H25.8711L20 12.8149L14.0938 16.0493H19.0156C18.9102 15.9087 18.875 15.6978 18.875 15.4868ZM13.25 18.8618H14.9375V24.4868H17.1875V18.8618H18.875V24.4868H21.125V18.8618H22.8125V24.4868H25.0625V18.8618H26.75V24.4868H27.0312C27.4883 24.4868 27.875 24.8735 27.875 25.3306C27.875 25.8228 27.4883 26.1743 27.0312 26.1743H13.25C12.7578 26.1743 12.4062 25.8228 12.4062 25.3306C12.4062 24.8735 12.7578 24.4868 13.25 24.4868V18.8618ZM28.1562 27.2993C28.6133 27.2993 29 27.686 29 28.1431C29 28.6353 28.6133 28.9868 28.1562 28.9868H12.125C11.6328 28.9868 11.2812 28.6353 11.2812 28.1431C11.2812 27.686 11.6328 27.2993 12.125 27.2993H28.1562Z",
|
|
19098
19133
|
fill: "#344054"
|
|
19099
19134
|
})]
|
|
@@ -19106,58 +19141,71 @@ const BankPlaceholder_BankPlaceholder = () => {
|
|
|
19106
19141
|
|
|
19107
19142
|
|
|
19108
19143
|
const MAX_MESSAGE_LENGTH = 66;
|
|
19109
|
-
function
|
|
19110
|
-
const [showModal, setShowModal] = useState(false);
|
|
19144
|
+
function Discount(props) {
|
|
19145
|
+
const [showModal, setShowModal] = (0,react.useState)(false);
|
|
19111
19146
|
const {
|
|
19112
19147
|
title,
|
|
19113
19148
|
message,
|
|
19114
19149
|
logo,
|
|
19115
|
-
className
|
|
19150
|
+
className,
|
|
19151
|
+
customStyle,
|
|
19152
|
+
discountsLength
|
|
19116
19153
|
} = props;
|
|
19117
19154
|
const isMessageTruncated = message.length > MAX_MESSAGE_LENGTH;
|
|
19118
19155
|
const messageDescription = isMessageTruncated ? message.slice(0, MAX_MESSAGE_LENGTH) + '...' : message;
|
|
19119
19156
|
const handleOpenModal = () => setShowModal(true);
|
|
19120
19157
|
const handleCloseModal = () => setShowModal(false);
|
|
19121
|
-
return /*#__PURE__*/
|
|
19122
|
-
children: [/*#__PURE__*/
|
|
19158
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
19159
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(components_ModalView, {
|
|
19123
19160
|
showModal: showModal,
|
|
19124
19161
|
onClose: handleCloseModal,
|
|
19125
|
-
|
|
19162
|
+
customStyle: {
|
|
19163
|
+
backgroundColor: 'transparent'
|
|
19164
|
+
},
|
|
19165
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
19126
19166
|
className: "relative flex w-[35rem] mobile:w-auto p-6 items-start gap-4 bg-white rounded-xl flex-col shadow-[0_20px_24px_-4px_rgba(16, 24, 40, 0.08)_0_8px_8px_-4px_rgba(16, 24, 40, 0.03)]",
|
|
19127
|
-
|
|
19167
|
+
style: customStyle == null ? void 0 : customStyle.container,
|
|
19168
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
19128
19169
|
onClick: handleCloseModal,
|
|
19129
19170
|
className: "absolute top-5 right-5 w-6 h-6 cursor-pointer",
|
|
19130
|
-
src:
|
|
19171
|
+
src: close_icon_namespaceObject,
|
|
19131
19172
|
alt: "close"
|
|
19132
|
-
}), logo ? /*#__PURE__*/
|
|
19173
|
+
}), logo ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
19133
19174
|
src: logo,
|
|
19134
19175
|
alt: "discount logo",
|
|
19135
19176
|
className: "w-14 h-14 rounded-3xl border"
|
|
19136
|
-
}) : /*#__PURE__*/
|
|
19177
|
+
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(BankPlaceholder, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
19137
19178
|
className: "flex flex-col items-start gap-1",
|
|
19138
|
-
children: [/*#__PURE__*/
|
|
19179
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
19139
19180
|
className: "text-gray-900 text-lg font-semibold leading-8",
|
|
19181
|
+
style: customStyle == null ? void 0 : customStyle.title,
|
|
19140
19182
|
children: title
|
|
19141
|
-
}), /*#__PURE__*/
|
|
19183
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
19142
19184
|
className: "text-gray-600 text-sm font-medium leading-6 tracking-[0.01rem]",
|
|
19185
|
+
style: customStyle == null ? void 0 : customStyle.message,
|
|
19143
19186
|
children: message
|
|
19144
19187
|
})]
|
|
19145
19188
|
})]
|
|
19146
19189
|
})
|
|
19147
|
-
}), /*#__PURE__*/
|
|
19190
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
19148
19191
|
className: `flex min-w-[22rem] md:w-[22rem] p-3 items-start gap-3 rounded-xl border border-gray-200 bg-white ${className}`,
|
|
19149
|
-
|
|
19192
|
+
style: Object.assign({
|
|
19193
|
+
width: `${100 / discountsLength}%`
|
|
19194
|
+
}, customStyle == null ? void 0 : customStyle.container),
|
|
19195
|
+
children: [logo ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
19150
19196
|
src: logo,
|
|
19151
19197
|
alt: "discount logo",
|
|
19152
19198
|
className: "w-10 h-10 rounded-3xl border border-gray-200"
|
|
19153
|
-
}) : /*#__PURE__*/
|
|
19199
|
+
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(BankPlaceholder, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
19154
19200
|
className: "flex flex-col items-start gap-1",
|
|
19155
|
-
children: [/*#__PURE__*/
|
|
19201
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
19156
19202
|
className: "text-gray-900 text-sm font-semibold leading-4",
|
|
19203
|
+
style: customStyle == null ? void 0 : customStyle.title,
|
|
19157
19204
|
children: title
|
|
19158
|
-
}), /*#__PURE__*/
|
|
19205
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
19159
19206
|
className: "text-gray-600 text-sm font-normal leading-4",
|
|
19160
|
-
|
|
19207
|
+
style: customStyle == null ? void 0 : customStyle.message,
|
|
19208
|
+
children: [messageDescription, ' ', isMessageTruncated && /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
19161
19209
|
onClick: handleOpenModal,
|
|
19162
19210
|
className: "font-semibold leading-6 tracking-[0.01rem]",
|
|
19163
19211
|
children: "Learn more"
|
|
@@ -19176,12 +19224,13 @@ function Discount_Discount(props) {
|
|
|
19176
19224
|
const CARD_WIDTH = 352;
|
|
19177
19225
|
const CARD_GAP = 12;
|
|
19178
19226
|
function Discounts({
|
|
19179
|
-
discounts
|
|
19227
|
+
discounts,
|
|
19228
|
+
customStyle
|
|
19180
19229
|
}) {
|
|
19181
|
-
const scrollContainerRef = useRef(null);
|
|
19182
|
-
const [showLeftArrow, setShowLeftArrow] = useState(false);
|
|
19183
|
-
const [showRightArrow, setShowRightArrow] = useState(false);
|
|
19184
|
-
const checkScrollButtons = useCallback(() => {
|
|
19230
|
+
const scrollContainerRef = (0,react.useRef)(null);
|
|
19231
|
+
const [showLeftArrow, setShowLeftArrow] = (0,react.useState)(false);
|
|
19232
|
+
const [showRightArrow, setShowRightArrow] = (0,react.useState)(false);
|
|
19233
|
+
const checkScrollButtons = (0,react.useCallback)(() => {
|
|
19185
19234
|
const container = scrollContainerRef.current;
|
|
19186
19235
|
if (container) {
|
|
19187
19236
|
const maxScroll = container.scrollWidth - container.clientWidth;
|
|
@@ -19194,7 +19243,7 @@ function Discounts({
|
|
|
19194
19243
|
}
|
|
19195
19244
|
}
|
|
19196
19245
|
}, []);
|
|
19197
|
-
useEffect(() => {
|
|
19246
|
+
(0,react.useEffect)(() => {
|
|
19198
19247
|
const handleResize = () => checkScrollButtons();
|
|
19199
19248
|
const observer = new ResizeObserver(handleResize);
|
|
19200
19249
|
if (scrollContainerRef.current) {
|
|
@@ -19220,49 +19269,52 @@ function Discounts({
|
|
|
19220
19269
|
});
|
|
19221
19270
|
setTimeout(checkScrollButtons, 300);
|
|
19222
19271
|
};
|
|
19223
|
-
useEffect(() => {
|
|
19272
|
+
(0,react.useEffect)(() => {
|
|
19224
19273
|
checkScrollButtons();
|
|
19225
19274
|
}, [checkScrollButtons]);
|
|
19226
|
-
return /*#__PURE__*/
|
|
19275
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
19227
19276
|
className: "relative w-full",
|
|
19228
|
-
children: [showLeftArrow && /*#__PURE__*/
|
|
19229
|
-
children: [/*#__PURE__*/
|
|
19230
|
-
className: "absolute top-0 left-0 w-
|
|
19277
|
+
children: [showLeftArrow && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
19278
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
19279
|
+
className: "absolute top-0 left-0 w-16 h-full z-[5]",
|
|
19231
19280
|
style: {
|
|
19232
19281
|
background: 'linear-gradient(-90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)'
|
|
19233
19282
|
}
|
|
19234
|
-
}), /*#__PURE__*/
|
|
19283
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
19235
19284
|
onClick: () => scroll('left'),
|
|
19236
19285
|
className: "absolute left-0 top-1/2 -translate-y-1/2 z-[7] w-7 h-7 flex justify-center items-center bg-white border border-gray-300 rounded-full",
|
|
19237
19286
|
"aria-label": "Scroll left",
|
|
19238
|
-
children: /*#__PURE__*/
|
|
19239
|
-
src:
|
|
19287
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
19288
|
+
src: chevron_left_namespaceObject,
|
|
19240
19289
|
alt: "left arrow",
|
|
19241
19290
|
className: "w-4 h-4"
|
|
19242
19291
|
})
|
|
19243
19292
|
})]
|
|
19244
|
-
}), /*#__PURE__*/
|
|
19293
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
19245
19294
|
ref: scrollContainerRef,
|
|
19246
19295
|
className: "flex overflow-hidden scrollbar-hide scroll-smooth",
|
|
19247
19296
|
onScroll: checkScrollButtons,
|
|
19248
|
-
children: /*#__PURE__*/
|
|
19249
|
-
className:
|
|
19250
|
-
children: discounts.map((discount, idx) => /*#__PURE__*/
|
|
19251
|
-
className:
|
|
19252
|
-
}, discount
|
|
19297
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
19298
|
+
className: "flex gap-3 w-full",
|
|
19299
|
+
children: discounts.map((discount, idx) => /*#__PURE__*/(0,jsx_runtime.jsx)(Discount, Object.assign({
|
|
19300
|
+
className: "h-auto sm:max-h-20 flex-1"
|
|
19301
|
+
}, discount, {
|
|
19302
|
+
discountsLength: discounts.length,
|
|
19303
|
+
customStyle: customStyle
|
|
19304
|
+
}), idx))
|
|
19253
19305
|
})
|
|
19254
|
-
}), showRightArrow && /*#__PURE__*/
|
|
19255
|
-
children: [/*#__PURE__*/
|
|
19306
|
+
}), showRightArrow && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
19307
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("button", {
|
|
19256
19308
|
onClick: () => scroll('right'),
|
|
19257
19309
|
className: "absolute right-0 top-1/2 -translate-y-1/2 z-[7] w-7 h-7 flex justify-center items-center bg-white border border-gray-300 rounded-full",
|
|
19258
19310
|
"aria-label": "Scroll right",
|
|
19259
|
-
children: /*#__PURE__*/
|
|
19260
|
-
src:
|
|
19311
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
19312
|
+
src: chevron_right_namespaceObject,
|
|
19261
19313
|
alt: "right arrow",
|
|
19262
19314
|
className: "w-4 h-4"
|
|
19263
19315
|
})
|
|
19264
|
-
}), /*#__PURE__*/
|
|
19265
|
-
className: "absolute top-0 right-0 w-
|
|
19316
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
19317
|
+
className: "absolute top-0 right-0 w-16 h-full z-[5]",
|
|
19266
19318
|
style: {
|
|
19267
19319
|
background: 'linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)'
|
|
19268
19320
|
}
|
|
@@ -20969,22 +21021,6 @@ function formatAmountBasedOnCurrency_formatAmountBasedOnCurrency(amount, currenc
|
|
|
20969
21021
|
});
|
|
20970
21022
|
return formattedAmount;
|
|
20971
21023
|
}
|
|
20972
|
-
;// ../../libs/kit-components/src/utils/formatCurrencyForDisplay.ts
|
|
20973
|
-
const formatCurrencyForDisplay_formatCurrencyForDisplay = originalCurrency => {
|
|
20974
|
-
let displayCurrency = originalCurrency;
|
|
20975
|
-
let currencyClassName = '';
|
|
20976
|
-
let currencyFontFamily = '';
|
|
20977
|
-
if (originalCurrency === 'SAR') {
|
|
20978
|
-
displayCurrency = '\u007F';
|
|
20979
|
-
currencyClassName = 'currency-sar-symbol';
|
|
20980
|
-
currencyFontFamily = 'SAR-Symbol';
|
|
20981
|
-
}
|
|
20982
|
-
return {
|
|
20983
|
-
displayCurrency,
|
|
20984
|
-
currencyClassName,
|
|
20985
|
-
currencyFontFamily
|
|
20986
|
-
};
|
|
20987
|
-
};
|
|
20988
21024
|
;// ../../libs/kit-components/src/index.ts
|
|
20989
21025
|
|
|
20990
21026
|
|
|
@@ -21491,66 +21527,6 @@ const constants_SAVED_CARD_TYPES = {
|
|
|
21491
21527
|
OMAN_NET: 'OMANNET',
|
|
21492
21528
|
JCB: 'JCB'
|
|
21493
21529
|
};
|
|
21494
|
-
;// ../../libs/card/src/assets/icons/circle-info.svg
|
|
21495
|
-
var circle_info_path;
|
|
21496
|
-
var circle_info_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
21497
|
-
function circle_info_extends() { return circle_info_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, circle_info_extends.apply(null, arguments); }
|
|
21498
|
-
function circle_info_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = circle_info_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21499
|
-
function circle_info_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
var SvgCircleInfo = function SvgCircleInfo(_ref, ref) {
|
|
21503
|
-
var title = _ref.title,
|
|
21504
|
-
titleId = _ref.titleId,
|
|
21505
|
-
props = circle_info_objectWithoutProperties(_ref, circle_info_excluded);
|
|
21506
|
-
return /*#__PURE__*/React.createElement("svg", circle_info_extends({
|
|
21507
|
-
width: 28,
|
|
21508
|
-
height: 28,
|
|
21509
|
-
viewBox: "0 0 28 28",
|
|
21510
|
-
fill: "none",
|
|
21511
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21512
|
-
ref: ref,
|
|
21513
|
-
"aria-labelledby": titleId
|
|
21514
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
21515
|
-
id: titleId
|
|
21516
|
-
}, title) : null, circle_info_path || (circle_info_path = /*#__PURE__*/React.createElement("path", {
|
|
21517
|
-
d: "M14 3.5C8.17578 3.5 3.5 8.2168 3.5 14C3.5 19.8242 8.17578 24.5 14 24.5C19.7832 24.5 24.5 19.8242 24.5 14C24.5 8.2168 19.7832 3.5 14 3.5ZM14 22.5312C9.2832 22.5312 5.46875 18.7168 5.46875 14C5.46875 9.32422 9.2832 5.46875 14 5.46875C18.6758 5.46875 22.5312 9.32422 22.5312 14C22.5312 18.7168 18.6758 22.5312 14 22.5312ZM15.6406 17.2812H14.9844V13.6719C14.9844 13.1387 14.5332 12.6875 14 12.6875H12.6875C12.1133 12.6875 11.7031 13.1387 11.7031 13.6719C11.7031 14.2461 12.1133 14.6562 12.6875 14.6562H13.0156V17.2812H12.3594C11.7852 17.2812 11.375 17.7324 11.375 18.2656C11.375 18.8398 11.7852 19.25 12.3594 19.25H15.6406C16.1738 19.25 16.625 18.8398 16.625 18.2656C16.625 17.7324 16.1738 17.2812 15.6406 17.2812ZM14 11.375C14.6973 11.375 15.3125 10.8008 15.3125 10.0625C15.3125 9.36523 14.6973 8.75 14 8.75C13.2617 8.75 12.6875 9.36523 12.6875 10.0625C12.6875 10.8008 13.2617 11.375 14 11.375Z",
|
|
21518
|
-
fill: "#475467"
|
|
21519
|
-
})));
|
|
21520
|
-
};
|
|
21521
|
-
var circle_info_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgCircleInfo)));
|
|
21522
|
-
|
|
21523
|
-
/* harmony default export */ const circle_info = (__webpack_require__.p + "circle-info.86d7b952e59c07872f24259c4d5141f3.svg");
|
|
21524
|
-
;// ../../libs/card/src/assets/icons/xmark.svg
|
|
21525
|
-
var xmark_path;
|
|
21526
|
-
var xmark_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
21527
|
-
function xmark_extends() { return xmark_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, xmark_extends.apply(null, arguments); }
|
|
21528
|
-
function xmark_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = xmark_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21529
|
-
function xmark_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
21530
|
-
|
|
21531
|
-
|
|
21532
|
-
var SvgXmark = function SvgXmark(_ref, ref) {
|
|
21533
|
-
var title = _ref.title,
|
|
21534
|
-
titleId = _ref.titleId,
|
|
21535
|
-
props = xmark_objectWithoutProperties(_ref, xmark_excluded);
|
|
21536
|
-
return /*#__PURE__*/React.createElement("svg", xmark_extends({
|
|
21537
|
-
width: 32,
|
|
21538
|
-
height: 32,
|
|
21539
|
-
viewBox: "0 0 32 32",
|
|
21540
|
-
fill: "none",
|
|
21541
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21542
|
-
ref: ref,
|
|
21543
|
-
"aria-labelledby": titleId
|
|
21544
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
21545
|
-
id: titleId
|
|
21546
|
-
}, title) : null, xmark_path || (xmark_path = /*#__PURE__*/React.createElement("path", {
|
|
21547
|
-
d: "M23.1484 21.5781C23.5703 22.0469 23.5703 22.75 23.1484 23.1719C22.6797 23.6406 21.9766 23.6406 21.5547 23.1719L16.0234 17.5938L10.4453 23.1719C9.97656 23.6406 9.27344 23.6406 8.85156 23.1719C8.38281 22.75 8.38281 22.0469 8.85156 21.5781L14.4297 16L8.85156 10.4219C8.38281 9.95312 8.38281 9.25 8.85156 8.82812C9.27344 8.35938 9.97656 8.35938 10.3984 8.82812L16.0234 14.4531L21.6016 8.875C22.0234 8.40625 22.7266 8.40625 23.1484 8.875C23.6172 9.29688 23.6172 10 23.1484 10.4688L17.5703 16L23.1484 21.5781Z",
|
|
21548
|
-
fill: "#667085"
|
|
21549
|
-
})));
|
|
21550
|
-
};
|
|
21551
|
-
var xmark_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgXmark)));
|
|
21552
|
-
|
|
21553
|
-
/* harmony default export */ const xmark = (__webpack_require__.p + "xmark.de98e58abcad3fa106c3784223a0479b.svg");
|
|
21554
21530
|
;// ../../libs/card/src/lib/card/cardFormViewTwo.tsx
|
|
21555
21531
|
|
|
21556
21532
|
|
|
@@ -21562,8 +21538,6 @@ var xmark_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null
|
|
|
21562
21538
|
|
|
21563
21539
|
|
|
21564
21540
|
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
21541
|
function cardFormViewTwo_Card(props) {
|
|
21568
21542
|
const {
|
|
21569
21543
|
onSubmit,
|
|
@@ -21585,8 +21559,8 @@ function cardFormViewTwo_Card(props) {
|
|
|
21585
21559
|
isDisabled,
|
|
21586
21560
|
hideCardIcons,
|
|
21587
21561
|
buttonLabel,
|
|
21588
|
-
|
|
21589
|
-
|
|
21562
|
+
bankTermsAndConditions,
|
|
21563
|
+
isBankTermsAgreed
|
|
21590
21564
|
} = props;
|
|
21591
21565
|
const lang = useSafeSelector(state => state.lang);
|
|
21592
21566
|
const langDirection = lang === 'ar' ? 'rtl' : 'ltr';
|
|
@@ -21633,137 +21607,102 @@ function cardFormViewTwo_Card(props) {
|
|
|
21633
21607
|
useEffect(() => {
|
|
21634
21608
|
onDiscount == null || onDiscount(cardNum, isValidCard);
|
|
21635
21609
|
}, [isValidCard, cardNum]);
|
|
21636
|
-
return /*#__PURE__*/_jsxs(
|
|
21637
|
-
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
|
|
21650
|
-
|
|
21651
|
-
|
|
21652
|
-
|
|
21610
|
+
return /*#__PURE__*/_jsxs("form", {
|
|
21611
|
+
onSubmit: handleSubmit(onSubmit),
|
|
21612
|
+
noValidate: true,
|
|
21613
|
+
className: "m-auto w-full max-w-full h-full flex flex-col",
|
|
21614
|
+
style: styling.container,
|
|
21615
|
+
children: [/*#__PURE__*/_jsx("p", {
|
|
21616
|
+
style: styling.label,
|
|
21617
|
+
className: "text-sm font-[500] mb-2 text-gray-700",
|
|
21618
|
+
children: t('CARD_INFO')
|
|
21619
|
+
}), /*#__PURE__*/_jsx(CardNumber, {
|
|
21620
|
+
hideCardIcons: hideCardIcons,
|
|
21621
|
+
formRegister: cardNumberRegister,
|
|
21622
|
+
cardType: cardType,
|
|
21623
|
+
getCardLogo: getCardLogo,
|
|
21624
|
+
error: errors['number'],
|
|
21625
|
+
maxLength: cardType === CARD_TYPES.AMEX ? AMEX_CARD_LENGTH + CARD_NUMBER_SPACES : CARD_LENGTH + CARD_NUMBER_SPACES,
|
|
21626
|
+
customStyle: styling.input,
|
|
21627
|
+
className: `border-b-0 rounded-t-lg ${errors['number'] ? 'border-red-300' : 'border-gray-300'}`
|
|
21628
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
21629
|
+
className: "w-full flex",
|
|
21630
|
+
children: [/*#__PURE__*/_jsx(ExpiryDate, {
|
|
21631
|
+
formRegister: expiryRegister,
|
|
21632
|
+
maxLength: EXPIRY_DATE_LENGTH,
|
|
21633
|
+
expiryDate: getValues('expiry'),
|
|
21653
21634
|
customStyle: styling.input,
|
|
21654
|
-
|
|
21655
|
-
|
|
21656
|
-
className: "w-full flex",
|
|
21657
|
-
children: [/*#__PURE__*/_jsx(ExpiryDate, {
|
|
21658
|
-
formRegister: expiryRegister,
|
|
21659
|
-
maxLength: EXPIRY_DATE_LENGTH,
|
|
21660
|
-
expiryDate: getValues('expiry'),
|
|
21661
|
-
customStyle: styling.input,
|
|
21662
|
-
error: errors['expiry'],
|
|
21663
|
-
className: `${isRTL ? "rounded-br-lg" : "rounded-bl-lg"} ${errors['number'] ? 'border-t-red-300' : ''} ${errors['cvc'] ? isRTL ? 'border-l-red-300' : 'border-r-red-300' : ''}
|
|
21635
|
+
error: errors['expiry'],
|
|
21636
|
+
className: `${isRTL ? "rounded-br-lg" : "rounded-bl-lg"} ${errors['number'] ? 'border-t-red-300' : ''} ${errors['cvc'] ? isRTL ? 'border-l-red-300' : 'border-r-red-300' : ''}
|
|
21664
21637
|
${errors['expiry'] ? 'border-red-300' : 'border-gray-300'}`
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21638
|
+
}), /*#__PURE__*/_jsx(CVV, {
|
|
21639
|
+
formRegister: cvcRegister,
|
|
21640
|
+
maxLength: cardType === CARD_TYPES.AMEX ? AMEX_CVV_LENGTH : CVV_LENGTH,
|
|
21641
|
+
error: errors['cvc'],
|
|
21642
|
+
customStyle: styling.input,
|
|
21643
|
+
className: `${isRTL ? "border-r-0 rounded-bl-lg" : "border-l-0 rounded-br-lg"} ${errors['number'] ? 'border-t-red-500' : ''}
|
|
21671
21644
|
${errors['cvc'] ? 'border-red-300' : 'border-gray-300'}`
|
|
21672
|
-
})]
|
|
21673
|
-
}), discountErrorMessage && /*#__PURE__*/_jsx("p", {
|
|
21674
|
-
className: "mt-2 text-orange-700 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
21675
|
-
children: discountErrorMessage
|
|
21676
|
-
}), discountAppliedMessage && /*#__PURE__*/_jsx("p", {
|
|
21677
|
-
className: "mt-2 text-green-400 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
21678
|
-
children: discountAppliedMessage
|
|
21679
|
-
}), (errors['number'] || errors['cvc'] || errors['expiry']) && /*#__PURE__*/_jsxs("ul", {
|
|
21680
|
-
style: styling.error,
|
|
21681
|
-
className: "my-2 text-xs text-red-600 list-disc list-inside list-item:text-red-600",
|
|
21682
|
-
children: [errors['number'] && /*#__PURE__*/_jsx("li", {
|
|
21683
|
-
children: errors['number'].message
|
|
21684
|
-
}), errors['expiry'] && /*#__PURE__*/_jsx("li", {
|
|
21685
|
-
children: errors['expiry'].message
|
|
21686
|
-
}), errors['cvc'] && /*#__PURE__*/_jsx("li", {
|
|
21687
|
-
children: errors['cvc'].message
|
|
21688
|
-
})]
|
|
21689
|
-
}), /*#__PURE__*/_jsx("p", {
|
|
21690
|
-
style: styling.label,
|
|
21691
|
-
className: "text-sm font-[500] mt-4 mb-2 text-gray-700",
|
|
21692
|
-
children: t('CARDHOLDER_NAME')
|
|
21693
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
21694
|
-
className: "w-full overflow-hidden",
|
|
21695
|
-
children: /*#__PURE__*/_jsx(CardHolder, {
|
|
21696
|
-
formRegister: nameRegister,
|
|
21697
|
-
maxLength: CARD_HOLDER_NAME_MAX_LENGTH,
|
|
21698
|
-
error: errors['name'],
|
|
21699
|
-
customStyle: styling.input,
|
|
21700
|
-
className: `rounded-lg ${errors['name'] ? 'border-red-300' : 'border-gray-300'}`
|
|
21701
|
-
})
|
|
21702
|
-
}), errors['name'] && /*#__PURE__*/_jsx("p", {
|
|
21703
|
-
style: styling.error,
|
|
21704
|
-
className: "text-xs my-2 text-red-600",
|
|
21705
|
-
children: errors['name'].message
|
|
21706
|
-
}), forceSaveCard && /*#__PURE__*/_jsx("p", {
|
|
21707
|
-
className: "w-full mt-4 text-gray-700 text-sm",
|
|
21708
|
-
children: t('FORCE_SAVE_CARD')
|
|
21709
|
-
}), !forceSaveCard && showSaveCard && /*#__PURE__*/_jsx("div", {
|
|
21710
|
-
className: "w-full mt-4",
|
|
21711
|
-
children: /*#__PURE__*/_jsx(FormCheckbox, {
|
|
21712
|
-
formRegister: saveCardRegister,
|
|
21713
|
-
label: t('SAVE_CARD'),
|
|
21714
|
-
name: "save_card",
|
|
21715
|
-
customStyle: styling.input
|
|
21716
|
-
})
|
|
21717
|
-
}), content, children ? Children.map(children, child => {
|
|
21718
|
-
if (! /*#__PURE__*/isValidElement(child)) return null;
|
|
21719
|
-
return /*#__PURE__*/cloneElement(child, Object.assign({}, child.props, {
|
|
21720
|
-
isDirty,
|
|
21721
|
-
isValid
|
|
21722
|
-
}));
|
|
21723
|
-
}) : /*#__PURE__*/_jsxs("div", {
|
|
21724
|
-
className: "w-full mt-auto",
|
|
21725
|
-
children: [showTerms && /*#__PURE__*/_jsx(TermsConditions, {}), termsAndConditions && /*#__PURE__*/_jsx(Checkbox, {
|
|
21726
|
-
label: /*#__PURE__*/_jsxs("div", {
|
|
21727
|
-
className: "flex items-center gap-1",
|
|
21728
|
-
children: [t('AGREE_TO_BANK', {
|
|
21729
|
-
bankName: bankName
|
|
21730
|
-
}), /*#__PURE__*/_jsx("button", {
|
|
21731
|
-
type: "button",
|
|
21732
|
-
onClick: () => setOpenModal(true),
|
|
21733
|
-
className: "text-blue-600 ",
|
|
21734
|
-
children: t('TERMS_AND_CONDITIONS')
|
|
21735
|
-
})]
|
|
21736
|
-
}),
|
|
21737
|
-
name: "agreeTerms",
|
|
21738
|
-
checked: isAgreed,
|
|
21739
|
-
onChange: e => setIsAgreed(e.target.checked)
|
|
21740
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
21741
|
-
label: buttonLabel || t('CARD_ACTION_BTN'),
|
|
21742
|
-
id: "pay-button",
|
|
21743
|
-
loading: loading,
|
|
21744
|
-
fullWidth: true,
|
|
21745
|
-
disabled: isDisabled || loading || !isDirty || !isValid || termsAndConditions && !isAgreed,
|
|
21746
|
-
customStyle: styling.button
|
|
21747
|
-
})]
|
|
21748
21645
|
})]
|
|
21749
|
-
}), /*#__PURE__*/_jsx(
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
}),
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21646
|
+
}), discountErrorMessage && /*#__PURE__*/_jsx("p", {
|
|
21647
|
+
className: "mt-2 text-orange-700 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
21648
|
+
children: discountErrorMessage
|
|
21649
|
+
}), discountAppliedMessage && /*#__PURE__*/_jsx("p", {
|
|
21650
|
+
className: "mt-2 text-green-400 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
21651
|
+
children: discountAppliedMessage
|
|
21652
|
+
}), (errors['number'] || errors['cvc'] || errors['expiry']) && /*#__PURE__*/_jsxs("ul", {
|
|
21653
|
+
style: styling.error,
|
|
21654
|
+
className: "my-2 text-xs text-red-600 list-disc list-inside list-item:text-red-600",
|
|
21655
|
+
children: [errors['number'] && /*#__PURE__*/_jsx("li", {
|
|
21656
|
+
children: errors['number'].message
|
|
21657
|
+
}), errors['expiry'] && /*#__PURE__*/_jsx("li", {
|
|
21658
|
+
children: errors['expiry'].message
|
|
21659
|
+
}), errors['cvc'] && /*#__PURE__*/_jsx("li", {
|
|
21660
|
+
children: errors['cvc'].message
|
|
21661
|
+
})]
|
|
21662
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
21663
|
+
style: styling.label,
|
|
21664
|
+
className: "text-sm font-[500] mt-4 mb-2 text-gray-700",
|
|
21665
|
+
children: t('CARDHOLDER_NAME')
|
|
21666
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
21667
|
+
className: "w-full overflow-hidden",
|
|
21668
|
+
children: /*#__PURE__*/_jsx(CardHolder, {
|
|
21669
|
+
formRegister: nameRegister,
|
|
21670
|
+
maxLength: CARD_HOLDER_NAME_MAX_LENGTH,
|
|
21671
|
+
error: errors['name'],
|
|
21672
|
+
customStyle: styling.input,
|
|
21673
|
+
className: `rounded-lg ${errors['name'] ? 'border-red-300' : 'border-gray-300'}`
|
|
21766
21674
|
})
|
|
21675
|
+
}), errors['name'] && /*#__PURE__*/_jsx("p", {
|
|
21676
|
+
style: styling.error,
|
|
21677
|
+
className: "text-xs my-2 text-red-600",
|
|
21678
|
+
children: errors['name'].message
|
|
21679
|
+
}), forceSaveCard && /*#__PURE__*/_jsx("p", {
|
|
21680
|
+
className: "w-full mt-4 text-gray-700 text-sm",
|
|
21681
|
+
children: t('FORCE_SAVE_CARD')
|
|
21682
|
+
}), !forceSaveCard && showSaveCard && /*#__PURE__*/_jsx("div", {
|
|
21683
|
+
className: "w-full mt-4",
|
|
21684
|
+
children: /*#__PURE__*/_jsx(FormCheckbox, {
|
|
21685
|
+
formRegister: saveCardRegister,
|
|
21686
|
+
label: t('SAVE_CARD'),
|
|
21687
|
+
name: "save_card",
|
|
21688
|
+
customStyle: styling.input
|
|
21689
|
+
})
|
|
21690
|
+
}), content, children ? Children.map(children, child => {
|
|
21691
|
+
if (! /*#__PURE__*/isValidElement(child)) return null;
|
|
21692
|
+
return /*#__PURE__*/cloneElement(child, Object.assign({}, child.props, {
|
|
21693
|
+
isDirty,
|
|
21694
|
+
isValid
|
|
21695
|
+
}));
|
|
21696
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
|
21697
|
+
className: "w-full mt-auto",
|
|
21698
|
+
children: [showTerms && /*#__PURE__*/_jsx(TermsConditions, {}), bankTermsAndConditions, /*#__PURE__*/_jsx(Button, {
|
|
21699
|
+
label: buttonLabel || t('CARD_ACTION_BTN'),
|
|
21700
|
+
id: "pay-button",
|
|
21701
|
+
loading: loading,
|
|
21702
|
+
fullWidth: true,
|
|
21703
|
+
disabled: isDisabled || loading || !isDirty || !isValid || bankTermsAndConditions && !isBankTermsAgreed,
|
|
21704
|
+
customStyle: styling.button
|
|
21705
|
+
})]
|
|
21767
21706
|
})]
|
|
21768
21707
|
});
|
|
21769
21708
|
}
|
|
@@ -21861,8 +21800,6 @@ function MobileCardNumberViewTwo_MobileCardNumber(props) {
|
|
|
21861
21800
|
|
|
21862
21801
|
|
|
21863
21802
|
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
21803
|
function mobileCardFormViewTwo_MobileCard(props) {
|
|
21867
21804
|
const {
|
|
21868
21805
|
onSubmit,
|
|
@@ -21884,15 +21821,13 @@ function mobileCardFormViewTwo_MobileCard(props) {
|
|
|
21884
21821
|
noCardLogo,
|
|
21885
21822
|
noSubmitBtn,
|
|
21886
21823
|
buttonLabel,
|
|
21887
|
-
|
|
21888
|
-
|
|
21824
|
+
bankTermsAndConditions,
|
|
21825
|
+
isBankTermsAgreed
|
|
21889
21826
|
} = props;
|
|
21890
21827
|
const [cardNumberSelected, setCardNumberSelected] = useState(false);
|
|
21891
21828
|
const [validCard, setValidCard] = useState(false);
|
|
21892
21829
|
const [showName, setShowName] = useState(false);
|
|
21893
21830
|
const [showModal, setShowModal] = useState(false);
|
|
21894
|
-
const [isAgreed, setIsAgreed] = useState(false);
|
|
21895
|
-
const [openModal, setOpenModal] = useState(false);
|
|
21896
21831
|
const {
|
|
21897
21832
|
t
|
|
21898
21833
|
} = useTranslation('card');
|
|
@@ -22136,52 +22071,15 @@ function mobileCardFormViewTwo_MobileCard(props) {
|
|
|
22136
22071
|
})
|
|
22137
22072
|
}), content, /*#__PURE__*/_jsxs("div", {
|
|
22138
22073
|
className: "w-full mt-auto",
|
|
22139
|
-
children: [showTerms && /*#__PURE__*/_jsx(TermsConditions, {}),
|
|
22140
|
-
className: "flex items-center mt-4 mb-6",
|
|
22141
|
-
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
22142
|
-
label: /*#__PURE__*/_jsxs("div", {
|
|
22143
|
-
className: "flex items-center gap-1 ",
|
|
22144
|
-
children: [t('AGREE_TO_BANK', {
|
|
22145
|
-
bankName: bankName
|
|
22146
|
-
}), /*#__PURE__*/_jsx("button", {
|
|
22147
|
-
type: "button",
|
|
22148
|
-
onClick: () => setOpenModal(true),
|
|
22149
|
-
className: "text-blue-600 ",
|
|
22150
|
-
children: t('TERMS_AND_CONDITIONS')
|
|
22151
|
-
})]
|
|
22152
|
-
}),
|
|
22153
|
-
name: "agreeTerms",
|
|
22154
|
-
checked: isAgreed,
|
|
22155
|
-
onChange: e => setIsAgreed(e.target.checked)
|
|
22156
|
-
})
|
|
22157
|
-
}), !noSubmitBtn && /*#__PURE__*/_jsx(Button, {
|
|
22074
|
+
children: [showTerms && /*#__PURE__*/_jsx(TermsConditions, {}), bankTermsAndConditions, !noSubmitBtn && /*#__PURE__*/_jsx(Button, {
|
|
22158
22075
|
label: buttonLabel || t('CARD_ACTION_BTN'),
|
|
22159
22076
|
id: "pay-button",
|
|
22160
22077
|
loading: loading,
|
|
22161
22078
|
fullWidth: true,
|
|
22162
|
-
disabled: isDisabled || loading || !isDirty || !isValid ||
|
|
22079
|
+
disabled: isDisabled || loading || !isDirty || !isValid || bankTermsAndConditions && !isBankTermsAgreed,
|
|
22163
22080
|
customStyle: styling.button
|
|
22164
22081
|
})]
|
|
22165
22082
|
})]
|
|
22166
|
-
}), /*#__PURE__*/_jsx(Modal, {
|
|
22167
|
-
showModal: openModal,
|
|
22168
|
-
onClose: () => setOpenModal(false),
|
|
22169
|
-
title: t('TERMS_AND_CONDITIONS'),
|
|
22170
|
-
icon: Info,
|
|
22171
|
-
closeIcon: XmarkIcon,
|
|
22172
|
-
footer: /*#__PURE__*/_jsx(Button, {
|
|
22173
|
-
label: t('AGREE'),
|
|
22174
|
-
id: "agree-button",
|
|
22175
|
-
onClick: () => {
|
|
22176
|
-
setIsAgreed(true);
|
|
22177
|
-
setOpenModal(false);
|
|
22178
|
-
},
|
|
22179
|
-
fullWidth: true
|
|
22180
|
-
}),
|
|
22181
|
-
children: /*#__PURE__*/_jsx("p", {
|
|
22182
|
-
className: "text-[#475467] font-inter text-sm font-medium leading-6 tracking-[0.16px] px-6",
|
|
22183
|
-
children: termsAndConditions
|
|
22184
|
-
})
|
|
22185
22083
|
}), showModal && /*#__PURE__*/_jsx(ModalView, {
|
|
22186
22084
|
onClose: onClose,
|
|
22187
22085
|
showModal: showModal,
|
|
@@ -22230,6 +22128,7 @@ function mobileCardFormViewTwo_MobileCard(props) {
|
|
|
22230
22128
|
|
|
22231
22129
|
|
|
22232
22130
|
|
|
22131
|
+
|
|
22233
22132
|
function IframeCard(props) {
|
|
22234
22133
|
var _iframeCustomStyles$c, _iframeCustomStyles$c2, _iframeCustomStyles$p, _iframeCustomStyles$c3, _iframeCustomStyles$c4, _iframeCustomStyles$p2, _iframeCustomStyles$c5, _iframeCustomStyles$c6, _iframeCustomStyles$p3;
|
|
22235
22134
|
const {
|
|
@@ -22243,7 +22142,8 @@ function IframeCard(props) {
|
|
|
22243
22142
|
hasOmanNetIntegration,
|
|
22244
22143
|
setHasOmanNetIntegration,
|
|
22245
22144
|
handleGenerateToken,
|
|
22246
|
-
integrationType
|
|
22145
|
+
integrationType,
|
|
22146
|
+
onDiscount
|
|
22247
22147
|
} = props;
|
|
22248
22148
|
const [iframeCardHight, setIframeCardHight] = useState();
|
|
22249
22149
|
const [iframeCustomStyles, setIframeCustomStyles] = useState({});
|
|
@@ -22259,6 +22159,8 @@ function IframeCard(props) {
|
|
|
22259
22159
|
const [currency, setCurrency] = useState('');
|
|
22260
22160
|
const [country, setCountry] = useState('');
|
|
22261
22161
|
const [publicKey, setPublicKey] = useState('');
|
|
22162
|
+
const [integrationId, setIntegrationId] = useState("");
|
|
22163
|
+
const [discountsCount, setDiscountsCount] = useState();
|
|
22262
22164
|
const {
|
|
22263
22165
|
handleSubmit,
|
|
22264
22166
|
errors,
|
|
@@ -22275,6 +22177,8 @@ function IframeCard(props) {
|
|
|
22275
22177
|
countryName: country
|
|
22276
22178
|
});
|
|
22277
22179
|
const timeoutIdRef = useRef();
|
|
22180
|
+
const cardNum = getValues('number');
|
|
22181
|
+
const isValidCard = valid.number(cardNum).isValid;
|
|
22278
22182
|
useEffect(() => {
|
|
22279
22183
|
window.addEventListener('message', handleDataFromSDK);
|
|
22280
22184
|
return () => window.removeEventListener('message', handleDataFromSDK);
|
|
@@ -22282,6 +22186,15 @@ function IframeCard(props) {
|
|
|
22282
22186
|
useEffect(() => {
|
|
22283
22187
|
setIsOmanNetCard == null || setIsOmanNetCard(cardType === CARD_TYPES.OMAN);
|
|
22284
22188
|
}, [cardType, setIsOmanNetCard]);
|
|
22189
|
+
useEffect(() => {
|
|
22190
|
+
onDiscount == null || onDiscount({
|
|
22191
|
+
cardNum,
|
|
22192
|
+
isValidCard,
|
|
22193
|
+
discountsCount,
|
|
22194
|
+
integrationId: hasOmanNetIntegration && isOmanNetCard ? subType.integrationId : integrationId,
|
|
22195
|
+
paymentToken: hasOmanNetIntegration && isOmanNetCard ? subType.paymentToken : paymentToken
|
|
22196
|
+
});
|
|
22197
|
+
}, [cardNum, isValidCard, discountsCount, hasOmanNetIntegration, isOmanNetCard, subType, paymentToken, integrationId]);
|
|
22285
22198
|
const handleDataFromSDK = event => {
|
|
22286
22199
|
if (event.data.type === 'setPrevFocus') {
|
|
22287
22200
|
handlePrevFocusFromSDK(event.data.payload);
|
|
@@ -22319,6 +22232,9 @@ function IframeCard(props) {
|
|
|
22319
22232
|
if (payload.paymentToken) {
|
|
22320
22233
|
setPaymentToken(payload.paymentToken);
|
|
22321
22234
|
}
|
|
22235
|
+
if (payload.integrationId) {
|
|
22236
|
+
setIntegrationId(payload.integrationId);
|
|
22237
|
+
}
|
|
22322
22238
|
if ((_payload$subType = payload.subType) != null && _payload$subType.paymentToken && (_payload$subType2 = payload.subType) != null && _payload$subType2.type) {
|
|
22323
22239
|
var _payload$subType$type;
|
|
22324
22240
|
setSubType(payload.subType);
|
|
@@ -22333,6 +22249,9 @@ function IframeCard(props) {
|
|
|
22333
22249
|
if (payload.country) {
|
|
22334
22250
|
setCountry(payload.country);
|
|
22335
22251
|
}
|
|
22252
|
+
if (payload.discountsCount) {
|
|
22253
|
+
setDiscountsCount(payload.discountsCount);
|
|
22254
|
+
}
|
|
22336
22255
|
};
|
|
22337
22256
|
const handleTokenizeCardDataFromSDK = payload => {
|
|
22338
22257
|
if (payload.publicKey) {
|
|
@@ -22918,11 +22837,14 @@ const AddCardButtons_AddCardButtons = props => {
|
|
|
22918
22837
|
const {
|
|
22919
22838
|
borderStyle
|
|
22920
22839
|
} = useSelector(state => state.customization);
|
|
22840
|
+
const lang = useSafeSelector(state => state.lang);
|
|
22841
|
+
const langDirection = lang === 'ar' ? 'rtl' : 'ltr';
|
|
22842
|
+
const isRTL = langDirection === "rtl";
|
|
22921
22843
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
22922
22844
|
children: [/*#__PURE__*/_jsx("div", {
|
|
22923
22845
|
className: "w-[200%] mt-6 self-center border-b border-gray-200"
|
|
22924
22846
|
}), /*#__PURE__*/_jsxs("div", {
|
|
22925
|
-
className:
|
|
22847
|
+
className: `${isRTL ? 'flex-row-reverse' : 'flex-row-reverse'} justify-end flex mt-6 items-center gap-3 mobile:flex-col-reverse`,
|
|
22926
22848
|
children: [/*#__PURE__*/_jsx("button", {
|
|
22927
22849
|
onClick: onClose,
|
|
22928
22850
|
type: "button",
|
|
@@ -22937,7 +22859,7 @@ const AddCardButtons_AddCardButtons = props => {
|
|
|
22937
22859
|
id: "pay-button",
|
|
22938
22860
|
loading: loading,
|
|
22939
22861
|
className: "!mt-0 mobile:w-full",
|
|
22940
|
-
disabled: !isDirty || !isValid
|
|
22862
|
+
disabled: !isDirty || !isValid || loading
|
|
22941
22863
|
})]
|
|
22942
22864
|
})]
|
|
22943
22865
|
});
|
|
@@ -22947,6 +22869,7 @@ const AddCardButtons_AddCardButtons = props => {
|
|
|
22947
22869
|
|
|
22948
22870
|
|
|
22949
22871
|
|
|
22872
|
+
|
|
22950
22873
|
function AddCardViewTwo_AddCard(props) {
|
|
22951
22874
|
const {
|
|
22952
22875
|
onSubmit,
|
|
@@ -22965,6 +22888,9 @@ function AddCardViewTwo_AddCard(props) {
|
|
|
22965
22888
|
discountErrorMessage,
|
|
22966
22889
|
discountAppliedMessage
|
|
22967
22890
|
} = props;
|
|
22891
|
+
const {
|
|
22892
|
+
t
|
|
22893
|
+
} = useTranslation('kitComponents');
|
|
22968
22894
|
return /*#__PURE__*/_jsxs("div", {
|
|
22969
22895
|
id: "iframe",
|
|
22970
22896
|
className: "overflow-hidden flex flex-col items-start rounded-xl shadow-[0_20px_24px_-4px_rgba(16, 24, 40, 0.08)_0_8px_8px_-4px_rgba(16, 24, 40, 0.03)]",
|
|
@@ -22974,7 +22900,7 @@ function AddCardViewTwo_AddCard(props) {
|
|
|
22974
22900
|
className: "flex pt-2 flex-col items-start gap-1",
|
|
22975
22901
|
children: /*#__PURE__*/_jsx("p", {
|
|
22976
22902
|
className: "text-gray-900 text-lg font-semibold leading-8",
|
|
22977
|
-
children: "
|
|
22903
|
+
children: t("ADD_SAVED_CARDS")
|
|
22978
22904
|
})
|
|
22979
22905
|
})
|
|
22980
22906
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -23160,13 +23086,17 @@ function SavedCardsViewTwo(props) {
|
|
|
23160
23086
|
setShowDeleteCardModal(false);
|
|
23161
23087
|
setSelectedDeleteCard(null);
|
|
23162
23088
|
};
|
|
23089
|
+
const handleSubmitNewCard = async data => {
|
|
23090
|
+
await (onSubmit == null ? void 0 : onSubmit(data));
|
|
23091
|
+
handleCloseCardModal();
|
|
23092
|
+
};
|
|
23163
23093
|
const isTabView = layout.toLowerCase().includes('tab');
|
|
23164
23094
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
23165
23095
|
children: [/*#__PURE__*/_jsx(ModalView, {
|
|
23166
23096
|
showModal: showCardModal,
|
|
23167
23097
|
onClose: handleCloseCardModal,
|
|
23168
23098
|
children: /*#__PURE__*/_jsx(AddCard, {
|
|
23169
|
-
onSubmit:
|
|
23099
|
+
onSubmit: handleSubmitNewCard,
|
|
23170
23100
|
setIsOmanNetCard: setIsOmanNetCard,
|
|
23171
23101
|
useHookForm: useHookForm,
|
|
23172
23102
|
loading: loading,
|
|
@@ -23349,7 +23279,7 @@ const SavedCardElements = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
23349
23279
|
}
|
|
23350
23280
|
}, [iframeRef.current]);
|
|
23351
23281
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
23352
|
-
className: `flex w-full p-4 items-center gap-3 border rounded-xl ${isCardExpired ? '' : 'cursor-pointer'} ${isSelected ? 'border-blue-500 bg-blue-25' : 'border-gray-200 bg-white'}`,
|
|
23282
|
+
className: `flex flex-wrap w-full p-4 items-center gap-3 border rounded-xl ${isCardExpired ? '' : 'cursor-pointer'} ${isSelected ? 'border-blue-500 bg-blue-25' : 'border-gray-200 bg-white'}`,
|
|
23353
23283
|
onClick: () => onCardSelect(card),
|
|
23354
23284
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
23355
23285
|
className: "flex w-[2.875rem] h-8 py-[0.45rem] px-2 justify-center items-center rounded-md border border-gray-100 bg-white",
|
|
@@ -23385,6 +23315,15 @@ const SavedCardElements = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
23385
23315
|
height: height
|
|
23386
23316
|
})
|
|
23387
23317
|
})
|
|
23318
|
+
}), card.hasDiscount && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
23319
|
+
className: "w-full flex",
|
|
23320
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
23321
|
+
className: "w-fit py-[0.1rem] px-[0.6rem] rounded-2xl bg-gray-100",
|
|
23322
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
23323
|
+
className: "text-gray-600 text-sm font-medium leading-6 tracking-[0.16px] text-center font-sans",
|
|
23324
|
+
children: t('OFFER')
|
|
23325
|
+
})
|
|
23326
|
+
})
|
|
23388
23327
|
})]
|
|
23389
23328
|
});
|
|
23390
23329
|
});
|
|
@@ -23508,6 +23447,17 @@ const payWithSavedCard = payload => {
|
|
|
23508
23447
|
api_source: 'PIXEL'
|
|
23509
23448
|
}).then(res => res).catch(err => err == null ? void 0 : err.response);
|
|
23510
23449
|
};
|
|
23450
|
+
const checkDiscount = (payment_token, integration_id, identifier, isSavedCard) => {
|
|
23451
|
+
return lib_axios.post(`/api/acceptance/transaction_discount/use-discount`, Object.assign({
|
|
23452
|
+
payment_token,
|
|
23453
|
+
integration_id,
|
|
23454
|
+
subtype: 'CARD'
|
|
23455
|
+
}, !isSavedCard && {
|
|
23456
|
+
identifier: identifier.replace(/\s/g, '')
|
|
23457
|
+
}, isSavedCard && {
|
|
23458
|
+
saved_card_token: identifier
|
|
23459
|
+
})).then(res => res).catch(err => err == null ? void 0 : err.response);
|
|
23460
|
+
};
|
|
23511
23461
|
;// ./src/utils/getErrorMsg.ts
|
|
23512
23462
|
const getErrorMsg_isString = data => typeof data === 'string';
|
|
23513
23463
|
const DECLINED_MESSAGE = 'Payment is declined';
|
|
@@ -23600,9 +23550,10 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23600
23550
|
isLoading,
|
|
23601
23551
|
country,
|
|
23602
23552
|
integrationType,
|
|
23603
|
-
publicKey
|
|
23553
|
+
publicKey,
|
|
23554
|
+
discounts
|
|
23604
23555
|
}, ref) => {
|
|
23605
|
-
var _customStyle$containe, _customStyle$containe2, _customStyle$button, _customStyle$containe3, _customStyle$labelTex, _customStyle$buttonTe, _customStyle$placehol, _customStyle$errorTex, _customStyle$errorTex2, _customStyle$errorTex3, _customStyle$errorTex4, _customStyle$hintText, _customStyle$labelTex2, _customStyle$buttonTe2, _customStyle$labelTex3, _customStyle$buttonTe3, _customStyle$buttonTe4;
|
|
23556
|
+
var _customStyle$containe, _customStyle$containe2, _customStyle$button, _customStyle$containe3, _customStyle$labelTex, _customStyle$buttonTe, _customStyle$placehol, _customStyle$discount, _customStyle$discount2, _customStyle$errorTex, _customStyle$errorTex2, _customStyle$errorTex3, _customStyle$errorTex4, _customStyle$hintText, _customStyle$labelTex2, _customStyle$buttonTe2, _customStyle$labelTex3, _customStyle$buttonTe3, _customStyle$buttonTe4;
|
|
23606
23557
|
const {
|
|
23607
23558
|
token,
|
|
23608
23559
|
amount,
|
|
@@ -23645,11 +23596,14 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23645
23596
|
displayCurrency,
|
|
23646
23597
|
currencyFontFamily
|
|
23647
23598
|
} = formatCurrencyForDisplay_formatCurrencyForDisplay(currency);
|
|
23599
|
+
const [discountAppliedMessage, setDiscountAppliedMessage] = (0,react.useState)('');
|
|
23600
|
+
const [discountErrorMessage, setDiscountErrorMessage] = (0,react.useState)('');
|
|
23601
|
+
const [totalAmount, setTotalAmount] = (0,react.useState)('');
|
|
23648
23602
|
const showCvvInput = paymentMethodType === constants_PAYMENT_METHODS_TYPES.MOTO && useCvv || paymentMethodType === constants_PAYMENT_METHODS_TYPES.ONLINE;
|
|
23649
23603
|
const shouldDisablePayBtn = showCvvInput ? loading || (isAmexCardSelected ? selectedCardCvvLength !== src_constants_AMEX_CVV_LENGTH : selectedCardCvvLength !== constants_CVV_LENGTH) : !selectedCardId;
|
|
23650
23604
|
(0,react.useEffect)(() => {
|
|
23651
23605
|
const handleDataFromIframe = event => {
|
|
23652
|
-
var _iframeRef$current, _event$data, _event$data2, _event$data3;
|
|
23606
|
+
var _iframeRef$current, _event$data, _event$data2, _event$data3, _event$data4;
|
|
23653
23607
|
if (!event.data) return;
|
|
23654
23608
|
if (!event.data.type) return;
|
|
23655
23609
|
const isFromCVVIframe = Object.values(iframeCVVRefs.current).some(ref => (ref == null || ref.getContentWindow == null ? void 0 : ref.getContentWindow()) === event.source);
|
|
@@ -23691,6 +23645,10 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23691
23645
|
tokenizationResolve.current(event.data.response.res);
|
|
23692
23646
|
tokenizationResolve.current = null;
|
|
23693
23647
|
}
|
|
23648
|
+
if ((event == null || (_event$data4 = event.data) == null ? void 0 : _event$data4.type) === 'discountResponse') {
|
|
23649
|
+
var _event$data$response;
|
|
23650
|
+
handleDiscount((_event$data$response = event.data.response) == null ? void 0 : _event$data$response.res);
|
|
23651
|
+
}
|
|
23694
23652
|
};
|
|
23695
23653
|
const handlePaymentResponse = ({
|
|
23696
23654
|
res,
|
|
@@ -23871,21 +23829,24 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23871
23829
|
}
|
|
23872
23830
|
;
|
|
23873
23831
|
const sendCardData = shouldSubmitData => {
|
|
23874
|
-
var _iframeRef$current9, _payment$subType, _payment$subType2;
|
|
23832
|
+
var _iframeRef$current9, _payment$subType, _payment$subType2, _payment$subType3;
|
|
23875
23833
|
(_iframeRef$current9 = iframeRef.current) == null || (_iframeRef$current9 = _iframeRef$current9.contentWindow) == null || _iframeRef$current9.postMessage({
|
|
23876
23834
|
type: 'cardData',
|
|
23877
23835
|
payload: {
|
|
23878
23836
|
paymentToken: payment == null ? void 0 : payment.token,
|
|
23879
23837
|
subType: {
|
|
23880
23838
|
paymentToken: payment == null || (_payment$subType = payment.subType) == null ? void 0 : _payment$subType.token,
|
|
23881
|
-
type: payment == null || (_payment$subType2 = payment.subType) == null ? void 0 : _payment$subType2.type
|
|
23839
|
+
type: payment == null || (_payment$subType2 = payment.subType) == null ? void 0 : _payment$subType2.type,
|
|
23840
|
+
integrationId: payment == null || (_payment$subType3 = payment.subType) == null ? void 0 : _payment$subType3.integrationId
|
|
23882
23841
|
},
|
|
23883
23842
|
currency,
|
|
23884
23843
|
cardHolderName,
|
|
23885
23844
|
saveCard: forceSaveCard || saveCard,
|
|
23886
23845
|
tenure,
|
|
23887
23846
|
shouldSubmitData: shouldSubmitData,
|
|
23888
|
-
country
|
|
23847
|
+
country,
|
|
23848
|
+
integrationId: payment == null ? void 0 : payment.id,
|
|
23849
|
+
discountsCount: discounts == null ? void 0 : discounts.count
|
|
23889
23850
|
}
|
|
23890
23851
|
}, '*');
|
|
23891
23852
|
};
|
|
@@ -23904,6 +23865,41 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23904
23865
|
const handleCardHolderChange = e => {
|
|
23905
23866
|
setCardHolderName(e.target.value);
|
|
23906
23867
|
};
|
|
23868
|
+
const handleResetDiscountMessages = () => {
|
|
23869
|
+
setDiscountErrorMessage("");
|
|
23870
|
+
setDiscountAppliedMessage("");
|
|
23871
|
+
setTotalAmount("");
|
|
23872
|
+
};
|
|
23873
|
+
const handleSavedCardDiscount = async (identifier, hasDiscount) => {
|
|
23874
|
+
handleResetDiscountMessages();
|
|
23875
|
+
if (!hasDiscount) return;
|
|
23876
|
+
const res = await checkDiscount(payment.token, payment.id, identifier, true);
|
|
23877
|
+
handleDiscount(res);
|
|
23878
|
+
};
|
|
23879
|
+
const handleDiscount = res => {
|
|
23880
|
+
handleResetDiscountMessages();
|
|
23881
|
+
if (!res) return;
|
|
23882
|
+
if (res.status === 200) {
|
|
23883
|
+
const {
|
|
23884
|
+
discount_amount_cents,
|
|
23885
|
+
discounted_amount_cents
|
|
23886
|
+
} = res.data;
|
|
23887
|
+
const discountedAmount = formatAmountBasedOnCurrency_formatAmountBasedOnCurrency(discounted_amount_cents, currency);
|
|
23888
|
+
const totalAmount = formatAmountBasedOnCurrency_formatAmountBasedOnCurrency(discount_amount_cents, currency);
|
|
23889
|
+
if (discounted_amount_cents > 0) {
|
|
23890
|
+
setDiscountAppliedMessage(t('DISCOUNT_APPLIED', {
|
|
23891
|
+
currency: currency,
|
|
23892
|
+
amount: discountedAmount
|
|
23893
|
+
}));
|
|
23894
|
+
setTotalAmount(totalAmount);
|
|
23895
|
+
}
|
|
23896
|
+
} else if (res.status === 400) {
|
|
23897
|
+
var _res$data7;
|
|
23898
|
+
setDiscountErrorMessage((_res$data7 = res.data) == null ? void 0 : _res$data7.message);
|
|
23899
|
+
} else {
|
|
23900
|
+
setDiscountErrorMessage(getErrorMsg(res));
|
|
23901
|
+
}
|
|
23902
|
+
};
|
|
23907
23903
|
const handleCloseDeleteCardModal = () => {
|
|
23908
23904
|
setShowDeleteCardModal(false);
|
|
23909
23905
|
setSelectedDeleteCard(null);
|
|
@@ -23914,7 +23910,11 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23914
23910
|
const handleSelectCard = card => {
|
|
23915
23911
|
if (card.expired) return;
|
|
23916
23912
|
setSelectedCardCVV('');
|
|
23917
|
-
if ((selectedCard == null ? void 0 : selectedCard.id) === card.id) setSelectedCard(null);else
|
|
23913
|
+
if ((selectedCard == null ? void 0 : selectedCard.id) === card.id) setSelectedCard(null);else {
|
|
23914
|
+
setSelectedCard(card);
|
|
23915
|
+
handleSavedCardDiscount == null || handleSavedCardDiscount(card.identifier, !!card.identifier && !!card.hasDiscount);
|
|
23916
|
+
}
|
|
23917
|
+
;
|
|
23918
23918
|
};
|
|
23919
23919
|
const handleSelectDeleteCard = (e, card) => {
|
|
23920
23920
|
e.stopPropagation();
|
|
@@ -23922,7 +23922,7 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23922
23922
|
setSelectedDeleteCard(card);
|
|
23923
23923
|
};
|
|
23924
23924
|
const handleSavedCardSubmit = async () => {
|
|
23925
|
-
var _payment$
|
|
23925
|
+
var _payment$subType4;
|
|
23926
23926
|
if (loading) return;
|
|
23927
23927
|
setLoading(true);
|
|
23928
23928
|
if (onBeforePaymentComplete) {
|
|
@@ -23940,7 +23940,7 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23940
23940
|
};
|
|
23941
23941
|
const payload = Object.assign({
|
|
23942
23942
|
identifier: data.identifier,
|
|
23943
|
-
token: (selectedCard == null ? void 0 : selectedCard.type) === constants_SAVED_CARD_TYPES.OMAN_NET ? payment == null || (_payment$
|
|
23943
|
+
token: (selectedCard == null ? void 0 : selectedCard.type) === constants_SAVED_CARD_TYPES.OMAN_NET ? payment == null || (_payment$subType4 = payment.subType) == null ? void 0 : _payment$subType4.token : payment == null ? void 0 : payment.token
|
|
23944
23944
|
}, data.cvv && {
|
|
23945
23945
|
cvv: data.cvv
|
|
23946
23946
|
}, {
|
|
@@ -23957,12 +23957,12 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23957
23957
|
window.location.href = res.data.redirection_url;
|
|
23958
23958
|
}
|
|
23959
23959
|
} else if (res.status === 400) {
|
|
23960
|
-
var _res$
|
|
23961
|
-
if (res.data instanceof Array && res.data[0] === 'Retry limit reached.' || ((_res$
|
|
23960
|
+
var _res$data8, _res$data9, _res$data0;
|
|
23961
|
+
if (res.data instanceof Array && res.data[0] === 'Retry limit reached.' || ((_res$data8 = res.data) == null ? void 0 : _res$data8.msg) === 'Retry limit reached.') {
|
|
23962
23962
|
setErrorMessage(t('ERR_MSG_EXCEEDED_TRIALS'));
|
|
23963
|
-
} else if (((_res$
|
|
23963
|
+
} else if (((_res$data9 = res.data) == null ? void 0 : _res$data9.message) === 'Session Error') {
|
|
23964
23964
|
setErrorMessage(t('ERR_MSG_ALREADY_PROCESSED'));
|
|
23965
|
-
} else if (res.data instanceof Array && res.data[0] === 'Order has already paid.' || ((_res$
|
|
23965
|
+
} else if (res.data instanceof Array && res.data[0] === 'Order has already paid.' || ((_res$data0 = res.data) == null ? void 0 : _res$data0.msg) === 'Order has already paid.') {
|
|
23966
23966
|
setErrorMessage(t('ERR_MSG_ALREADY_PAID'));
|
|
23967
23967
|
} else {
|
|
23968
23968
|
setErrorMessage(t('ERR_MSG_DECLINED'));
|
|
@@ -23980,14 +23980,14 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
23980
23980
|
}
|
|
23981
23981
|
};
|
|
23982
23982
|
const handleOTPSubmit = async otp => {
|
|
23983
|
-
var _iframeRef$current1, _payment$
|
|
23983
|
+
var _iframeRef$current1, _payment$subType5;
|
|
23984
23984
|
setSendOTPLoading(true);
|
|
23985
23985
|
(_iframeRef$current1 = iframeRef.current) == null || (_iframeRef$current1 = _iframeRef$current1.contentWindow) == null || _iframeRef$current1.postMessage({
|
|
23986
23986
|
type: 'otpData',
|
|
23987
23987
|
payload: {
|
|
23988
23988
|
paymentToken: payment.token,
|
|
23989
23989
|
subType: {
|
|
23990
|
-
paymentToken: (_payment$
|
|
23990
|
+
paymentToken: (_payment$subType5 = payment.subType) == null ? void 0 : _payment$subType5.token
|
|
23991
23991
|
},
|
|
23992
23992
|
otp,
|
|
23993
23993
|
paymentId
|
|
@@ -24003,6 +24003,7 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
24003
24003
|
onCardValidationChanged == null || onCardValidationChanged(false);
|
|
24004
24004
|
previousValidationRef.current = false;
|
|
24005
24005
|
}
|
|
24006
|
+
handleResetDiscountMessages();
|
|
24006
24007
|
};
|
|
24007
24008
|
const handleViewSavedCards = () => {
|
|
24008
24009
|
setShowCardModal(false);
|
|
@@ -24088,6 +24089,9 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
24088
24089
|
onClick: handleViewSavedCards,
|
|
24089
24090
|
children: (customStyle == null || (_customStyle$buttonTe = customStyle.buttonText) == null ? void 0 : _customStyle$buttonTe.viewSavedCardsBtn) || t('VIEW_SAVED_CARDS')
|
|
24090
24091
|
})]
|
|
24092
|
+
}), !!(discounts != null && discounts.count) && /*#__PURE__*/(0,jsx_runtime.jsx)(Discounts, {
|
|
24093
|
+
customStyle: customStyle == null ? void 0 : customStyle.discount,
|
|
24094
|
+
discounts: discounts.data
|
|
24091
24095
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
24092
24096
|
className: "[&>div:nth-child(even)]:w-[calc(100%-1px)]",
|
|
24093
24097
|
children: [(!isIframeLoaded || !(payment.token || integrationType === INTEGRATION_TYPE.TOKENIZATION)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -24132,6 +24136,14 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
24132
24136
|
setErrors: setErrors,
|
|
24133
24137
|
error: errors['name'],
|
|
24134
24138
|
placeholder: customStyle == null || (_customStyle$placehol = customStyle.placeholderText) == null ? void 0 : _customStyle$placehol.holderName
|
|
24139
|
+
}), discountErrorMessage && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
24140
|
+
className: "mt-2 text-orange-700 text-sm leading-[1.125rem] tracking-[0.01rem]",
|
|
24141
|
+
style: customStyle == null || (_customStyle$discount = customStyle.discount) == null ? void 0 : _customStyle$discount.validationMessage,
|
|
24142
|
+
children: discountErrorMessage
|
|
24143
|
+
}), discountAppliedMessage && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
24144
|
+
className: "mt-2 text-green-600 text-sm leading-[1.125rem] tracking-[0.01rem]",
|
|
24145
|
+
style: customStyle == null || (_customStyle$discount2 = customStyle.discount) == null ? void 0 : _customStyle$discount2.successMessage,
|
|
24146
|
+
children: discountAppliedMessage
|
|
24135
24147
|
}), (errors['number'] || errors['name'] || errors['cvc'] || errors['expiry']) && /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
24136
24148
|
style: customStyle == null ? void 0 : customStyle.error,
|
|
24137
24149
|
className: "my-2 text-sm text-red-600 list-disc list-inside list-item:text-red-600",
|
|
@@ -24183,37 +24195,60 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
24183
24195
|
fontFamily: currencyFontFamily
|
|
24184
24196
|
},
|
|
24185
24197
|
children: displayCurrency
|
|
24186
|
-
}), ' ', amount
|
|
24198
|
+
}), ' ', totalAmount || amount, totalAmount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
24199
|
+
className: "opacity-50 ml-2 text-white text-sm font-semibold leading-6 tracking-[0.16px]",
|
|
24200
|
+
style: {
|
|
24201
|
+
textDecoration: 'line-through'
|
|
24202
|
+
},
|
|
24203
|
+
children: amount
|
|
24204
|
+
})]
|
|
24187
24205
|
}),
|
|
24188
24206
|
onClick: () => setShouldSubmitData(true),
|
|
24189
|
-
customStyle: customStyle == null ? void 0 : customStyle.button
|
|
24207
|
+
customStyle: customStyle == null ? void 0 : customStyle.button,
|
|
24208
|
+
className: "w-full"
|
|
24190
24209
|
})
|
|
24191
24210
|
}), showPaymobLogo && integrationType === INTEGRATION_TYPE.DIRECT_PAYMENT && /*#__PURE__*/(0,jsx_runtime.jsx)(CopyrightsViewTwo_Copyrights, {
|
|
24192
24211
|
isElements: true
|
|
24193
24212
|
})]
|
|
24194
24213
|
})]
|
|
24195
24214
|
}), savedCards && !showCardModal && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
24196
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
24215
|
+
children: [!!(discounts != null && discounts.count) && /*#__PURE__*/(0,jsx_runtime.jsx)(Discounts, {
|
|
24216
|
+
customStyle: customStyle == null ? void 0 : customStyle.discount,
|
|
24217
|
+
discounts: discounts.data
|
|
24218
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
24197
24219
|
style: customStyle == null ? void 0 : customStyle.label,
|
|
24198
24220
|
children: (customStyle == null || (_customStyle$labelTex3 = customStyle.labelText) == null ? void 0 : _customStyle$labelTex3.savedCardsLabel) || t('SAVED_CARDS_TITLE')
|
|
24199
|
-
}), savedCards.map(card =>
|
|
24200
|
-
|
|
24201
|
-
|
|
24202
|
-
|
|
24203
|
-
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24221
|
+
}), savedCards.map(card => {
|
|
24222
|
+
var _customStyle$discount3, _customStyle$discount4;
|
|
24223
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
24224
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SavedCardElements, {
|
|
24225
|
+
card: card,
|
|
24226
|
+
selectedCardId: selectedCard == null ? void 0 : selectedCard.id,
|
|
24227
|
+
showCvvInput: showCvvInput,
|
|
24228
|
+
selectedCardCVV: selectedCardCVV,
|
|
24229
|
+
setSelectedCardCVV: setSelectedCardCVV,
|
|
24230
|
+
onCardSelect: handleSelectCard,
|
|
24231
|
+
onDeleteCard: handleSelectDeleteCard,
|
|
24232
|
+
environment: environment,
|
|
24233
|
+
height: height,
|
|
24234
|
+
customStyle: customStyle,
|
|
24235
|
+
baseURL: baseUrl,
|
|
24236
|
+
ref: el => {
|
|
24237
|
+
if (el) {
|
|
24238
|
+
iframeCVVRefs.current[card.id] = el;
|
|
24239
|
+
}
|
|
24240
|
+
}
|
|
24241
|
+
}, card.id), !showCardModal && discountErrorMessage && card.id === selectedCardId && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
24242
|
+
className: "text-orange-700 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
24243
|
+
style: customStyle == null || (_customStyle$discount3 = customStyle.discount) == null ? void 0 : _customStyle$discount3.validationMessage,
|
|
24244
|
+
children: discountErrorMessage
|
|
24245
|
+
}), !showCardModal && discountAppliedMessage && card.id === selectedCardId && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
24246
|
+
className: "text-green-600 text-sm leading-[1.125rem] track-[0.01rem]",
|
|
24247
|
+
style: customStyle == null || (_customStyle$discount4 = customStyle.discount) == null ? void 0 : _customStyle$discount4.successMessage,
|
|
24248
|
+
children: discountAppliedMessage
|
|
24249
|
+
})]
|
|
24250
|
+
});
|
|
24251
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
24217
24252
|
onClick: handleShowNewCardForm,
|
|
24218
24253
|
className: `${loading ? 'opacity-75' : 'cursor-pointer'} mt-4 w-full flex h-[4.5rem] p-4 justify-center items-center gap-3 rounded-xl border border-dashed border-blue-200 bg-white`,
|
|
24219
24254
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("button", {
|
|
@@ -24241,10 +24276,16 @@ const CardElement = /*#__PURE__*/(0,react.forwardRef)(({
|
|
|
24241
24276
|
fontFamily: currencyFontFamily
|
|
24242
24277
|
},
|
|
24243
24278
|
children: displayCurrency
|
|
24244
|
-
}), ' ', amount
|
|
24279
|
+
}), ' ', totalAmount || amount, totalAmount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
24280
|
+
className: "opacity-50 ml-2 text-white text-sm font-semibold leading-6 tracking-[0.16px]",
|
|
24281
|
+
style: {
|
|
24282
|
+
textDecoration: 'line-through'
|
|
24283
|
+
},
|
|
24284
|
+
children: amount
|
|
24285
|
+
})]
|
|
24245
24286
|
}),
|
|
24246
|
-
|
|
24247
|
-
|
|
24287
|
+
customStyle: customStyle == null ? void 0 : customStyle.button,
|
|
24288
|
+
className: "w-full"
|
|
24248
24289
|
})
|
|
24249
24290
|
})]
|
|
24250
24291
|
})]
|
|
@@ -25787,6 +25828,8 @@ function TabbyViewTwo(props) {
|
|
|
25787
25828
|
code: currency === 'SAR' ? '+966' : '+971',
|
|
25788
25829
|
currency
|
|
25789
25830
|
});
|
|
25831
|
+
const lang = useSafeSelector(state => state.lang);
|
|
25832
|
+
const langDirection = lang === 'ar' ? 'rtl' : 'ltr';
|
|
25790
25833
|
const {
|
|
25791
25834
|
handleSubmit,
|
|
25792
25835
|
errors,
|
|
@@ -25854,7 +25897,10 @@ function TabbyViewTwo(props) {
|
|
|
25854
25897
|
formRegister: emailRegister,
|
|
25855
25898
|
error: errors['email'],
|
|
25856
25899
|
name: 'email',
|
|
25857
|
-
placeholder: 'mail@example.com'
|
|
25900
|
+
placeholder: 'mail@example.com',
|
|
25901
|
+
customStyle: {
|
|
25902
|
+
direction: langDirection
|
|
25903
|
+
}
|
|
25858
25904
|
})
|
|
25859
25905
|
}), errors['email'] && /*#__PURE__*/_jsx("p", {
|
|
25860
25906
|
className: 'text-sm pl-4 text-red-600',
|
|
@@ -26158,7 +26204,9 @@ const meeza_logo_MeezaLogo = props => /*#__PURE__*/_jsxs("svg", {
|
|
|
26158
26204
|
|
|
26159
26205
|
|
|
26160
26206
|
|
|
26207
|
+
|
|
26161
26208
|
function WalletViewTwo(props) {
|
|
26209
|
+
var _parseMax;
|
|
26162
26210
|
const {
|
|
26163
26211
|
onSubmit,
|
|
26164
26212
|
loading,
|
|
@@ -26194,8 +26242,8 @@ function WalletViewTwo(props) {
|
|
|
26194
26242
|
} = useHookForm({
|
|
26195
26243
|
isPhone: selectedCountry
|
|
26196
26244
|
});
|
|
26197
|
-
const isValidPhone = isDirty && isValid;
|
|
26198
26245
|
const phoneNum = getValues('phone');
|
|
26246
|
+
const isValidPhone = !!((_parseMax = parseMax(selectedCountry.code + phoneNum)) != null && _parseMax.isValid());
|
|
26199
26247
|
useEffect(() => {
|
|
26200
26248
|
onDiscount == null || onDiscount(selectedCountry.code + phoneNum, isValidPhone);
|
|
26201
26249
|
}, [isValidPhone, phoneNum]);
|
|
@@ -26511,9 +26559,7 @@ function BankSelectionStepViewTwo_BankSelectionStep(props) {
|
|
|
26511
26559
|
onBankSelectionSubmit,
|
|
26512
26560
|
onSelectedBank,
|
|
26513
26561
|
showTerms,
|
|
26514
|
-
amount
|
|
26515
|
-
setTermsAndConditions,
|
|
26516
|
-
setBankName
|
|
26562
|
+
amount
|
|
26517
26563
|
} = props;
|
|
26518
26564
|
const {
|
|
26519
26565
|
t
|
|
@@ -26527,7 +26573,9 @@ function BankSelectionStepViewTwo_BankSelectionStep(props) {
|
|
|
26527
26573
|
return {
|
|
26528
26574
|
label: bank.name,
|
|
26529
26575
|
value: bank.name,
|
|
26530
|
-
icon: bank.bank_logo
|
|
26576
|
+
icon: bank.bank_logo,
|
|
26577
|
+
minimumAmount: bank.minimum_installment_amount,
|
|
26578
|
+
terms: bank.terms_and_conditions
|
|
26531
26579
|
};
|
|
26532
26580
|
});
|
|
26533
26581
|
const disabledButton = !selectedBankPlans.length || !isSelectedPlan || Number(amount) < minInstallmentAmount;
|
|
@@ -26558,14 +26606,10 @@ function BankSelectionStepViewTwo_BankSelectionStep(props) {
|
|
|
26558
26606
|
});
|
|
26559
26607
|
setSelectedBankPlans(formattedSelectedBankPlans);
|
|
26560
26608
|
resetSelectedPlan();
|
|
26561
|
-
|
|
26562
|
-
setMinInstallmentAmount((bankData == null ? void 0 : bankData.minimum_installment_amount) || 0);
|
|
26609
|
+
setMinInstallmentAmount(selectedBank.minimumAmount || 0);
|
|
26563
26610
|
const updatedAmount = Number(amount == null ? void 0 : amount.replace(/,/g, ''));
|
|
26564
|
-
setInstallmentError(updatedAmount <
|
|
26565
|
-
|
|
26566
|
-
if (setTermsAndConditions) {
|
|
26567
|
-
setTermsAndConditions((bankData == null ? void 0 : bankData.terms_and_conditions) || '');
|
|
26568
|
-
}
|
|
26611
|
+
setInstallmentError(updatedAmount < selectedBank.minimumAmount);
|
|
26612
|
+
onSelectedBank(selectedBank);
|
|
26569
26613
|
} else {
|
|
26570
26614
|
setSelectedBankPlans([]);
|
|
26571
26615
|
resetSelectedPlan();
|
|
@@ -26623,6 +26667,66 @@ function BankSelectionStepViewTwo_BankSelectionStep(props) {
|
|
|
26623
26667
|
})
|
|
26624
26668
|
});
|
|
26625
26669
|
}
|
|
26670
|
+
;// ../../libs/bank-installment/src/assets/circle-info.svg
|
|
26671
|
+
var circle_info_path;
|
|
26672
|
+
var circle_info_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
26673
|
+
function circle_info_extends() { return circle_info_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, circle_info_extends.apply(null, arguments); }
|
|
26674
|
+
function circle_info_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = circle_info_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
26675
|
+
function circle_info_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
26676
|
+
|
|
26677
|
+
|
|
26678
|
+
var SvgCircleInfo = function SvgCircleInfo(_ref, ref) {
|
|
26679
|
+
var title = _ref.title,
|
|
26680
|
+
titleId = _ref.titleId,
|
|
26681
|
+
props = circle_info_objectWithoutProperties(_ref, circle_info_excluded);
|
|
26682
|
+
return /*#__PURE__*/React.createElement("svg", circle_info_extends({
|
|
26683
|
+
width: 28,
|
|
26684
|
+
height: 28,
|
|
26685
|
+
viewBox: "0 0 28 28",
|
|
26686
|
+
fill: "none",
|
|
26687
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26688
|
+
ref: ref,
|
|
26689
|
+
"aria-labelledby": titleId
|
|
26690
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
26691
|
+
id: titleId
|
|
26692
|
+
}, title) : null, circle_info_path || (circle_info_path = /*#__PURE__*/React.createElement("path", {
|
|
26693
|
+
d: "M14 3.5C8.17578 3.5 3.5 8.2168 3.5 14C3.5 19.8242 8.17578 24.5 14 24.5C19.7832 24.5 24.5 19.8242 24.5 14C24.5 8.2168 19.7832 3.5 14 3.5ZM14 22.5312C9.2832 22.5312 5.46875 18.7168 5.46875 14C5.46875 9.32422 9.2832 5.46875 14 5.46875C18.6758 5.46875 22.5312 9.32422 22.5312 14C22.5312 18.7168 18.6758 22.5312 14 22.5312ZM15.6406 17.2812H14.9844V13.6719C14.9844 13.1387 14.5332 12.6875 14 12.6875H12.6875C12.1133 12.6875 11.7031 13.1387 11.7031 13.6719C11.7031 14.2461 12.1133 14.6562 12.6875 14.6562H13.0156V17.2812H12.3594C11.7852 17.2812 11.375 17.7324 11.375 18.2656C11.375 18.8398 11.7852 19.25 12.3594 19.25H15.6406C16.1738 19.25 16.625 18.8398 16.625 18.2656C16.625 17.7324 16.1738 17.2812 15.6406 17.2812ZM14 11.375C14.6973 11.375 15.3125 10.8008 15.3125 10.0625C15.3125 9.36523 14.6973 8.75 14 8.75C13.2617 8.75 12.6875 9.36523 12.6875 10.0625C12.6875 10.8008 13.2617 11.375 14 11.375Z",
|
|
26694
|
+
fill: "#475467"
|
|
26695
|
+
})));
|
|
26696
|
+
};
|
|
26697
|
+
var circle_info_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgCircleInfo)));
|
|
26698
|
+
|
|
26699
|
+
/* harmony default export */ const circle_info = (__webpack_require__.p + "circle-info.86d7b952e59c07872f24259c4d5141f3.svg");
|
|
26700
|
+
;// ../../libs/bank-installment/src/assets/close.svg
|
|
26701
|
+
var close_path;
|
|
26702
|
+
var close_excluded = (/* unused pure expression or super */ null && (["title", "titleId"]));
|
|
26703
|
+
function close_extends() { return close_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, close_extends.apply(null, arguments); }
|
|
26704
|
+
function close_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = close_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
26705
|
+
function close_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
26706
|
+
|
|
26707
|
+
|
|
26708
|
+
var SvgClose = function SvgClose(_ref, ref) {
|
|
26709
|
+
var title = _ref.title,
|
|
26710
|
+
titleId = _ref.titleId,
|
|
26711
|
+
props = close_objectWithoutProperties(_ref, close_excluded);
|
|
26712
|
+
return /*#__PURE__*/React.createElement("svg", close_extends({
|
|
26713
|
+
width: 32,
|
|
26714
|
+
height: 32,
|
|
26715
|
+
viewBox: "0 0 32 32",
|
|
26716
|
+
fill: "none",
|
|
26717
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26718
|
+
ref: ref,
|
|
26719
|
+
"aria-labelledby": titleId
|
|
26720
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
26721
|
+
id: titleId
|
|
26722
|
+
}, title) : null, close_path || (close_path = /*#__PURE__*/React.createElement("path", {
|
|
26723
|
+
d: "M23.1484 21.5781C23.5703 22.0469 23.5703 22.75 23.1484 23.1719C22.6797 23.6406 21.9766 23.6406 21.5547 23.1719L16.0234 17.5938L10.4453 23.1719C9.97656 23.6406 9.27344 23.6406 8.85156 23.1719C8.38281 22.75 8.38281 22.0469 8.85156 21.5781L14.4297 16L8.85156 10.4219C8.38281 9.95312 8.38281 9.25 8.85156 8.82812C9.27344 8.35938 9.97656 8.35938 10.3984 8.82812L16.0234 14.4531L21.6016 8.875C22.0234 8.40625 22.7266 8.40625 23.1484 8.875C23.6172 9.29688 23.6172 10 23.1484 10.4688L17.5703 16L23.1484 21.5781Z",
|
|
26724
|
+
fill: "#667085"
|
|
26725
|
+
})));
|
|
26726
|
+
};
|
|
26727
|
+
var close_ForwardRef = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(SvgClose)));
|
|
26728
|
+
|
|
26729
|
+
/* harmony default export */ const assets_close = (__webpack_require__.p + "close.374155211751ebb93f68c551799e96d4.svg");
|
|
26626
26730
|
;// ../../libs/bank-installment/src/lib/bank-installmentViewTwo.tsx
|
|
26627
26731
|
|
|
26628
26732
|
|
|
@@ -26630,6 +26734,8 @@ function BankSelectionStepViewTwo_BankSelectionStep(props) {
|
|
|
26630
26734
|
|
|
26631
26735
|
|
|
26632
26736
|
|
|
26737
|
+
|
|
26738
|
+
|
|
26633
26739
|
function BankInstallmentViewTwo(props) {
|
|
26634
26740
|
const {
|
|
26635
26741
|
step,
|
|
@@ -26647,15 +26753,18 @@ function BankInstallmentViewTwo(props) {
|
|
|
26647
26753
|
onSelectedBank,
|
|
26648
26754
|
amount,
|
|
26649
26755
|
termsAndConditions,
|
|
26650
|
-
setTermsAndConditions,
|
|
26651
26756
|
bankName,
|
|
26652
|
-
|
|
26757
|
+
setIsAgreed,
|
|
26758
|
+
isAgreed,
|
|
26759
|
+
setOpenModal,
|
|
26760
|
+
openModal
|
|
26653
26761
|
} = props;
|
|
26654
26762
|
const {
|
|
26655
26763
|
t
|
|
26656
26764
|
} = useTranslation('bankInstallment');
|
|
26657
26765
|
const paymentDetails = useSelector(state => state.paymentDetails);
|
|
26658
26766
|
const currency = useSelector(state => state.intention.currency);
|
|
26767
|
+
const formattedTermsAndConditions = termsAndConditions == null ? void 0 : termsAndConditions.split(/\r?\n\r?\n/).map(term => term.trim()).filter(Boolean);
|
|
26659
26768
|
const SelectedPlan = () => {
|
|
26660
26769
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
26661
26770
|
children: [/*#__PURE__*/_jsx("p", {
|
|
@@ -26670,10 +26779,50 @@ function BankInstallmentViewTwo(props) {
|
|
|
26670
26779
|
})]
|
|
26671
26780
|
});
|
|
26672
26781
|
};
|
|
26782
|
+
const bankTermsAndConditions = termsAndConditions && /*#__PURE__*/_jsx("div", {
|
|
26783
|
+
className: "flex items-center mt-4 mb-6",
|
|
26784
|
+
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
26785
|
+
label: /*#__PURE__*/_jsxs("div", {
|
|
26786
|
+
className: "flex items-center gap-1 ",
|
|
26787
|
+
children: [t('AGREE_TO_BANK', {
|
|
26788
|
+
bankName: bankName
|
|
26789
|
+
}), /*#__PURE__*/_jsx("button", {
|
|
26790
|
+
type: "button",
|
|
26791
|
+
onClick: () => setOpenModal(true),
|
|
26792
|
+
className: "text-blue-600 ",
|
|
26793
|
+
children: t('TERMS_AND_CONDITIONS')
|
|
26794
|
+
})]
|
|
26795
|
+
}),
|
|
26796
|
+
name: "agreeTerms",
|
|
26797
|
+
checked: isAgreed,
|
|
26798
|
+
onChange: e => setIsAgreed(e.target.checked)
|
|
26799
|
+
})
|
|
26800
|
+
});
|
|
26673
26801
|
return /*#__PURE__*/_jsxs("div", {
|
|
26674
26802
|
className: "flex flex-col flex-grow",
|
|
26675
26803
|
children: [errorMessage && /*#__PURE__*/_jsx(ErrorMessage, {
|
|
26676
26804
|
errorMessage: errorMessage
|
|
26805
|
+
}), termsAndConditions && /*#__PURE__*/_jsx(Modal, {
|
|
26806
|
+
showModal: openModal,
|
|
26807
|
+
onClose: () => setOpenModal(false),
|
|
26808
|
+
title: t('TERMS_AND_CONDITIONS'),
|
|
26809
|
+
icon: InfoIcon,
|
|
26810
|
+
closeIcon: closeIcon,
|
|
26811
|
+
footer: /*#__PURE__*/_jsx(Button, {
|
|
26812
|
+
label: t('AGREE'),
|
|
26813
|
+
id: "agree-button",
|
|
26814
|
+
onClick: () => {
|
|
26815
|
+
setIsAgreed(true);
|
|
26816
|
+
setOpenModal(false);
|
|
26817
|
+
},
|
|
26818
|
+
fullWidth: true
|
|
26819
|
+
}),
|
|
26820
|
+
children: /*#__PURE__*/_jsx("ul", {
|
|
26821
|
+
className: "text-gray-600 text-sm font-medium leading-6 tracking-[0.16px] px-6 ps-12 list-disc",
|
|
26822
|
+
children: formattedTermsAndConditions == null ? void 0 : formattedTermsAndConditions.map((term, index) => /*#__PURE__*/_jsx("li", {
|
|
26823
|
+
children: term
|
|
26824
|
+
}, index))
|
|
26825
|
+
})
|
|
26677
26826
|
}), step === 1 && /*#__PURE__*/_jsx(BankSelectionStep, {
|
|
26678
26827
|
banksListWithPlans: banksListWithPlans,
|
|
26679
26828
|
loading: loading,
|
|
@@ -26683,26 +26832,24 @@ function BankInstallmentViewTwo(props) {
|
|
|
26683
26832
|
selectedPlan: selectedPlan,
|
|
26684
26833
|
onSelectedBank: onSelectedBank,
|
|
26685
26834
|
showTerms: paymentDetails == null ? void 0 : paymentDetails.showTerms,
|
|
26686
|
-
amount: amount
|
|
26687
|
-
setTermsAndConditions: setTermsAndConditions,
|
|
26688
|
-
setBankName: setBankName
|
|
26835
|
+
amount: amount
|
|
26689
26836
|
}), step !== 1 && /*#__PURE__*/_jsxs(_Fragment, {
|
|
26690
26837
|
children: [selectedPlan && /*#__PURE__*/_jsx(SelectedPlan, {}), isMobile ? /*#__PURE__*/_jsx(MobileCard, {
|
|
26691
26838
|
onSubmit: onPaySubmit,
|
|
26692
26839
|
useHookForm: useHookForm,
|
|
26693
26840
|
loading: loading,
|
|
26694
26841
|
getCardLogo: getCardLogo,
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
|
|
26842
|
+
bankTermsAndConditions: bankTermsAndConditions,
|
|
26843
|
+
selectedPlan: selectedPlan,
|
|
26844
|
+
isBankTermsAgreed: isAgreed
|
|
26698
26845
|
}) : /*#__PURE__*/_jsx(Card, {
|
|
26699
26846
|
onSubmit: onPaySubmit,
|
|
26700
26847
|
useHookForm: useHookForm,
|
|
26701
26848
|
loading: loading,
|
|
26702
26849
|
getCardLogo: getCardLogo,
|
|
26703
|
-
|
|
26704
|
-
|
|
26705
|
-
|
|
26850
|
+
bankTermsAndConditions: bankTermsAndConditions,
|
|
26851
|
+
selectedPlan: selectedPlan,
|
|
26852
|
+
isBankTermsAgreed: isAgreed
|
|
26706
26853
|
})]
|
|
26707
26854
|
})]
|
|
26708
26855
|
});
|
|
@@ -28798,6 +28945,9 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28798
28945
|
} = useTranslation_useTranslation('valu');
|
|
28799
28946
|
const renderCount = (0,react.useRef)(0);
|
|
28800
28947
|
const dispatch = useDispatch_useDispatch();
|
|
28948
|
+
const {
|
|
28949
|
+
plan = {}
|
|
28950
|
+
} = useSelector_useSelector(state => state.installmentDetails);
|
|
28801
28951
|
const [downPaymentError, setDownPaymentError] = (0,react.useState)(false);
|
|
28802
28952
|
const [cashBackError, setCashBackError] = (0,react.useState)(false);
|
|
28803
28953
|
const [giftCardError, setGiftCardError] = (0,react.useState)(false);
|
|
@@ -28813,7 +28963,6 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28813
28963
|
const downPayment = Number(data.down_payment) || 0;
|
|
28814
28964
|
const giftCard = Number(data.gift_card) || 0;
|
|
28815
28965
|
const cashBack = Number(data.cashback) || 0;
|
|
28816
|
-
const financeAmount = totalAmount - downPayment - cashBack - giftCard;
|
|
28817
28966
|
const adminFees = (selectedTenor == null || (_selectedTenor$extra = selectedTenor.extra) == null ? void 0 : _selectedTenor$extra.adminFees) || 0;
|
|
28818
28967
|
const showCheckBox = selectedTenor && !!(downPayment || adminFees);
|
|
28819
28968
|
const disableButton = !selectedTenor || loading || downPaymentError || !!showCheckBox && !agreePay;
|
|
@@ -28824,10 +28973,6 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28824
28973
|
setTotalError(false);
|
|
28825
28974
|
setCashBackError(false);
|
|
28826
28975
|
setGiftCardError(false);
|
|
28827
|
-
const totalAmount = Number(amount.replace(',', ''));
|
|
28828
|
-
const giftCard = Number(data.gift_card) || 0;
|
|
28829
|
-
const cashBack = Number(data.cashback) || 0;
|
|
28830
|
-
const downPayment = Number(data.down_payment) || 0;
|
|
28831
28976
|
if (giftCard && !cashBack && !downPayment) {
|
|
28832
28977
|
if (giftCard > totalAmount) {
|
|
28833
28978
|
setGiftCardError(true);
|
|
@@ -28870,7 +29015,7 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28870
29015
|
}
|
|
28871
29016
|
renderCount.current++;
|
|
28872
29017
|
return;
|
|
28873
|
-
}, [
|
|
29018
|
+
}, [giftCard, cashBack, downPayment]);
|
|
28874
29019
|
const handleSubmit = async () => {
|
|
28875
29020
|
if (selectedTenor) react_ga4_dist/* default */.Ay.event({
|
|
28876
29021
|
category: 'valu',
|
|
@@ -28891,11 +29036,7 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28891
29036
|
setSelectedTenor(data);
|
|
28892
29037
|
setAgreePay(false);
|
|
28893
29038
|
dispatch(addInstallmentDetails({
|
|
28894
|
-
plan: Object.assign({},
|
|
28895
|
-
financedAmount: financeAmount,
|
|
28896
|
-
cashback: cashBack,
|
|
28897
|
-
giftCard: giftCard
|
|
28898
|
-
})
|
|
29039
|
+
plan: Object.assign({}, plan, data)
|
|
28899
29040
|
}));
|
|
28900
29041
|
};
|
|
28901
29042
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -28956,7 +29097,7 @@ function PlansStepViewTwo_PaymentsPlans(props) {
|
|
|
28956
29097
|
})]
|
|
28957
29098
|
}), giftCardError && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
28958
29099
|
className: `text-sm mt-2 text-red-600`,
|
|
28959
|
-
children: t('
|
|
29100
|
+
children: t('MAX_FLIP_MESSAGE')
|
|
28960
29101
|
}), cashBackError && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
28961
29102
|
className: `text-sm mt-2 text-red-600`,
|
|
28962
29103
|
children: t('MAX_CASHBACK_MESSAGE')
|
|
@@ -30233,8 +30374,8 @@ function Aman(props) {
|
|
|
30233
30374
|
/* harmony default export */ const aman = ((/* unused pure expression or super */ null && (Aman)));
|
|
30234
30375
|
;// ../../libs/aman/src/assets/amanLogo.png
|
|
30235
30376
|
const amanLogo_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUFSURBVHgB7VhJbBtlFP7G9ni8x0sd23ESJ04CSdoSmlAgQAlQIRUoUoFyoeJSVFEh4EARVAgJkCqQegBuqAcEtGwHBBcWFRWVolRqpJb2gKENdIEkThTHiZd4iZcZ3kxC2kDa/HZSMYrmky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3Kq3xqb0Lf9+Lkgd5h7qNB+rnc0lsjT3Uw7rJVJ6+r/JbYdLr18wKiDweC1ch5sp9u6nOR+gsSESitspJ9XReFYwiUK71Uyl+6yrhGkRgY7heVKksImnBoxqu8kULWxDlJQuRvHQSc+fTqbxZGANxUORWumg0qTxZKF2yxR0NNd2elew/2IUj9DGvyIxkWV+i9elxMttRHyiUMZINo+n6msxWWJ3U6YY2kC551GfC16jEXvP/YkPSJGOJ6dxeDyBMifi1+k8WqgskjO+jjbdbbdeuQL+yuVhJYvIWaqGXI0nx/g9m6OGraCoYYSqj7faGvB1LKHkJrnvidNcdqMBo/kZbCH1OzAcg8TgdsyisJEskCD1idGnlSrvU6nsMsrR/0K2RLfDgkMjMZxIZhbckwvjn+IpSAyqqap3Cv/sdzkbUtVbn5U4We1VsNqhEVI7NEJqh0ZI7dAIqR0aIbVj1RH6G82tnJhPGx6IAAAAAElFTkSuQmCC";
|
|
30236
|
-
;// ../../libs/aman/src/assets/
|
|
30237
|
-
const
|
|
30377
|
+
;// ../../libs/aman/src/assets/basataLogo.png
|
|
30378
|
+
const basataLogo_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABcCAYAAADJXyP3AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAEqgAwAEAAAAAQAAAFwAAAAAIleKaQAAAAlwSFlzAAALEwAACxMBAJqcGAAAABxpRE9UAAAAAgAAAAAAAAAuAAAAKAAAAC4AAAAuAAAGK5qu6+sAAAX3SURBVHgB7JpdiFVVFMdX2SeEfRERRRERQRDUQ0QphFSv1UMgVIIYgUQ91UNvKRQExYSWxnWwIChioqAoSxwLeigKyaJyrCmdRu1DyyybPibH6+8/nT2cNnfvs8+9594599bA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064nKZzKsPjpviwxileCno20XDuL96eJqQKLVa7QEwAyRpNQHxCqkHc5bSRSQ+hbd9UQW9YcFjsAVGhygiuh/CpD307bU3c+0LPZj39IfXKDp+1iku8An0NYM+4MihBQ9hb+x1AegN1cbv7t0QxIFrrY2Bvq9hPNsnZ/tYB2KL03EKk2CBJ2EiMpShuDY+eSNs5NIsQTAZ8gc56/OEFEFcGdW0X1OxGlJijCRrIGr1OCwOyAC8DEVgLo55CF/qcT2rHzKjvq9GqgGpI1b/uykyZ8GLaLQq9zHTUC6XD/rZlk1seR3hX2EwPdMjUW2mgy7iWsCJehulY+4fhj3kxMFEEgGWC/aNAWewVayzkd7AwAqk8HlklWW4CO0/Sp7fBZTNqd0NlGvT8XRANCd5fPXn4HruaxapEFeCYSvE1lMUu0+Y66TPlk3UJgk1i+6GdYXMccwEbv1SOJOWiF+NkqXvmyrF1dZwMySDa/jaAZOp1sB1HRAT7DPKSGcp0FiNwbTk4G0UT/gxjKw+3RN2YOZfRl/kxjMK8gk/I2jva/6Q/2YtFvw14vY7dWP7TPgGuLVZdKGsMymgHkK/cMgIc3bDxstwNGDzLsN29aqswLGc+084nh1U9cpBoJn4F/P/Cnd74T8ZwAAAABJRU5ErkJggg==";
|
|
30238
30379
|
;// ../../libs/aman/src/components/ReferenceNumberStep/ReferenceNumberStepViewTwo.tsx
|
|
30239
30380
|
|
|
30240
30381
|
|
|
@@ -30279,8 +30420,8 @@ function ReferenceNumberStepViewTwo_ReferenceNumberStep(props) {
|
|
|
30279
30420
|
className: "w-14 h-14",
|
|
30280
30421
|
alt: ""
|
|
30281
30422
|
}), /*#__PURE__*/_jsx("img", {
|
|
30282
|
-
src:
|
|
30283
|
-
className: "w-14 h-
|
|
30423
|
+
src: basataLogo,
|
|
30424
|
+
className: "w-14 h-16",
|
|
30284
30425
|
alt: ""
|
|
30285
30426
|
})]
|
|
30286
30427
|
})]
|
|
@@ -31218,7 +31359,7 @@ const paymentauthorized = async (applePaytoken, paymentToken) => {
|
|
|
31218
31359
|
api_source: 'PIXEL'
|
|
31219
31360
|
}).then(res => res).catch(err => err == null ? void 0 : err.response);
|
|
31220
31361
|
};
|
|
31221
|
-
const
|
|
31362
|
+
const applePayService_checkDiscount = paymentToken => {
|
|
31222
31363
|
return lib_axios.post(`/api/acceptance/transaction_discount`, {
|
|
31223
31364
|
payment_token: paymentToken,
|
|
31224
31365
|
identifier: '4242424242424242',
|
|
@@ -31263,7 +31404,7 @@ function ApplePayElements({
|
|
|
31263
31404
|
onAfterPaymentComplete: onAfterPaymentComplete,
|
|
31264
31405
|
onPaymentCancel: onPaymentCancel,
|
|
31265
31406
|
customStyle: customStyle,
|
|
31266
|
-
checkDiscount:
|
|
31407
|
+
checkDiscount: applePayService_checkDiscount,
|
|
31267
31408
|
isPixel: true,
|
|
31268
31409
|
isLoading: isLoading,
|
|
31269
31410
|
paymentName: payment.name
|
|
@@ -31276,9 +31417,10 @@ const currencies_CURRENCIES_WITH_THOUSAND_DIVISOR = ['JOD', 'OMR', 'KWD', 'BHD']
|
|
|
31276
31417
|
|
|
31277
31418
|
|
|
31278
31419
|
|
|
31279
|
-
async function fetchPayments(publicKey, clientSecret, paymentMethods) {
|
|
31420
|
+
async function fetchPayments(publicKey, clientSecret, paymentMethods, baseUrl) {
|
|
31280
31421
|
let payments = null;
|
|
31281
31422
|
let formattedSavedCards = null;
|
|
31423
|
+
let discounts = null;
|
|
31282
31424
|
const res = await getIntention(publicKey, clientSecret);
|
|
31283
31425
|
if (res.status === 200) {
|
|
31284
31426
|
const intentionAmount = currencies_CURRENCIES_WITH_THOUSAND_DIVISOR.includes(res.data.intention_detail.currency) ? res.data.intention_detail.amount / 1000 : res.data.intention_detail.amount / 100;
|
|
@@ -31341,10 +31483,23 @@ async function fetchPayments(publicKey, clientSecret, paymentMethods) {
|
|
|
31341
31483
|
identifier: card.token,
|
|
31342
31484
|
expired: card.card_expired,
|
|
31343
31485
|
mask: card.masked_pan,
|
|
31344
|
-
id: card.token
|
|
31486
|
+
id: card.token,
|
|
31487
|
+
hasDiscount: card.has_discount
|
|
31345
31488
|
};
|
|
31346
31489
|
});
|
|
31347
31490
|
}
|
|
31491
|
+
discounts = res.data.classified_discounts;
|
|
31492
|
+
if (discounts) {
|
|
31493
|
+
['cards', 'wallets'].forEach(type => {
|
|
31494
|
+
var _discounts$type;
|
|
31495
|
+
if (((_discounts$type = discounts[type]) == null || (_discounts$type = _discounts$type.data) == null ? void 0 : _discounts$type.length) > 0) {
|
|
31496
|
+
discounts[type].data = discounts[type].data.map(item => Object.assign({}, item, {
|
|
31497
|
+
logo: item.logo ? baseUrl + item.logo : item.logo
|
|
31498
|
+
}));
|
|
31499
|
+
}
|
|
31500
|
+
});
|
|
31501
|
+
}
|
|
31502
|
+
|
|
31348
31503
|
// this._showSaveCard = res.data?.customization.customization_data.payments?.toggles?.display_savecard;
|
|
31349
31504
|
if (res.data.is_card_expired) {
|
|
31350
31505
|
//navigate('/payment-status', { state: { status: 'expired' } });
|
|
@@ -31353,7 +31508,8 @@ async function fetchPayments(publicKey, clientSecret, paymentMethods) {
|
|
|
31353
31508
|
return {
|
|
31354
31509
|
res,
|
|
31355
31510
|
paymentList: payments,
|
|
31356
|
-
savedCards: formattedSavedCards
|
|
31511
|
+
savedCards: formattedSavedCards,
|
|
31512
|
+
discounts
|
|
31357
31513
|
};
|
|
31358
31514
|
}
|
|
31359
31515
|
;// ./src/constants/countries.ts
|
|
@@ -31417,7 +31573,8 @@ const PaymentsList = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
31417
31573
|
publicKey,
|
|
31418
31574
|
clientSecret,
|
|
31419
31575
|
selectedPaymentMethods,
|
|
31420
|
-
integrationType
|
|
31576
|
+
integrationType,
|
|
31577
|
+
discounts
|
|
31421
31578
|
} = props;
|
|
31422
31579
|
const {
|
|
31423
31580
|
t
|
|
@@ -31552,6 +31709,7 @@ const PaymentsList = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
31552
31709
|
integrationType,
|
|
31553
31710
|
publicKey,
|
|
31554
31711
|
ref: cardRef,
|
|
31712
|
+
discounts: discounts == null ? void 0 : discounts.cards,
|
|
31555
31713
|
isList: true
|
|
31556
31714
|
})
|
|
31557
31715
|
})]
|
|
@@ -31662,6 +31820,21 @@ function getStyles(customStyle) {
|
|
|
31662
31820
|
const textDirection = Object.assign({}, (customStyle == null ? void 0 : customStyle.Direction) && {
|
|
31663
31821
|
direction: customStyle == null ? void 0 : customStyle.Direction
|
|
31664
31822
|
});
|
|
31823
|
+
const colorDiscountContainer = Object.assign({}, (customStyle == null ? void 0 : customStyle.Color_Discount_Container) && {
|
|
31824
|
+
backgroundColor: customStyle == null ? void 0 : customStyle.Color_Discount_Container
|
|
31825
|
+
});
|
|
31826
|
+
const textColorForDiscountTitle = Object.assign({}, (customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Title) && {
|
|
31827
|
+
color: customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Title
|
|
31828
|
+
});
|
|
31829
|
+
const textColorForDiscountMessage = Object.assign({}, (customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Message) && {
|
|
31830
|
+
color: customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Message
|
|
31831
|
+
});
|
|
31832
|
+
const textColorForDiscountSuccessMessage = Object.assign({}, (customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Success_Message) && {
|
|
31833
|
+
color: customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Success_Message
|
|
31834
|
+
});
|
|
31835
|
+
const textColorForDiscountValidationMessage = Object.assign({}, (customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Validation_Message) && {
|
|
31836
|
+
color: customStyle == null ? void 0 : customStyle.Text_Color_For_Discount_Validation_Message
|
|
31837
|
+
});
|
|
31665
31838
|
return {
|
|
31666
31839
|
container: Object.assign({}, colorContainer, fontFamily, verticalSpacingBetweenComponents, containerPadding, widthOfContainer, textDirection),
|
|
31667
31840
|
tabs: Object.assign({}, fontFamily, radiusBorder),
|
|
@@ -31672,6 +31845,13 @@ function getStyles(customStyle) {
|
|
|
31672
31845
|
button: Object.assign({}, fontFamily, fontWeightPaymentButton, fontSizePaymentButton, colorBorderPaymentButton, radiusBorder, colorPrimaryPaymentButton, textColorForPaymentButton, verticalPaddingButton, {
|
|
31673
31846
|
disabled: Object.assign({}, colorDisabled)
|
|
31674
31847
|
}),
|
|
31848
|
+
discount: {
|
|
31849
|
+
container: Object.assign({}, colorDiscountContainer),
|
|
31850
|
+
title: Object.assign({}, textColorForDiscountTitle),
|
|
31851
|
+
message: Object.assign({}, textColorForDiscountMessage),
|
|
31852
|
+
successMessage: Object.assign({}, textColorForDiscountSuccessMessage),
|
|
31853
|
+
validationMessage: Object.assign({}, textColorForDiscountValidationMessage)
|
|
31854
|
+
},
|
|
31675
31855
|
error: Object.assign({}, colorError),
|
|
31676
31856
|
placeholder: Object.assign({}, colorForTextPlaceholder),
|
|
31677
31857
|
labelText: Object.assign({}, customStyle == null ? void 0 : customStyle.Label_Text),
|
|
@@ -31722,7 +31902,8 @@ const Payments_Payments = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
31722
31902
|
publicKey,
|
|
31723
31903
|
clientSecret,
|
|
31724
31904
|
selectedPaymentMethods,
|
|
31725
|
-
integrationType
|
|
31905
|
+
integrationType,
|
|
31906
|
+
discounts
|
|
31726
31907
|
} = props;
|
|
31727
31908
|
const [paymentMethod, setPaymentMethod] = (0,react.useState)(payment);
|
|
31728
31909
|
const styles = getStyles(customStyle);
|
|
@@ -31844,7 +32025,8 @@ const Payments_Payments = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
|
|
31844
32025
|
clientSecret: clientSecret,
|
|
31845
32026
|
selectedPaymentMethods: selectedPaymentMethods,
|
|
31846
32027
|
ref: ref,
|
|
31847
|
-
integrationType: integrationType
|
|
32028
|
+
integrationType: integrationType,
|
|
32029
|
+
discounts: discounts
|
|
31848
32030
|
});
|
|
31849
32031
|
};
|
|
31850
32032
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
@@ -34807,11 +34989,11 @@ const card_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"FILL_CARD":"Enter Car
|
|
|
34807
34989
|
;// ../../localization/apps/flash/card/ur.json
|
|
34808
34990
|
const card_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"FILL_CARD":"Enter Card Details","OTP_TITLE":"OTP verification","LOADING_MODAL_MESSAGE":"Processing your payment, Please wait...","ERR_MSG_INVALID_DATA":"The given data is not valid please check your information","ERR_MSG_EXCEEDED_TRIALS":"The payment session ends after 3 unsuccessful trials. You will be redirected to the website. You can start a new checkout session with Paymob","ERR_MSG_ALREADY_PROCESSED":"This payment was already processed with status pending","ERR_MSG_INVALID_OTP":"This OTP is not valid","ERR_MSG_DECLINED":"Payment is declined","ERR_MSG_EXPIRED":"Looks like this payment was expired perhaps you should create a new one","ERR_MSG_UNAUTHORIZED":"Invalid or expired payment token","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong","ROUNDING_OFF_VISA":"For Visa Cards, Order Amount will be rounded off to 2 decimal places.","DISCOUNT_APPLIED":"Discount of {{currency}} {{amount}} applied successfully","DISCOUNT_REACHED_LIMIT":"You\'ve used up your card’s limit on all the discounts you are eligible for. Please use another card or proceed with your purchase at the regular price"}');
|
|
34809
34991
|
;// ../../localization/apps/flash/payment-layout/en.json
|
|
34810
|
-
const payment_layout_en_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","QUANTITY":"Quantity","BILLING_ADDRESS":"Billing Address","SHIPPING_ADDRESS":"Shipping Address","SUB_TOTAL":"Subtotal","VAT":"VAT","FEES":"Fees","DISCOUNT_AMOUNT":"Discount Amount","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"Admin Fees","TOTAL":"Total","CASH_BACK":"Cashback","
|
|
34992
|
+
const payment_layout_en_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","QUANTITY":"Quantity","BILLING_ADDRESS":"Billing Address","SHIPPING_ADDRESS":"Shipping Address","SUB_TOTAL":"Subtotal","VAT":"VAT","FEES":"Fees","DISCOUNT_AMOUNT":"Discount Amount","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"Admin Fees","TOTAL":"Total","CASH_BACK":"Cashback","FLIP":"Flip","CARD_NUMBER":"Card number","SECURE_PAYMENT":"Secure payment","ORDER_DETAILS":"View order details","PURCHASE_FEE":"Purchase Fee","PAYMENT_DETAILS":"Payment details","瘝":"瘝","AFN":"AFN","ALL":"ALL","AMD":"AMD","ANG":"ANG","AOA":"AOA","ARS":"ARS","AUD":"AUD","AWG":"AWG","AZN":"AZN","BAM":"BAM","BBD":"BBD","BDT":"BDT","BGN":"BGN","BHD":"BHD","BIF":"BIF","BMD":"BMD","BND":"BND","BOB":"BOB","BRL":"BRL","BSD":"BSD","BTN":"BTN","BWP":"BWP","BYN":"BYN","BZD":"BZD","CAD":"CAD","CDF":"CDF","CHF":"CHF","CKD":"CKD","CLP":"CLP","CNY":"CNY","COP":"COP","CRC":"CRC","CUC":"CUC","CUP":"CUP","CVE":"CVE","CZK":"CZK","DJF":"DJF","DKK":"DKK","DOP":"DOP","DZD":"DZD","EGP":"EGP","EHP":"EHP","ERN":"ERN","ETB":"ETB","EUR":"EUR","FJD":"FJD","FKP":"FKP","FOK":"FOK","GBP":"GBP","GEL":"GEL","GGP":"GGP","GHS":"GHS","GIP":"GIP","GMD":"GMD","GNF":"GNF","GTQ":"GTQ","GYD":"GYD","HKD":"HKD","HNL":"HNL","HRK":"HRK","HTG":"HTG","HUF":"HUF","IDR":"IDR","ILS":"ILS","IMP":"IMP","INR":"INR","IQD":"IQD","IRR":"IRR","ISK":"ISK","JEP":"JEP","JMD":"JMD","JOD":"JOD","JPY":"JPY","KES":"KES","KGS":"KGS","KHR":"KHR","KID":"KID","KMF":"KMF","KPW":"KPW","KRW":"KRW","KWD":"KWD","KYD":"KYD","KZT":"KZT","LAK":"LAK","LBP":"LBP","LKR":"LKR","LRD":"LRD","LSL":"LSL","LYD":"LYD","MAD":"MAD","MDL":"MDL","MGA":"MGA","MKD":"MKD","MMK":"MMK","MNT":"MNT","MOP":"MOP","MRU":"MRU","MUR":"MUR","MVR":"MVR","MWK":"MWK","MXN":"MXN","MYR":"MYR","MZN":"MZN","NAD":"NAD","NGN":"NGN","NIO":"NIO","NOK":"NOK","NPR":"NPR","NZD":"NZD","OMR":"OMR","PAB":"PAB","PEN":"PEN","PGK":"PGK","PHP":"PHP","PKR":"PKR","PLN":"PLN","PND":"PND","PRB":"PRB","PYG":"PYG","QAR":"QAR","RON":"RON","RSD":"RSD","RUB":"RUB","RWF":"RWF","瘟":"瘟","SBD":"SBD","SCR":"SCR","SDG":"SDG","SEK":"SEK","SGD":"SGD","SHP":"SHP","SLL":"SLL","SLS":"SLS","SOS":"SOS","SRD":"SRD","SSP":"SSP","STN":"STN","SVC":"SVC","SYP":"SYP","SZL":"SZL","THB":"THB","TJS":"TJS","TMT":"TMT","TND":"TND","TOP":"TOP","TRY":"TRY","TTD":"TTD","TVD":"TVD","TWD":"TWD","TZS":"TZS","UAH":"UAH","UGX":"UGX","USD":"USD","UYU":"UYU","UZS":"UZS","VED":"VED","VES":"VES","VND":"VND","VUV":"VUV","WST":"WST","XAF":"XAF","XCD":"XCD","XOF":"XOF","XPF":"XPF","YER":"YER","ZAR":"ZAR","ZMW":"ZMW","ZWB":"ZWB","ZWL":"ZWL","Abkhazia":"Abkhazia","Artsakh":"Artsakh","DISCOUNT_DETAILS":"{{percentage}}% Discount - {{currency}} {{discount}} saved"}');
|
|
34811
34993
|
;// ../../localization/apps/flash/payment-layout/ar.json
|
|
34812
|
-
const payment_layout_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"الإجمالي","ORDER_AMOUNT":"المبلغ الإجمالي","QUANTITY":"الكمية","BILLING_ADDRESS":"عنوان إرسال الفواتير","SHIPPING_ADDRESS":"عنوان إرسال الشحن","SUB_TOTAL":"المبلغ","VAT":"ضريبة القيمة المضافة","FEES":"الرسوم","DISCOUNT_AMOUNT":"قيمة الخصم","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"رسوم إدارية","TOTAL":"الإجمالي","CASH_BACK":"Cashback","
|
|
34994
|
+
const payment_layout_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"الإجمالي","ORDER_AMOUNT":"المبلغ الإجمالي","QUANTITY":"الكمية","BILLING_ADDRESS":"عنوان إرسال الفواتير","SHIPPING_ADDRESS":"عنوان إرسال الشحن","SUB_TOTAL":"المبلغ","VAT":"ضريبة القيمة المضافة","FEES":"الرسوم","DISCOUNT_AMOUNT":"قيمة الخصم","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"رسوم إدارية","TOTAL":"الإجمالي","CASH_BACK":"Cashback","FLIP":"Flip","CARD_NUMBER":"Card number","SECURE_PAYMENT":"دفع آمن","ORDER_DETAILS":"عرض تفاصيل الطلب","PURCHASE_FEE":"Purchase Fee","PAYMENT_DETAILS":"تفاصيل الدفع","瘝":"瘝","AFN":"أفغاني","ALL":"ليك ألباني","AMD":"درام أرميني","ANG":"غيلدر هولندي","AOA":"كوانزا أنغولي","ARS":"بيزو أرجنتيني","AUD":"دولار أسترالي","AWG":"فلورن أروبي","AZN":"مانات أذربيجاني","BAM":"مارك بوسني قابل للتحويل","BBD":"دولار باربادوسي","BDT":"تاكا بنغلاديشي","BGN":"ليف بلغاري","BHD":"دينار بحريني","BIF":"فرنك بوروندي","BMD":"دولار برمودي","BND":"دولار بروناي","BOB":"بوليفيانو بوليفي","BRL":"ريال برازيلي","BSD":"دولار بهامي","BTN":"نغولترم بوتاني","BWP":"بولا بوتسواني","BYN":"روبل بيلاروسي","BZD":"دولار بليزي","CAD":"دولار كندي","CDF":"فرنك كونغولي","CHF":"فرنك سويسري","CKD":"بيزو شيلي ","CLP":"بيزو شيلي","CNY":"يوان صيني","COP":"بيزو كولومبي","CRC":"كولون كوستاريكي","CUC":"بيزو كوبي قابل للتحويل","CUP":"بيزو كوبي","CVE":"إسكودو كاب فيردي","CZK":"كورونا تشيكية","DJF":"فرنك جيبوتي","DKK":"كرونة دنماركية","DOP":"بيزو دومينيكاني","DZD":"دينار جزائري","EGP":"جنيه مصري","EHP":"بيزيتا إسبانية ","ERN":"ناكفا إريتري","ETB":"بير إثيوبي","EUR":"يورو","FJD":"دولار فيجي","FKP":"جنيه جزر فوكلاند","FOK":"كرونة جزر فارو","GBP":"جنيه إسترليني","GEL":"لاري جورجي","GGP":"جنيه غيرنسي","GHS":"سيدي غاني","GIP":"جنيه جبل طارق","GMD":"دلاسي غامبي","GNF":"فرنك غيني","GTQ":"كوتزال غواتيمالي","GYD":"دولار غياني","HKD":"دولار هونغ كونغ","HNL":"لمبيرة هندوراسي","HRK":"كونا كرواتي","HTG":"غوردي هايتي","HUF":"فورينت مجري","IDR":"روبية إندونيسية","ILS":"شيكل إسرائيلي جديد","IMP":"جنيه مانكسي","INR":"روبية هندية","IQD":"دينار عراقي","IRR":"ريال إيراني","ISK":"كرونة آيسلندية","JEP":"جنيه جيرزي","JMD":"دولار جامايكي","JOD":"دينار أردني","JPY":"ين ياباني","KES":"شيلينغ كيني","KGS":"سوم قيرغيزستاني","KHR":"رييل كمبودي","KID":"دولار كيريباتي","KMF":"فرنك قمري","KPW":"وون كوري شمالي","KRW":"وون كوري جنوبي","KWD":"دينار كويتي","KYD":"دولار جزر كايمان","KZT":"تينغ كازاخستاني","LAK":"كيب لاوي","LBP":"جنيه لبناني","LKR":"روبية سريلانكية","LRD":"دولار ليبيري","LSL":"لوتي ليسوتي","LYD":"دينار ليبي","MAD":"درهم مغربي","MDL":"ليو مولدوفي","MGA":"أرياري مدغشقري","MKD":"دينار مقدوني","MMK":"كيات ميانماري","MNT":"توغروغ منغولي","MOP":"باتاكا ماكاوي","MRU":"أوقية موريتانية","MUR":"روبية موريشيوسية","MVR":"روفيا مالديفية","MWK":"كواشا مالاوي","MXN":"بيزو مكسيكي","MYR":"رينغيت ماليزي","MZN":"ميتكيال موزمبيقي","NAD":"دولار ناميبي","NGN":"نايرا نيجيري","NIO":"كوردوبا نيكاراغوي","NOK":"كرونة نرويجية","NPR":"روبية نيبالية","NZD":"دولار نيوزيلندي","OMR":"ريال عماني","PAB":"بالبوا بنمي","PEN":"سول بيروفي","PGK":"كينا بابوا غينيا الجديدة","PHP":"بيزو فلبيني","PKR":"روبية باكستانية","PLN":"زلوتي بولندي","PND":"جنيه بوندلندي","PRB":"بوليفار فنزويلي","PYG":"غواراني باراغواي","QAR":"ريال قطري","RON":"ليو روماني","RSD":"دينار صربي","RUB":"روبل روسي","RWF":"فرنك رواندي","瘟":"瘟","SBD":"دولار جزر سليمان","SCR":"روبية سيشلية","SDG":"جنيه سوداني","SEK":"كرونة سويدية","SGD":"دولار سنغافوري","SHP":"جنيه سانت هيليني","SLL":"ليون سيراليوني","SLS":"SLS","SOS":"شلن صومالي","SRD":"دولار سورينامي","SSP":"جنيه جنوب سوداني","STN":"دوبرا ساو تومي وبرينسيب","SVC":"كولون سلفادوري","SYP":"ليرة سورية","SZL":"ليلانجيني إسواتيني","THB":"بات تايلاندي","TJS":"سوموني طاجيكي","TMT":"مانات تركماني","TND":"دينار تونسي","TOP":"بانغا تونغي","TRY":"ليرة تركية","TTD":"دولار ترينيدادي","TVD":"دولار تيموري","TWD":"دولار تايواني جديد","TZS":"شلن تنزاني","UAH":"هريفنيا أوكرانية","UGX":"شلن أوغندي","USD":"دولار أمريكي","UYU":"بيزو أوروغواي","UZS":"سوم أوزبكي","VED":"بوليفار فنزويلي قديم","VES":"بوليفار فنزويلي حديث","VND":"دونغ فيتنامي","VUV":"فاتو فانواتو","WST":"تالا ساموا","XAF":"فرنك وسط أفريقي","XCD":"دولار شرق كاريبي","XOF":"فرنك غرب أفريقي","XPF":"فرنك المحيط الهادئ","YER":"ريال يمني","ZAR":"راند جنوب أفريقي","ZMW":"كواشا زامبي","ZWB":"دولار زيمبابوي","ZWL":"دولار زيمبابوي","Abkhazia":"أبخازيا","Artsakh":"آرتساخ","DISCOUNT_DETAILS":"{{percentage}}% خصم - {{currency}} {{discount}} موفَّرة"}');
|
|
34813
34995
|
;// ../../localization/apps/flash/payment-layout/ur.json
|
|
34814
|
-
const payment_layout_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","QUANTITY":"Quantity","BILLING_ADDRESS":"Billing Address","SHIPPING_ADDRESS":"Shipping Address","SUB_TOTAL":"Subtotal","VAT":"VAT","FEES":"Fees","DISCOUNT_AMOUNT":"Discount Amount","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"Admin Fees","TOTAL":"Total","CASH_BACK":"Cashback","
|
|
34996
|
+
const payment_layout_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","QUANTITY":"Quantity","BILLING_ADDRESS":"Billing Address","SHIPPING_ADDRESS":"Shipping Address","SUB_TOTAL":"Subtotal","VAT":"VAT","FEES":"Fees","DISCOUNT_AMOUNT":"Discount Amount","INSTALLMENT_PLAN":"Installment Plan","TENURE":"Tenure","FINANCE_AMOUNT":"Finance Amount","DOWN_PAYMENT":"Down Payment","ADMIN_FEES":"Admin Fees","TOTAL":"Total","CASH_BACK":"Cashback","FLIP":"Flip","CARD_NUMBER":"Card number","SECURE_PAYMENT":"Secure payment","ORDER_DETAILS":"View order details","PURCHASE_FEE":"Purchase Fee","PAYMENT_DETAILS":"Payment details","DISCOUNT_DETAILS":"{{percentage}}% Discount - {{currency}} {{discount}} saved"}');
|
|
34815
34997
|
;// ../../localization/apps/flash/bank-installment/en.json
|
|
34816
34998
|
const bank_installment_en_namespaceObject = /*#__PURE__*/JSON.parse('{"ERR_MSG_UNAUTHORIZED":"Invalid or expired payment token","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong"}');
|
|
34817
34999
|
;// ../../localization/apps/flash/bank-installment/ar.json
|
|
@@ -34951,17 +35133,17 @@ const tab_element_en_namespaceObject = /*#__PURE__*/JSON.parse('{"SYMPL_ZERO_INT
|
|
|
34951
35133
|
;// ../../localization/apps/flash/tab-element/ur.json
|
|
34952
35134
|
const tab_element_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"SYMPL_ZERO_INTEREST":"0% interest on any card","OFFERS":"Offers","OFFER":"Offer"}');
|
|
34953
35135
|
;// ../../localization/libs/card/en.json
|
|
34954
|
-
const libs_card_en_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"Card Information","CARDHOLDER_NAME":"Cardholder Name","CARD_NUMBER":"Card Number","CARD_NUMBER_NOT_VALID":"Card number is not valid","CARD_NUMBER_IS_REQUIRED":"Card number is required","CARD_EXPIRY":"Expiry (MM/YY)","CARD_EXPIRY_NOT_VALID":"Expiry date is not valid","CARD_EXPIRY_IS_REQUIRED":"Expiry date is required","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"3-digit CVV is required","CARD_NAME":"Name on card","CARD_NAME_PLACEHOLDER":"ex. Abdullah Adel","CARD_NAME_NOT_VALID":"Card name is not valid","CARD_NAME_IS_REQUIRED":"Cardholder Name is required","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAVED_CARDS_TITLE":"Saved cards","SAVE_CARD":"Save card for future use","ADD_NEW_CARD_BTN":"New card","CARD_ACTION_BTN":"Pay","OTP_ACTION_BTN":"Verify OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"Card number","OTP_HINT":"Please enter the 4-digit code sent to your mobile","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"Have Mastercard / Visa card?","CVV_MODAL_VISA_BODY":"It\'s a 3-digit code on the back of your card.","CVV_MODAL_AMEX_HEADER":"Have American Express card?","CVV_MODAL_AMEX_BODY":"It\'s a 4-digit number on the front, just above your credit card number","ERR_MSG_EXCEEDED_TRIALS":"The payment session ends after 3 unsuccessful trials. You will be redirected to the website. You can start a new checkout session with Paymob","ERR_MSG_ALREADY_PROCESSED":"This payment was already processed with status pending","ERR_MSG_DECLINED":"Payment is declined","ERR_MSG_EXPIRED":"Looks like this payment was expired perhaps you should create a new one","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong","FORCE_SAVE_CARD":"Card Details would be saved for future use","ERR_MSG_ALREADY_PAID":"This order has already been paid","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"View Saved Cards","
|
|
35136
|
+
const libs_card_en_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"Card Information","CARDHOLDER_NAME":"Cardholder Name","CARD_NUMBER":"Card Number","CARD_NUMBER_NOT_VALID":"Card number is not valid","CARD_NUMBER_IS_REQUIRED":"Card number is required","CARD_EXPIRY":"Expiry (MM/YY)","CARD_EXPIRY_NOT_VALID":"Expiry date is not valid","CARD_EXPIRY_IS_REQUIRED":"Expiry date is required","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"3-digit CVV is required","CARD_NAME":"Name on card","CARD_NAME_PLACEHOLDER":"ex. Abdullah Adel","CARD_NAME_NOT_VALID":"Card name is not valid","CARD_NAME_IS_REQUIRED":"Cardholder Name is required","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAVED_CARDS_TITLE":"Saved cards","SAVE_CARD":"Save card for future use","ADD_NEW_CARD_BTN":"New card","CARD_ACTION_BTN":"Pay","OTP_ACTION_BTN":"Verify OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"Card number","OTP_HINT":"Please enter the 4-digit code sent to your mobile","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"Have Mastercard / Visa card?","CVV_MODAL_VISA_BODY":"It\'s a 3-digit code on the back of your card.","CVV_MODAL_AMEX_HEADER":"Have American Express card?","CVV_MODAL_AMEX_BODY":"It\'s a 4-digit number on the front, just above your credit card number","ERR_MSG_EXCEEDED_TRIALS":"The payment session ends after 3 unsuccessful trials. You will be redirected to the website. You can start a new checkout session with Paymob","ERR_MSG_ALREADY_PROCESSED":"This payment was already processed with status pending","ERR_MSG_DECLINED":"Payment is declined","ERR_MSG_EXPIRED":"Looks like this payment was expired perhaps you should create a new one","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong","FORCE_SAVE_CARD":"Card Details would be saved for future use","ERR_MSG_ALREADY_PAID":"This order has already been paid","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"View Saved Cards","DISCOUNT_APPLIED":"Discount of {{currency}} {{amount}} applied successfully"}');
|
|
34955
35137
|
;// ../../localization/libs/card/ar.json
|
|
34956
|
-
const libs_card_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"معلومات البطاقة","CARDHOLDER_NAME":"اسم حامل البطاقة","CARD_NUMBER":"رقم البطاقة","CARD_NUMBER_NOT_VALID":"رقم البطاقة غير صحيح","CARD_NUMBER_IS_REQUIRED":"رقم البطاقة مطلوب","CARD_EXPIRY":"تاريخ الصلاحية (شهر/سنة)","CARD_EXPIRY_NOT_VALID":"تاريخ الانتهاء غير صحيح","CARD_EXPIRY_IS_REQUIRED":"تاريخ الانتهاء مطلوب","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"كود التحقق المكون من 3 أرقام مطلوب","CARD_NAME":"الاسم على البطاقة","CARD_NAME_PLACEHOLDER":"مثال: عبدالله عادل","CARD_NAME_NOT_VALID":"اسم البطاقة غير صحيح","CARD_NAME_IS_REQUIRED":"اسم حامل البطاقة مطلوب","NAME_IS_REQUIRED":"الاسم مطلوب","EMAIL_IS_REQUIRED":"البريد الإلكتروني مطلوب","EMAIL_NOT_VALID":"البريد الإلكتروني غير صحيح","PHONE_IS_REQUIRED":"رقم الهاتف مطلوب","PHONE_NOT_VALID":"رقم الهاتف غير صحيح","SAVED_CARDS_TITLE":"البطاقات المحفوظة","SAVE_CARD":"حفظ البطاقة للاستخدام في المستقبل","ADD_NEW_CARD_BTN":"بطاقة جديدة","CARD_ACTION_BTN":"ادفع","OTP_ACTION_BTN":"تحقق من كود الـ OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"رقم البطاقة","OTP_HINT":"برجاء إدخال الكود المكون من 4 أرقام المرسل إلى موبايلك","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"هل لديك بطاقة ماستركارد / فيزا؟","CVV_MODAL_VISA_BODY":".إنه رمز مكون من 3 أرقام على ظهر بطاقتك","CVV_MODAL_AMEX_HEADER":"هل لديك بطاقة أمريكان إكسبريس؟","CVV_MODAL_AMEX_BODY":".إنه رقم مكون من 4 أرقام في الأمام، فوق رقم بطاقتك الائتمانية","ERR_MSG_EXCEEDED_TRIALS":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة، سيتم تحويلك إلى الموقع الإلكتروني، يمكنك بدء جلسة دفع جديدة مع باي موب","ERR_MSG_ALREADY_PROCESSED":".تمت عملية الدفع بالفعل وهي حاليا قيد الإنتظار","ERR_MSG_DECLINED":"تم رفض عملية الدفع","ERR_MSG_EXPIRED":".يبدو أن مهلة الدفع قد انتهت، من فضلك أعد المحاولة","ERR_MSG_SOMETHING_WENT_WRONG":"!حدث خطأ ما","FORCE_SAVE_CARD":"سيتم حفظ بيانات البطاقة للاستخدام في المستقبل","ERR_MSG_ALREADY_PAID":"تمت عملية الدفع لهذا الطلب بالفعل","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"
|
|
35138
|
+
const libs_card_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"معلومات البطاقة","CARDHOLDER_NAME":"اسم حامل البطاقة","CARD_NUMBER":"رقم البطاقة","CARD_NUMBER_NOT_VALID":"رقم البطاقة غير صحيح","CARD_NUMBER_IS_REQUIRED":"رقم البطاقة مطلوب","CARD_EXPIRY":"تاريخ الصلاحية (شهر/سنة)","CARD_EXPIRY_NOT_VALID":"تاريخ الانتهاء غير صحيح","CARD_EXPIRY_IS_REQUIRED":"تاريخ الانتهاء مطلوب","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"كود التحقق المكون من 3 أرقام مطلوب","CARD_NAME":"الاسم على البطاقة","CARD_NAME_PLACEHOLDER":"مثال: عبدالله عادل","CARD_NAME_NOT_VALID":"اسم البطاقة غير صحيح","CARD_NAME_IS_REQUIRED":"اسم حامل البطاقة مطلوب","NAME_IS_REQUIRED":"الاسم مطلوب","EMAIL_IS_REQUIRED":"البريد الإلكتروني مطلوب","EMAIL_NOT_VALID":"البريد الإلكتروني غير صحيح","PHONE_IS_REQUIRED":"رقم الهاتف مطلوب","PHONE_NOT_VALID":"رقم الهاتف غير صحيح","SAVED_CARDS_TITLE":"البطاقات المحفوظة","SAVE_CARD":"حفظ البطاقة للاستخدام في المستقبل","ADD_NEW_CARD_BTN":"بطاقة جديدة","CARD_ACTION_BTN":"ادفع","OTP_ACTION_BTN":"تحقق من كود الـ OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"رقم البطاقة","OTP_HINT":"برجاء إدخال الكود المكون من 4 أرقام المرسل إلى موبايلك","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"هل لديك بطاقة ماستركارد / فيزا؟","CVV_MODAL_VISA_BODY":".إنه رمز مكون من 3 أرقام على ظهر بطاقتك","CVV_MODAL_AMEX_HEADER":"هل لديك بطاقة أمريكان إكسبريس؟","CVV_MODAL_AMEX_BODY":".إنه رقم مكون من 4 أرقام في الأمام، فوق رقم بطاقتك الائتمانية","ERR_MSG_EXCEEDED_TRIALS":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة، سيتم تحويلك إلى الموقع الإلكتروني، يمكنك بدء جلسة دفع جديدة مع باي موب","ERR_MSG_ALREADY_PROCESSED":".تمت عملية الدفع بالفعل وهي حاليا قيد الإنتظار","ERR_MSG_DECLINED":"تم رفض عملية الدفع","ERR_MSG_EXPIRED":".يبدو أن مهلة الدفع قد انتهت، من فضلك أعد المحاولة","ERR_MSG_SOMETHING_WENT_WRONG":"!حدث خطأ ما","FORCE_SAVE_CARD":"سيتم حفظ بيانات البطاقة للاستخدام في المستقبل","ERR_MSG_ALREADY_PAID":"تمت عملية الدفع لهذا الطلب بالفعل","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"عرض البطاقات المحفوظة","DISCOUNT_APPLIED":"Discount of {{currency}} {{amount}} applied successfully"}');
|
|
34957
35139
|
;// ../../localization/libs/card/ur.json
|
|
34958
|
-
const libs_card_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"Card Information","CARDHOLDER_NAME":"Cardholder Name","CARD_NUMBER":"Card Number","CARD_NUMBER_NOT_VALID":"Card number is not valid","CARD_NUMBER_IS_REQUIRED":"Card number is required","CARD_EXPIRY":"Expiry (MM/YY)","CARD_EXPIRY_NOT_VALID":"Expiry date is not valid","CARD_EXPIRY_IS_REQUIRED":"Expiry date is required","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"3-digit CVV is required","CARD_NAME":"Name on card","CARD_NAME_PLACEHOLDER":"ex. Abdullah Adel","CARD_NAME_NOT_VALID":"Card name is not valid","CARD_NAME_IS_REQUIRED":"Cardholder Name is required","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAVED_CARDS_TITLE":"Saved cards","SAVE_CARD":"Save card for future use","ADD_NEW_CARD_BTN":"New card","CARD_ACTION_BTN":"Pay","OTP_ACTION_BTN":"Verify OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"Card number","OTP_HINT":"Please enter the 4-digit code sent to your mobile","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"Have Mastercard / Visa card?","CVV_MODAL_VISA_BODY":"It\'s a 3-digit code on the back of your card.","CVV_MODAL_AMEX_HEADER":"Have American Express card?","CVV_MODAL_AMEX_BODY":"It\'s a 4-digit number on the front, just above your credit card number","ERR_MSG_EXCEEDED_TRIALS":"The payment session ends after 3 unsuccessful trials. You will be redirected to the website. You can start a new checkout session with Paymob","ERR_MSG_ALREADY_PROCESSED":"This payment was already processed with status pending","ERR_MSG_DECLINED":"Payment is declined","ERR_MSG_EXPIRED":"Looks like this payment was expired perhaps you should create a new one","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong","FORCE_SAVE_CARD":"Card Details would be saved for future use","ERR_MSG_ALREADY_PAID":"This order has already been paid","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"View Saved Cards","
|
|
35140
|
+
const libs_card_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"CARD_INFO":"Card Information","CARDHOLDER_NAME":"Cardholder Name","CARD_NUMBER":"Card Number","CARD_NUMBER_NOT_VALID":"Card number is not valid","CARD_NUMBER_IS_REQUIRED":"Card number is required","CARD_EXPIRY":"Expiry (MM/YY)","CARD_EXPIRY_NOT_VALID":"Expiry date is not valid","CARD_EXPIRY_IS_REQUIRED":"Expiry date is required","AMEX_CVV_IS_REQUIRED":"4-digit CVV is required","CVV_IS_REQUIRED":"3-digit CVV is required","CARD_NAME":"Name on card","CARD_NAME_PLACEHOLDER":"ex. Abdullah Adel","CARD_NAME_NOT_VALID":"Card name is not valid","CARD_NAME_IS_REQUIRED":"Cardholder Name is required","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAVED_CARDS_TITLE":"Saved cards","SAVE_CARD":"Save card for future use","ADD_NEW_CARD_BTN":"New card","CARD_ACTION_BTN":"Pay","OTP_ACTION_BTN":"Verify OTP","CARD_NUMBER_PLACEHOLDER":"1234 1234 1234 1234","MOBILE_CARD_NUMBER_PLACEHOLDER":"Card number","OTP_HINT":"Please enter the 4-digit code sent to your mobile","CVV_MODAL_HEADER":"CVV","CVV_MODAL_VISA_HEADER":"Have Mastercard / Visa card?","CVV_MODAL_VISA_BODY":"It\'s a 3-digit code on the back of your card.","CVV_MODAL_AMEX_HEADER":"Have American Express card?","CVV_MODAL_AMEX_BODY":"It\'s a 4-digit number on the front, just above your credit card number","ERR_MSG_EXCEEDED_TRIALS":"The payment session ends after 3 unsuccessful trials. You will be redirected to the website. You can start a new checkout session with Paymob","ERR_MSG_ALREADY_PROCESSED":"This payment was already processed with status pending","ERR_MSG_DECLINED":"Payment is declined","ERR_MSG_EXPIRED":"Looks like this payment was expired perhaps you should create a new one","ERR_MSG_SOMETHING_WENT_WRONG":"Something went wrong","FORCE_SAVE_CARD":"Card Details would be saved for future use","ERR_MSG_ALREADY_PAID":"This order has already been paid","ERR_OMAN_NET_INVALID":"Oman Net Card can’t be used for transaction. Please use another card type.","VIEW_SAVED_CARDS":"View Saved Cards","DISCOUNT_APPLIED":"Discount of {{currency}} {{amount}} applied successfully"}');
|
|
34959
35141
|
;// ../../localization/libs/kit-components/en.json
|
|
34960
|
-
const kit_components_en_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"Link has expired","PAYMENT_EXPIRED_DESCRIPTION":"You can start a new Checkout session with Paymob.","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION":"The payment session ends after 3 unsuccessful trials. You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":"You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":"The Payment session ends after 3 unsuccessful trials. Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_DECLINED":"Payment declined","PAYMENT_SUCCESSFUL":"Payment Successful","PAYMENT_PENDING":"Payment pending","PAYMENT_PENDING_DESCRIPTION":"Your payment is being processed.","PAYMENT_INVALID":"Something went wrong!","PAYMENT_INVALID_DESCRIPTION":"Unable to process the payment due to an unexpected error.","TRY_AGAIN":"Try again","CANCEL_BTN":"Cancel","REDIRECT_BTN":"Return to the Website","TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","LOADING_SECONDS_LEFT":"seconds left","LOADING_AUTHORIZATION_REQUIRED":"Authorization required","LOADING_REDIRECTED_TO":"To proceed, please authorize this transaction using your","LOADING_REDIRECTED_TO_INFO":"mobile App. Please proceed with payment confirmation within the given time.","PLANS_RADIO_TITLE":"Plan","PLANS_RADIO_EMPTY":"No plans","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"Didn’t receive code?","OTP_RESEND":"Resend code in ","OTP_RESEND_BUTTON":"Re-send OTP","OTP_RESEND_SUCCESS":"OTP has been sent successfully","OTP_LOADING_MESSAGE":"Awaiting Transaction Response. Please don’t close or refresh the browser.","SAVED_CARDS_TITLE":"Saved cards","ADD_NEW_CARD_BTN":"New card","CVV_INPUT_LABEL":"Enter CVV","AMEX_CVV_INPUT_LABEL":"Enter 4-digit CVV","SAVED_CARD_IDENTIFIER":"Card Ending with","SAVED_CARDS_ACTION_BTN":"Pay","SAVED_CARDS_NEW_CARD_BTN":"Pay {{amount}} now","FULL_NAME":"Full name","CONTACT_INFO":"Contact information","SWITCH_PAYMENT_METHOD":"Switch payment method","BACK":"Back","DISCOUNT":"Discount of {{currency}} {{discount}} Applied","SECURE_CHECKOUT":"Checkout","SECURE_PAYMENT":"Secure payment","SAVED_CARD_INVALID":"Card Number is not valid, please add a new card","SAVED_CARD_EXPIRED":"Expired","SAVED_CARD_DELETE_BTN":"Yes, Delete it","SAVED_CARD_DELETE_CANCEL_BTN":"No. go back","SAVED_CARD_DELETE_TITLE":"Are you sure you want to delete the {{card}} ending in #** {{digits}}?","REDIRECTION_TO_MERCHANT":"Re-directing you to Merchant\'s Website in {{time}} seconds","REDIRECTION_TO_MERCHANT_LOADING":"We are redirecting you to the merchant website","CONFIRMING_TERMS":"By confirming your payment, you agree to","TERMS":"Terms and Conditions.","PAYMENT_THANKS":"Thanks for your payment","PAYMENT_COMPLETED":"Payment done","FAST_CHECKOUT_CREATED":"click account created","FAST_CHECKOUT_VERIFIED_TITLE":"You’re all set for Click checkout","FAST_CHECKOUT_VERIFIED_DESC":"Now you will enjoy the fastest checkout experience with Paymob","SKIP_TO_MERCHANT_BTN":"Skip to merchant website","COUNTRY_IS_REQUIRED":"Country is required","ADDRESS_IS_REQUIRED":"Address is required","CITY_IS_REQUIRED":"City is required","PROVINCE_IS_REQUIRED":"Province is required","STATE_IS_REQUIRED":"State is required","EMIRATE_IS_REQUIRED":"Emirate is required","POSTAL_CODE_IS_REQUIRED":"PIN Code is required","COUNTRIES":"Countries","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAME_AS_BILLING_CHECKBOX":"Use the same as billing address","SHIPPING":"Shipping","BILLING":"Billing","ADDRESS":"Address","CANCEL_PAYMENT":"Cancel payment","CONTINUE_PAYMENT":"Continue payment","RETRY_PAYMENT":"Retry payment","CANCEL_PAYMENT_DESC":"Are you sure you want to cancel payment and return to the merchant website?","POWERED_BY":"Powered by","NAME_PLACEHOLDER":"ex. Abdullah Adel","PHONE_PLACEHOLDER":"Enter Phone Number","OTP_MODAL_HEADER":"6-digit code","OTP_HINT":"Please enter the code we’ve sent to","OTP_SUMBIT_BUTTON":"Submit","OTP_CANCEL_BUTTON":"Cancel","AFTER_PAYMENT_SUCCESS":"Thanks for your payment","ALREADY_PAID":"This link has already been paid","PAYMENT_FAILURE":"This payment was already processed with status pending","OTP_PLACEHOLDER":"Enter the OTP","MOBILE_NUMBER":"mobile number","SYMPL_ZERO_INTEREST":"0% interest on any card","OFFERS":"Offers","OFFER":"Offer"}');
|
|
35142
|
+
const kit_components_en_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"Link has expired","PAYMENT_EXPIRED_DESCRIPTION":"You can start a new Checkout session with Paymob.","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION":"The payment session ends after 3 unsuccessful trials. You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":"You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":"The Payment session ends after 3 unsuccessful trials. Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_DECLINED":"Payment declined","PAYMENT_SUCCESSFUL":"Payment Successful","PAYMENT_PENDING":"Payment pending","PAYMENT_PENDING_DESCRIPTION":"Your payment is being processed.","PAYMENT_INVALID":"Something went wrong!","PAYMENT_INVALID_DESCRIPTION":"Unable to process the payment due to an unexpected error.","TRY_AGAIN":"Try again","CANCEL_BTN":"Cancel","REDIRECT_BTN":"Return to the Website","TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","LOADING_SECONDS_LEFT":"seconds left","LOADING_AUTHORIZATION_REQUIRED":"Authorization required","LOADING_REDIRECTED_TO":"To proceed, please authorize this transaction using your","LOADING_REDIRECTED_TO_INFO":"mobile App. Please proceed with payment confirmation within the given time.","PLANS_RADIO_TITLE":"Plan","PLANS_RADIO_EMPTY":"No plans","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"Didn’t receive code?","OTP_RESEND":"Resend code in ","OTP_RESEND_BUTTON":"Re-send OTP","OTP_RESEND_SUCCESS":"OTP has been sent successfully","OTP_LOADING_MESSAGE":"Awaiting Transaction Response. Please don’t close or refresh the browser.","SAVED_CARDS_TITLE":"Saved cards","ADD_NEW_CARD_BTN":"New card","CVV_INPUT_LABEL":"Enter CVV","AMEX_CVV_INPUT_LABEL":"Enter 4-digit CVV","SAVED_CARD_IDENTIFIER":"Card Ending with","SAVED_CARDS_ACTION_BTN":"Pay","SAVED_CARDS_NEW_CARD_BTN":"Pay {{amount}} now","FULL_NAME":"Full name","CONTACT_INFO":"Contact information","SWITCH_PAYMENT_METHOD":"Switch payment method","BACK":"Back","DISCOUNT":"Discount of {{currency}} {{discount}} Applied","SECURE_CHECKOUT":"Checkout","SECURE_PAYMENT":"Secure payment","SAVED_CARD_INVALID":"Card Number is not valid, please add a new card","SAVED_CARD_EXPIRED":"Expired","SAVED_CARD_DELETE_BTN":"Yes, Delete it","SAVED_CARD_DELETE_CANCEL_BTN":"No. go back","SAVED_CARD_DELETE_TITLE":"Are you sure you want to delete the {{card}} ending in #** {{digits}}?","REDIRECTION_TO_MERCHANT":"Re-directing you to Merchant\'s Website in {{time}} seconds","REDIRECTION_TO_MERCHANT_LOADING":"We are redirecting you to the merchant website","CONFIRMING_TERMS":"By confirming your payment, you agree to","TERMS":"Terms and Conditions.","PAYMENT_THANKS":"Thanks for your payment","PAYMENT_COMPLETED":"Payment done","FAST_CHECKOUT_CREATED":"click account created","FAST_CHECKOUT_VERIFIED_TITLE":"You’re all set for Click checkout","FAST_CHECKOUT_VERIFIED_DESC":"Now you will enjoy the fastest checkout experience with Paymob","SKIP_TO_MERCHANT_BTN":"Skip to merchant website","COUNTRY_IS_REQUIRED":"Country is required","ADDRESS_IS_REQUIRED":"Address is required","CITY_IS_REQUIRED":"City is required","PROVINCE_IS_REQUIRED":"Province is required","STATE_IS_REQUIRED":"State is required","EMIRATE_IS_REQUIRED":"Emirate is required","POSTAL_CODE_IS_REQUIRED":"PIN Code is required","COUNTRIES":"Countries","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAME_AS_BILLING_CHECKBOX":"Use the same as billing address","SHIPPING":"Shipping","BILLING":"Billing","ADDRESS":"Address","CANCEL_PAYMENT":"Cancel payment","CONTINUE_PAYMENT":"Continue payment","RETRY_PAYMENT":"Retry payment","CANCEL_PAYMENT_DESC":"Are you sure you want to cancel payment and return to the merchant website?","POWERED_BY":"Powered by","NAME_PLACEHOLDER":"ex. Abdullah Adel","PHONE_PLACEHOLDER":"Enter Phone Number","OTP_MODAL_HEADER":"6-digit code","OTP_HINT":"Please enter the code we’ve sent to","OTP_SUMBIT_BUTTON":"Submit","OTP_CANCEL_BUTTON":"Cancel","AFTER_PAYMENT_SUCCESS":"Thanks for your payment","ALREADY_PAID":"This link has already been paid","PAYMENT_FAILURE":"This payment was already processed with status pending","OTP_PLACEHOLDER":"Enter the OTP","MOBILE_NUMBER":"mobile number","SYMPL_ZERO_INTEREST":"0% interest on any card","OFFERS":"Offers","OFFER":"Offer","ADD_SAVED_CARDS":"Enter new card details"}');
|
|
34961
35143
|
;// ../../localization/libs/kit-components/ar.json
|
|
34962
|
-
const kit_components_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"انتهت صلاحية الرابط","PAYMENT_EXPIRED_DESCRIPTION":".يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"رابط الدفع الذي استخدمته لم يعد صالحًا. يُرجى طلب رابط جديد من التاجر أو إعادة المحاولة لاحقًا لإتمام العملية.","PAYMENT_EXCEEDED_DESCRIPTION":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة. يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":".يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة، يرجى الطلب من التاجر مشاركة رابط دفع جديد","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":".من فضلك اطلب من التاجر مشاركة رابط دفع جديد","PAYMENT_DECLINED":"!لم يتم الدفع بنجاح","PAYMENT_SUCCESSFUL":"الدفع بنجاح","PAYMENT_PENDING":"الدفع قيد الانتظار","PAYMENT_PENDING_DESCRIPTION":".جاري إتمام عملية الدفع","PAYMENT_INVALID":"!حدث خطأ ما","PAYMENT_INVALID_DESCRIPTION":".تعذر إتمام الدفع بسبب خطأ غير متوقع","TRY_AGAIN":"حاول مرة أخرى","CANCEL_BTN":"إلغاء","REDIRECT_BTN":"العودة إلى الموقع الإلكتروني","TOTAL_AMOUNT":"الإجمالي","ORDER_AMOUNT":"المبلغ الإجمالي","LOADING_SECONDS_LEFT":"انتظر لثواني","LOADING_AUTHORIZATION_REQUIRED":"مطلوب التأكيد","LOADING_REDIRECTED_TO":".للمتابعة يرجي تأكيد المعاملة من الموبايل","LOADING_REDIRECTED_TO_INFO":".من فضلك تابع تأكيد المعاملة في الوقت المطلوب","PLANS_RADIO_TITLE":"خطط التقسيط","PLANS_RADIO_EMPTY":"لا توجد خطط","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"لم يصلك الكود؟","OTP_RESEND":"إعادة إرسال الكود في خلال","OTP_RESEND_BUTTON":"OTP إعادة إرسال كود الـ","OTP_RESEND_SUCCESS":"تم إرسال كود الـ OTP بنجاح","OTP_LOADING_MESSAGE":".بانتظار استجابة المعاملة. برجاء عدم الإغلاق أو التحديث","SAVED_CARDS_TITLE":"
|
|
35144
|
+
const kit_components_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"انتهت صلاحية الرابط","PAYMENT_EXPIRED_DESCRIPTION":".يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"رابط الدفع الذي استخدمته لم يعد صالحًا. يُرجى طلب رابط جديد من التاجر أو إعادة المحاولة لاحقًا لإتمام العملية.","PAYMENT_EXCEEDED_DESCRIPTION":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة. يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":".يمكنك بدء جلسة دفع جديدة مع باي موب","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":".تنتهي جلسة الدفع بعد 3 محاولات غير ناجحة، يرجى الطلب من التاجر مشاركة رابط دفع جديد","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":".من فضلك اطلب من التاجر مشاركة رابط دفع جديد","PAYMENT_DECLINED":"!لم يتم الدفع بنجاح","PAYMENT_SUCCESSFUL":"الدفع بنجاح","PAYMENT_PENDING":"الدفع قيد الانتظار","PAYMENT_PENDING_DESCRIPTION":".جاري إتمام عملية الدفع","PAYMENT_INVALID":"!حدث خطأ ما","PAYMENT_INVALID_DESCRIPTION":".تعذر إتمام الدفع بسبب خطأ غير متوقع","TRY_AGAIN":"حاول مرة أخرى","CANCEL_BTN":"إلغاء","REDIRECT_BTN":"العودة إلى الموقع الإلكتروني","TOTAL_AMOUNT":"الإجمالي","ORDER_AMOUNT":"المبلغ الإجمالي","LOADING_SECONDS_LEFT":"انتظر لثواني","LOADING_AUTHORIZATION_REQUIRED":"مطلوب التأكيد","LOADING_REDIRECTED_TO":".للمتابعة يرجي تأكيد المعاملة من الموبايل","LOADING_REDIRECTED_TO_INFO":".من فضلك تابع تأكيد المعاملة في الوقت المطلوب","PLANS_RADIO_TITLE":"خطط التقسيط","PLANS_RADIO_EMPTY":"لا توجد خطط","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"لم يصلك الكود؟","OTP_RESEND":"إعادة إرسال الكود في خلال","OTP_RESEND_BUTTON":"OTP إعادة إرسال كود الـ","OTP_RESEND_SUCCESS":"تم إرسال كود الـ OTP بنجاح","OTP_LOADING_MESSAGE":".بانتظار استجابة المعاملة. برجاء عدم الإغلاق أو التحديث","SAVED_CARDS_TITLE":"البطاقات المحفوظة","ADD_NEW_CARD_BTN":"بطاقة جديدة","CVV_INPUT_LABEL":"أدخل CVV","AMEX_CVV_INPUT_LABEL":"Enter 4-digit CVV","SAVED_CARD_IDENTIFIER":"بطاقة تنتهي بـ","SAVED_CARDS_ACTION_BTN":"ادفع","SAVED_CARDS_NEW_CARD_BTN":"ادفع {{amount}} الآن","FULL_NAME":"الاسم بالكامل","CONTACT_INFO":"معلومات الاتصال","SWITCH_PAYMENT_METHOD":"تغيير وسيلة الدفع","BACK":"العودة","DISCOUNT":"تم تطبيق خصم {{currency}} {{discount}}","SECURE_CHECKOUT":"الدفع","SECURE_PAYMENT":"دفع آمن","SAVED_CARD_INVALID":"Card Number is not valid, please add a new card","SAVED_CARD_EXPIRED":"منتهية الصلاحية","SAVED_CARD_DELETE_BTN":"نعم، احذفها","SAVED_CARD_DELETE_CANCEL_BTN":"لا. العودة","SAVED_CARD_DELETE_TITLE":"هل أنت متأكد أنك تريد حذف {{card}} التي تنتهي بـ #** {{digits}}?","REDIRECTION_TO_MERCHANT":"سيتم تحويلك إلى موقع التاجر خلال {{time}} ثانية.","REDIRECTION_TO_MERCHANT_LOADING":"جاري تحويلك إلى موقع التاجر","CONFIRMING_TERMS":"By confirming your payment, you agree to","TERMS":"Terms and Conditions.","PAYMENT_THANKS":"Thanks for your payment","PAYMENT_COMPLETED":"Payment done","FAST_CHECKOUT_CREATED":"click account created","FAST_CHECKOUT_VERIFIED_TITLE":"You’re all set for Click checkout","FAST_CHECKOUT_VERIFIED_DESC":"Now you will enjoy the fastest checkout experience with Paymob","SKIP_TO_MERCHANT_BTN":"Skip to merchant website","COUNTRY_IS_REQUIRED":"Country is required","ADDRESS_IS_REQUIRED":"Address is required","CITY_IS_REQUIRED":"City is required","PROVINCE_IS_REQUIRED":"Province is required","STATE_IS_REQUIRED":"State is required","EMIRATE_IS_REQUIRED":"Emirate is required","POSTAL_CODE_IS_REQUIRED":"PIN Code is required","COUNTRIES":"Countries","SAME_AS_BILLING_CHECKBOX":"Use the same as billing address","SHIPPING":"Shipping","BILLING":"Billing","ADDRESS":"Address","CANCEL_PAYMENT":"Cancel payment","CONTINUE_PAYMENT":"Continue payment","RETRY_PAYMENT":"Retry payment","CANCEL_PAYMENT_DESC":"Are you sure you want to cancel payment and return to the merchant website?","NAME_IS_REQUIRED":"الاسم مطلوب","EMAIL_IS_REQUIRED":"البريد الإلكتروني مطلوب","EMAIL_NOT_VALID":"البريد الإلكتروني غير صحيح","PHONE_IS_REQUIRED":"رقم الهاتف مطلوب","PHONE_NOT_VALID":"رقم الهاتف غير صحيح","POWERED_BY":"مدعوم بواسطة","NAME_PLACEHOLDER":"مثال: عبدالله عادل","PHONE_PLACEHOLDER":"أدخل رقم الهاتف","OTP_MODAL_HEADER":"رمز مكون من 6 أرقام","OTP_HINT":"يرجى إدخال الرمز الذي أرسلناه إلى","OTP_SUMBIT_BUTTON":"إرسال","OTP_CANCEL_BUTTON":"إلغاء","AFTER_PAYMENT_SUCCESS":"شكرًا لإتمام الدفع","ALREADY_PAID":"تم سداد هذا الرابط بالفعل","PAYMENT_FAILURE":"تمت معالجة هذه الدفعة بالفعل وحالتها تحت المارجعة","OTP_PLACEHOLDER":"أدخل كود ال OTP","MOBILE_NUMBER":"رقم الموبايل","SYMPL_ZERO_INTEREST":"0٪ فائدة على أي بطاقة","OFFERS":"عروض","OFFER":"عرض","ADD_SAVED_CARDS":"دخل تفاصيل البطاقة الجديدة"}');
|
|
34963
35145
|
;// ../../localization/libs/kit-components/ur.json
|
|
34964
|
-
const kit_components_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"Link has expired","PAYMENT_EXPIRED_DESCRIPTION":"You can start a new Checkout session with Paymob.","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION":"The payment session ends after 3 unsuccessful trials. You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":"You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":"The Payment session ends after 3 unsuccessful trials. Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_DECLINED":"Payment declined","PAYMENT_SUCCESSFUL":"Payment Successful","PAYMENT_PENDING":"Payment pending","PAYMENT_PENDING_DESCRIPTION":"Your payment is being processed.","PAYMENT_INVALID":"Something went wrong!","PAYMENT_INVALID_DESCRIPTION":"Unable to process the payment due to an unexpected error.","TRY_AGAIN":"Try again","CANCEL_BTN":"Cancel","REDIRECT_BTN":"Return to the Website","TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","LOADING_SECONDS_LEFT":"seconds left","LOADING_AUTHORIZATION_REQUIRED":"Authorization required","LOADING_REDIRECTED_TO":"To proceed, please authorize this transaction using your","LOADING_REDIRECTED_TO_INFO":"mobile App. Please proceed with payment confirmation within the given time.","PLANS_RADIO_TITLE":"Plan","PLANS_RADIO_EMPTY":"No plans","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"Didn’t receive code?","OTP_RESEND":"Resend code in ","OTP_RESEND_BUTTON":"Re-send OTP","OTP_RESEND_SUCCESS":"OTP has been sent successfully","OTP_LOADING_MESSAGE":"Awaiting Transaction Response. Please don’t close or refresh the browser.","SAVED_CARDS_TITLE":"Saved cards","ADD_NEW_CARD_BTN":"New card","CVV_INPUT_LABEL":"Enter CVV","AMEX_CVV_INPUT_LABEL":"Enter 4-digit CVV","SAVED_CARD_IDENTIFIER":"Card Ending with","SAVED_CARDS_ACTION_BTN":"Pay","SAVED_CARDS_NEW_CARD_BTN":"Pay {{amount}} now","FULL_NAME":"Full name","CONTACT_INFO":"Contact information","SWITCH_PAYMENT_METHOD":"Switch payment method","BACK":"Back","DISCOUNT":"Discount of {{currency}} {{discount}} Applied","SECURE_CHECKOUT":"Checkout","SECURE_PAYMENT":"Secure payment","SAVED_CARD_INVALID":"Card Number is not valid, please add a new card","SAVED_CARD_EXPIRED":"Expired","SAVED_CARD_DELETE_BTN":"Yes, Delete it","SAVED_CARD_DELETE_CANCEL_BTN":"No. go back","SAVED_CARD_DELETE_TITLE":"Are you sure you want to delete the {{card}} ending in #** {{digits}}?","REDIRECTION_TO_MERCHANT":"Re-directing you to Merchant\'s Website in {{time}} seconds","REDIRECTION_TO_MERCHANT_LOADING":"We are redirecting you to the merchant website","CONFIRMING_TERMS":"By confirming your payment, you agree to","TERMS":"Terms and Conditions.","PAYMENT_THANKS":"Thanks for your payment","PAYMENT_COMPLETED":"Payment done","FAST_CHECKOUT_CREATED":"click account created","FAST_CHECKOUT_VERIFIED_TITLE":"You’re all set for Click checkout","FAST_CHECKOUT_VERIFIED_DESC":"Now you will enjoy the fastest checkout experience with Paymob","SKIP_TO_MERCHANT_BTN":"Skip to merchant website","COUNTRY_IS_REQUIRED":"Country is required","ADDRESS_IS_REQUIRED":"Address is required","CITY_IS_REQUIRED":"City is required","PROVINCE_IS_REQUIRED":"Province is required","STATE_IS_REQUIRED":"State is required","EMIRATE_IS_REQUIRED":"Emirate is required","POSTAL_CODE_IS_REQUIRED":"PIN Code is required","COUNTRIES":"Countries","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAME_AS_BILLING_CHECKBOX":"Use the same as billing address","SHIPPING":"Shipping","BILLING":"Billing","ADDRESS":"Address","CANCEL_PAYMENT":"Cancel payment","CONTINUE_PAYMENT":"Continue payment","RETRY_PAYMENT":"Retry payment","CANCEL_PAYMENT_DESC":"Are you sure you want to cancel payment and return to the merchant website?","POWERED_BY":"Powered by","NAME_PLACEHOLDER":"ex. Abdullah Adel","PHONE_PLACEHOLDER":"Enter Phone Number","OTP_MODAL_HEADER":"6-digit code","OTP_HINT":"Please enter the code we’ve sent to","OTP_SUMBIT_BUTTON":"Submit","OTP_CANCEL_BUTTON":"Cancel","AFTER_PAYMENT_SUCCESS":"Thanks for your payment","ALREADY_PAID":"This link has already been paid","PAYMENT_FAILURE":"This payment was already processed with status pending","OTP_PLACEHOLDER":"Enter the OTP","MOBILE_NUMBER":"mobile number","SYMPL_ZERO_INTEREST":"0% interest on any card","OFFERS":"Offers","OFFER":"Offer"}');
|
|
35146
|
+
const kit_components_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"PAYMENT_EXPIRED":"Link has expired","PAYMENT_EXPIRED_DESCRIPTION":"You can start a new Checkout session with Paymob.","PAYMENT_EXPIRED_DESCRIPTION_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION":"The payment session ends after 3 unsuccessful trials. You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES":"You can start a new checkout session with Paymob.","PAYMENT_EXCEEDED_DESCRIPTION_QUICK_LINK":"The Payment session ends after 3 unsuccessful trials. Please ask your merchant to share a new payment link","PAYMENT_EXCEEDED_DESCRIPTION_NO_RETRIES_QUICK_LINK":"Please ask your merchant to share a new payment link","PAYMENT_DECLINED":"Payment declined","PAYMENT_SUCCESSFUL":"Payment Successful","PAYMENT_PENDING":"Payment pending","PAYMENT_PENDING_DESCRIPTION":"Your payment is being processed.","PAYMENT_INVALID":"Something went wrong!","PAYMENT_INVALID_DESCRIPTION":"Unable to process the payment due to an unexpected error.","TRY_AGAIN":"Try again","CANCEL_BTN":"Cancel","REDIRECT_BTN":"Return to the Website","TOTAL_AMOUNT":"Total Amount","ORDER_AMOUNT":"Order Amount","LOADING_SECONDS_LEFT":"seconds left","LOADING_AUTHORIZATION_REQUIRED":"Authorization required","LOADING_REDIRECTED_TO":"To proceed, please authorize this transaction using your","LOADING_REDIRECTED_TO_INFO":"mobile App. Please proceed with payment confirmation within the given time.","PLANS_RADIO_TITLE":"Plan","PLANS_RADIO_EMPTY":"No plans","OFFERS_RADIO_TITLE":"Select offer","OTP_RESEND_QUESTION":"Didn’t receive code?","OTP_RESEND":"Resend code in ","OTP_RESEND_BUTTON":"Re-send OTP","OTP_RESEND_SUCCESS":"OTP has been sent successfully","OTP_LOADING_MESSAGE":"Awaiting Transaction Response. Please don’t close or refresh the browser.","SAVED_CARDS_TITLE":"Saved cards","ADD_NEW_CARD_BTN":"New card","CVV_INPUT_LABEL":"Enter CVV","AMEX_CVV_INPUT_LABEL":"Enter 4-digit CVV","SAVED_CARD_IDENTIFIER":"Card Ending with","SAVED_CARDS_ACTION_BTN":"Pay","SAVED_CARDS_NEW_CARD_BTN":"Pay {{amount}} now","FULL_NAME":"Full name","CONTACT_INFO":"Contact information","SWITCH_PAYMENT_METHOD":"Switch payment method","BACK":"Back","DISCOUNT":"Discount of {{currency}} {{discount}} Applied","SECURE_CHECKOUT":"Checkout","SECURE_PAYMENT":"Secure payment","SAVED_CARD_INVALID":"Card Number is not valid, please add a new card","SAVED_CARD_EXPIRED":"Expired","SAVED_CARD_DELETE_BTN":"Yes, Delete it","SAVED_CARD_DELETE_CANCEL_BTN":"No. go back","SAVED_CARD_DELETE_TITLE":"Are you sure you want to delete the {{card}} ending in #** {{digits}}?","REDIRECTION_TO_MERCHANT":"Re-directing you to Merchant\'s Website in {{time}} seconds","REDIRECTION_TO_MERCHANT_LOADING":"We are redirecting you to the merchant website","CONFIRMING_TERMS":"By confirming your payment, you agree to","TERMS":"Terms and Conditions.","PAYMENT_THANKS":"Thanks for your payment","PAYMENT_COMPLETED":"Payment done","FAST_CHECKOUT_CREATED":"click account created","FAST_CHECKOUT_VERIFIED_TITLE":"You’re all set for Click checkout","FAST_CHECKOUT_VERIFIED_DESC":"Now you will enjoy the fastest checkout experience with Paymob","SKIP_TO_MERCHANT_BTN":"Skip to merchant website","COUNTRY_IS_REQUIRED":"Country is required","ADDRESS_IS_REQUIRED":"Address is required","CITY_IS_REQUIRED":"City is required","PROVINCE_IS_REQUIRED":"Province is required","STATE_IS_REQUIRED":"State is required","EMIRATE_IS_REQUIRED":"Emirate is required","POSTAL_CODE_IS_REQUIRED":"PIN Code is required","COUNTRIES":"Countries","NAME_IS_REQUIRED":"Name is required","EMAIL_IS_REQUIRED":"Email is required","EMAIL_NOT_VALID":"Email is not valid","PHONE_IS_REQUIRED":"Phone is required","PHONE_NOT_VALID":"Phone is not valid","SAME_AS_BILLING_CHECKBOX":"Use the same as billing address","SHIPPING":"Shipping","BILLING":"Billing","ADDRESS":"Address","CANCEL_PAYMENT":"Cancel payment","CONTINUE_PAYMENT":"Continue payment","RETRY_PAYMENT":"Retry payment","CANCEL_PAYMENT_DESC":"Are you sure you want to cancel payment and return to the merchant website?","POWERED_BY":"Powered by","NAME_PLACEHOLDER":"ex. Abdullah Adel","PHONE_PLACEHOLDER":"Enter Phone Number","OTP_MODAL_HEADER":"6-digit code","OTP_HINT":"Please enter the code we’ve sent to","OTP_SUMBIT_BUTTON":"Submit","OTP_CANCEL_BUTTON":"Cancel","AFTER_PAYMENT_SUCCESS":"Thanks for your payment","ALREADY_PAID":"This link has already been paid","PAYMENT_FAILURE":"This payment was already processed with status pending","OTP_PLACEHOLDER":"Enter the OTP","MOBILE_NUMBER":"mobile number","SYMPL_ZERO_INTEREST":"0% interest on any card","OFFERS":"Offers","OFFER":"Offer","ADD_SAVED_CARDS":"Enter new card details"}');
|
|
34965
35147
|
;// ../../localization/libs/nift/ar.json
|
|
34966
35148
|
const libs_nift_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK_DROPDOWN":"Select your bank","SELECT_BANK_BTN":"Continue","INFO_BANK_ACCOUNT_NO":"Bank account no.","INFO_BANK_ACCOUNT_NO_VALIDATION_MSG":"Please enter a valid account number!","INFO_CNIC":"CNIC","INFO_CNIC_VALIDATION_MSG":"Please enter a valid CNIC number!","INFO_BTN":"Continue","OTP_HINT":"Please enter the 6-digit code sent to your mobile number","OTP_BTN":"Verify OTP"}');
|
|
34967
35149
|
;// ../../localization/libs/nift/en.json
|
|
@@ -34981,11 +35163,11 @@ const libs_jazzcash_en_namespaceObject = /*#__PURE__*/JSON.parse('{"WALLET_ACCOU
|
|
|
34981
35163
|
;// ../../localization/libs/jazzcash/ur.json
|
|
34982
35164
|
const libs_jazzcash_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"WALLET_ACCOUNT_NO":"Wallet account no.","WALLET_ACCOUNT_NO_VALIDATION_MESSAGE":"Please enter a valid account number!","CNIC":"CNIC","CNIC_VALIDATION_MESSAGE":"Please enter the last 6 digits of CNIC!","BTN":"Continue","JAZZ_MOBILE_NO":"For Jazz Cash Mobile Number, Please approve the transaction within 1 minute.","NON_JAZZ_MOBILE_NO":"For Non-Jazz Cash Mobile Number, Please approve the transaction within 10 minute."}');
|
|
34983
35165
|
;// ../../localization/libs/valu/ar.json
|
|
34984
|
-
const libs_valu_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","
|
|
35166
|
+
const libs_valu_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","MAX_FLIP_MESSAGE":"Flip Amount can’t be greater than Order Amount","MAX_CASHBACK_MESSAGE":"Cashback Amount can’t be greater than Order Amount","MAX_TOTAL_MESSAGE":"Total Amount Entered in Cashback, Flip & Down Payment can’t be greater than order amount","MOBILE_CONFIRMATION_MESSAGE":"After mobile number confirmation an SMS will be sent to you with an OTP code to proceed with payment","OTP_ACTION_BTN":"Verify OTP","OTP_HINT":"Please enter the 6-digit code sent to","ACTION_BTN":"Continue","OTP_SENT_MESSAGE":"OTP will be sent to your registered mobile number","MOBILE_TITLE":"Mobile Number","OPTIONAL":"Optional","AGREE_PAY":"I agree to pay","IN_DELIVERY":"in cash upon delivery"}');
|
|
34985
35167
|
;// ../../localization/libs/valu/en.json
|
|
34986
|
-
const libs_valu_en_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","
|
|
35168
|
+
const libs_valu_en_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","MAX_FLIP_MESSAGE":"Flip Amount can’t be greater than Order Amount","MAX_CASHBACK_MESSAGE":"Cashback Amount can’t be greater than Order Amount","MAX_TOTAL_MESSAGE":"Total Amount Entered in Cashback, Flip & Down Payment can’t be greater than order amount","MOBILE_CONFIRMATION_MESSAGE":"After mobile number confirmation an SMS will be sent to you with an OTP code to proceed with payment","OTP_ACTION_BTN":"Verify OTP","OTP_HINT":"Please enter the 6-digit code sent to","ACTION_BTN":"Continue","OTP_SENT_MESSAGE":"OTP will be sent to your registered mobile number","MOBILE_TITLE":"Mobile Number","OPTIONAL":"Optional","AGREE_PAY":"I agree to pay","IN_DELIVERY":"in cash upon delivery"}');
|
|
34987
35169
|
;// ../../localization/libs/valu/ur.json
|
|
34988
|
-
const libs_valu_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","
|
|
35170
|
+
const libs_valu_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"FLIP":"Flip","CASH_BACK":"Cashback","DOWN_PAYMENT":"Down Payment","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","MAX_FLIP_MESSAGE":"Flip Amount can’t be greater than Order Amount","MAX_CASHBACK_MESSAGE":"Cashback Amount can’t be greater than Order Amount","MAX_TOTAL_MESSAGE":"Total Amount Entered in Cashback, Flip & Down Payment can’t be greater than order amount","MOBILE_CONFIRMATION_MESSAGE":"After mobile number confirmation an SMS will be sent to you with an OTP code to proceed with payment","OTP_ACTION_BTN":"Verify OTP","OTP_HINT":"Please enter the 6-digit code sent to","ACTION_BTN":"Continue","OTP_SENT_MESSAGE":"OTP will be sent to your registered mobile number","MOBILE_TITLE":"Mobile Number","OPTIONAL":"Optional","AGREE_PAY":"I agree to pay","IN_DELIVERY":"in cash upon delivery"}');
|
|
34989
35171
|
;// ../../localization/libs/postpay/ar.json
|
|
34990
35172
|
const libs_postpay_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"EMAIL_LABEL":"Email address","ACTION_BTN":"Continue"}');
|
|
34991
35173
|
;// ../../localization/libs/postpay/en.json
|
|
@@ -35017,11 +35199,11 @@ const libs_premium_en_namespaceObject = /*#__PURE__*/JSON.parse('{"INSTALMENT_PL
|
|
|
35017
35199
|
;// ../../localization/libs/premium/ur.json
|
|
35018
35200
|
const libs_premium_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"INSTALMENT_PLAN":"Instalment plan","MERCHANT_NAME":"Merchant name","TRANSACTION_AMOUNT":"Transaction amount","CARD_NUMBER":"Card number","OTP_HINT":"Please enter the 6-digit code sent","OTP_FAIL":"Didn’t receive code?","RESEND":"Resend","TENURE":"Tenure","SUBMIT_BTN":"Continue","OTP_BTN":"Verify OTP","OTP_MESSAGE":"You will receive an OTP on your registered mobile number."}');
|
|
35019
35201
|
;// ../../localization/libs/bank-installment/ar.json
|
|
35020
|
-
const libs_bank_installment_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected"}');
|
|
35202
|
+
const libs_bank_installment_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected","AGREE_TO_BANK":"I agree {{bankName}}","TERMS_AND_CONDITIONS":"Terms and Conditions","AGREE":"I agree"}');
|
|
35021
35203
|
;// ../../localization/libs/bank-installment/en.json
|
|
35022
|
-
const libs_bank_installment_en_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected"}');
|
|
35204
|
+
const libs_bank_installment_en_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected","AGREE_TO_BANK":"I agree {{bankName}}","TERMS_AND_CONDITIONS":"Terms and Conditions","AGREE":"I agree"}');
|
|
35023
35205
|
;// ../../localization/libs/bank-installment/ur.json
|
|
35024
|
-
const libs_bank_installment_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected"}');
|
|
35206
|
+
const libs_bank_installment_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"SELECT_BANK":"Select your bank","EMPTY_PLANS_HINT":"*Please select your bank","AMOUNT":"Amount","ACTION_BTN":"Continue","NOT_ELIGABLE_FOR_INSTALLMENT":"Not eligible for installments. Minimum order amount: ","PLAN_SELECTED":"Plan Selected","AGREE_TO_BANK":"I agree {{bankName}}","TERMS_AND_CONDITIONS":"Terms and Conditions","AGREE":"I agree"}');
|
|
35025
35207
|
;// ../../localization/libs/souhoola/ar.json
|
|
35026
35208
|
const libs_souhoola_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"PIN_CODE_LABEL":"Souhoola pin code","PIN_CODE_HINT":"Don’t have a Souhoola pin code?","SIGN_UP_MSG":"Sign up now","CONTINUE_ACTION_BTN":"Continue","DOWN_PAYMENT_LABEL":"Down payment","PAYMENT_SUMMARY":"Payment summary","MAX_DOWN_PAYMENT_MESSAGE":"Maximum down payment amount is 80% of total product price","MAX_DOWN_PAYMENT_MESSAGE_DISCOUNT":"Down Payment can\'t be greater than New Order Amount ({{amount}})","MAX_DOWN_PAYMENT_MESSAGE_NO_DISCOUNT":"Down Payment can\'t be greater than Order Amount","EMPTY_PLANS_HINT":"*Please enter your down payment","FINANCED_AMOUNT":"Financed amount","ADMIN_FEES":"Admin Fees","TRANSACTION_SUMMARY":"Transaction summary","INSTALLMENT_PLAN":"Installment plan","MONTHLY":"monthly","INSTALLMENT_RATE":"months/EGP","PAY_ACTION_BTN":"Pay","AGREEMENT_PAY":"I agree to pay","PAY_UPON_DELIVERY":"in cash upon delivery","DOWN_PAYMENT":"Down payment","OTP_ACTION_BTN":"Verify OTP","OTP_HINT":"Please enter the 5-digit code sent","ACTION_BTN":"Continue","PIN_CODE":"Pin Code","PIN_CODE_REQUIRED":"Pin Code is required","PIN_CODE_NOT_VALID":"Pin Code is not valid","PIN_CODE_PLACEHOLDER":"Enter 5 digit Souhoola Pin Code"}');
|
|
35027
35209
|
;// ../../localization/libs/souhoola/en.json
|
|
@@ -35047,11 +35229,11 @@ const libs_symplv3_en_namespaceObject = /*#__PURE__*/JSON.parse('{"REDIRECT_MESS
|
|
|
35047
35229
|
;// ../../localization/libs/symplv3/ur.json
|
|
35048
35230
|
const libs_symplv3_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"REDIRECT_MESSAGE":"We are redirecting you to Sympl’s website","WAIT_MESSAGE":"Please wait","ACTION_BTN":"Continue"}');
|
|
35049
35231
|
;// ../../localization/libs/aman/ar.json
|
|
35050
|
-
const libs_aman_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","
|
|
35232
|
+
const libs_aman_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","AMAN_2_STEP_DESCRIPTION":"Please share the reference number to complete your payment at any Aman or Basata outlet","AMAN_GENERATE_REFRENCE":"Generate reference number","AMAN_2_STEP_BTN":"Done","AMAN_CHECK_STATUS":"Check payment status"}');
|
|
35051
35233
|
;// ../../localization/libs/aman/en.json
|
|
35052
|
-
const libs_aman_en_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","AMAN_2_STEP_DESCRIPTION":"Please share the reference number to complete your payment at any Aman or
|
|
35234
|
+
const libs_aman_en_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","AMAN_2_STEP_DESCRIPTION":"Please share the reference number to complete your payment at any Aman or Basata outlet","AMAN_GENERATE_REFRENCE":"Generate reference number","AMAN_2_STEP_BTN":"Done","AMAN_CHECK_STATUS":"Check payment status"}');
|
|
35053
35235
|
;// ../../localization/libs/aman/ur.json
|
|
35054
|
-
const libs_aman_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","
|
|
35236
|
+
const libs_aman_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"AMAN_1_STEP_BTN":"Generate Code","AMAN_2_STEP_TITLE":"Reference number","AMAN_2_STEP_PLACEHOLDER":"123456","AMAN_2_STEP_DESCRIPTION":"Please share the reference number to complete your payment at any Aman or Basata outlet","AMAN_GENERATE_REFRENCE":"Generate reference number","AMAN_2_STEP_BTN":"Done","AMAN_CHECK_STATUS":"Check payment status"}');
|
|
35055
35237
|
;// ../../localization/libs/amanv3/ar.json
|
|
35056
35238
|
const libs_amanv3_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"ACTION_BTN":"Continue","NOT_AMAN_CUSTOMER":"It you\'re not Aman customer, click here to register","OTP_ERROR":"The OTP is Wrong","OTP_HINT":"Please enter the 6-digit code sent","OTP_BTN":"Verify OTP","OTP_ACTION_BTN":"Verify OTP","RESEND_BTN":"Resend","EMPTY_PLANS_HINT":"*Please choose your installment plan","AGREE_PAY":"I agree to pay","IN_DELIVERY":"in cash upon delivery"}');
|
|
35057
35239
|
;// ../../localization/libs/amanv3/en.json
|
|
@@ -35089,9 +35271,9 @@ const flash_contact_en_namespaceObject = /*#__PURE__*/JSON.parse('{"ERR_SOMETHIN
|
|
|
35089
35271
|
;// ../../localization/apps/flash/contact/ur.json
|
|
35090
35272
|
const flash_contact_ur_namespaceObject = {};
|
|
35091
35273
|
;// ../../localization/apps/flash/payments/en.json
|
|
35092
|
-
const payments_en_namespaceObject = /*#__PURE__*/JSON.parse('{"LOADING_MODAL_MESSAGE":"Loading..."}');
|
|
35274
|
+
const payments_en_namespaceObject = /*#__PURE__*/JSON.parse('{"LOADING_MODAL_MESSAGE":"Loading...","CLICK_BTN":"Click here to Proceed","SPOTII":"Spotii","TABBY":"Tabby","POSTPAY":"Postpay","STCPAY":"STC Pay","CAGG":"Kiosk","SYMPL":"Sympl","PREMIUM":"Premium","FORSA":"Forsa","SOUHOOLAV2":"Souhoola","UIG":"Wallet","VALU":"ValU","AMAN":"Aman","NIFT":"NIFT","EASYPAISA":"Easy Paisa","EASYPAISADIRECT":"Easy Paisa","JAZZCASH":"Jazz Cash","TAMARA":"Tamara","SOUHOOLAV3":"Souhoola","PREMIUM6":"Premium Card","SYMPL_V2":"Sympl","TRU":"TRU","AMANV3":"Aman","CONTACT":"Contact","OMANNET":"Oman Net","SPARK_IT":"Spark IT","PAYPAL":"Paypal","MIGS":"Card","LUCKY_INSTALLMENT":"Lucky Installment","INSTALLMENT":"Bank Installments","Apple Pay":"Apple Pay","Google Pay":"Google Pay","MID_TAKSEET":"Mogo","HALAN":"Halan","INSTAPAY":"InstaPay","DIGITAL_WALLET":"Digital Wallet","Pay Later":"Pay Later"}');
|
|
35093
35275
|
;// ../../localization/apps/flash/payments/ar.json
|
|
35094
|
-
const payments_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"LOADING_MODAL_MESSAGE":"Loading..."}');
|
|
35276
|
+
const payments_ar_namespaceObject = /*#__PURE__*/JSON.parse('{"LOADING_MODAL_MESSAGE":"Loading...","CLICK_BTN":"اضغط هنا للمتابعة","SPOTII":"سبوتي","TABBY":"تابي","POSTPAY":"بوست باي","STCPAY":"إس تي سي باي","CAGG":"كشك","SYMPL":"سيمبل","PREMIUM":"بريميوم","FORSA":"فرصة","SOUHOOLAV2":"سهولة","UIG":"محفظة","VALU":"فاليو","AMAN":"أمان","NIFT":"نيفت","EASYPAISA":"إيزي بايسا","EASYPAISADIRECT":"إيزي بايسا","JAZZCASH":"جاز كاش","TAMARA":"تمارا","SOUHOOLAV3":"سهولة","PREMIUM6":"بطاقة بريميوم","SYMPL_V2":"سيمبل","TRU":"ترو","AMANV3":"أمان","CONTACT":"كونتكت","OMANNET":"عمان نت","SPARK_IT":"سبارك آي تي","PAYPAL":"بايبال","MIGS":"بطاقة","LUCKY_INSTALLMENT":"تقسيط لاكي","INSTALLMENT":"تقسيط بنكي","Apple Pay":"آبل باي","Google Pay":"جوجل باي","MID_TAKSEET":"موغو","HALAN":"حالاً","INSTAPAY":"إنستا باي","DIGITAL_WALLET":"محفظة رقمية","Pay Later":"ادفع لاحقًا"}');
|
|
35095
35277
|
;// ../../localization/apps/flash/payments/ur.json
|
|
35096
35278
|
const payments_ur_namespaceObject = /*#__PURE__*/JSON.parse('{"LOADING_MODAL_MESSAGE":"Loading..."}');
|
|
35097
35279
|
;// ../../localization/libs/halan/ar.json
|
|
@@ -35539,6 +35721,7 @@ class Pixel {
|
|
|
35539
35721
|
this._error = null;
|
|
35540
35722
|
this._paymentsRef = null;
|
|
35541
35723
|
this._integrationType = void 0;
|
|
35724
|
+
this._discounts = void 0;
|
|
35542
35725
|
this._options = Object.assign({}, options, {
|
|
35543
35726
|
showPaymobLogo: (_options$showPaymobLo = options.showPaymobLogo) != null ? _options$showPaymobLo : true
|
|
35544
35727
|
});
|
|
@@ -35587,11 +35770,13 @@ class Pixel {
|
|
|
35587
35770
|
const {
|
|
35588
35771
|
res,
|
|
35589
35772
|
paymentList,
|
|
35590
|
-
savedCards
|
|
35591
|
-
|
|
35773
|
+
savedCards,
|
|
35774
|
+
discounts
|
|
35775
|
+
} = await fetchPayments(publicKey, clientSecret, paymentMethods, this._baseURL);
|
|
35592
35776
|
if (res.status === 200) {
|
|
35593
35777
|
this._paymentList = paymentList;
|
|
35594
35778
|
this._savedCards = savedCards;
|
|
35779
|
+
this._discounts = discounts;
|
|
35595
35780
|
} else {
|
|
35596
35781
|
var _res$data;
|
|
35597
35782
|
this._error = (res == null || (_res$data = res.data) == null ? void 0 : _res$data.msg) || defaultErrorMsg;
|
|
@@ -35693,7 +35878,8 @@ class Pixel {
|
|
|
35693
35878
|
}, this._options.cardValidationChanged && {
|
|
35694
35879
|
onCardValidationChanged: this.handleCardValidationChanged.bind(this)
|
|
35695
35880
|
}, {
|
|
35696
|
-
integrationType: this._integrationType
|
|
35881
|
+
integrationType: this._integrationType,
|
|
35882
|
+
discounts: this._discounts
|
|
35697
35883
|
}), Date.now())
|
|
35698
35884
|
})
|
|
35699
35885
|
}));
|