@payfurl/client 4.5.5 → 4.5.7

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.
@@ -1 +1 @@
1
- iframe[data-v-fa2e3c62]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-fa2e3c62]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-fa2e3c62]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-fa2e3c62]{position:relative;width:300px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-fa2e3c62]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-a55c9c23]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-a55c9c23]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-a55c9c23]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-a55c9c23]{position:relative;width:700px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-a55c9c23]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-7e1050e4]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-7e1050e4]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-7e1050e4]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-7e1050e4]{position:relative;width:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-7e1050e4]{cursor:pointer;position:absolute;right:5px;top:5px}svg#paypal[data-v-2b840669]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-6a1e8b23]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-33711fb1]{--size: 30px;width:var(--size);height:var(--size)}svg#payto-icon[data-v-0b2d8aa0]{--size: 30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-78bddb9e]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-78bddb9e]{width:fit-content;display:flex;flex-direction:column;padding:15px;border:var(--border);border-radius:5px}.payfurl-sdk-combined-tab[data-v-78bddb9e]{width:auto;height:52px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border-top:1px solid var(--border-color)}.payfurl-sdk-combined-tab[data-v-78bddb9e]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-78bddb9e]{width:fit-content;height:fit-content;display:flex;flex-direction:column;margin-right:50px}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-name[data-v-78bddb9e]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-78bddb9e]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-78bddb9e],.payfurl-sdk-combined-tab>img[data-v-78bddb9e]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-78bddb9e]{margin-right:20px}.payfurl-sdk-container-component[data-v-78bddb9e]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-78bddb9e]{margin-bottom:20px}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-265528b7]{color:var(--color-success);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.masked[data-v-f319bcfd]{height:100vh;width:100vw;background-color:#0009;z-index:999999;position:fixed;top:0;left:0}.lds-spinner[data-v-f319bcfd]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:absolute;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2)}.message[data-v-f319bcfd]{text-align:center;position:absolute;width:100%;top:calc(50vh - 75px);color:#fff;font-size:2em}.lds-spinner div[data-v-f319bcfd]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:lds-spinner-f319bcfd 1.2s linear infinite}.lds-spinner div[data-v-f319bcfd]:after{content:" ";display:block;position:absolute;top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);border-radius:20%;background:#bcdff1}.lds-spinner div[data-v-f319bcfd]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f319bcfd]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f319bcfd]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f319bcfd]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f319bcfd]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f319bcfd]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f319bcfd]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f319bcfd]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f319bcfd]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f319bcfd]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f319bcfd]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f319bcfd]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f319bcfd{0%{opacity:1}to{opacity:0}}iframe[data-v-5862c299]{border:none;overflow:hidden;width:100%;height:240px}button[data-v-5862c299]{appearance:none;background-color:#1a82b7;border:1px solid rgba(27,31,35,.15);border-radius:6px;box-shadow:#1b1f231a 0 1px;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px;position:relative;text-align:center;text-decoration:none;user-select:none;-webkit-user-select:none;touch-action:manipulation;vertical-align:middle;white-space:nowrap}div#payfurl-payto-form[data-v-d646d395]{padding-bottom:20px}.small[data-v-d646d395]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}svg[data-v-d7e8386b]{fill:#000;stroke:transparent;width:20px;height:20px}.modal-mask[data-v-990ba291]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-990ba291]{max-height:calc(100vh - 20px);margin:30px auto auto}.modal-mask .modal-wrapper .modal-content[data-v-990ba291]{position:relative;background-color:#fff;display:flex;flex-direction:column;min-width:450px;max-height:calc(100vh - 60px)}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{border:none;padding:25px 35px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291]{border-bottom:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-990ba291]{flex:1;overflow-y:auto;padding:0;position:relative}.modal-mask .modal-wrapper .modal-content .main-title[data-v-990ba291]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;color:#000;padding-right:35px}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-990ba291]{position:absolute;top:29px;right:27px;cursor:pointer}.modal-mask .modal-wrapper.small[data-v-990ba291]{margin:20% auto auto}.modal-mask .modal-wrapper.small .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper.small .modal-content .modal-footer[data-v-990ba291]{border:none;padding:15px}.modal-mask .modal-wrapper.small .modal-content .modal-body[data-v-990ba291]{padding:15px 25px 25px}.modal-mask .modal-wrapper.small .modal-content .close-icon[data-v-990ba291]{top:19px}@media (max-height: 460px){.modal-mask .modal-wrapper[data-v-990ba291]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-990ba291]{position:relative;background-color:#fff;overflow-y:auto;display:block}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-990ba291]{height:90px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-990ba291]{position:fixed;width:465px;background-color:#fff;z-index:9998}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-990ba291]{max-height:none;margin-top:90px;overflow-y:visible}}iframe[data-v-deb26109]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}.payfurl-form{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form *,.payfurl-form *:before,.payfurl-form *:after{box-sizing:inherit}.payfurl-form *:focus{outline:none}.payfurl-form label{font-size:.8em;font-weight:700}.payfurl-form input:not([type="checkbox"]):not([type="radio"]){-webkit-appearance:none}.payfurl-form input:not([type="checkbox"]):not([type="radio"]),.payfurl-form select{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input:hover,.payfurl-form select:hover{border-color:var(--border-hover)}.payfurl-form ::placeholder{color:#3b3b3b4d}.payfurl-form ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error{font-size:1.2em;color:var(--color-error)}.payfurl-form .success{font-size:1.2em;color:var(--color-success)}.payfurl-form .group{display:flex;justify-content:flex-start}.payfurl-form .group>div:first-child{margin-right:10px}.payfurl-form .container-form{position:relative;width:300px}.payfurl-form .container-form .text-big{font-size:1.25em}.payfurl-form .container-form .text-normal{font-size:1em}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-text-light: #777777;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-color: #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}div.payfurl-bnpl-form[data-v-ec4cfc64]{padding-bottom:20px;position:relative}button[data-v-ec4cfc64]{width:100%;height:40px;border:0;border-radius:4px;background-color:#459ad8;color:#fff;text-align:center;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400;cursor:pointer}svg[data-v-7d3fe743]{--size: 30px;width:var(--size);height:var(--size)}
1
+ iframe[data-v-c82daa22]{width:250px;height:400px;border:none;overflow:hidden}.mask[data-v-c82daa22]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-c82daa22]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-c82daa22]{position:relative;width:300px;max-width:100%;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-c82daa22]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-82a75009]{width:650px;height:400px;border:none;overflow:hidden}.mask[data-v-82a75009]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-82a75009]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-82a75009]{position:relative;width:700px;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-82a75009]{cursor:pointer;position:absolute;right:5px;top:5px}iframe[data-v-9b0ef3a8]{border:none;overflow:hidden}.mask[data-v-9b0ef3a8]{align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.wrapper[data-v-9b0ef3a8]{max-height:calc(100vh - 20px);margin:50px auto auto}.container[data-v-9b0ef3a8]{position:relative;width:100vw;background:white;display:flex;justify-content:center;align-items:center}svg[data-v-9b0ef3a8]{cursor:pointer;position:absolute;right:5px;top:5px}svg#paypal[data-v-2b840669]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-6a1e8b23]{--size: 30px;width:var(--size);height:var(--size)}svg[data-v-33711fb1]{--size: 30px;width:var(--size);height:var(--size)}svg#payto-icon[data-v-0b2d8aa0]{--size: 30px;width:var(--size);height:var(--size)}.payfurl-sdk-combined-container input[type=radio][data-v-6abd8e98]{height:auto;min-width:auto}.payfurl-sdk-combined-container[data-v-6abd8e98]{max-width:100%;width:fit-content;display:flex;flex-direction:column;padding:15px;border:var(--border);border-radius:5px}.payfurl-sdk-combined-tab[data-v-6abd8e98]{width:auto;height:52px;padding:0 10px;display:flex;align-items:center;justify-items:center;cursor:pointer;background-color:#fff;color:var(--color-text);border-top:1px solid var(--border-color)}.payfurl-sdk-combined-tab[data-v-6abd8e98]:first-child{border-top:0}.payfurl-sdk-combined-tab .combined-tab-title[data-v-6abd8e98]{width:fit-content;height:fit-content;display:flex;flex-direction:column;margin-right:50px}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-name[data-v-6abd8e98]{font-weight:700}.payfurl-sdk-combined-tab .combined-tab-title .combined-tab-description[data-v-6abd8e98]{color:var(--color-text-light);font-size:.8em}.payfurl-sdk-combined-tab>svg[data-v-6abd8e98],.payfurl-sdk-combined-tab>img[data-v-6abd8e98]{margin-left:auto}.payfurl-sdk-combined-tab>input[type=radio][data-v-6abd8e98]{margin-right:20px}.payfurl-sdk-container-component[data-v-6abd8e98]{min-height:50px;padding:0 45px}.payfurl-sdk-combined-container[data-v-6abd8e98]{margin-bottom:20px}.message[data-v-ae4be0f9]{color:var(--color-error);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.message[data-v-265528b7]{color:var(--color-success);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}.masked[data-v-16bb7d59]{height:100vh;width:100vw;background-color:#0009;z-index:999999;position:fixed;top:0;left:0}.lds-spinner[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:absolute;width:var(--spinner-size);height:var(--spinner-size);left:calc(50vw - var(--spinner-size2)/2);top:calc(50vh - var(--spinner-size2)/2)}.lds-spinner.single[data-v-16bb7d59]{--spinner-size: 50px;--spinner-size2: 25px;--spinner-size3: 14px;--spinner-width: 3px;--spinner-left: 23px;display:inline-block;position:relative;width:var(--spinner-size);height:var(--spinner-size);left:calc(50% - var(--spinner-size2)/2);top:0}.message[data-v-16bb7d59]{text-align:center;position:absolute;width:100vw;top:calc(50vh - 75px);color:#fff;font-size:2em}.lds-spinner div[data-v-16bb7d59]{transform-origin:var(--spinner-size2) var(--spinner-size2);animation:lds-spinner-16bb7d59 1.2s linear infinite}.lds-spinner div[data-v-16bb7d59]:after{content:" ";display:block;position:absolute;top:3px;left:var(--spinner-left);width:var(--spinner-width);height:var(--spinner-size3);border-radius:20%;background:#bcdff1}.lds-spinner div[data-v-16bb7d59]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-16bb7d59]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-16bb7d59]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-16bb7d59]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-16bb7d59]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-16bb7d59]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-16bb7d59]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-16bb7d59]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-16bb7d59]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-16bb7d59]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-16bb7d59]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-16bb7d59{0%{opacity:1}to{opacity:0}}iframe[data-v-aadf7fda]{border:none;overflow:hidden;width:100%;height:240px}svg[data-v-d7e8386b]{fill:#000;stroke:transparent;width:20px;height:20px}.modal-mask[data-v-2b2c8fc7]{--color-hr: #ddd;align-items:normal;display:flex;justify-content:center;position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;background-color:#000c;transition:opacity .3s ease}.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:calc(100vh - 20px);margin:30px auto auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;display:flex;flex-direction:column;min-width:min(450px,90vw);max-height:calc(100vh - 60px)}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:25px 35px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{border-bottom:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--color-hr)}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{flex:1;overflow-y:auto;padding:0;position:relative}.modal-mask .modal-wrapper .modal-content .main-title[data-v-2b2c8fc7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;color:#000;padding-right:35px}.modal-mask .modal-wrapper .modal-content .close-icon[data-v-2b2c8fc7]{position:absolute;top:29px;right:27px;cursor:pointer}.modal-mask .modal-wrapper.small[data-v-2b2c8fc7]{margin:20% auto auto}.modal-mask .modal-wrapper.small .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper.small .modal-content .modal-footer[data-v-2b2c8fc7]{border:none;padding:15px}.modal-mask .modal-wrapper.small .modal-content .modal-body[data-v-2b2c8fc7]{padding:15px 25px 25px}.modal-mask .modal-wrapper.small .modal-content .close-icon[data-v-2b2c8fc7]{top:19px}@media (max-height: 460px){.modal-mask .modal-wrapper[data-v-2b2c8fc7]{max-height:none;margin:auto}.modal-mask .modal-wrapper .modal-content[data-v-2b2c8fc7]{position:relative;background-color:#fff;overflow-y:auto;display:block}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7],.modal-mask .modal-wrapper .modal-content .modal-footer[data-v-2b2c8fc7]{height:90px}.modal-mask .modal-wrapper .modal-content .modal-header[data-v-2b2c8fc7]{position:fixed;width:465px;background-color:#fff;z-index:9998}.modal-mask .modal-wrapper .modal-content .modal-body[data-v-2b2c8fc7]{max-height:none;margin-top:90px;overflow-y:visible}}.payfurl-form[data-v-584afce5]{padding:20px}div#payfurl-payto-form[data-v-4d39ea7d]{padding-bottom:20px}.small[data-v-4d39ea7d]{font-size:.8em}div#payfurl-payto-agreement[data-v-f06289bf]{padding-bottom:20px}.message[data-v-f06289bf]{color:var(--color-text);background:transparent;font-size:20px;font-weight:700;margin-bottom:20px}iframe[data-v-deb26109]{width:100%;height:calc(100% - 10px);border:0;overflow:hidden}.payfurl-form{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text);font-size:1em;font-weight:400;line-height:1.5;background-color:var(--background-color);box-sizing:border-box}.payfurl-form *,.payfurl-form *:before,.payfurl-form *:after{box-sizing:inherit}.payfurl-form *:focus{outline:none}.payfurl-form label{font-size:.8em;font-weight:700}.payfurl-form input:not([type="checkbox"]):not([type="radio"]){-webkit-appearance:none}.payfurl-form input:not([type="checkbox"]):not([type="radio"]),.payfurl-form select{max-width:100%;width:100%;border:var(--border);border-radius:4px;box-shadow:inset 0 .0625em .125em #0a0a0a0d;background-color:#fff;color:var(--color-input-text);align-items:center;font-size:1rem;height:2.5em;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;margin:0}.payfurl-form input:hover,.payfurl-form select:hover{border-color:var(--border-hover)}.payfurl-form ::placeholder{color:#3b3b3b4d}.payfurl-form ::-webkit-input-placeholder{color:#3b3b3b4d}.payfurl-form ::-moz-placeholder{color:#3b3b3b4d}.payfurl-form :-ms-input-placeholder{color:#3b3b3b4d}.payfurl-form :-moz-placeholder{color:#3b3b3b4d}.payfurl-form .error{font-size:1.2em;color:var(--color-error)}.payfurl-form .success{font-size:1.2em;color:var(--color-success)}.payfurl-form .group{display:flex;justify-content:flex-start}.payfurl-form .group>div:first-child{margin-right:10px}.payfurl-form .container-form{position:relative;width:300px;max-width:100%}.payfurl-form .container-form .text-big{font-size:1.25em}.payfurl-form .container-form .text-normal{font-size:1em}.payfurl-form button{--color-text: #000;--color-text-light: #594f51;--color-text-background: rgba(15, 135, 201, .1);--input-border: #dbdbdb;--input-border-hover: #b5b5b5;display:flex;align-items:center;color:var(--color-text-light);border:1px solid var(--input-border);transition:all .5s ease;transition-property:color,border;white-space:nowrap}.payfurl-form button:hover{border:1px solid var(--input-border-hover)}.payfurl-form button:hover svg{fill:#000}.payfurl-form button svg{margin-right:5px}body,body.common{--background-color: white;--color-text: #4a4a4a;--color-text-light: #777777;--color-input-text: #4a4a4a;--border: 1px solid #dbdbdb;--border-color: #dbdbdb;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}body.dark{--background-color: black;--color-text: white;--color-input-text: #4a4a4a;--border: 1px solid #b4e1ee;--border-hover: 1px solid #363636;--color-error: red;--color-success: #48b608}div.payfurl-bnpl-form[data-v-04216e23]{padding-bottom:20px;position:relative}button[data-v-04216e23]{width:100%;height:40px;border:0;border-radius:4px;background-color:#459ad8;color:#fff;text-align:center;font-family:Avenir,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:400;cursor:pointer}svg[data-v-7d3fe743]{--size: 30px;width:var(--size);height:var(--size)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@payfurl/client",
3
3
  "private": false,
4
- "version": "4.5.5",
4
+ "version": "4.5.7",
5
5
  "files": [
6
6
  "dist/sdk"
7
7
  ],
@@ -18,6 +18,7 @@
18
18
  "dev": "vite -c vite.iframe.config.ts",
19
19
  "build-iframe": "vite build -c vite.iframe.config.ts --emptyOutDir",
20
20
  "build-sdk": "vite build -c vite.sdk.config.ts",
21
+ "build-all": "npm run build-iframe && npm run build-sdk",
21
22
  "preview": "vite preview",
22
23
  "server": "python3 -m http.server 3001"
23
24
  },
@@ -1,141 +0,0 @@
1
- import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D } from "./main-fabca762.mjs";
2
- import { getEmptySuccessThreeDsPostAuthResponse as U } from "./ThreeDsPostAuthResponse.type-3091950f.mjs";
3
- const T = { class: "mask" }, k = { class: "wrapper" }, L = { class: "container" }, N = ["src"], b = /* @__PURE__ */ v({
4
- __name: "GPayments",
5
- props: {
6
- url: null
7
- },
8
- setup(e) {
9
- const a = e;
10
- return (t, u) => (I(), R("div", T, [
11
- f("div", k, [
12
- f("div", L, [
13
- f("iframe", {
14
- src: a.url
15
- }, null, 8, N)
16
- ])
17
- ])
18
- ]));
19
- }
20
- });
21
- const E = /* @__PURE__ */ g(b, [["__scopeId", "data-v-7e1050e4"]]);
22
- let p = null, C, w = null, n = null, S = "", c = "", _ = "", x, i = null;
23
- function r(e, ...a) {
24
- p && p(e, a);
25
- }
26
- function M() {
27
- r("init authentication"), n == null || n.onPreAuth(H, o);
28
- }
29
- function m() {
30
- r("Do Authentication for transId", c), n == null || n.onAuth(_, S, c, !0, J, o);
31
- }
32
- function d() {
33
- r("Do Post Authentication for transId", c), n == null || n.onPostAuth({ threeDSServerTransID: c }, G, o);
34
- }
35
- function O(e) {
36
- const { destroy: a } = y({
37
- el: document.body,
38
- component: E,
39
- props: {
40
- url: e
41
- },
42
- on: {
43
- close: () => {
44
- a(), i = null;
45
- }
46
- }
47
- });
48
- i = a, window.addEventListener("message", A);
49
- }
50
- function h() {
51
- i == null || i(), window.removeEventListener("message", A);
52
- }
53
- const o = (e, a) => {
54
- if (h(), e === 404) {
55
- n == null || n.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
56
- return;
57
- }
58
- n == null || n.onError({ error: "3D Secure failed", body: a });
59
- }, G = (e, a) => {
60
- h();
61
- const t = JSON.parse(a);
62
- ["Y", "A"].includes(t.transStatus) ? n == null || n.onSuccess(t) : (r("3D Secure failed", t), n == null || n.onError({ error: "3D Secure failed" }));
63
- }, H = (e, a) => {
64
- const t = JSON.parse(a);
65
- if (r("[onInitAuthSuccess]", t), !t.threeDSMethodAvailable) {
66
- r("3DS Check is NOT available"), n == null || n.onSuccess(U());
67
- return;
68
- }
69
- if (!t.threeDSAuthURL) {
70
- o(e, "No AuthUrl specified");
71
- return;
72
- }
73
- S = t.threeDSRequestorTransID, c = t.threeDSServerTransID, t.threeDSMonitorURL, _ = t.threeDSAuthURL, m();
74
- }, J = (e, a) => {
75
- const t = JSON.parse(a);
76
- if (r("[onDoAuthSuccess]", t), !t.transStatus) {
77
- o(e, "No transStatus specified");
78
- return;
79
- }
80
- switch (t.transStatus) {
81
- case "C":
82
- if (!t.acsURL) {
83
- o(e, "Invalid Challenge Url");
84
- return;
85
- }
86
- O(t.acsURL);
87
- break;
88
- case "D":
89
- if (!t.threeDSMonitorURL) {
90
- o(e, "Invalid Result Mon Url");
91
- return;
92
- }
93
- B(t.threeDSMonitorURL);
94
- break;
95
- default:
96
- d();
97
- break;
98
- }
99
- };
100
- let l = null;
101
- function B(e) {
102
- if (l)
103
- return;
104
- const a = new D("", "", null);
105
- l = setInterval(() => {
106
- a.invoke(e, "GET", {}, (t, u) => {
107
- const s = JSON.parse(u);
108
- if (!s.event) {
109
- r("Invalid mon url result", u);
110
- return;
111
- }
112
- if (s.event === "AuthResultNotReady") {
113
- r("AuthResultNotReady, retry in 2 seconds");
114
- return;
115
- } else
116
- s.event === "AuthResultReady" ? (r("AuthResultReady", s), d()) : r("Invalid mon url result", s);
117
- }, (t, u) => {
118
- l && (clearInterval(l), l = null), o(t, "Invalid mon url result");
119
- });
120
- }, 2e3);
121
- }
122
- function A(e) {
123
- var a, t;
124
- if (!(!((a = e == null ? void 0 : e.data) != null && a.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === "failure") && e.data.status === "3ds_challenge_complete") {
125
- e.stopPropagation(), h(), r("3Ds Challenge complete", e.data), d();
126
- return;
127
- }
128
- }
129
- function Y(e, a, t, u) {
130
- return p = e, w = a, x = t || document.body, C = u, {
131
- onPreAuth: M,
132
- onAuth: m,
133
- onPostAuth: d,
134
- setThreeDsProcessor: (s) => {
135
- n = s;
136
- }
137
- };
138
- }
139
- export {
140
- Y as default
141
- };