@bootpay/client-js 5.0.1-rc.2 → 5.0.1
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/dist/index.es.js +488 -522
- package/dist/index.umd.js +4 -4
- package/dist/package.json.d.ts +2 -2
- package/dist/src/bootpay-widget.d.ts +5 -2
- package/dist/src/bootpay.d.ts +1 -1
- package/dist/src/index.d.ts +2 -43
- package/dist/src/lib/bootpay-widget.d.ts +5 -5
- package/dist/src/lib/locale/message.d.ts +8 -0
- package/dist/src/lib/template/payment.d.ts +0 -3
- package/dist/src/models/bootpay-interface.d.ts +3 -20
- package/dist/src/models/bootpay-widget-interface.d.ts +4 -10
- package/dist/src/support/util.d.ts +1 -0
- package/dist/src/support/widget-store.d.ts +9 -20
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode('.bootpay-progress-background{position:fixed;display:block;background-color:transparent;inset:0;text-align:center;z-index:200000;white-space:nowrap}.bootpay-progress-background.blur-off{background-color:transparent}.bootpay-progress-background:before{display:inline-block;height:100%;content:" ";vertical-align:middle}.bootpay-progress-background .progress-message-window{display:inline-block;text-align:center;max-width:600px;border-radius:3px;width:100%;background-color:transparent;padding:0;vertical-align:middle}@media (min-width: 600px){.bootpay-progress-background .progress-message-window{padding:1rem}}.bootpay-progress-background .progress-message-window .bootpay-spinner{display:inline-block;width:50px;height:50px;border-radius:50%;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2);border-left:2px solid #ffffff;animation:spin 1s infinite linear}.bootpay-progress-background .progress-message-window .alfred-text{margin-top:1rem}.bootpay-progress-background .progress-message-window .alfred-text span.alfred-inner-text{font-weight:400;color:#eee}@keyframes spin{0%{transform:rotate(0);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}50%{transform:rotate(180deg);border-left:3px solid #ffffff;border-top:2px solid rgba(255,255,255,.4);border-right:2px solid rgba(255,255,255,.4);border-bottom:2px solid rgba(255,255,255,.4)}to{transform:rotate(360deg);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}}body.bootpay-open{position:fixed!important;inset:0;padding:0;margin:0;height:100vh!important;overflow:hidden!important;-webkit-overflow-scrolling:auto!important}body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:transparent}@media (min-width: 600px){body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:#000000b3}}body.bootpay-open .bootpay-payment-background{position:fixed;inset:0;display:block;text-align:center;background-color:#000000b3;z-index:9999}body.bootpay-open .bootpay-payment-background:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert{padding:1rem}body.bootpay-open .bootpay-payment-background.__alert:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{position:absolute;max-width:400px;width:100%;background-color:#fff;border-radius:12px;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;box-shadow:0 0 10px #0000001a}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-in{animation:__bootpay-fade-in .1s linear}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-out{animation:__bootpay-fade-out .1s linear}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{left:1rem;right:1rem;width:auto;top:50%;transform:translateY(-50%)}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header{padding:1rem;text-align:left;font-size:20px;font-weight:600;position:relative}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{top:40%;transform:translateY(-50%);padding:0;right:1rem}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{right:8px;top:50%;transform:translateY(-55%)}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:before,body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:after{background-color:#333;width:1px}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-body{padding:1.5rem 1rem;text-align:center;font-size:16px;color:#333;line-height:1.5}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer{display:flex;justify-content:flex-end;border-top:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close{flex:0 1 50%;padding:1rem;background-color:#fff;color:#333;font-size:16px;cursor:pointer;border:0;outline:none}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.border-right{border-right:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close:hover{background-color:#e0e0e0}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary{color:#507cf3;font-weight:600}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary:hover{color:#3f6be2}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:relative;display:inline-block;vertical-align:middle}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{max-width:470px;height:90%}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:absolute;inset:0;border-radius:0!important}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{position:absolute;max-width:inherit;inset:0;height:100%}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%!important;height:100%!important;border-radius:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.transparent{background:transparent!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{position:absolute;display:none;top:-32px;right:4px;color:#fff;font-size:32px;text-decoration:none;outline:none;box-shadow:none;border:0;background-color:transparent}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#fff!important}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{top:1rem;right:16px;color:#000;padding:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#000!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:relative;width:400px;height:600px;display:none;background-color:#fff;border-radius:5px;overflow:hidden}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:absolute;inset:0;width:100%;height:100%;border-radius:0}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.header{position:absolute;left:0;right:0;top:0;height:50px;color:#333;background-color:#fff;text-align:left}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body{position:absolute;inset:50px 0 72px;padding:1rem;text-align:left;font-size:14px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-item-name-id{font-size:16px;color:#888;font-weight:400!important;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-price-id{font-size:36px;color:#333;font-weight:700;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>.agree-text{position:absolute;bottom:1rem;left:0;right:0;color:#888;font-size:14px;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer{position:absolute;left:0;right:0;bottom:0;height:72px;padding:0 1rem;margin:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button{display:block;width:100%;padding:1rem;outline:none;border:none;background-color:#507cf3;border-radius:5px;color:#fff;font-size:16px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:hover,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:active{outline:none;box-shadow:none}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%;height:100%;display:none;border:0!important;outline:0!important;border-radius:0;box-shadow:none}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:0;height:0;border:0;outline:0;border-radius:0!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{border-radius:0}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{width:0;height:0;border:0;outline:0;border-radius:20px!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-up{animation:__bootpay-slide-up .3s linear}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-down{animation:__bootpay-slide-down .3s linear}body.bootpay-open .bootpay-payment-background>.bootpay-confirm-window>iframe{display:none;width:1px;height:1px;background:transparent;border:0!important;outline:0!important}.bootpay-close-btn{position:absolute;box-shadow:none;background-color:#fff;outline:0;z-index:10001;right:8px;top:8px;height:21px;width:21px;border:0!important;outline:none!important}@media (min-width: 600px){.bootpay-close-btn{right:4px;top:-32px;width:25px;height:25px;background:transparent;outline:none!important;border:0!important}}.bootpay-close-btn.active,.bootpay-close-btn:focus{outline:none!important;border:0!important}.bootpay-close-btn:before,.bootpay-close-btn:after{position:absolute;left:8px;top:2px;content:" ";height:24px;width:1px;background-color:#333}@media (min-width: 600px){.bootpay-close-btn:before,.bootpay-close-btn:after{height:23px;top:0;width:2px;background-color:#fff}}.bootpay-close-btn:before{transform:rotate(45deg)}.bootpay-close-btn:after{transform:rotate(-45deg)}@keyframes __bootpay-slide-up{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes __bootpay-slide-down{0%{transform:translateY(0);opacity:1}to{transform:translateY(150%);opacity:0}}@keyframes __bootpay-fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes __bootpay-fade-out{0%{opacity:1;scale:1}to{opacity:0;scale:.9}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode('.bootpay-progress-background{position:fixed;display:block;background-color:transparent;inset:0;text-align:center;z-index:200000;white-space:nowrap}.bootpay-progress-background.blur-off{background-color:transparent}.bootpay-progress-background:before{display:inline-block;height:100%;content:" ";vertical-align:middle}.bootpay-progress-background .progress-message-window{display:inline-block;text-align:center;max-width:600px;border-radius:3px;width:100%;background-color:transparent;padding:0;vertical-align:middle}@media (min-width: 600px){.bootpay-progress-background .progress-message-window{padding:1rem}}.bootpay-progress-background .progress-message-window .bootpay-spinner{display:inline-block;width:50px;height:50px;border-radius:50%;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2);border-left:2px solid #ffffff;animation:spin 1s infinite linear}.bootpay-progress-background .progress-message-window .alfred-text{margin-top:1rem}.bootpay-progress-background .progress-message-window .alfred-text span.alfred-inner-text{font-weight:400;color:#eee}@keyframes spin{0%{transform:rotate(0);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}50%{transform:rotate(180deg);border-left:3px solid #ffffff;border-top:2px solid rgba(255,255,255,.4);border-right:2px solid rgba(255,255,255,.4);border-bottom:2px solid rgba(255,255,255,.4)}to{transform:rotate(360deg);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}}body.bootpay-open{position:fixed!important;inset:0;padding:0;margin:0;height:100vh!important;overflow:hidden!important;-webkit-overflow-scrolling:auto!important}body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:transparent}@media (min-width: 600px){body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:#000000b3}}body.bootpay-open .bootpay-payment-background{position:fixed;inset:0;display:block;text-align:center;background-color:#000000b3;z-index:9999}body.bootpay-open .bootpay-payment-background:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert{padding:1rem}body.bootpay-open .bootpay-payment-background.__alert:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{position:absolute;max-width:400px;width:100%;background-color:#fff;border-radius:12px;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;box-shadow:0 0 10px #0000001a}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-in{animation:__bootpay-fade-in .1s linear}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-out{animation:__bootpay-fade-out .1s linear}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{left:1rem;right:1rem;width:auto;top:50%;transform:translateY(-50%)}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header{padding:1rem;text-align:left;font-size:20px;font-weight:600;position:relative}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{top:40%;transform:translateY(-50%);padding:0;right:1rem}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{right:8px;top:50%;transform:translateY(-55%)}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:before,body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:after{background-color:#333;width:1px}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-body{padding:1.5rem 1rem;text-align:center;font-size:16px;color:#333;line-height:1.5}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer{display:flex;justify-content:flex-end;border-top:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close{flex:0 1 50%;padding:1rem;background-color:#fff;color:#333;font-size:16px;cursor:pointer;border:0;outline:none}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.border-right{border-right:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close:hover{background-color:#e0e0e0}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary{color:#507cf3;font-weight:600}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary:hover{color:#3f6be2}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:relative;display:inline-block;vertical-align:middle}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{max-width:470px;height:90%}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:absolute;inset:0;border-radius:0!important}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{position:absolute;max-width:inherit;inset:0;height:100%}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%!important;height:100%!important;border-radius:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.transparent{background:transparent!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{position:absolute;display:none;top:-32px;right:4px;color:#fff;font-size:32px;text-decoration:none;outline:none;box-shadow:none;border:0;background-color:transparent}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#fff!important}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{top:1rem;right:16px;color:#000;padding:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#000!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:relative;width:400px;height:600px;display:none;background-color:#fff;border-radius:5px;overflow:hidden}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:absolute;inset:0;width:100%;height:100%;border-radius:0}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.header{position:absolute;left:0;right:0;top:0;height:50px;color:#333;background-color:#fff;text-align:left}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body{position:absolute;inset:50px 0 72px;padding:1rem;text-align:left;font-size:14px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-item-name-id{font-size:16px;color:#888;font-weight:400!important;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-price-id{font-size:36px;color:#333;font-weight:700;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>.agree-text{position:absolute;bottom:1rem;left:0;right:0;color:#888;font-size:14px;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer{position:absolute;left:0;right:0;bottom:0;height:72px;padding:0 1rem;margin:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button{display:block;width:100%;padding:1rem;outline:none;border:none;background-color:#507cf3;border-radius:5px;color:#fff;font-size:16px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:hover,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:active{outline:none;box-shadow:none}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%;height:100%;display:none;border:0!important;outline:0!important;border-radius:0;box-shadow:none}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:0;height:0;border:0;outline:0;border-radius:0!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{border-radius:0}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{width:0;height:0;border:0;outline:0;border-radius:20px!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-up{animation:__bootpay-slide-up .3s linear}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-down{animation:__bootpay-slide-down .3s linear}body.bootpay-open .bootpay-payment-background>.bootpay-confirm-window>iframe{display:none;width:1px;height:1px;background:transparent;border:0!important;outline:0!important}.bootpay-close-btn{position:absolute;box-shadow:none;background-color:transparent;outline:0;z-index:10001;right:8px;top:8px;height:21px;width:21px;border:0!important;outline:none!important}@media (min-width: 600px){.bootpay-close-btn{right:4px;top:-32px;width:25px;height:25px;background:transparent;outline:none!important;border:0!important}}.bootpay-close-btn.active,.bootpay-close-btn:focus{outline:none!important;border:0!important}.bootpay-close-btn:before,.bootpay-close-btn:after{position:absolute;left:8px;top:2px;content:" ";height:24px;width:1px;background-color:#333}@media (min-width: 600px){.bootpay-close-btn:before,.bootpay-close-btn:after{height:23px;top:0;width:2px;background-color:#fff}}.bootpay-close-btn:before{transform:rotate(45deg)}.bootpay-close-btn:after{transform:rotate(-45deg)}@keyframes __bootpay-slide-up{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes __bootpay-slide-down{0%{transform:translateY(0);opacity:1}to{transform:translateY(150%);opacity:0}}@keyframes __bootpay-fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes __bootpay-fade-out{0%{opacity:1;scale:1}to{opacity:0;scale:.9}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -78,13 +78,20 @@ const toUrl = (url, parameters = void 0) => {
|
|
|
78
78
|
return url;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
+
const mergeHash = (target, source) => {
|
|
82
|
+
for (let key in source) {
|
|
83
|
+
if (source.hasOwnProperty(key)) {
|
|
84
|
+
target[key] = source[key];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return target;
|
|
88
|
+
};
|
|
81
89
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
82
90
|
function getDefaultExportFromCjs(x) {
|
|
83
91
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
84
92
|
}
|
|
85
93
|
function getAugmentedNamespace(n) {
|
|
86
|
-
if (n.__esModule)
|
|
87
|
-
return n;
|
|
94
|
+
if (n.__esModule) return n;
|
|
88
95
|
var f = n.default;
|
|
89
96
|
if (typeof f == "function") {
|
|
90
97
|
var a = function a2() {
|
|
@@ -94,8 +101,7 @@ function getAugmentedNamespace(n) {
|
|
|
94
101
|
return f.apply(this, arguments);
|
|
95
102
|
};
|
|
96
103
|
a.prototype = f.prototype;
|
|
97
|
-
} else
|
|
98
|
-
a = {};
|
|
104
|
+
} else a = {};
|
|
99
105
|
Object.defineProperty(a, "__esModule", { value: true });
|
|
100
106
|
Object.keys(n).forEach(function(k) {
|
|
101
107
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -121,8 +127,7 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
121
127
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
122
128
|
var hasRequiredCore;
|
|
123
129
|
function requireCore() {
|
|
124
|
-
if (hasRequiredCore)
|
|
125
|
-
return core.exports;
|
|
130
|
+
if (hasRequiredCore) return core.exports;
|
|
126
131
|
hasRequiredCore = 1;
|
|
127
132
|
(function(module, exports) {
|
|
128
133
|
(function(root, factory) {
|
|
@@ -738,107 +743,113 @@ function requireCore() {
|
|
|
738
743
|
var encUtf8Exports = encUtf8.exports;
|
|
739
744
|
const toUtf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
|
|
740
745
|
var encBase64 = { exports: {} };
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
wordArray
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
var
|
|
776
|
-
var
|
|
777
|
-
|
|
778
|
-
|
|
746
|
+
var hasRequiredEncBase64;
|
|
747
|
+
function requireEncBase64() {
|
|
748
|
+
if (hasRequiredEncBase64) return encBase64.exports;
|
|
749
|
+
hasRequiredEncBase64 = 1;
|
|
750
|
+
(function(module, exports) {
|
|
751
|
+
(function(root, factory) {
|
|
752
|
+
{
|
|
753
|
+
module.exports = factory(requireCore());
|
|
754
|
+
}
|
|
755
|
+
})(commonjsGlobal, function(CryptoJS2) {
|
|
756
|
+
(function() {
|
|
757
|
+
var C = CryptoJS2;
|
|
758
|
+
var C_lib = C.lib;
|
|
759
|
+
var WordArray = C_lib.WordArray;
|
|
760
|
+
var C_enc = C.enc;
|
|
761
|
+
C_enc.Base64 = {
|
|
762
|
+
/**
|
|
763
|
+
* Converts a word array to a Base64 string.
|
|
764
|
+
*
|
|
765
|
+
* @param {WordArray} wordArray The word array.
|
|
766
|
+
*
|
|
767
|
+
* @return {string} The Base64 string.
|
|
768
|
+
*
|
|
769
|
+
* @static
|
|
770
|
+
*
|
|
771
|
+
* @example
|
|
772
|
+
*
|
|
773
|
+
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
774
|
+
*/
|
|
775
|
+
stringify: function(wordArray) {
|
|
776
|
+
var words = wordArray.words;
|
|
777
|
+
var sigBytes = wordArray.sigBytes;
|
|
778
|
+
var map = this._map;
|
|
779
|
+
wordArray.clamp();
|
|
780
|
+
var base64Chars = [];
|
|
781
|
+
for (var i = 0; i < sigBytes; i += 3) {
|
|
782
|
+
var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
783
|
+
var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255;
|
|
784
|
+
var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255;
|
|
785
|
+
var triplet = byte1 << 16 | byte2 << 8 | byte3;
|
|
786
|
+
for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
|
|
787
|
+
base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 63));
|
|
788
|
+
}
|
|
779
789
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
790
|
+
var paddingChar = map.charAt(64);
|
|
791
|
+
if (paddingChar) {
|
|
792
|
+
while (base64Chars.length % 4) {
|
|
793
|
+
base64Chars.push(paddingChar);
|
|
794
|
+
}
|
|
785
795
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
796
|
+
return base64Chars.join("");
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
* Converts a Base64 string to a word array.
|
|
800
|
+
*
|
|
801
|
+
* @param {string} base64Str The Base64 string.
|
|
802
|
+
*
|
|
803
|
+
* @return {WordArray} The word array.
|
|
804
|
+
*
|
|
805
|
+
* @static
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
*
|
|
809
|
+
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
810
|
+
*/
|
|
811
|
+
parse: function(base64Str) {
|
|
812
|
+
var base64StrLength = base64Str.length;
|
|
813
|
+
var map = this._map;
|
|
814
|
+
var reverseMap = this._reverseMap;
|
|
815
|
+
if (!reverseMap) {
|
|
816
|
+
reverseMap = this._reverseMap = [];
|
|
817
|
+
for (var j = 0; j < map.length; j++) {
|
|
818
|
+
reverseMap[map.charCodeAt(j)] = j;
|
|
819
|
+
}
|
|
810
820
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
821
|
+
var paddingChar = map.charAt(64);
|
|
822
|
+
if (paddingChar) {
|
|
823
|
+
var paddingIndex = base64Str.indexOf(paddingChar);
|
|
824
|
+
if (paddingIndex !== -1) {
|
|
825
|
+
base64StrLength = paddingIndex;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return parseLoop(base64Str, base64StrLength, reverseMap);
|
|
829
|
+
},
|
|
830
|
+
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
831
|
+
};
|
|
832
|
+
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
833
|
+
var words = [];
|
|
834
|
+
var nBytes = 0;
|
|
835
|
+
for (var i = 0; i < base64StrLength; i++) {
|
|
836
|
+
if (i % 4) {
|
|
837
|
+
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
|
|
838
|
+
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
|
|
839
|
+
var bitsCombined = bits1 | bits2;
|
|
840
|
+
words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
|
|
841
|
+
nBytes++;
|
|
817
842
|
}
|
|
818
843
|
}
|
|
819
|
-
return
|
|
820
|
-
},
|
|
821
|
-
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
822
|
-
};
|
|
823
|
-
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
824
|
-
var words = [];
|
|
825
|
-
var nBytes = 0;
|
|
826
|
-
for (var i = 0; i < base64StrLength; i++) {
|
|
827
|
-
if (i % 4) {
|
|
828
|
-
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
|
|
829
|
-
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
|
|
830
|
-
var bitsCombined = bits1 | bits2;
|
|
831
|
-
words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
|
|
832
|
-
nBytes++;
|
|
833
|
-
}
|
|
844
|
+
return WordArray.create(words, nBytes);
|
|
834
845
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
})
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
var encBase64Exports =
|
|
846
|
+
})();
|
|
847
|
+
return CryptoJS2.enc.Base64;
|
|
848
|
+
});
|
|
849
|
+
})(encBase64);
|
|
850
|
+
return encBase64.exports;
|
|
851
|
+
}
|
|
852
|
+
var encBase64Exports = requireEncBase64();
|
|
842
853
|
const Base64 = /* @__PURE__ */ getDefaultExportFromCjs(encBase64Exports);
|
|
843
854
|
class BootpayManager {
|
|
844
855
|
$blank(value) {
|
|
@@ -1088,7 +1099,7 @@ class SessionStorageManager extends StorageManager {
|
|
|
1088
1099
|
}
|
|
1089
1100
|
const SessionStorage = new SessionStorageManager();
|
|
1090
1101
|
const name = "@bootpay/client-js";
|
|
1091
|
-
const version = "5.0.1
|
|
1102
|
+
const version = "5.0.1";
|
|
1092
1103
|
const main = "dist/index.es.js";
|
|
1093
1104
|
const types = "dist/src/index.d.ts";
|
|
1094
1105
|
const styles = "dist/index.css";
|
|
@@ -1126,7 +1137,7 @@ const devDependencies = {
|
|
|
1126
1137
|
sass: "^1.63.4",
|
|
1127
1138
|
"sass-loader": "^13.3.2",
|
|
1128
1139
|
"style-loader": "^3.3.3",
|
|
1129
|
-
vite: "^5.
|
|
1140
|
+
vite: "^5.4.3",
|
|
1130
1141
|
"vite-plugin-dts": "^3.6.4",
|
|
1131
1142
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
1132
1143
|
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
@@ -1227,14 +1238,12 @@ const Environment = {
|
|
|
1227
1238
|
return [this.WIDGET_URL[this.mode], uri].join("/");
|
|
1228
1239
|
},
|
|
1229
1240
|
isMobile() {
|
|
1230
|
-
if (typeof window === "undefined")
|
|
1231
|
-
return false;
|
|
1241
|
+
if (typeof window === "undefined") return false;
|
|
1232
1242
|
const a = window.navigator.userAgent || window.navigator.vendor;
|
|
1233
1243
|
return /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/.test(a);
|
|
1234
1244
|
},
|
|
1235
1245
|
isMobileSafari() {
|
|
1236
|
-
if (typeof window === "undefined")
|
|
1237
|
-
return false;
|
|
1246
|
+
if (typeof window === "undefined") return false;
|
|
1238
1247
|
const agent = window.navigator.userAgent;
|
|
1239
1248
|
return (agent.match(/iPad/i) || agent.match(/iPhone/i)) && !agent.match(/CriOS/i);
|
|
1240
1249
|
},
|
|
@@ -1629,11 +1638,9 @@ function endsWith(str, searchString, position) {
|
|
|
1629
1638
|
return lastIndex !== -1 && lastIndex === position;
|
|
1630
1639
|
}
|
|
1631
1640
|
function toArray(thing) {
|
|
1632
|
-
if (!thing)
|
|
1633
|
-
return null;
|
|
1641
|
+
if (!thing) return null;
|
|
1634
1642
|
var i = thing.length;
|
|
1635
|
-
if (isUndefined(i))
|
|
1636
|
-
return null;
|
|
1643
|
+
if (isUndefined(i)) return null;
|
|
1637
1644
|
var arr = new Array(i);
|
|
1638
1645
|
while (i-- > 0) {
|
|
1639
1646
|
arr[i] = thing[i];
|
|
@@ -1827,8 +1834,7 @@ function toFormData$1(obj, formData) {
|
|
|
1827
1834
|
formData = formData || new FormData();
|
|
1828
1835
|
var stack = [];
|
|
1829
1836
|
function convertValue(value) {
|
|
1830
|
-
if (value === null)
|
|
1831
|
-
return "";
|
|
1837
|
+
if (value === null) return "";
|
|
1832
1838
|
if (utils$6.isDate(value)) {
|
|
1833
1839
|
return value.toISOString();
|
|
1834
1840
|
}
|
|
@@ -1844,8 +1850,7 @@ function toFormData$1(obj, formData) {
|
|
|
1844
1850
|
}
|
|
1845
1851
|
stack.push(data2);
|
|
1846
1852
|
utils$6.forEach(data2, function each(value, key) {
|
|
1847
|
-
if (utils$6.isUndefined(value))
|
|
1848
|
-
return;
|
|
1853
|
+
if (utils$6.isUndefined(value)) return;
|
|
1849
1854
|
var fullKey = parentKey ? parentKey + "." + key : key;
|
|
1850
1855
|
var arr;
|
|
1851
1856
|
if (value && !parentKey && typeof value === "object") {
|
|
@@ -1872,8 +1877,7 @@ var toFormData_1 = toFormData$1;
|
|
|
1872
1877
|
var settle;
|
|
1873
1878
|
var hasRequiredSettle;
|
|
1874
1879
|
function requireSettle() {
|
|
1875
|
-
if (hasRequiredSettle)
|
|
1876
|
-
return settle;
|
|
1880
|
+
if (hasRequiredSettle) return settle;
|
|
1877
1881
|
hasRequiredSettle = 1;
|
|
1878
1882
|
var AxiosError2 = AxiosError_1;
|
|
1879
1883
|
settle = function settle2(resolve, reject, response) {
|
|
@@ -1895,8 +1899,7 @@ function requireSettle() {
|
|
|
1895
1899
|
var cookies;
|
|
1896
1900
|
var hasRequiredCookies;
|
|
1897
1901
|
function requireCookies() {
|
|
1898
|
-
if (hasRequiredCookies)
|
|
1899
|
-
return cookies;
|
|
1902
|
+
if (hasRequiredCookies) return cookies;
|
|
1900
1903
|
hasRequiredCookies = 1;
|
|
1901
1904
|
var utils2 = utils$b;
|
|
1902
1905
|
cookies = utils2.isStandardBrowserEnv() ? (
|
|
@@ -1962,8 +1965,7 @@ var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
|
1962
1965
|
var parseHeaders;
|
|
1963
1966
|
var hasRequiredParseHeaders;
|
|
1964
1967
|
function requireParseHeaders() {
|
|
1965
|
-
if (hasRequiredParseHeaders)
|
|
1966
|
-
return parseHeaders;
|
|
1968
|
+
if (hasRequiredParseHeaders) return parseHeaders;
|
|
1967
1969
|
hasRequiredParseHeaders = 1;
|
|
1968
1970
|
var utils2 = utils$b;
|
|
1969
1971
|
var ignoreDuplicateOf = [
|
|
@@ -2015,8 +2017,7 @@ function requireParseHeaders() {
|
|
|
2015
2017
|
var isURLSameOrigin;
|
|
2016
2018
|
var hasRequiredIsURLSameOrigin;
|
|
2017
2019
|
function requireIsURLSameOrigin() {
|
|
2018
|
-
if (hasRequiredIsURLSameOrigin)
|
|
2019
|
-
return isURLSameOrigin;
|
|
2020
|
+
if (hasRequiredIsURLSameOrigin) return isURLSameOrigin;
|
|
2020
2021
|
hasRequiredIsURLSameOrigin = 1;
|
|
2021
2022
|
var utils2 = utils$b;
|
|
2022
2023
|
isURLSameOrigin = utils2.isStandardBrowserEnv() ? (
|
|
@@ -2063,8 +2064,7 @@ function requireIsURLSameOrigin() {
|
|
|
2063
2064
|
var CanceledError_1;
|
|
2064
2065
|
var hasRequiredCanceledError;
|
|
2065
2066
|
function requireCanceledError() {
|
|
2066
|
-
if (hasRequiredCanceledError)
|
|
2067
|
-
return CanceledError_1;
|
|
2067
|
+
if (hasRequiredCanceledError) return CanceledError_1;
|
|
2068
2068
|
hasRequiredCanceledError = 1;
|
|
2069
2069
|
var AxiosError2 = AxiosError_1;
|
|
2070
2070
|
var utils2 = utils$b;
|
|
@@ -2081,8 +2081,7 @@ function requireCanceledError() {
|
|
|
2081
2081
|
var parseProtocol;
|
|
2082
2082
|
var hasRequiredParseProtocol;
|
|
2083
2083
|
function requireParseProtocol() {
|
|
2084
|
-
if (hasRequiredParseProtocol)
|
|
2085
|
-
return parseProtocol;
|
|
2084
|
+
if (hasRequiredParseProtocol) return parseProtocol;
|
|
2086
2085
|
hasRequiredParseProtocol = 1;
|
|
2087
2086
|
parseProtocol = function parseProtocol2(url) {
|
|
2088
2087
|
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -2093,8 +2092,7 @@ function requireParseProtocol() {
|
|
|
2093
2092
|
var xhr;
|
|
2094
2093
|
var hasRequiredXhr;
|
|
2095
2094
|
function requireXhr() {
|
|
2096
|
-
if (hasRequiredXhr)
|
|
2097
|
-
return xhr;
|
|
2095
|
+
if (hasRequiredXhr) return xhr;
|
|
2098
2096
|
hasRequiredXhr = 1;
|
|
2099
2097
|
var utils2 = utils$b;
|
|
2100
2098
|
var settle2 = requireSettle();
|
|
@@ -2251,8 +2249,7 @@ function requireXhr() {
|
|
|
2251
2249
|
var _null;
|
|
2252
2250
|
var hasRequired_null;
|
|
2253
2251
|
function require_null() {
|
|
2254
|
-
if (hasRequired_null)
|
|
2255
|
-
return _null;
|
|
2252
|
+
if (hasRequired_null) return _null;
|
|
2256
2253
|
hasRequired_null = 1;
|
|
2257
2254
|
_null = null;
|
|
2258
2255
|
return _null;
|
|
@@ -2290,7 +2287,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
2290
2287
|
}
|
|
2291
2288
|
}
|
|
2292
2289
|
}
|
|
2293
|
-
return (
|
|
2290
|
+
return (0, JSON.stringify)(rawValue);
|
|
2294
2291
|
}
|
|
2295
2292
|
var defaults$3 = {
|
|
2296
2293
|
transitional: transitionalDefaults,
|
|
@@ -2379,8 +2376,7 @@ var transformData$1 = function transformData(data2, headers, fns) {
|
|
|
2379
2376
|
var isCancel$1;
|
|
2380
2377
|
var hasRequiredIsCancel;
|
|
2381
2378
|
function requireIsCancel() {
|
|
2382
|
-
if (hasRequiredIsCancel)
|
|
2383
|
-
return isCancel$1;
|
|
2379
|
+
if (hasRequiredIsCancel) return isCancel$1;
|
|
2384
2380
|
hasRequiredIsCancel = 1;
|
|
2385
2381
|
isCancel$1 = function isCancel2(value) {
|
|
2386
2382
|
return !!(value && value.__CANCEL__);
|
|
@@ -2524,8 +2520,7 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
2524
2520
|
var data;
|
|
2525
2521
|
var hasRequiredData;
|
|
2526
2522
|
function requireData() {
|
|
2527
|
-
if (hasRequiredData)
|
|
2528
|
-
return data;
|
|
2523
|
+
if (hasRequiredData) return data;
|
|
2529
2524
|
hasRequiredData = 1;
|
|
2530
2525
|
data = {
|
|
2531
2526
|
"version": "0.27.2"
|
|
@@ -2707,8 +2702,7 @@ var Axios_1 = Axios$1;
|
|
|
2707
2702
|
var CancelToken_1;
|
|
2708
2703
|
var hasRequiredCancelToken;
|
|
2709
2704
|
function requireCancelToken() {
|
|
2710
|
-
if (hasRequiredCancelToken)
|
|
2711
|
-
return CancelToken_1;
|
|
2705
|
+
if (hasRequiredCancelToken) return CancelToken_1;
|
|
2712
2706
|
hasRequiredCancelToken = 1;
|
|
2713
2707
|
var CanceledError2 = requireCanceledError();
|
|
2714
2708
|
function CancelToken(executor) {
|
|
@@ -2721,8 +2715,7 @@ function requireCancelToken() {
|
|
|
2721
2715
|
});
|
|
2722
2716
|
var token = this;
|
|
2723
2717
|
this.promise.then(function(cancel) {
|
|
2724
|
-
if (!token._listeners)
|
|
2725
|
-
return;
|
|
2718
|
+
if (!token._listeners) return;
|
|
2726
2719
|
var i;
|
|
2727
2720
|
var l = token._listeners.length;
|
|
2728
2721
|
for (i = 0; i < l; i++) {
|
|
@@ -2790,8 +2783,7 @@ function requireCancelToken() {
|
|
|
2790
2783
|
var spread;
|
|
2791
2784
|
var hasRequiredSpread;
|
|
2792
2785
|
function requireSpread() {
|
|
2793
|
-
if (hasRequiredSpread)
|
|
2794
|
-
return spread;
|
|
2786
|
+
if (hasRequiredSpread) return spread;
|
|
2795
2787
|
hasRequiredSpread = 1;
|
|
2796
2788
|
spread = function spread2(callback) {
|
|
2797
2789
|
return function wrap(arr) {
|
|
@@ -2803,8 +2795,7 @@ function requireSpread() {
|
|
|
2803
2795
|
var isAxiosError;
|
|
2804
2796
|
var hasRequiredIsAxiosError;
|
|
2805
2797
|
function requireIsAxiosError() {
|
|
2806
|
-
if (hasRequiredIsAxiosError)
|
|
2807
|
-
return isAxiosError;
|
|
2798
|
+
if (hasRequiredIsAxiosError) return isAxiosError;
|
|
2808
2799
|
hasRequiredIsAxiosError = 1;
|
|
2809
2800
|
var utils2 = utils$b;
|
|
2810
2801
|
isAxiosError = function isAxiosError2(payload) {
|
|
@@ -2850,8 +2841,7 @@ var aes = { exports: {} };
|
|
|
2850
2841
|
var md5 = { exports: {} };
|
|
2851
2842
|
var hasRequiredMd5;
|
|
2852
2843
|
function requireMd5() {
|
|
2853
|
-
if (hasRequiredMd5)
|
|
2854
|
-
return md5.exports;
|
|
2844
|
+
if (hasRequiredMd5) return md5.exports;
|
|
2855
2845
|
hasRequiredMd5 = 1;
|
|
2856
2846
|
(function(module, exports) {
|
|
2857
2847
|
(function(root, factory) {
|
|
@@ -3030,8 +3020,7 @@ var evpkdf = { exports: {} };
|
|
|
3030
3020
|
var sha1 = { exports: {} };
|
|
3031
3021
|
var hasRequiredSha1;
|
|
3032
3022
|
function requireSha1() {
|
|
3033
|
-
if (hasRequiredSha1)
|
|
3034
|
-
return sha1.exports;
|
|
3023
|
+
if (hasRequiredSha1) return sha1.exports;
|
|
3035
3024
|
hasRequiredSha1 = 1;
|
|
3036
3025
|
(function(module, exports) {
|
|
3037
3026
|
(function(root, factory) {
|
|
@@ -3121,8 +3110,7 @@ function requireSha1() {
|
|
|
3121
3110
|
var hmac = { exports: {} };
|
|
3122
3111
|
var hasRequiredHmac;
|
|
3123
3112
|
function requireHmac() {
|
|
3124
|
-
if (hasRequiredHmac)
|
|
3125
|
-
return hmac.exports;
|
|
3113
|
+
if (hasRequiredHmac) return hmac.exports;
|
|
3126
3114
|
hasRequiredHmac = 1;
|
|
3127
3115
|
(function(module, exports) {
|
|
3128
3116
|
(function(root, factory) {
|
|
@@ -3227,8 +3215,7 @@ function requireHmac() {
|
|
|
3227
3215
|
}
|
|
3228
3216
|
var hasRequiredEvpkdf;
|
|
3229
3217
|
function requireEvpkdf() {
|
|
3230
|
-
if (hasRequiredEvpkdf)
|
|
3231
|
-
return evpkdf.exports;
|
|
3218
|
+
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
3232
3219
|
hasRequiredEvpkdf = 1;
|
|
3233
3220
|
(function(module, exports) {
|
|
3234
3221
|
(function(root, factory, undef) {
|
|
@@ -3318,8 +3305,7 @@ function requireEvpkdf() {
|
|
|
3318
3305
|
var cipherCore = { exports: {} };
|
|
3319
3306
|
var hasRequiredCipherCore;
|
|
3320
3307
|
function requireCipherCore() {
|
|
3321
|
-
if (hasRequiredCipherCore)
|
|
3322
|
-
return cipherCore.exports;
|
|
3308
|
+
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
3323
3309
|
hasRequiredCipherCore = 1;
|
|
3324
3310
|
(function(module, exports) {
|
|
3325
3311
|
(function(root, factory, undef) {
|
|
@@ -3955,153 +3941,159 @@ function requireCipherCore() {
|
|
|
3955
3941
|
})(cipherCore);
|
|
3956
3942
|
return cipherCore.exports;
|
|
3957
3943
|
}
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
var C_algo = C.algo;
|
|
3969
|
-
var SBOX = [];
|
|
3970
|
-
var INV_SBOX = [];
|
|
3971
|
-
var SUB_MIX_0 = [];
|
|
3972
|
-
var SUB_MIX_1 = [];
|
|
3973
|
-
var SUB_MIX_2 = [];
|
|
3974
|
-
var SUB_MIX_3 = [];
|
|
3975
|
-
var INV_SUB_MIX_0 = [];
|
|
3976
|
-
var INV_SUB_MIX_1 = [];
|
|
3977
|
-
var INV_SUB_MIX_2 = [];
|
|
3978
|
-
var INV_SUB_MIX_3 = [];
|
|
3944
|
+
var hasRequiredAes;
|
|
3945
|
+
function requireAes() {
|
|
3946
|
+
if (hasRequiredAes) return aes.exports;
|
|
3947
|
+
hasRequiredAes = 1;
|
|
3948
|
+
(function(module, exports) {
|
|
3949
|
+
(function(root, factory, undef) {
|
|
3950
|
+
{
|
|
3951
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
3952
|
+
}
|
|
3953
|
+
})(commonjsGlobal, function(CryptoJS2) {
|
|
3979
3954
|
(function() {
|
|
3980
|
-
var
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
var
|
|
3989
|
-
var
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
var
|
|
3996
|
-
var
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
SUB_MIX_0[x] = t << 24 | t >>> 8;
|
|
4000
|
-
SUB_MIX_1[x] = t << 16 | t >>> 16;
|
|
4001
|
-
SUB_MIX_2[x] = t << 8 | t >>> 24;
|
|
4002
|
-
SUB_MIX_3[x] = t;
|
|
4003
|
-
var t = x8 * 16843009 ^ x4 * 65537 ^ x2 * 257 ^ x * 16843008;
|
|
4004
|
-
INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;
|
|
4005
|
-
INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;
|
|
4006
|
-
INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;
|
|
4007
|
-
INV_SUB_MIX_3[sx] = t;
|
|
4008
|
-
if (!x) {
|
|
4009
|
-
x = xi = 1;
|
|
4010
|
-
} else {
|
|
4011
|
-
x = x2 ^ d[d[d[x8 ^ x2]]];
|
|
4012
|
-
xi ^= d[d[xi]];
|
|
4013
|
-
}
|
|
4014
|
-
}
|
|
4015
|
-
})();
|
|
4016
|
-
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
4017
|
-
var AES2 = C_algo.AES = BlockCipher.extend({
|
|
4018
|
-
_doReset: function() {
|
|
4019
|
-
var t;
|
|
4020
|
-
if (this._nRounds && this._keyPriorReset === this._key) {
|
|
4021
|
-
return;
|
|
4022
|
-
}
|
|
4023
|
-
var key = this._keyPriorReset = this._key;
|
|
4024
|
-
var keyWords = key.words;
|
|
4025
|
-
var keySize = key.sigBytes / 4;
|
|
4026
|
-
var nRounds = this._nRounds = keySize + 6;
|
|
4027
|
-
var ksRows = (nRounds + 1) * 4;
|
|
4028
|
-
var keySchedule = this._keySchedule = [];
|
|
4029
|
-
for (var ksRow = 0; ksRow < ksRows; ksRow++) {
|
|
4030
|
-
if (ksRow < keySize) {
|
|
4031
|
-
keySchedule[ksRow] = keyWords[ksRow];
|
|
3955
|
+
var C = CryptoJS2;
|
|
3956
|
+
var C_lib = C.lib;
|
|
3957
|
+
var BlockCipher = C_lib.BlockCipher;
|
|
3958
|
+
var C_algo = C.algo;
|
|
3959
|
+
var SBOX = [];
|
|
3960
|
+
var INV_SBOX = [];
|
|
3961
|
+
var SUB_MIX_0 = [];
|
|
3962
|
+
var SUB_MIX_1 = [];
|
|
3963
|
+
var SUB_MIX_2 = [];
|
|
3964
|
+
var SUB_MIX_3 = [];
|
|
3965
|
+
var INV_SUB_MIX_0 = [];
|
|
3966
|
+
var INV_SUB_MIX_1 = [];
|
|
3967
|
+
var INV_SUB_MIX_2 = [];
|
|
3968
|
+
var INV_SUB_MIX_3 = [];
|
|
3969
|
+
(function() {
|
|
3970
|
+
var d = [];
|
|
3971
|
+
for (var i = 0; i < 256; i++) {
|
|
3972
|
+
if (i < 128) {
|
|
3973
|
+
d[i] = i << 1;
|
|
4032
3974
|
} else {
|
|
4033
|
-
|
|
4034
|
-
if (!(ksRow % keySize)) {
|
|
4035
|
-
t = t << 8 | t >>> 24;
|
|
4036
|
-
t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255];
|
|
4037
|
-
t ^= RCON[ksRow / keySize | 0] << 24;
|
|
4038
|
-
} else if (keySize > 6 && ksRow % keySize == 4) {
|
|
4039
|
-
t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255];
|
|
4040
|
-
}
|
|
4041
|
-
keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
|
|
3975
|
+
d[i] = i << 1 ^ 283;
|
|
4042
3976
|
}
|
|
4043
3977
|
}
|
|
4044
|
-
var
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
3978
|
+
var x = 0;
|
|
3979
|
+
var xi = 0;
|
|
3980
|
+
for (var i = 0; i < 256; i++) {
|
|
3981
|
+
var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;
|
|
3982
|
+
sx = sx >>> 8 ^ sx & 255 ^ 99;
|
|
3983
|
+
SBOX[x] = sx;
|
|
3984
|
+
INV_SBOX[sx] = x;
|
|
3985
|
+
var x2 = d[x];
|
|
3986
|
+
var x4 = d[x2];
|
|
3987
|
+
var x8 = d[x4];
|
|
3988
|
+
var t = d[sx] * 257 ^ sx * 16843008;
|
|
3989
|
+
SUB_MIX_0[x] = t << 24 | t >>> 8;
|
|
3990
|
+
SUB_MIX_1[x] = t << 16 | t >>> 16;
|
|
3991
|
+
SUB_MIX_2[x] = t << 8 | t >>> 24;
|
|
3992
|
+
SUB_MIX_3[x] = t;
|
|
3993
|
+
var t = x8 * 16843009 ^ x4 * 65537 ^ x2 * 257 ^ x * 16843008;
|
|
3994
|
+
INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;
|
|
3995
|
+
INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;
|
|
3996
|
+
INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;
|
|
3997
|
+
INV_SUB_MIX_3[sx] = t;
|
|
3998
|
+
if (!x) {
|
|
3999
|
+
x = xi = 1;
|
|
4049
4000
|
} else {
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
if (invKsRow < 4 || ksRow <= 4) {
|
|
4053
|
-
invKeySchedule[invKsRow] = t;
|
|
4054
|
-
} else {
|
|
4055
|
-
invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 255]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 255]] ^ INV_SUB_MIX_3[SBOX[t & 255]];
|
|
4001
|
+
x = x2 ^ d[d[d[x8 ^ x2]]];
|
|
4002
|
+
xi ^= d[d[xi]];
|
|
4056
4003
|
}
|
|
4057
4004
|
}
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4005
|
+
})();
|
|
4006
|
+
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
4007
|
+
var AES2 = C_algo.AES = BlockCipher.extend({
|
|
4008
|
+
_doReset: function() {
|
|
4009
|
+
var t;
|
|
4010
|
+
if (this._nRounds && this._keyPriorReset === this._key) {
|
|
4011
|
+
return;
|
|
4012
|
+
}
|
|
4013
|
+
var key = this._keyPriorReset = this._key;
|
|
4014
|
+
var keyWords = key.words;
|
|
4015
|
+
var keySize = key.sigBytes / 4;
|
|
4016
|
+
var nRounds = this._nRounds = keySize + 6;
|
|
4017
|
+
var ksRows = (nRounds + 1) * 4;
|
|
4018
|
+
var keySchedule = this._keySchedule = [];
|
|
4019
|
+
for (var ksRow = 0; ksRow < ksRows; ksRow++) {
|
|
4020
|
+
if (ksRow < keySize) {
|
|
4021
|
+
keySchedule[ksRow] = keyWords[ksRow];
|
|
4022
|
+
} else {
|
|
4023
|
+
t = keySchedule[ksRow - 1];
|
|
4024
|
+
if (!(ksRow % keySize)) {
|
|
4025
|
+
t = t << 8 | t >>> 24;
|
|
4026
|
+
t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255];
|
|
4027
|
+
t ^= RCON[ksRow / keySize | 0] << 24;
|
|
4028
|
+
} else if (keySize > 6 && ksRow % keySize == 4) {
|
|
4029
|
+
t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255];
|
|
4030
|
+
}
|
|
4031
|
+
keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
|
|
4032
|
+
}
|
|
4033
|
+
}
|
|
4034
|
+
var invKeySchedule = this._invKeySchedule = [];
|
|
4035
|
+
for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
|
|
4036
|
+
var ksRow = ksRows - invKsRow;
|
|
4037
|
+
if (invKsRow % 4) {
|
|
4038
|
+
var t = keySchedule[ksRow];
|
|
4039
|
+
} else {
|
|
4040
|
+
var t = keySchedule[ksRow - 4];
|
|
4041
|
+
}
|
|
4042
|
+
if (invKsRow < 4 || ksRow <= 4) {
|
|
4043
|
+
invKeySchedule[invKsRow] = t;
|
|
4044
|
+
} else {
|
|
4045
|
+
invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 255]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 255]] ^ INV_SUB_MIX_3[SBOX[t & 255]];
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
},
|
|
4049
|
+
encryptBlock: function(M, offset) {
|
|
4050
|
+
this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
|
|
4051
|
+
},
|
|
4052
|
+
decryptBlock: function(M, offset) {
|
|
4053
|
+
var t = M[offset + 1];
|
|
4054
|
+
M[offset + 1] = M[offset + 3];
|
|
4055
|
+
M[offset + 3] = t;
|
|
4056
|
+
this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
|
|
4057
|
+
var t = M[offset + 1];
|
|
4058
|
+
M[offset + 1] = M[offset + 3];
|
|
4059
|
+
M[offset + 3] = t;
|
|
4060
|
+
},
|
|
4061
|
+
_doCryptBlock: function(M, offset, keySchedule, SUB_MIX_02, SUB_MIX_12, SUB_MIX_22, SUB_MIX_32, SBOX2) {
|
|
4062
|
+
var nRounds = this._nRounds;
|
|
4063
|
+
var s0 = M[offset] ^ keySchedule[0];
|
|
4064
|
+
var s1 = M[offset + 1] ^ keySchedule[1];
|
|
4065
|
+
var s2 = M[offset + 2] ^ keySchedule[2];
|
|
4066
|
+
var s3 = M[offset + 3] ^ keySchedule[3];
|
|
4067
|
+
var ksRow = 4;
|
|
4068
|
+
for (var round = 1; round < nRounds; round++) {
|
|
4069
|
+
var t0 = SUB_MIX_02[s0 >>> 24] ^ SUB_MIX_12[s1 >>> 16 & 255] ^ SUB_MIX_22[s2 >>> 8 & 255] ^ SUB_MIX_32[s3 & 255] ^ keySchedule[ksRow++];
|
|
4070
|
+
var t1 = SUB_MIX_02[s1 >>> 24] ^ SUB_MIX_12[s2 >>> 16 & 255] ^ SUB_MIX_22[s3 >>> 8 & 255] ^ SUB_MIX_32[s0 & 255] ^ keySchedule[ksRow++];
|
|
4071
|
+
var t2 = SUB_MIX_02[s2 >>> 24] ^ SUB_MIX_12[s3 >>> 16 & 255] ^ SUB_MIX_22[s0 >>> 8 & 255] ^ SUB_MIX_32[s1 & 255] ^ keySchedule[ksRow++];
|
|
4072
|
+
var t3 = SUB_MIX_02[s3 >>> 24] ^ SUB_MIX_12[s0 >>> 16 & 255] ^ SUB_MIX_22[s1 >>> 8 & 255] ^ SUB_MIX_32[s2 & 255] ^ keySchedule[ksRow++];
|
|
4073
|
+
s0 = t0;
|
|
4074
|
+
s1 = t1;
|
|
4075
|
+
s2 = t2;
|
|
4076
|
+
s3 = t3;
|
|
4077
|
+
}
|
|
4078
|
+
var t0 = (SBOX2[s0 >>> 24] << 24 | SBOX2[s1 >>> 16 & 255] << 16 | SBOX2[s2 >>> 8 & 255] << 8 | SBOX2[s3 & 255]) ^ keySchedule[ksRow++];
|
|
4079
|
+
var t1 = (SBOX2[s1 >>> 24] << 24 | SBOX2[s2 >>> 16 & 255] << 16 | SBOX2[s3 >>> 8 & 255] << 8 | SBOX2[s0 & 255]) ^ keySchedule[ksRow++];
|
|
4080
|
+
var t2 = (SBOX2[s2 >>> 24] << 24 | SBOX2[s3 >>> 16 & 255] << 16 | SBOX2[s0 >>> 8 & 255] << 8 | SBOX2[s1 & 255]) ^ keySchedule[ksRow++];
|
|
4081
|
+
var t3 = (SBOX2[s3 >>> 24] << 24 | SBOX2[s0 >>> 16 & 255] << 16 | SBOX2[s1 >>> 8 & 255] << 8 | SBOX2[s2 & 255]) ^ keySchedule[ksRow++];
|
|
4082
|
+
M[offset] = t0;
|
|
4083
|
+
M[offset + 1] = t1;
|
|
4084
|
+
M[offset + 2] = t2;
|
|
4085
|
+
M[offset + 3] = t3;
|
|
4086
|
+
},
|
|
4087
|
+
keySize: 256 / 32
|
|
4088
|
+
});
|
|
4089
|
+
C.AES = BlockCipher._createHelper(AES2);
|
|
4090
|
+
})();
|
|
4091
|
+
return CryptoJS2.AES;
|
|
4092
|
+
});
|
|
4093
|
+
})(aes);
|
|
4094
|
+
return aes.exports;
|
|
4095
|
+
}
|
|
4096
|
+
var aesExports = requireAes();
|
|
4105
4097
|
const AES = /* @__PURE__ */ getDefaultExportFromCjs(aesExports);
|
|
4106
4098
|
class Resource {
|
|
4107
4099
|
constructor() {
|
|
@@ -4518,7 +4510,7 @@ const BootpayMessage = {
|
|
|
4518
4510
|
en: "Start Payment..."
|
|
4519
4511
|
},
|
|
4520
4512
|
CARD_SUBSCRIPTION: {
|
|
4521
|
-
ko: "
|
|
4513
|
+
ko: "자동결제 정보를 불러오는 중입니다...",
|
|
4522
4514
|
en: "Automatic payment will start..."
|
|
4523
4515
|
},
|
|
4524
4516
|
AUTH: {
|
|
@@ -4543,7 +4535,7 @@ const BootpayMessage = {
|
|
|
4543
4535
|
en: "If you agree with the purchase details, please proceed with the payment"
|
|
4544
4536
|
},
|
|
4545
4537
|
CARD_SUBSCRIPTION: {
|
|
4546
|
-
ko: '
|
|
4538
|
+
ko: '자동결제에 동의하면 "계속하기" 버튼을 눌러 진행해주세요',
|
|
4547
4539
|
en: 'If you agree to automatic card payment, press the "Continue" button to proceed'
|
|
4548
4540
|
},
|
|
4549
4541
|
AUTH: {
|
|
@@ -4606,6 +4598,14 @@ const BootpayMessage = {
|
|
|
4606
4598
|
ko: "간편결제로 결제하려면, 등록된 카드 혹은 계좌를 선택해주세요",
|
|
4607
4599
|
en: "Please select a registered card or account to pay with Easy Payment"
|
|
4608
4600
|
},
|
|
4601
|
+
widgetTypeNotPayment: {
|
|
4602
|
+
ko: "결제 위젯 요청이 아닙니다. 결제 위젯이 아닌 경우 requestSubscription 함수를 이용해주세요.",
|
|
4603
|
+
en: "This is not a payment widget. If it is not a payment widget, use the requestSubscription function."
|
|
4604
|
+
},
|
|
4605
|
+
widgetTypeNotSubscription: {
|
|
4606
|
+
ko: "정기결제 위젯 요청이 아닙니다. 정기결제 위젯이 아닌 경우 requestPayment 함수를 이용해주세요.",
|
|
4607
|
+
en: "This is not a subscription widget. If it is not a subscription widget, use the requestPayment function."
|
|
4608
|
+
},
|
|
4609
4609
|
getLocaleMessage: (key, locale) => {
|
|
4610
4610
|
const keys = key.split(".");
|
|
4611
4611
|
const message = keys.reduce((a, b) => a[b], BootpayMessage);
|
|
@@ -4708,8 +4708,7 @@ class TemplatePaymentManager extends TemplateManager {
|
|
|
4708
4708
|
<input type="hidden" name="token" value="${encrypted.token}" />
|
|
4709
4709
|
`;
|
|
4710
4710
|
form.action = this.$env.toApi(this.apiUrl());
|
|
4711
|
-
if (this.$present(data2.extra) && data2.extra.popup)
|
|
4712
|
-
;
|
|
4711
|
+
if (this.$present(data2.extra) && data2.extra.popup) ;
|
|
4713
4712
|
form.target = this.$iFrameId;
|
|
4714
4713
|
form.submit();
|
|
4715
4714
|
});
|
|
@@ -4916,7 +4915,7 @@ class TemplatePaymentManager extends TemplateManager {
|
|
|
4916
4915
|
}
|
|
4917
4916
|
if (popupPrice !== void 0) {
|
|
4918
4917
|
if (parseFloat(displayData.price) > 0) {
|
|
4919
|
-
popupPrice.innerText = String(displayData.price);
|
|
4918
|
+
popupPrice.innerText = String(displayData.price).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
4920
4919
|
} else {
|
|
4921
4920
|
popupPrice.remove();
|
|
4922
4921
|
}
|
|
@@ -5238,8 +5237,11 @@ const _BootpayRequestPaymentManager = class _BootpayRequestPaymentManager extend
|
|
|
5238
5237
|
user_token: data2.user_token,
|
|
5239
5238
|
metadata: data2.metadata,
|
|
5240
5239
|
redirect_url: data2.redirect_url,
|
|
5240
|
+
widget: data2.widget,
|
|
5241
|
+
widget_key: data2.widget_key,
|
|
5242
|
+
widget_sandbox: data2.widget_sandbox,
|
|
5241
5243
|
platform_type: this.platformType,
|
|
5242
|
-
ver:
|
|
5244
|
+
ver: Environment.packageVersion,
|
|
5243
5245
|
sdk_version: Environment.sdkVersion,
|
|
5244
5246
|
sdk_type: Environment.sdkName,
|
|
5245
5247
|
locale: Environment.locale,
|
|
@@ -5621,8 +5623,7 @@ class BootpayAnalyticsManager extends Resource {
|
|
|
5621
5623
|
}
|
|
5622
5624
|
const BootpayAnalytics = new BootpayAnalyticsManager();
|
|
5623
5625
|
(function() {
|
|
5624
|
-
if (typeof window === "undefined" || typeof window.CustomEvent === "function")
|
|
5625
|
-
return false;
|
|
5626
|
+
if (typeof window === "undefined" || typeof window.CustomEvent === "function") return false;
|
|
5626
5627
|
function CustomEvent2(event, params) {
|
|
5627
5628
|
params = params || { bubbles: false, cancelable: false, detail: void 0 };
|
|
5628
5629
|
let evt = document.createEvent("CustomEvent");
|
|
@@ -6448,8 +6449,7 @@ var cryptoJs = { exports: {} };
|
|
|
6448
6449
|
var x64Core = { exports: {} };
|
|
6449
6450
|
var hasRequiredX64Core;
|
|
6450
6451
|
function requireX64Core() {
|
|
6451
|
-
if (hasRequiredX64Core)
|
|
6452
|
-
return x64Core.exports;
|
|
6452
|
+
if (hasRequiredX64Core) return x64Core.exports;
|
|
6453
6453
|
hasRequiredX64Core = 1;
|
|
6454
6454
|
(function(module, exports) {
|
|
6455
6455
|
(function(root, factory) {
|
|
@@ -6705,8 +6705,7 @@ function requireX64Core() {
|
|
|
6705
6705
|
var libTypedarrays = { exports: {} };
|
|
6706
6706
|
var hasRequiredLibTypedarrays;
|
|
6707
6707
|
function requireLibTypedarrays() {
|
|
6708
|
-
if (hasRequiredLibTypedarrays)
|
|
6709
|
-
return libTypedarrays.exports;
|
|
6708
|
+
if (hasRequiredLibTypedarrays) return libTypedarrays.exports;
|
|
6710
6709
|
hasRequiredLibTypedarrays = 1;
|
|
6711
6710
|
(function(module, exports) {
|
|
6712
6711
|
(function(root, factory) {
|
|
@@ -6750,8 +6749,7 @@ function requireLibTypedarrays() {
|
|
|
6750
6749
|
var encUtf16 = { exports: {} };
|
|
6751
6750
|
var hasRequiredEncUtf16;
|
|
6752
6751
|
function requireEncUtf16() {
|
|
6753
|
-
if (hasRequiredEncUtf16)
|
|
6754
|
-
return encUtf16.exports;
|
|
6752
|
+
if (hasRequiredEncUtf16) return encUtf16.exports;
|
|
6755
6753
|
hasRequiredEncUtf16 = 1;
|
|
6756
6754
|
(function(module, exports) {
|
|
6757
6755
|
(function(root, factory) {
|
|
@@ -6868,8 +6866,7 @@ function requireEncUtf16() {
|
|
|
6868
6866
|
var encBase64url = { exports: {} };
|
|
6869
6867
|
var hasRequiredEncBase64url;
|
|
6870
6868
|
function requireEncBase64url() {
|
|
6871
|
-
if (hasRequiredEncBase64url)
|
|
6872
|
-
return encBase64url.exports;
|
|
6869
|
+
if (hasRequiredEncBase64url) return encBase64url.exports;
|
|
6873
6870
|
hasRequiredEncBase64url = 1;
|
|
6874
6871
|
(function(module, exports) {
|
|
6875
6872
|
(function(root, factory) {
|
|
@@ -6981,8 +6978,7 @@ function requireEncBase64url() {
|
|
|
6981
6978
|
var sha256 = { exports: {} };
|
|
6982
6979
|
var hasRequiredSha256;
|
|
6983
6980
|
function requireSha256() {
|
|
6984
|
-
if (hasRequiredSha256)
|
|
6985
|
-
return sha256.exports;
|
|
6981
|
+
if (hasRequiredSha256) return sha256.exports;
|
|
6986
6982
|
hasRequiredSha256 = 1;
|
|
6987
6983
|
(function(module, exports) {
|
|
6988
6984
|
(function(root, factory) {
|
|
@@ -7102,8 +7098,7 @@ function requireSha256() {
|
|
|
7102
7098
|
var sha224 = { exports: {} };
|
|
7103
7099
|
var hasRequiredSha224;
|
|
7104
7100
|
function requireSha224() {
|
|
7105
|
-
if (hasRequiredSha224)
|
|
7106
|
-
return sha224.exports;
|
|
7101
|
+
if (hasRequiredSha224) return sha224.exports;
|
|
7107
7102
|
hasRequiredSha224 = 1;
|
|
7108
7103
|
(function(module, exports) {
|
|
7109
7104
|
(function(root, factory, undef) {
|
|
@@ -7147,8 +7142,7 @@ function requireSha224() {
|
|
|
7147
7142
|
var sha512 = { exports: {} };
|
|
7148
7143
|
var hasRequiredSha512;
|
|
7149
7144
|
function requireSha512() {
|
|
7150
|
-
if (hasRequiredSha512)
|
|
7151
|
-
return sha512.exports;
|
|
7145
|
+
if (hasRequiredSha512) return sha512.exports;
|
|
7152
7146
|
hasRequiredSha512 = 1;
|
|
7153
7147
|
(function(module, exports) {
|
|
7154
7148
|
(function(root, factory, undef) {
|
|
@@ -7429,8 +7423,7 @@ function requireSha512() {
|
|
|
7429
7423
|
var sha384 = { exports: {} };
|
|
7430
7424
|
var hasRequiredSha384;
|
|
7431
7425
|
function requireSha384() {
|
|
7432
|
-
if (hasRequiredSha384)
|
|
7433
|
-
return sha384.exports;
|
|
7426
|
+
if (hasRequiredSha384) return sha384.exports;
|
|
7434
7427
|
hasRequiredSha384 = 1;
|
|
7435
7428
|
(function(module, exports) {
|
|
7436
7429
|
(function(root, factory, undef) {
|
|
@@ -7475,8 +7468,7 @@ function requireSha384() {
|
|
|
7475
7468
|
var sha3 = { exports: {} };
|
|
7476
7469
|
var hasRequiredSha3;
|
|
7477
7470
|
function requireSha3() {
|
|
7478
|
-
if (hasRequiredSha3)
|
|
7479
|
-
return sha3.exports;
|
|
7471
|
+
if (hasRequiredSha3) return sha3.exports;
|
|
7480
7472
|
hasRequiredSha3 = 1;
|
|
7481
7473
|
(function(module, exports) {
|
|
7482
7474
|
(function(root, factory, undef) {
|
|
@@ -7677,8 +7669,7 @@ function requireSha3() {
|
|
|
7677
7669
|
var ripemd160 = { exports: {} };
|
|
7678
7670
|
var hasRequiredRipemd160;
|
|
7679
7671
|
function requireRipemd160() {
|
|
7680
|
-
if (hasRequiredRipemd160)
|
|
7681
|
-
return ripemd160.exports;
|
|
7672
|
+
if (hasRequiredRipemd160) return ripemd160.exports;
|
|
7682
7673
|
hasRequiredRipemd160 = 1;
|
|
7683
7674
|
(function(module, exports) {
|
|
7684
7675
|
(function(root, factory) {
|
|
@@ -8158,8 +8149,7 @@ function requireRipemd160() {
|
|
|
8158
8149
|
var pbkdf2 = { exports: {} };
|
|
8159
8150
|
var hasRequiredPbkdf2;
|
|
8160
8151
|
function requirePbkdf2() {
|
|
8161
|
-
if (hasRequiredPbkdf2)
|
|
8162
|
-
return pbkdf2.exports;
|
|
8152
|
+
if (hasRequiredPbkdf2) return pbkdf2.exports;
|
|
8163
8153
|
hasRequiredPbkdf2 = 1;
|
|
8164
8154
|
(function(module, exports) {
|
|
8165
8155
|
(function(root, factory, undef) {
|
|
@@ -8256,8 +8246,7 @@ function requirePbkdf2() {
|
|
|
8256
8246
|
var modeCfb = { exports: {} };
|
|
8257
8247
|
var hasRequiredModeCfb;
|
|
8258
8248
|
function requireModeCfb() {
|
|
8259
|
-
if (hasRequiredModeCfb)
|
|
8260
|
-
return modeCfb.exports;
|
|
8249
|
+
if (hasRequiredModeCfb) return modeCfb.exports;
|
|
8261
8250
|
hasRequiredModeCfb = 1;
|
|
8262
8251
|
(function(module, exports) {
|
|
8263
8252
|
(function(root, factory, undef) {
|
|
@@ -8308,8 +8297,7 @@ function requireModeCfb() {
|
|
|
8308
8297
|
var modeCtr = { exports: {} };
|
|
8309
8298
|
var hasRequiredModeCtr;
|
|
8310
8299
|
function requireModeCtr() {
|
|
8311
|
-
if (hasRequiredModeCtr)
|
|
8312
|
-
return modeCtr.exports;
|
|
8300
|
+
if (hasRequiredModeCtr) return modeCtr.exports;
|
|
8313
8301
|
hasRequiredModeCtr = 1;
|
|
8314
8302
|
(function(module, exports) {
|
|
8315
8303
|
(function(root, factory, undef) {
|
|
@@ -8348,8 +8336,7 @@ function requireModeCtr() {
|
|
|
8348
8336
|
var modeCtrGladman = { exports: {} };
|
|
8349
8337
|
var hasRequiredModeCtrGladman;
|
|
8350
8338
|
function requireModeCtrGladman() {
|
|
8351
|
-
if (hasRequiredModeCtrGladman)
|
|
8352
|
-
return modeCtrGladman.exports;
|
|
8339
|
+
if (hasRequiredModeCtrGladman) return modeCtrGladman.exports;
|
|
8353
8340
|
hasRequiredModeCtrGladman = 1;
|
|
8354
8341
|
(function(module, exports) {
|
|
8355
8342
|
(function(root, factory, undef) {
|
|
@@ -8428,8 +8415,7 @@ function requireModeCtrGladman() {
|
|
|
8428
8415
|
var modeOfb = { exports: {} };
|
|
8429
8416
|
var hasRequiredModeOfb;
|
|
8430
8417
|
function requireModeOfb() {
|
|
8431
|
-
if (hasRequiredModeOfb)
|
|
8432
|
-
return modeOfb.exports;
|
|
8418
|
+
if (hasRequiredModeOfb) return modeOfb.exports;
|
|
8433
8419
|
hasRequiredModeOfb = 1;
|
|
8434
8420
|
(function(module, exports) {
|
|
8435
8421
|
(function(root, factory, undef) {
|
|
@@ -8466,8 +8452,7 @@ function requireModeOfb() {
|
|
|
8466
8452
|
var modeEcb = { exports: {} };
|
|
8467
8453
|
var hasRequiredModeEcb;
|
|
8468
8454
|
function requireModeEcb() {
|
|
8469
|
-
if (hasRequiredModeEcb)
|
|
8470
|
-
return modeEcb.exports;
|
|
8455
|
+
if (hasRequiredModeEcb) return modeEcb.exports;
|
|
8471
8456
|
hasRequiredModeEcb = 1;
|
|
8472
8457
|
(function(module, exports) {
|
|
8473
8458
|
(function(root, factory, undef) {
|
|
@@ -8497,8 +8482,7 @@ function requireModeEcb() {
|
|
|
8497
8482
|
var padAnsix923 = { exports: {} };
|
|
8498
8483
|
var hasRequiredPadAnsix923;
|
|
8499
8484
|
function requirePadAnsix923() {
|
|
8500
|
-
if (hasRequiredPadAnsix923)
|
|
8501
|
-
return padAnsix923.exports;
|
|
8485
|
+
if (hasRequiredPadAnsix923) return padAnsix923.exports;
|
|
8502
8486
|
hasRequiredPadAnsix923 = 1;
|
|
8503
8487
|
(function(module, exports) {
|
|
8504
8488
|
(function(root, factory, undef) {
|
|
@@ -8529,8 +8513,7 @@ function requirePadAnsix923() {
|
|
|
8529
8513
|
var padIso10126 = { exports: {} };
|
|
8530
8514
|
var hasRequiredPadIso10126;
|
|
8531
8515
|
function requirePadIso10126() {
|
|
8532
|
-
if (hasRequiredPadIso10126)
|
|
8533
|
-
return padIso10126.exports;
|
|
8516
|
+
if (hasRequiredPadIso10126) return padIso10126.exports;
|
|
8534
8517
|
hasRequiredPadIso10126 = 1;
|
|
8535
8518
|
(function(module, exports) {
|
|
8536
8519
|
(function(root, factory, undef) {
|
|
@@ -8557,8 +8540,7 @@ function requirePadIso10126() {
|
|
|
8557
8540
|
var padIso97971 = { exports: {} };
|
|
8558
8541
|
var hasRequiredPadIso97971;
|
|
8559
8542
|
function requirePadIso97971() {
|
|
8560
|
-
if (hasRequiredPadIso97971)
|
|
8561
|
-
return padIso97971.exports;
|
|
8543
|
+
if (hasRequiredPadIso97971) return padIso97971.exports;
|
|
8562
8544
|
hasRequiredPadIso97971 = 1;
|
|
8563
8545
|
(function(module, exports) {
|
|
8564
8546
|
(function(root, factory, undef) {
|
|
@@ -8584,8 +8566,7 @@ function requirePadIso97971() {
|
|
|
8584
8566
|
var padZeropadding = { exports: {} };
|
|
8585
8567
|
var hasRequiredPadZeropadding;
|
|
8586
8568
|
function requirePadZeropadding() {
|
|
8587
|
-
if (hasRequiredPadZeropadding)
|
|
8588
|
-
return padZeropadding.exports;
|
|
8569
|
+
if (hasRequiredPadZeropadding) return padZeropadding.exports;
|
|
8589
8570
|
hasRequiredPadZeropadding = 1;
|
|
8590
8571
|
(function(module, exports) {
|
|
8591
8572
|
(function(root, factory, undef) {
|
|
@@ -8618,8 +8599,7 @@ function requirePadZeropadding() {
|
|
|
8618
8599
|
var padNopadding = { exports: {} };
|
|
8619
8600
|
var hasRequiredPadNopadding;
|
|
8620
8601
|
function requirePadNopadding() {
|
|
8621
|
-
if (hasRequiredPadNopadding)
|
|
8622
|
-
return padNopadding.exports;
|
|
8602
|
+
if (hasRequiredPadNopadding) return padNopadding.exports;
|
|
8623
8603
|
hasRequiredPadNopadding = 1;
|
|
8624
8604
|
(function(module, exports) {
|
|
8625
8605
|
(function(root, factory, undef) {
|
|
@@ -8641,8 +8621,7 @@ function requirePadNopadding() {
|
|
|
8641
8621
|
var formatHex = { exports: {} };
|
|
8642
8622
|
var hasRequiredFormatHex;
|
|
8643
8623
|
function requireFormatHex() {
|
|
8644
|
-
if (hasRequiredFormatHex)
|
|
8645
|
-
return formatHex.exports;
|
|
8624
|
+
if (hasRequiredFormatHex) return formatHex.exports;
|
|
8646
8625
|
hasRequiredFormatHex = 1;
|
|
8647
8626
|
(function(module, exports) {
|
|
8648
8627
|
(function(root, factory, undef) {
|
|
@@ -8701,13 +8680,12 @@ function requireFormatHex() {
|
|
|
8701
8680
|
var tripledes = { exports: {} };
|
|
8702
8681
|
var hasRequiredTripledes;
|
|
8703
8682
|
function requireTripledes() {
|
|
8704
|
-
if (hasRequiredTripledes)
|
|
8705
|
-
return tripledes.exports;
|
|
8683
|
+
if (hasRequiredTripledes) return tripledes.exports;
|
|
8706
8684
|
hasRequiredTripledes = 1;
|
|
8707
8685
|
(function(module, exports) {
|
|
8708
8686
|
(function(root, factory, undef) {
|
|
8709
8687
|
{
|
|
8710
|
-
module.exports = factory(requireCore(),
|
|
8688
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
8711
8689
|
}
|
|
8712
8690
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
8713
8691
|
(function() {
|
|
@@ -9482,13 +9460,12 @@ function requireTripledes() {
|
|
|
9482
9460
|
var rc4 = { exports: {} };
|
|
9483
9461
|
var hasRequiredRc4;
|
|
9484
9462
|
function requireRc4() {
|
|
9485
|
-
if (hasRequiredRc4)
|
|
9486
|
-
return rc4.exports;
|
|
9463
|
+
if (hasRequiredRc4) return rc4.exports;
|
|
9487
9464
|
hasRequiredRc4 = 1;
|
|
9488
9465
|
(function(module, exports) {
|
|
9489
9466
|
(function(root, factory, undef) {
|
|
9490
9467
|
{
|
|
9491
|
-
module.exports = factory(requireCore(),
|
|
9468
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9492
9469
|
}
|
|
9493
9470
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9494
9471
|
(function() {
|
|
@@ -9565,13 +9542,12 @@ function requireRc4() {
|
|
|
9565
9542
|
var rabbit = { exports: {} };
|
|
9566
9543
|
var hasRequiredRabbit;
|
|
9567
9544
|
function requireRabbit() {
|
|
9568
|
-
if (hasRequiredRabbit)
|
|
9569
|
-
return rabbit.exports;
|
|
9545
|
+
if (hasRequiredRabbit) return rabbit.exports;
|
|
9570
9546
|
hasRequiredRabbit = 1;
|
|
9571
9547
|
(function(module, exports) {
|
|
9572
9548
|
(function(root, factory, undef) {
|
|
9573
9549
|
{
|
|
9574
|
-
module.exports = factory(requireCore(),
|
|
9550
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9575
9551
|
}
|
|
9576
9552
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9577
9553
|
(function() {
|
|
@@ -9694,13 +9670,12 @@ function requireRabbit() {
|
|
|
9694
9670
|
var rabbitLegacy = { exports: {} };
|
|
9695
9671
|
var hasRequiredRabbitLegacy;
|
|
9696
9672
|
function requireRabbitLegacy() {
|
|
9697
|
-
if (hasRequiredRabbitLegacy)
|
|
9698
|
-
return rabbitLegacy.exports;
|
|
9673
|
+
if (hasRequiredRabbitLegacy) return rabbitLegacy.exports;
|
|
9699
9674
|
hasRequiredRabbitLegacy = 1;
|
|
9700
9675
|
(function(module, exports) {
|
|
9701
9676
|
(function(root, factory, undef) {
|
|
9702
9677
|
{
|
|
9703
|
-
module.exports = factory(requireCore(),
|
|
9678
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9704
9679
|
}
|
|
9705
9680
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9706
9681
|
(function() {
|
|
@@ -9820,7 +9795,7 @@ function requireRabbitLegacy() {
|
|
|
9820
9795
|
(function(module, exports) {
|
|
9821
9796
|
(function(root, factory, undef) {
|
|
9822
9797
|
{
|
|
9823
|
-
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(),
|
|
9798
|
+
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy());
|
|
9824
9799
|
}
|
|
9825
9800
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9826
9801
|
return CryptoJS2;
|
|
@@ -9830,109 +9805,89 @@ var cryptoJsExports = cryptoJs.exports;
|
|
|
9830
9805
|
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
9831
9806
|
const WidgetStore = {
|
|
9832
9807
|
el: void 0,
|
|
9833
|
-
|
|
9834
|
-
price: 0,
|
|
9835
|
-
taxFree: 0,
|
|
9836
|
-
depositPrice: 0,
|
|
9837
|
-
currency: "KRW",
|
|
9838
|
-
userToken: void 0,
|
|
9839
|
-
pg: void 0,
|
|
9840
|
-
method: void 0,
|
|
9841
|
-
walletId: void 0,
|
|
9842
|
-
selectTerms: [],
|
|
9843
|
-
useOnlyOOpay: false,
|
|
9808
|
+
data: void 0,
|
|
9844
9809
|
termsPassed: false,
|
|
9845
|
-
useTerms: true,
|
|
9846
|
-
sandbox: false,
|
|
9847
|
-
useBootpayInAppSdk: false,
|
|
9848
|
-
widgetKey: void 0,
|
|
9849
|
-
externalTerms: [],
|
|
9850
9810
|
widgetExtra: {
|
|
9851
9811
|
card_quota: []
|
|
9852
9812
|
},
|
|
9853
|
-
|
|
9854
|
-
setWidgetData(data2) {
|
|
9855
|
-
|
|
9856
|
-
this.
|
|
9857
|
-
this.
|
|
9858
|
-
this.taxFree = data2.tax_free;
|
|
9859
|
-
this.depositPrice = data2.deposit_price;
|
|
9860
|
-
this.currency = data2.currency;
|
|
9861
|
-
this.userToken = data2.user_token;
|
|
9862
|
-
this.useOnlyOOpay = data2.use_only_oopay === void 0 ? false : data2.use_only_oopay;
|
|
9863
|
-
this.useTerms = !(data2.use_terms === false);
|
|
9864
|
-
this.walletId = data2.wallet_id;
|
|
9865
|
-
this.externalTerms = data2.external_terms;
|
|
9866
|
-
this.widgetExtra = data2.widget_extra;
|
|
9867
|
-
this.widgetKey = data2.widget_key;
|
|
9868
|
-
this.sandbox = data2.sandbox === true;
|
|
9869
|
-
this.useBootpayInAppSdk = data2.use_bootpay_inapp_sdk === true;
|
|
9813
|
+
widgetType: 1,
|
|
9814
|
+
setWidgetData(element, data2) {
|
|
9815
|
+
var _a, _b;
|
|
9816
|
+
this.el = String(element).replace(/#/gi, "");
|
|
9817
|
+
this.data = data2;
|
|
9870
9818
|
this.termsPassed = false;
|
|
9871
|
-
this.
|
|
9819
|
+
this.data.terms = (_a = this.data.terms) != null ? _a : [];
|
|
9820
|
+
this.widgetType = 1;
|
|
9821
|
+
this.data.widget = 1;
|
|
9822
|
+
this.data.use_terms = (_b = this.data.use_terms) != null ? _b : true;
|
|
9872
9823
|
},
|
|
9873
9824
|
setPayment(pg, method, wallet_id, terms = false, select_terms, extra) {
|
|
9874
|
-
this.pg = pg;
|
|
9875
|
-
this.method = method;
|
|
9876
|
-
this.
|
|
9825
|
+
this.data.pg = pg;
|
|
9826
|
+
this.data.method = method;
|
|
9827
|
+
this.data.wallet_id = wallet_id;
|
|
9877
9828
|
this.termsPassed = terms;
|
|
9878
|
-
this.
|
|
9879
|
-
this.
|
|
9829
|
+
this.data.terms = select_terms;
|
|
9830
|
+
this.widgetExtra = extra;
|
|
9880
9831
|
},
|
|
9881
9832
|
updateOnProcessing(data2) {
|
|
9882
9833
|
if (isPresent(data2.price)) {
|
|
9883
|
-
this.price = data2.price;
|
|
9834
|
+
this.data.price = data2.price;
|
|
9884
9835
|
}
|
|
9885
9836
|
if (isPresent(data2.tax_free)) {
|
|
9886
|
-
this.
|
|
9837
|
+
this.data.tax_free = data2.tax_free;
|
|
9887
9838
|
}
|
|
9888
9839
|
if (isPresent(data2.currency)) {
|
|
9889
|
-
this.currency = data2.currency;
|
|
9840
|
+
this.data.currency = data2.currency;
|
|
9890
9841
|
}
|
|
9891
9842
|
if (data2.user_token !== void 0) {
|
|
9892
|
-
this.
|
|
9843
|
+
this.data.user_token = data2.user_token;
|
|
9893
9844
|
}
|
|
9894
9845
|
if (isPresent(data2.use_terms)) {
|
|
9895
|
-
this.
|
|
9846
|
+
this.data.use_terms = !(data2.use_terms === false);
|
|
9896
9847
|
}
|
|
9897
9848
|
if (isPresent(data2.sandbox)) {
|
|
9898
|
-
this.sandbox = data2.sandbox === true;
|
|
9849
|
+
this.data.sandbox = data2.sandbox === true;
|
|
9899
9850
|
}
|
|
9900
9851
|
if (isPresent(data2.widget_key)) {
|
|
9901
|
-
this.
|
|
9852
|
+
this.data.widget_key = data2.widget_key;
|
|
9853
|
+
}
|
|
9854
|
+
if (isPresent(data2.widget_type)) {
|
|
9855
|
+
this.widgetType = data2.widget_type;
|
|
9902
9856
|
}
|
|
9903
9857
|
if (data2.external_terms !== void 0) {
|
|
9904
|
-
this.
|
|
9858
|
+
this.data.external_terms = data2.external_terms;
|
|
9905
9859
|
}
|
|
9906
9860
|
if (data2.use_bootpay_inapp_sdk !== void 0) {
|
|
9907
|
-
this.
|
|
9861
|
+
this.data.use_bootpay_inapp_sdk = data2.use_bootpay_inapp_sdk;
|
|
9908
9862
|
}
|
|
9909
9863
|
if (data2.widget_key !== void 0) {
|
|
9910
|
-
this.
|
|
9864
|
+
this.data.widget_key = data2.widget_key;
|
|
9911
9865
|
}
|
|
9912
9866
|
},
|
|
9913
9867
|
encryptParameters() {
|
|
9914
9868
|
return encodeURIComponent(
|
|
9915
9869
|
this.encrypt({
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9870
|
+
order_name: this.data.order_name,
|
|
9871
|
+
use_only_oopay: this.data.use_only_oopay,
|
|
9872
|
+
user_token: this.data.user_token,
|
|
9873
|
+
sandbox: this.data.sandbox,
|
|
9874
|
+
use_terms: this.data.use_terms,
|
|
9875
|
+
external_terms: this.data.external_terms,
|
|
9876
|
+
key: this.data.widget_key,
|
|
9877
|
+
use_bootpay_inapp_sdk: this.data.use_bootpay_inapp_sdk,
|
|
9878
|
+
extra: this.data.extra,
|
|
9924
9879
|
log_level: Logger.level
|
|
9925
9880
|
})
|
|
9926
9881
|
);
|
|
9927
9882
|
},
|
|
9928
9883
|
encrypt(data2) {
|
|
9929
|
-
if (isBlank(this.
|
|
9884
|
+
if (isBlank(this.data.application_id)) {
|
|
9930
9885
|
throw new Error("privateKey is not set");
|
|
9931
9886
|
}
|
|
9932
9887
|
const payload = typeof data2 === "string" ? data2 : JSON.stringify(data2);
|
|
9933
9888
|
const encrypted = AES.encrypt(
|
|
9934
9889
|
payload,
|
|
9935
|
-
CryptoJS.enc.Utf8.parse(this.
|
|
9890
|
+
CryptoJS.enc.Utf8.parse(this.data.application_id.substring(0, 16)),
|
|
9936
9891
|
{
|
|
9937
9892
|
mode: CryptoJS.mode.ECB,
|
|
9938
9893
|
padding: CryptoJS.pad.Pkcs7
|
|
@@ -9941,12 +9896,12 @@ const WidgetStore = {
|
|
|
9941
9896
|
return Base64.stringify(encrypted.ciphertext);
|
|
9942
9897
|
},
|
|
9943
9898
|
decrypt(data2) {
|
|
9944
|
-
if (isBlank(this.
|
|
9899
|
+
if (isBlank(this.data.application_id)) {
|
|
9945
9900
|
throw new Error("privateKey is not set");
|
|
9946
9901
|
}
|
|
9947
9902
|
const decrypted = AES.decrypt(
|
|
9948
9903
|
data2,
|
|
9949
|
-
CryptoJS.enc.Utf8.parse(this.
|
|
9904
|
+
CryptoJS.enc.Utf8.parse(this.data.application_id.substring(0, 16)),
|
|
9950
9905
|
{
|
|
9951
9906
|
mode: CryptoJS.mode.ECB,
|
|
9952
9907
|
padding: CryptoJS.pad.Pkcs7
|
|
@@ -9958,6 +9913,19 @@ const WidgetStore = {
|
|
|
9958
9913
|
} catch (e) {
|
|
9959
9914
|
return decryptedString;
|
|
9960
9915
|
}
|
|
9916
|
+
},
|
|
9917
|
+
/**
|
|
9918
|
+
* 결제 요청시 가져올 extra 값
|
|
9919
|
+
* Comment by GOSOMI
|
|
9920
|
+
* @date: 2024-08-19
|
|
9921
|
+
*/
|
|
9922
|
+
getExtra(externalExtra = void 0) {
|
|
9923
|
+
var _a, _b;
|
|
9924
|
+
return mergeHash(externalExtra != null ? externalExtra : {}, mergeHash((_a = this.widgetExtra) != null ? _a : {}, (_b = this.data.extra) != null ? _b : {}));
|
|
9925
|
+
},
|
|
9926
|
+
getRequestPaymentData(data2 = void 0) {
|
|
9927
|
+
this.data.extra = this.getExtra(data2.extra);
|
|
9928
|
+
return mergeHash(data2, this.data);
|
|
9961
9929
|
}
|
|
9962
9930
|
};
|
|
9963
9931
|
class TemplateWidgetManager extends TemplateManager {
|
|
@@ -9994,7 +9962,7 @@ class TemplateWidgetManager extends TemplateManager {
|
|
|
9994
9962
|
iFrame.setAttribute(
|
|
9995
9963
|
"src",
|
|
9996
9964
|
Environment.toWidget(
|
|
9997
|
-
`p/${this.$widgetStore.
|
|
9965
|
+
`p/${this.$widgetStore.data.application_id}/${this.$widgetStore.encryptParameters()}`
|
|
9998
9966
|
)
|
|
9999
9967
|
);
|
|
10000
9968
|
}
|
|
@@ -10074,10 +10042,10 @@ class OOpayTemplateManager extends TemplateManager {
|
|
|
10074
10042
|
this.createIFrame(url);
|
|
10075
10043
|
}
|
|
10076
10044
|
removeWallet(walletId) {
|
|
10077
|
-
this.createIFrame(`oopay/destroy/${this.$widgetStore.
|
|
10045
|
+
this.createIFrame(`oopay/destroy/${this.$widgetStore.data.application_id}/${walletId}`);
|
|
10078
10046
|
}
|
|
10079
10047
|
showCardInterestInformation(data2) {
|
|
10080
|
-
this.createIFrame(`card/interest/${this.$widgetStore.
|
|
10048
|
+
this.createIFrame(`card/interest/${this.$widgetStore.data.application_id}`);
|
|
10081
10049
|
}
|
|
10082
10050
|
destroy() {
|
|
10083
10051
|
const element = document.getElementById(this.$windowId);
|
|
@@ -10237,23 +10205,23 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10237
10205
|
);
|
|
10238
10206
|
case "bootpayRequestGetEnvironment":
|
|
10239
10207
|
return TemplateWidget.postMessage("bootpayResponseGetEnvironment", {
|
|
10240
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10241
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10242
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10243
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10244
|
-
external_terms: TemplateWidget.$widgetStore.
|
|
10245
|
-
key: TemplateWidget.$widgetStore.
|
|
10246
|
-
use_bootpay_inapp_sdk: TemplateWidget.$widgetStore.
|
|
10208
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10209
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10210
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10211
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10212
|
+
external_terms: TemplateWidget.$widgetStore.data.external_terms,
|
|
10213
|
+
key: TemplateWidget.$widgetStore.data.widget_key,
|
|
10214
|
+
use_bootpay_inapp_sdk: TemplateWidget.$widgetStore.data.use_bootpay_inapp_sdk,
|
|
10247
10215
|
log_level: Logger.level
|
|
10248
10216
|
});
|
|
10249
10217
|
case "bootpayRequestGetEnvironmentWidget":
|
|
10250
10218
|
return TemplateWidget.postMessage("bootpayWidgetGetEnvironmentWidget", response.data);
|
|
10251
10219
|
case "bootpayWidgetResponseGetEnvironmentWidget":
|
|
10252
10220
|
return OOpayTemplate.postMessage("bootpayResponseGetEnvironmentWidget", {
|
|
10253
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10254
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10255
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10256
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10221
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10222
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10223
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10224
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10257
10225
|
platform: response.data.platform
|
|
10258
10226
|
});
|
|
10259
10227
|
case "bootpayRequestCurrentStores":
|
|
@@ -10287,13 +10255,13 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10287
10255
|
return TemplateWidget.postMessage("bootpayWidgetGetEnvironmentModalWidget", response.data);
|
|
10288
10256
|
case "bootpayWidgetResponseGetEnvironmentModalWidget":
|
|
10289
10257
|
return ModalTemplate.postMessage("bootpayResponseGetEnvironmentModalWidget", {
|
|
10290
|
-
application_id: TemplateWidget.$widgetStore.
|
|
10291
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10292
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10293
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10294
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10295
|
-
external_terms: TemplateWidget.$widgetStore.
|
|
10296
|
-
key: TemplateWidget.$widgetStore.
|
|
10258
|
+
application_id: TemplateWidget.$widgetStore.data.application_id,
|
|
10259
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10260
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10261
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10262
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10263
|
+
external_terms: TemplateWidget.$widgetStore.data.external_terms,
|
|
10264
|
+
key: TemplateWidget.$widgetStore.data.widget_key,
|
|
10297
10265
|
platform: response.data.platform,
|
|
10298
10266
|
log_level: Logger.level
|
|
10299
10267
|
});
|
|
@@ -10301,18 +10269,17 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10301
10269
|
return ModalTemplate.resize(response.data);
|
|
10302
10270
|
case "bootpayWidgetPaymentGetStoreData":
|
|
10303
10271
|
const {
|
|
10304
|
-
|
|
10272
|
+
application_id,
|
|
10305
10273
|
price,
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
} = TemplateWidget.$widgetStore;
|
|
10274
|
+
tax_free,
|
|
10275
|
+
user_token
|
|
10276
|
+
} = TemplateWidget.$widgetStore.data;
|
|
10310
10277
|
return TemplateWidget.postMessage("bootpayWidgetResponseStoreData", {
|
|
10311
|
-
applicationId,
|
|
10278
|
+
applicationId: application_id,
|
|
10312
10279
|
price,
|
|
10313
|
-
widgetExtra,
|
|
10314
|
-
taxFree,
|
|
10315
|
-
userToken
|
|
10280
|
+
widgetExtra: TemplateWidget.$widgetStore.widgetExtra,
|
|
10281
|
+
taxFree: tax_free,
|
|
10282
|
+
userToken: user_token
|
|
10316
10283
|
});
|
|
10317
10284
|
case "bootpayWidgetTermAllAgree":
|
|
10318
10285
|
this.callBootpayDOMEvent("all-agree-terms", response.data);
|
|
@@ -10369,11 +10336,11 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10369
10336
|
*/
|
|
10370
10337
|
triggerGlobalChangeEvent(data2) {
|
|
10371
10338
|
var _a;
|
|
10372
|
-
data2.completed = this.$present(data2.pg) && this.$present(data2.method) && (data2.term_passed === true || !WidgetStore.
|
|
10373
|
-
if (WidgetStore.pg !== data2.pg || WidgetStore.method !== data2.method || WidgetStore.
|
|
10339
|
+
data2.completed = this.$present(data2.pg) && this.$present(data2.method) && (data2.term_passed === true || !WidgetStore.data.use_terms) && (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(data2.method) === -1 || data2.wallet_id !== void 0);
|
|
10340
|
+
if (WidgetStore.data.pg !== data2.pg || WidgetStore.data.method !== data2.method || WidgetStore.data.wallet_id !== data2.wallet_id || JSON.stringify(WidgetStore.widgetExtra) !== JSON.stringify(data2.extra)) {
|
|
10374
10341
|
this.callBootpayDOMEvent("widget-change-payment", data2);
|
|
10375
10342
|
}
|
|
10376
|
-
if (JSON.stringify((_a = data2.select_terms) == null ? void 0 : _a.filter((v) => v.agree === true)) !== JSON.stringify(WidgetStore.
|
|
10343
|
+
if (JSON.stringify((_a = data2.select_terms) == null ? void 0 : _a.filter((v) => v.agree === true)) !== JSON.stringify(WidgetStore.data.terms.filter((v) => v.agree === true))) {
|
|
10377
10344
|
this.callBootpayDOMEvent("widget-change-terms", data2);
|
|
10378
10345
|
}
|
|
10379
10346
|
}
|
|
@@ -10385,17 +10352,21 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10385
10352
|
this.message = BootpayMessage;
|
|
10386
10353
|
}
|
|
10387
10354
|
initialize() {
|
|
10388
|
-
WidgetStore.setWidgetData(
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10355
|
+
WidgetStore.setWidgetData(
|
|
10356
|
+
void 0,
|
|
10357
|
+
{
|
|
10358
|
+
application_id: void 0,
|
|
10359
|
+
order_name: "",
|
|
10360
|
+
order_id: void 0,
|
|
10361
|
+
price: 0,
|
|
10362
|
+
tax_free: 0,
|
|
10363
|
+
currency: "KRW",
|
|
10364
|
+
user_token: void 0,
|
|
10365
|
+
pg: void 0,
|
|
10366
|
+
method: void 0,
|
|
10367
|
+
widget_key: void 0
|
|
10368
|
+
}
|
|
10369
|
+
);
|
|
10399
10370
|
}
|
|
10400
10371
|
render(el, data2) {
|
|
10401
10372
|
if (this.$blank(data2 == null ? void 0 : data2.price) || data2.price < 0) {
|
|
@@ -10405,21 +10376,10 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10405
10376
|
throw new Error("application_id가 입력되지 않았습니다.");
|
|
10406
10377
|
}
|
|
10407
10378
|
this.initialize();
|
|
10408
|
-
WidgetStore.setWidgetData(
|
|
10379
|
+
WidgetStore.setWidgetData(
|
|
10409
10380
|
el,
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
tax_free: data2.tax_free,
|
|
10413
|
-
currency: data2.currency,
|
|
10414
|
-
user_token: data2.user_token,
|
|
10415
|
-
use_only_oopay: data2.use_only_oopay,
|
|
10416
|
-
external_terms: data2.external_terms,
|
|
10417
|
-
use_bootpay_inapp_sdk: data2.use_bootpay_inapp_sdk,
|
|
10418
|
-
widget_extra: data2.extra,
|
|
10419
|
-
use_terms: data2.use_terms,
|
|
10420
|
-
sandbox: data2.sandbox,
|
|
10421
|
-
widget_key: data2.key
|
|
10422
|
-
});
|
|
10381
|
+
data2
|
|
10382
|
+
);
|
|
10423
10383
|
TemplateWidget.render();
|
|
10424
10384
|
BootpayWidgetEvent.bind();
|
|
10425
10385
|
}
|
|
@@ -10432,7 +10392,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10432
10392
|
use_only_oopay,
|
|
10433
10393
|
use_terms,
|
|
10434
10394
|
sandbox,
|
|
10435
|
-
|
|
10395
|
+
widget_key,
|
|
10436
10396
|
external_terms
|
|
10437
10397
|
} = data2;
|
|
10438
10398
|
WidgetStore.updateOnProcessing({
|
|
@@ -10444,7 +10404,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10444
10404
|
use_terms,
|
|
10445
10405
|
external_terms,
|
|
10446
10406
|
sandbox,
|
|
10447
|
-
widget_key
|
|
10407
|
+
widget_key
|
|
10448
10408
|
});
|
|
10449
10409
|
if (this.$present(user_token) || this.$present(use_only_oopay) || this.$present(use_terms) || this.$present(sandbox)) {
|
|
10450
10410
|
TemplateWidget.postMessage("bootpayWidgetUpdateUserToken", {
|
|
@@ -10453,7 +10413,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10453
10413
|
use_terms,
|
|
10454
10414
|
external_terms,
|
|
10455
10415
|
sandbox,
|
|
10456
|
-
key
|
|
10416
|
+
key: widget_key
|
|
10457
10417
|
});
|
|
10458
10418
|
}
|
|
10459
10419
|
}
|
|
@@ -10469,7 +10429,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10469
10429
|
Logger.debug("selectPayment", `pg: ${pg}, method: ${method}, wallet_id: ${wallet_id}, terms: ${terms}, select_terms: ${JSON.stringify(select_terms)}, extra: ${JSON.stringify(extra)}`);
|
|
10470
10430
|
}
|
|
10471
10431
|
currentTermsCondition() {
|
|
10472
|
-
return WidgetStore.
|
|
10432
|
+
return WidgetStore.data.terms;
|
|
10473
10433
|
}
|
|
10474
10434
|
/**
|
|
10475
10435
|
* 부트페이 결제 요청을 한다
|
|
@@ -10478,39 +10438,20 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10478
10438
|
*/
|
|
10479
10439
|
requestPayment(data2) {
|
|
10480
10440
|
return __async(this, null, function* () {
|
|
10481
|
-
this.widgetRequestPaymentValidate();
|
|
10482
|
-
|
|
10483
|
-
data2.price = WidgetStore.price;
|
|
10484
|
-
data2.tax_free = WidgetStore.taxFree;
|
|
10485
|
-
data2.deposit_price = WidgetStore.depositPrice;
|
|
10486
|
-
data2.currency = WidgetStore.currency;
|
|
10487
|
-
data2.pg = WidgetStore.pg;
|
|
10488
|
-
data2.method = WidgetStore.method;
|
|
10489
|
-
data2.wallet_id = WidgetStore.walletId;
|
|
10490
|
-
data2.terms = WidgetStore.selectTerms;
|
|
10491
|
-
data2.widget_sandbox = WidgetStore.sandbox;
|
|
10492
|
-
data2.widget_key = WidgetStore.widgetKey;
|
|
10493
|
-
data2.extra = this.mergeExtraOnStore(data2.extra);
|
|
10494
|
-
data2.widget = 1;
|
|
10495
|
-
return Bootpay.requestPayment(data2);
|
|
10441
|
+
this.widgetRequestPaymentValidate(1);
|
|
10442
|
+
return Bootpay.requestPayment(WidgetStore.getRequestPaymentData(data2));
|
|
10496
10443
|
});
|
|
10497
10444
|
}
|
|
10498
10445
|
/**
|
|
10499
|
-
*
|
|
10446
|
+
* 부트페이 정기결제 요청
|
|
10500
10447
|
* Comment by GOSOMI
|
|
10501
|
-
* @date:
|
|
10448
|
+
* @date: 2024-08-19
|
|
10502
10449
|
*/
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
Object.keys(WidgetStore.extra).forEach((key) => {
|
|
10509
|
-
extra[key] = WidgetStore.extra[key];
|
|
10510
|
-
});
|
|
10511
|
-
}
|
|
10512
|
-
return extra;
|
|
10513
|
-
}
|
|
10450
|
+
requestSubscription(data2) {
|
|
10451
|
+
return __async(this, null, function* () {
|
|
10452
|
+
this.widgetRequestPaymentValidate(2);
|
|
10453
|
+
return Bootpay.requestSubscription(WidgetStore.getRequestPaymentData(data2));
|
|
10454
|
+
});
|
|
10514
10455
|
}
|
|
10515
10456
|
isRendered() {
|
|
10516
10457
|
return TemplateWidget.isRendered();
|
|
@@ -10542,31 +10483,38 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10542
10483
|
currentPaymentParameters() {
|
|
10543
10484
|
this.widgetRequestPaymentValidate();
|
|
10544
10485
|
return {
|
|
10545
|
-
pg: WidgetStore.pg,
|
|
10546
|
-
method: WidgetStore.method,
|
|
10547
|
-
wallet_id: WidgetStore.
|
|
10548
|
-
terms: WidgetStore.
|
|
10549
|
-
widget_key: WidgetStore.
|
|
10550
|
-
widget_sandbox: WidgetStore.sandbox,
|
|
10551
|
-
extra: WidgetStore.
|
|
10486
|
+
pg: WidgetStore.data.pg,
|
|
10487
|
+
method: WidgetStore.data.method,
|
|
10488
|
+
wallet_id: WidgetStore.data.wallet_id,
|
|
10489
|
+
terms: WidgetStore.data.terms,
|
|
10490
|
+
widget_key: WidgetStore.data.widget_key,
|
|
10491
|
+
widget_sandbox: WidgetStore.data.sandbox,
|
|
10492
|
+
extra: WidgetStore.getExtra({})
|
|
10552
10493
|
};
|
|
10553
10494
|
}
|
|
10554
|
-
widgetRequestPaymentValidate() {
|
|
10555
|
-
if (
|
|
10495
|
+
widgetRequestPaymentValidate(type = void 0) {
|
|
10496
|
+
if (type !== void 0 && WidgetStore.widgetType !== type) {
|
|
10497
|
+
throw new BootpayEventError({
|
|
10498
|
+
event: "error",
|
|
10499
|
+
error_code: "RC_WIDGET_TYPE_INVALID",
|
|
10500
|
+
message: type === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
|
|
10501
|
+
});
|
|
10502
|
+
}
|
|
10503
|
+
if (this.$blank(WidgetStore.data.pg) || this.$blank(WidgetStore.data.method)) {
|
|
10556
10504
|
throw new BootpayEventError({
|
|
10557
10505
|
event: "error",
|
|
10558
10506
|
error_code: "RC_PG_METHOD_NOT_SELECTED",
|
|
10559
10507
|
message: this.message.getLocaleMessage("notSelectPayment", "ko")
|
|
10560
10508
|
});
|
|
10561
10509
|
}
|
|
10562
|
-
if (!WidgetStore.termsPassed && WidgetStore.
|
|
10510
|
+
if (!WidgetStore.termsPassed && WidgetStore.data.use_terms) {
|
|
10563
10511
|
throw new BootpayEventError({
|
|
10564
10512
|
event: "error",
|
|
10565
10513
|
error_code: "RC_TERMS_NOT_AGREE",
|
|
10566
10514
|
message: this.message.getLocaleMessage("termsNotAgree", "ko")
|
|
10567
10515
|
});
|
|
10568
10516
|
}
|
|
10569
|
-
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(WidgetStore.method) > -1 && WidgetStore.
|
|
10517
|
+
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(WidgetStore.data.method) > -1 && WidgetStore.data.wallet_id === void 0) {
|
|
10570
10518
|
throw new BootpayEventError({
|
|
10571
10519
|
event: "error",
|
|
10572
10520
|
error_code: "RC_OOPAY_NEED_SELECT_WALLET",
|
|
@@ -10599,6 +10547,18 @@ const BootpayWidget = {
|
|
|
10599
10547
|
}));
|
|
10600
10548
|
});
|
|
10601
10549
|
},
|
|
10550
|
+
requestSubscription(data2) {
|
|
10551
|
+
return __async(this, null, function* () {
|
|
10552
|
+
return new Promise((resolve, reject) => __async(this, null, function* () {
|
|
10553
|
+
try {
|
|
10554
|
+
const response = yield BootpayWidgetWindow.requestSubscription(data2);
|
|
10555
|
+
return resolve(response);
|
|
10556
|
+
} catch (e) {
|
|
10557
|
+
return reject(this.errorHandler(e));
|
|
10558
|
+
}
|
|
10559
|
+
}));
|
|
10560
|
+
});
|
|
10561
|
+
},
|
|
10602
10562
|
errorHandler(e) {
|
|
10603
10563
|
let response = void 0;
|
|
10604
10564
|
AlfredProgress.hideProgress();
|
|
@@ -10686,6 +10646,12 @@ const BootpayWidget = {
|
|
|
10686
10646
|
},
|
|
10687
10647
|
currentPaymentParameters() {
|
|
10688
10648
|
return BootpayWidgetWindow.currentPaymentParameters();
|
|
10649
|
+
},
|
|
10650
|
+
isWidgetTypeSubscription() {
|
|
10651
|
+
return WidgetStore.widgetType === 2;
|
|
10652
|
+
},
|
|
10653
|
+
isWidgetTypePayment() {
|
|
10654
|
+
return WidgetStore.widgetType === 1;
|
|
10689
10655
|
}
|
|
10690
10656
|
};
|
|
10691
10657
|
if (typeof window !== "undefined") {
|