@bootpay/client-js 5.0.2-beta.1 → 5.0.3-beta.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 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: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)}}();
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}}.__bootpay-ex-el-fullscreen{position:absolute;inset:0;height:100%}.bootpay-ex-iframe-container{width:100%;height:100%}.bootpay-ex-iframe-container>iframe{width:100%;border:0;outline:none;overflow:scroll}.bootpay-ex-iframe-container>.bootpay-ex-overlay{position:fixed;inset:0;background-color:#000000b3;z-index:100000;text-align:center;display:none}.bootpay-ex-iframe-container>.bootpay-ex-overlay.fade-in{animation:fadeIn .2s ease}.bootpay-ex-iframe-container>.bootpay-ex-overlay.fade-out{animation:fadeOut .2s ease}.bootpay-ex-iframe-container>.bootpay-ex-overlay:before{display:inline-block;vertical-align:middle;height:100%;content:" "}@media (max-width: 600px){.bootpay-ex-iframe-container>.bootpay-ex-overlay:before{display:block;height:inherit;vertical-align:inherit}}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-overlay-iframe-container{display:inline-block;vertical-align:middle}@media (max-width: 600px){.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-overlay-iframe-container{width:100%!important;height:100%!important}}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container{display:inline-block;background-color:#fff;vertical-align:middle;max-width:450px;width:100%;text-align:left;border-radius:12px;overflow:hidden}@media (max-width: 768px){.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container{margin:1rem}}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container.zoom-in{animation:zoomIn .2s ease}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container.zoom-out{animation:zoomOut .2s ease}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header{position:relative;padding:1rem 1.5rem;font-size:18px}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn{position:absolute;box-shadow:none;background-color:transparent;outline:0;z-index:10001;right:1rem;top:50%;transform:translateY(-50%);height:21px;width:21px;border:0!important;outline:none!important}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn.active,.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn:focus{outline:none!important;border:0!important}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn:before,.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn:after{position:absolute;left:8px;top:0;content:" ";height:24px;width:1px;background-color:#888}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn:before{transform:rotate(45deg)}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-header .bootpay-close-btn:after{transform:rotate(-45deg)}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-body{padding:1rem 1.5rem 2rem}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer>.bootpay-ex-alert-button-grid{display:flex;width:100%}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer>.bootpay-ex-alert-button-grid>.bootpay-ex-cols{flex:0 50%}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer button.bootpay-btn{display:block;box-shadow:none;background-color:transparent;border:0!important;outline:none!important;width:100%;padding:1rem 0}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer button.bootpay-btn.bootpay-alert-cancel-button{background-color:#f1f1f1;color:#333;font-size:18px;font-weight:500}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer button.bootpay-btn.bootpay-alert-cancel-button:hover{opacity:.8}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer button.bootpay-btn.bootpay-alert-confirm-button{background-color:#507cf3;color:#fff;font-size:18px;font-weight:500}.bootpay-ex-iframe-container>.bootpay-ex-overlay>.bootpay-ex-alert-container>.bootpay-ex-alert-footer button.bootpay-btn.bootpay-alert-confirm-button:hover{opacity:.8}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes zoomIn{0%{transform:scale(.9)}to{transform:scale(1)}}@keyframes zoomOut{0%{transform:scale(1)}to{transform: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;
@@ -1099,7 +1099,7 @@ class SessionStorageManager extends StorageManager {
1099
1099
  }
1100
1100
  const SessionStorage = new SessionStorageManager();
1101
1101
  const name = "@bootpay/client-js";
1102
- const version = "5.0.2-beta.1";
1102
+ const version = "5.0.3-beta.1";
1103
1103
  const main = "dist/index.es.js";
1104
1104
  const types = "dist/src/index.d.ts";
1105
1105
  const styles = "dist/index.css";
@@ -1109,7 +1109,7 @@ const scripts = {
1109
1109
  deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
1110
1110
  };
1111
1111
  const dependencies = {
1112
- typescript: "^5.1.6"
1112
+ typescript: "^5.5.4"
1113
1113
  };
1114
1114
  const devDependencies = {
1115
1115
  "@types/ws": "^8.5.5",
@@ -1404,7 +1404,7 @@ class TemplateManager extends BootpayManager {
1404
1404
  for (let i in Object.keys(resizeData)) {
1405
1405
  let key = Object.keys(resizeData)[i];
1406
1406
  let value = resizeData[key];
1407
- if (this.$present(value) && !String(value).match(/%/) && (key.match(/width/) || key.match(/Width/) || key.match(/height/) || key.match(/Height/))) {
1407
+ if (this.$present(value) && !String(value).match(/%/) && !String(value).match(/vh/) && (key.match(/width/) || key.match(/Width/) || key.match(/height/) || key.match(/Height/))) {
1408
1408
  value = `${String(resizeData[key]).replace(/px/gi, "")}px`;
1409
1409
  }
1410
1410
  element.style.setProperty(key, value);
@@ -2861,7 +2861,7 @@ function requireMd5() {
2861
2861
  T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0;
2862
2862
  }
2863
2863
  })();
2864
- var MD5 = C_algo.MD5 = Hasher.extend({
2864
+ var MD52 = C_algo.MD5 = Hasher.extend({
2865
2865
  _doReset: function() {
2866
2866
  this._hash = new WordArray.init([
2867
2867
  1732584193,
@@ -3008,8 +3008,8 @@ function requireMd5() {
3008
3008
  var n = a + (c ^ (b | ~d)) + x + t;
3009
3009
  return (n << s | n >>> 32 - s) + b;
3010
3010
  }
3011
- C.MD5 = Hasher._createHelper(MD5);
3012
- C.HmacMD5 = Hasher._createHmacHelper(MD5);
3011
+ C.MD5 = Hasher._createHelper(MD52);
3012
+ C.HmacMD5 = Hasher._createHmacHelper(MD52);
3013
3013
  })(Math);
3014
3014
  return CryptoJS2.MD5;
3015
3015
  });
@@ -3229,7 +3229,7 @@ function requireEvpkdf() {
3229
3229
  var Base = C_lib.Base;
3230
3230
  var WordArray = C_lib.WordArray;
3231
3231
  var C_algo = C.algo;
3232
- var MD5 = C_algo.MD5;
3232
+ var MD52 = C_algo.MD5;
3233
3233
  var EvpKDF = C_algo.EvpKDF = Base.extend({
3234
3234
  /**
3235
3235
  * Configuration options.
@@ -3240,7 +3240,7 @@ function requireEvpkdf() {
3240
3240
  */
3241
3241
  cfg: Base.extend({
3242
3242
  keySize: 128 / 32,
3243
- hasher: MD5,
3243
+ hasher: MD52,
3244
3244
  iterations: 1
3245
3245
  }),
3246
3246
  /**
@@ -9803,6 +9803,370 @@ function requireRabbitLegacy() {
9803
9803
  })(cryptoJs);
9804
9804
  var cryptoJsExports = cryptoJs.exports;
9805
9805
  const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
9806
+ var md5Exports = requireMd5();
9807
+ const MD5 = /* @__PURE__ */ getDefaultExportFromCjs(md5Exports);
9808
+ const ExWindowRouter = {
9809
+ parameterPrefix: "__b_",
9810
+ // query string url 업데이트를 진행한다
9811
+ updateParameters({ parameters, replace }) {
9812
+ const url = new URL(window.location);
9813
+ const originParameters = Object.fromEntries(new URLSearchParams(location.search));
9814
+ Object.keys(originParameters).forEach((key) => {
9815
+ if (key.match(this.parameterPrefix)) {
9816
+ url.searchParams.delete(key);
9817
+ } else {
9818
+ url.searchParams.set(key, originParameters[key]);
9819
+ }
9820
+ });
9821
+ if (parameters) {
9822
+ Object.keys(parameters).forEach((key) => {
9823
+ const parameterKey = `${this.parameterPrefix}${key}`;
9824
+ url.searchParams.set(parameterKey, parameters[key]);
9825
+ });
9826
+ }
9827
+ replace ? window.history.replaceState(url.toString(), "", url.toString()) : window.history.pushState(parameters, "", url.toString());
9828
+ }
9829
+ };
9830
+ const ExStore = {
9831
+ el: void 0,
9832
+ data: void 0,
9833
+ path: void 0,
9834
+ setExData(el, data2) {
9835
+ this.el = (el != null ? el : "").replace(/#/gi, "");
9836
+ this.data = data2;
9837
+ },
9838
+ encryptParameters() {
9839
+ return encodeURIComponent(
9840
+ this.encrypt({
9841
+ categories: this.data.categories,
9842
+ extra: this.data.extra
9843
+ })
9844
+ );
9845
+ },
9846
+ encryptKey() {
9847
+ return MD5(this.data.client_key).toString().substring(0, 16);
9848
+ },
9849
+ encrypt(data2) {
9850
+ if (isBlank(this.data.client_key)) {
9851
+ throw new Error("privateKey is not set");
9852
+ }
9853
+ const payload = typeof data2 === "string" ? data2 : JSON.stringify(data2);
9854
+ const encrypted = AES.encrypt(
9855
+ payload,
9856
+ CryptoJS.enc.Utf8.parse(this.encryptKey()),
9857
+ {
9858
+ mode: CryptoJS.mode.ECB,
9859
+ padding: CryptoJS.pad.Pkcs7
9860
+ }
9861
+ );
9862
+ return Base64.stringify(encrypted.ciphertext);
9863
+ },
9864
+ decrypt(data2) {
9865
+ if (isBlank(this.data.client_key)) {
9866
+ throw new Error("privateKey is not set");
9867
+ }
9868
+ const decrypted = AES.decrypt(
9869
+ data2,
9870
+ CryptoJS.enc.Utf8.parse(this.data.client_key.substring(0, 16)),
9871
+ {
9872
+ mode: CryptoJS.mode.ECB,
9873
+ padding: CryptoJS.pad.Pkcs7
9874
+ }
9875
+ );
9876
+ const decryptedString = decrypted.toString(CryptoJS.enc.Utf8);
9877
+ try {
9878
+ return JSON.parse(decryptedString);
9879
+ } catch (e) {
9880
+ return decryptedString;
9881
+ }
9882
+ },
9883
+ currentBootpayExtraParameters() {
9884
+ let queryString = [];
9885
+ const parameters = Object.fromEntries(new URLSearchParams(location.search));
9886
+ Object.keys(parameters).forEach((key) => {
9887
+ if (key.match(ExWindowRouter.parameterPrefix)) {
9888
+ queryString.push(`${key.replace(ExWindowRouter.parameterPrefix, "")}=${parameters[key]}`);
9889
+ }
9890
+ });
9891
+ return queryString.join("&");
9892
+ }
9893
+ };
9894
+ const EnvironmentEx = {
9895
+ mode: "production",
9896
+ locale: "ko",
9897
+ packageVersion: Package.version,
9898
+ EX_SHOP_URL: {
9899
+ development: "https://dev-i.bootpay.co.kr",
9900
+ stage: "https://stage-i.bootpay.co.kr",
9901
+ production: "https://i.bootpay.co.kr"
9902
+ },
9903
+ set(env) {
9904
+ this.mode = env;
9905
+ },
9906
+ setClientKey(clientKey) {
9907
+ this.clientKey = clientKey;
9908
+ return this.clientKey;
9909
+ },
9910
+ setLocale(locale) {
9911
+ this.locale = locale;
9912
+ },
9913
+ toExShopUrl(uri) {
9914
+ return [this.EX_SHOP_URL[this.mode], uri].join("/");
9915
+ }
9916
+ };
9917
+ class TemplateExManager extends TemplateManager {
9918
+ constructor() {
9919
+ super();
9920
+ this.$iFrameId = "bootpay-ex-iframe";
9921
+ this.$iFrameContainerId = "bootpay-ex-iframe-container";
9922
+ this.$exOverlayId = "bootpay-ex-overlay";
9923
+ this.$exOverlayContainerId = "bootpay-ex-overlay-container";
9924
+ this.$exStore = ExStore;
9925
+ this.$template = `
9926
+ <div class="bootpay-ex-iframe-container" id="${this.$iFrameContainerId}">
9927
+ <iframe id="${this.$iFrameId}" src="" allowtransparency="true" scrolling="yes" style="background: transparent; width: 100%; height: 100%;"></iframe>
9928
+ <div class="bootpay-ex-overlay" id="${this.$exOverlayId}">
9929
+ </div>
9930
+ </div>
9931
+ `;
9932
+ }
9933
+ render() {
9934
+ const element = document.getElementById(this.$exStore.el);
9935
+ if (this.$blank(this.$exStore.el) || element === null) {
9936
+ throw new Error("부트페이 Ex를 설정할 Element ID를 입력하지 않았거나 해당 Element DOM이 존재하지 않습니다.");
9937
+ }
9938
+ this.templateRender();
9939
+ }
9940
+ templateRender() {
9941
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9942
+ const element = document.getElementById(this.$exStore.el);
9943
+ element.style.setProperty("height", "0px");
9944
+ element.innerHTML = this.$template;
9945
+ const iFrame = this.byId(this.$iFrameId);
9946
+ iFrame.setAttribute("src", this.shopUrl());
9947
+ if ((_c = (_b = (_a = this.$exStore.data) == null ? void 0 : _a.extra) == null ? void 0 : _b.window) == null ? void 0 : _c.fullscreen) {
9948
+ element.classList.add("__bootpay-ex-el-fullscreen");
9949
+ element.style.removeProperty("height");
9950
+ (_d = document.getElementById(this.$exStore.el)) == null ? void 0 : _d.style.setProperty("height", "100%");
9951
+ } else if (((_g = (_f = (_e = this.$exStore.data) == null ? void 0 : _e.extra) == null ? void 0 : _f.window) == null ? void 0 : _g.width) || ((_j = (_i = (_h = this.$exStore.data) == null ? void 0 : _h.extra) == null ? void 0 : _i.window) == null ? void 0 : _j.height)) {
9952
+ this.resize({
9953
+ width: this.$exStore.data.extra.window.width,
9954
+ height: this.$exStore.data.extra.window.height
9955
+ });
9956
+ }
9957
+ }
9958
+ resize(resizeData) {
9959
+ this.templateResize(this.$exStore.el, resizeData);
9960
+ }
9961
+ postMessage(event, data2) {
9962
+ var _a;
9963
+ const element = this.byId(this.$iFrameId);
9964
+ (_a = element == null ? void 0 : element.contentWindow) == null ? void 0 : _a.postMessage(JSON.stringify({
9965
+ bootpay_event: true,
9966
+ event,
9967
+ data: data2
9968
+ }), "*");
9969
+ }
9970
+ showAlert(message, title = "알림", options = {
9971
+ type: "notice",
9972
+ confirmText: "확인",
9973
+ cancelText: "취소"
9974
+ }) {
9975
+ const overlay = document.getElementById(this.$exOverlayId);
9976
+ overlay.innerHTML = `
9977
+ <div class="bootpay-ex-alert-container" id="${this.$exOverlayContainerId}">
9978
+ <div class="bootpay-ex-alert-header">
9979
+ <span>${title}</span>
9980
+ <button class="bootpay-close-btn" onClick="BootpayEx.hideAlert('cancel')"></button>
9981
+ </div>
9982
+ <div class="bootpay-ex-alert-body">
9983
+ ${message}
9984
+ </div>
9985
+ ${this.alertTypeTemplate(options)}
9986
+ </div>
9987
+ `;
9988
+ const container = document.getElementById(this.$exOverlayContainerId);
9989
+ overlay.style.display = "block";
9990
+ overlay.classList.remove("fade-out");
9991
+ container.classList.remove("zoom-out");
9992
+ overlay.classList.add("fade-in");
9993
+ container.classList.add("zoom-in");
9994
+ }
9995
+ hideAlert(eventName = "confirm") {
9996
+ const overlay = document.getElementById(this.$exOverlayId);
9997
+ const container = document.getElementById(this.$exOverlayContainerId);
9998
+ container.classList.replace("zoom-in", "zoom-out");
9999
+ overlay.classList.replace("fade-in", "fade-out");
10000
+ setTimeout(() => {
10001
+ overlay.style.display = "none";
10002
+ overlay.innerHTML = "";
10003
+ this.postMessage("alertResponse", {
10004
+ mode: eventName
10005
+ });
10006
+ }, 150);
10007
+ }
10008
+ showOverlayiFrameToUrl(url, options = { width: "100%", height: "100%" }) {
10009
+ const overlay = document.getElementById(this.$exOverlayId);
10010
+ const style = Object.keys(options).map((key) => `${key}: ${options[key]};`).join(" ");
10011
+ overlay.innerHTML = `
10012
+ <div class="bootpay-ex-overlay-iframe-container" id="${this.$exOverlayContainerId}" style="${style}">
10013
+ <iframe src="${url}" frameborder="0" allowtransparency="true" scrolling="no" style="background: transparent; width: 100%; height: 100%;"></iframe>
10014
+ </div>
10015
+ `;
10016
+ const container = document.getElementById(this.$exOverlayContainerId);
10017
+ overlay.style.display = "block";
10018
+ overlay.classList.add("fade-in");
10019
+ container.classList.add("zoom-in");
10020
+ }
10021
+ hideOverlayiFrame() {
10022
+ const overlay = document.getElementById(this.$exOverlayId);
10023
+ const container = document.getElementById(this.$exOverlayContainerId);
10024
+ container.classList.replace("zoom-in", "zoom-out");
10025
+ overlay.classList.replace("fade-in", "fade-out");
10026
+ setTimeout(() => {
10027
+ overlay.style.display = "none";
10028
+ overlay.innerHTML = "";
10029
+ }, 200);
10030
+ }
10031
+ alertTypeTemplate(options = { type: "notice", confirmText: "확인", cancelText: "취소" }) {
10032
+ if (options.type === "notice") {
10033
+ return `
10034
+ <div class="bootpay-ex-alert-footer">
10035
+ <button class="bootpay-alert-confirm-button bootpay-btn" onClick="BootpayEx.hideAlert('confirm')">${options.confirmText}</button>
10036
+ </div>
10037
+ `;
10038
+ } else {
10039
+ return `
10040
+ <div class="bootpay-ex-alert-footer">
10041
+ <div class="bootpay-ex-alert-button-grid">
10042
+ <div class="bootpay-ex-cols">
10043
+ <button class="bootpay-alert-cancel-button bootpay-btn" onClick="BootpayEx.hideAlert('cancel')">${options.cancelText}</button>
10044
+ </div>
10045
+ <div class="bootpay-ex-cols">
10046
+ <button class="bootpay-alert-confirm-button bootpay-btn" onClick="BootpayEx.hideAlert('confirm')">${options.confirmText}</button>
10047
+ </div>
10048
+ </div>
10049
+ </div>
10050
+ `;
10051
+ }
10052
+ }
10053
+ shopUrl() {
10054
+ const parameters = Object.fromEntries(new URLSearchParams(location.search));
10055
+ const url = isPresent(parameters.__b_u) ? EnvironmentEx.toExShopUrl(parameters.__b_u) : EnvironmentEx.toExShopUrl(
10056
+ `em/${this.$exStore.data.client_key}/${this.$exStore.encryptParameters()}?${this.$exStore.currentBootpayExtraParameters()}`
10057
+ );
10058
+ return url;
10059
+ }
10060
+ }
10061
+ const TemplateEx = new TemplateExManager();
10062
+ const ExWindowEvent = {
10063
+ resize: (data2) => {
10064
+ TemplateEx.resize(data2);
10065
+ },
10066
+ showAlert({ message, title, options }) {
10067
+ TemplateEx.showAlert(message, title, options);
10068
+ },
10069
+ hideAlert() {
10070
+ TemplateEx.hideAlert();
10071
+ },
10072
+ showOverlayiFrame({ url, options }) {
10073
+ TemplateEx.showOverlayiFrameToUrl(url, options);
10074
+ },
10075
+ hideOverlayiFrame() {
10076
+ TemplateEx.hideOverlayiFrame();
10077
+ },
10078
+ responseOverlayiFrame({ event, data: data2 }) {
10079
+ TemplateEx.postMessage(event, data2);
10080
+ this.hideOverlayiFrame();
10081
+ },
10082
+ addFavicon({ url }) {
10083
+ const link = document.querySelector("link[rel~='icon']");
10084
+ if (link) {
10085
+ link.href = url;
10086
+ } else {
10087
+ const link2 = document.createElement("link");
10088
+ link2.rel = "icon";
10089
+ link2.href = url;
10090
+ document.head.appendChild(link2);
10091
+ }
10092
+ }
10093
+ };
10094
+ class BootpayExEventManager extends BootpayWindowEvent {
10095
+ constructor() {
10096
+ super();
10097
+ this.$messageEventName = "message.BootpayExEvent";
10098
+ this.$routerEventName = "popstate.BootpayExEvent";
10099
+ this.$eventPrefix = "bootpay";
10100
+ this.$exStore = ExStore;
10101
+ }
10102
+ bind() {
10103
+ window.resetBootpayEventListener(this.$messageEventName, (e) => {
10104
+ const response = this.parseEvent(e.data);
10105
+ if (isPresent(response) && isPresent(response.event)) {
10106
+ const hookFunction = this.hookFunction(response.hook);
10107
+ if (isPresent(hookFunction) && isPresent(hookFunction[response.event])) {
10108
+ return hookFunction[response.event](response.data);
10109
+ } else {
10110
+ Logger.error("event", `BootpayExEventManager: ${response.event} is not defined`);
10111
+ }
10112
+ }
10113
+ });
10114
+ window.resetBootpayEventListener(this.$routerEventName, (e) => {
10115
+ const parameters = Object.fromEntries(new URLSearchParams(location.search));
10116
+ if (isPresent(parameters.__b_u)) {
10117
+ TemplateEx.postMessage("BootpayRouterChange", { url: `/${parameters.__b_u}` });
10118
+ }
10119
+ });
10120
+ }
10121
+ hookFunction(hook) {
10122
+ switch (hook) {
10123
+ case "ExWindowEvent":
10124
+ return ExWindowEvent;
10125
+ case "ExWindowRouter":
10126
+ return ExWindowRouter;
10127
+ }
10128
+ }
10129
+ }
10130
+ const BootpayExWindowEvent = new BootpayExEventManager();
10131
+ class BootpayExWindowManager extends BootpayManager {
10132
+ constructor() {
10133
+ super();
10134
+ }
10135
+ initialize() {
10136
+ ExStore.setExData(void 0, {
10137
+ client_key: void 0,
10138
+ categories: [],
10139
+ extra: {}
10140
+ });
10141
+ }
10142
+ render(el, data2) {
10143
+ if (this.$blank(data2.client_key)) {
10144
+ throw new Error("client_key가 입력되지 않았습니다.");
10145
+ }
10146
+ this.initialize();
10147
+ ExStore.setExData(el, data2);
10148
+ BootpayExWindowEvent.bind();
10149
+ TemplateEx.render();
10150
+ }
10151
+ hideAlert(eventName = "confirm") {
10152
+ TemplateEx.hideAlert(eventName);
10153
+ }
10154
+ }
10155
+ const BootpayExWindow = new BootpayExWindowManager();
10156
+ const BootpayEx = {
10157
+ render(el, data2) {
10158
+ BootpayExWindow.render(el, data2);
10159
+ },
10160
+ setEnvironmentMode(env) {
10161
+ EnvironmentEx.set(env);
10162
+ },
10163
+ hideAlert(eventName = "confirm") {
10164
+ BootpayExWindow.hideAlert(eventName);
10165
+ }
10166
+ };
10167
+ if (typeof window !== "undefined") {
10168
+ window.BootpayEx = BootpayEx;
10169
+ }
9806
10170
  const WidgetStore = {
9807
10171
  el: void 0,
9808
10172
  data: void 0,
@@ -10660,6 +11024,7 @@ if (typeof window !== "undefined") {
10660
11024
  export {
10661
11025
  Bootpay,
10662
11026
  Environment as BootpayEnvironment,
11027
+ BootpayEx,
10663
11028
  BootpaySDK,
10664
11029
  BootpayWidget,
10665
11030
  Bootpay as default