const bktECommerceQrBaseUri = "https://localhost:44332"; const bktECommerceQrPayment = "/QrPayment"; const bktPaymentResonseType = "PaymentResponse"; const isVisible = "is-visible"; const modalId = "bkt-qr-payment-modal"; const btnCloseModalId = "btn-close-bkt-qr-payment-modal"; //*********************************************** RENDER STYLES ******************************************************************// const bktCssMarkup = ` .${modalId} { position: absolute; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.4); visibility: hidden; opacity: 0; transition: all 0.35s ease-in; top: 0; bottom: 0; left: 0; right: 0; } .${modalId}.${isVisible} { visibility: visible; opacity: 1; } .bkt-qr-payment-modal-dialog { position: relative; max-width: 466px; max-height: 466px; border-radius: 5px; background: #ffffff; overflow: auto; cursor: default; width: 50%; min-width: 350px; min-height: 355px; } .bkt-qr-payment-modal-header { font-weight: 500; margin: 0; font-size: 1rem; padding-top: 1rem; padding-left: 1rem; padding-right: 1rem; } .bkt-qr-payment-modal-header { display: flex; align-items: center; justify-content: space-between; } .bkt-qr-payment-modal-header .close { padding: 1rem; margin: -1rem -1rem -1rem auto; background-color: transparent; border: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000000eb; text-shadow: 0 1px 0 #fff; opacity: .5; outline: none; } `; const head = document.head || document.getElementsByTagName('head')[0]; const style = document.createElement('style'); const cssNode = document.createTextNode(bktCssMarkup); style.appendChild(cssNode); head.appendChild(style); //************************************************* END RENDER STYLES ************************************************************// //************************************************* RENDER HTML ******************************************************************// const bktHtmlMarkup = `