tf-checkout-react 1.0.106-beta.7 → 1.0.106-beta.8
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/api/index.d.ts +7 -0
- package/dist/components/billing-info-container/index.d.ts +5 -1
- package/dist/components/forgotPasswordModal/index.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/loginModal/index.d.ts +4 -0
- package/dist/components/resetPasswordContainer/index.d.ts +10 -0
- package/dist/components/signupModal/index.d.ts +14 -0
- package/dist/tf-checkout-react.cjs.development.js +423 -276
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +422 -275
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +13 -0
- package/src/components/billing-info-container/index.tsx +43 -12
- package/src/components/forgotPasswordModal/index.tsx +107 -0
- package/src/components/forgotPasswordModal/style.css +47 -0
- package/src/components/index.ts +1 -0
- package/src/components/loginModal/index.tsx +19 -9
- package/src/components/orderDetailsContainer/ticketsTable.tsx +11 -13
- package/src/components/resetPasswordContainer/index.tsx +96 -0
- package/src/components/resetPasswordContainer/style.css +36 -0
- package/src/components/signupModal/index.tsx +195 -0
- package/src/components/signupModal/style.css +58 -0
- package/dist/components/registerModal/index.d.ts +0 -11
- package/src/components/registerModal/index.tsx +0 -190
- package/src/components/registerModal/style.css +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
.button-container{display:flex;justify-content:center;padding:20px}.billing-info-container{margin:0 auto;max-width:800px}.billing-info-container .is-half{width:49%}.billing-info-container p{color:#000}.billing-info-container .main-header{font-size:2rem;font-weight:600}.billing-info-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.billing-info-container__singleField{margin-top:15px}.account-actions-block{color:#182026;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;margin-top:10px}.login-register-button,.MuiButtonBase-root.MuiButton-root,.MuiButtonBase-root.MuiButton-root:hover{background-color:#212529;border:#f28051;border-radius:5px;color:#fff;cursor:pointer;display:block;font-family:Inter-Bold;font-size:26px;font-weight:700;line-height:1.15;margin-top:10px;min-height:46px;outline:none;overflow:hidden;padding:14px 12px 12px;position:relative;text-align:center;text-overflow:ellipsis;text-transform:uppercase;width:49%}.logo-image-container{margin-top:5px;text-align:center;width:49%}.logo-image-container img{height:30px}.login-block{align-items:center;display:flex;flex-direction:column}.login-register-button:hover{background-color:#505050!important;border-color:#505050!important}.login-register-block{display:flex;justify-content:space-between}@media only screen and (max-width:820px){.billing-info-container{width:90%}.billing-info-container .main-header{font-size:1.5rem}}.email-checking{margin-bottom:15px}.modal-title{align-items:center;background-color:#fff;display:flex;font-family:Inter;font-size:18px;font-weight:700;height:49px;line-height:22px;padding-left:25px;position:relative}.login-modal-body{padding:15px 25px}.login-modal-body input{background:#fff!important}.login-modal-body__email,.login-modal-body__password{margin-bottom:20px}.login-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin:10px 0;outline:none;padding:10px;width:100%}.login-action-button button:hover{background-color:#505050;border-color:#505050}.server_auth__error{color:red;font-family:Inter;font-size:12px;font-style:normal;padding-left:25px;padding-top:15px}.info-text-for-login{font-size:14px;margin-bottom:4px;padding-left:10px}.forgot-password{text-align:center}.forgot-password span{cursor:pointer}.forgot-password span:hover{text-decoration:underline}.register-container{margin:0 auto;max-width:800px}.register-container .is-half{width:49%}.register-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.register-container__singleField{margin-top:15px}button{margin-top:10px}.timer{background-color:#000;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=);background-position:15px;background-repeat:no-repeat;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;margin:0 0 6px;max-width:300px;overflow:hidden;padding:15px 15px 15px 50px;pointer-events:auto;position:absolute;right:15px;width:300px}.timer .close-icon{cursor:pointer;display:flex;position:absolute;right:10px;top:10px}.timer .countdown{font-weight:700;margin-top:10px}.payment_page{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.payment_page .order_info_section{padding:15px 0}.payment_page .order_info_section .order_info_block{padding-bottom:15px;padding-top:15px}.payment_page .order_info_section .order_info_block .field-underline{border-bottom:1px solid #000;padding-bottom:15px}.payment_page .order_info_section .order_info_block .order_info_title{font-size:14px;font-weight:700;padding-bottom:3px}.payment_page .order_info_section .order_info_block .order_info_text{font-size:16px;line-height:1.15;outline:none}.payment_page .MuiBox-root{margin-left:auto;margin-right:auto;padding:20px;text-align:center}.payment_page .payment_info_label{padding:20px 0;text-align:center}.payment_page .payment_form{color:#fff;padding:20px}.payment_page .payment_form input,.payment_page .payment_form label{color:#fff}.payment_page .payment_button{padding-top:20px;text-align:center}.card_form_inner{background:#232323;border-radius:8px;margin:0 auto 20px;min-width:325px;padding:15px;width:50%}.card_form_inner .card_label_text{color:#fff}.card_form_inner .StripeElement{margin:5px 0 10px}.card_label_text{color:#fff}.payment_button{padding-top:15px;text-align:center}.payment_button button{background-color:#212529;border-radius:8px;color:#fff;cursor:pointer;font-size:26px;padding:15px 30px;transition:opacity .5s;width:200px}.payment_button button:hover{opacity:.7}.disabled-payment-button button{opacity:.3;pointer-events:none;user-select:none}.checkout_error_block{color:#e53935;font-weight:600;padding:15px 0}.zip_element p{margin-bottom:0}.zip_element input{background-color:#000;border:none;color:#fff;font-size:18px;margin-top:5px;outline:none;width:100%}.confirmation-page{margin:0 auto;max-width:1024px}.confirmation-page button{margin-top:inherit}.confirmation-page .strong-text{font-weight:700}.confirmation-page .title{color:#333;font-size:24px;font-weight:600}.confirmation-page .share-message-section{background:#dff0d8;border:1px solid #d6e9c6;border-radius:5px;color:#2c7221;display:flex;flex-direction:column;margin:20px 0;padding:15px}.confirmation-page .main{font-size:15px;font-weight:700}.confirmation-page .helper,.confirmation-page .main{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.confirmation-page .helper{font-size:14px;margin-top:5px}.confirmation-page .referral_text_image_section{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.confirmation-page .referral_text_section{margin:10px}.confirmation-page .referral_title_text{color:#f08057;font-size:28px;padding-bottom:10px}.confirmation-page .referral_text{font-size:18px}.confirmation-page .referral_text_image_section img{margin:10px;max-width:200px}.confirmation-page .share_wrapper{column-gap:5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:10px}.confirmation-page .invitation_title{font-size:22px;padding-bottom:12px;padding-top:12px}.confirmation-page .share_section{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px}.confirmation-page .invitation_section{flex:1 1;padding:0 5px}.confirmation-page .share_buttons{display:grid;flex-wrap:wrap;margin:0 -7px}.confirmation-page .convenient_buttons{margin-top:10px}.confirmation-page .social-media-btns{grid-gap:5px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.confirmation-page .sharing-btn{background-color:#000;flex:1 1;min-width:130px}.confirmation-page .sharing-btn a{text-decoration:none}.confirmation-page .share-by-link{background:#000;color:#fff;padding:10px}.confirmation-page .share-by-link.label{margin:0;padding:0;text-align:left}.confirmation-page .share-btn-inner{align-items:center;background-color:#000;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-flex;padding:0;text-align:left;width:100%}.confirmation-page .share-input{background-color:#fff;border:none;outline:none;padding:5px;text-align:left;width:300px}.confirmation-page .share-text{display:block;font-size:13px;font-weight:600;padding-top:8px;width:100%}.confirmation-page .pricing-section_wrapper{background:#e3e3e3;border:1px solid #dcdcdc;display:grid;grid-template-columns:1fr 1fr;margin:10px 0;padding:15px}.confirmation-page .pricing-section_label{font-weight:600}.confirmation-page .pricing-section_sublabel{font-size:14px;font-weight:100}.confirmation-page .pricing-section_price{font-weight:600;text-align:right}.confirmation-page .share-by-link-copy-icon{align-items:center;background-color:#32325d;border-radius:4px;color:#fff;cursor:pointer;display:flex;justify-content:center;margin-left:8px;padding:10px;transition:all .15s ease}.confirmation-page .share-by-link-copy-icon:hover{background-color:#505050}.confirmation-page .share-by-link-copy-icon img{width:14px}.confirmation-page .social-media-sharing{background-color:#000;color:#fff;cursor:pointer;padding:10px;text-align:center}.confirmation-page .share-icon{border-radius:4px;display:inline-flex}@media only screen and (max-width:1050px){.confirmation-page .share_wrapper{column-gap:0;display:grid;grid-template-columns:unset;margin:15px}}@media only screen and (max-width:480px){.confirmation-page .social-media-btns{grid-template-columns:unset}.confirmation-page .share-input{width:250px}}body{margin:0;padding:0}.get-tickets-page{width:100%}.event-detail__tier{background-color:#fff;padding:17px 35px 20px}.event-detail__tier-name{color:#000;font-family:Inter-Bold;font-family:Bebas Neue;font-size:.85rem;font-weight:700;letter-spacing:.2em;line-height:1.3;margin-bottom:8px;margin-top:16px;padding-right:20%;text-transform:uppercase}.event-detail__tier-status{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:8px;width:100%}.event-detail__tier-status.ticket-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;font-weight:700;letter-spacing:.2em;line-height:1.5;margin-bottom:10px;width:200px}.event-tickets-container{align-items:center;display:flex;justify-content:space-between}.event-detail__tier-status.ticket-button.true{background-color:#c1c3c6;border-color:#afb0b1}.event-detail__tier-price{color:#000;font-family:Inter-Bold;font-size:1.5rem;line-height:1;text-align:center}.event-detail__tier-price p{margin:0}.event-detail__tier-price .fees{font-size:14px;margin-top:4px;text-align:left}.event-detail__tier-price .old-price{color:red;font-size:1.3rem;margin-bottom:5px;text-decoration:line-through}.alert-info{align-items:center;background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;display:flex;font-size:1em;justify-content:center;margin:0 35px;padding:8px 15px;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.alert-info svg{margin-right:4px}.event-detail__tier-state{color:#30bc9d;font-family:Inter-Bold;font-size:.75rem;font-weight:300;line-height:1;text-align:right;text-transform:uppercase}.event-detail__tier-state .ticket-not-started-message{color:#000;text-align:left;text-transform:none;width:50px}.promo-code-block input{font-size:14px;padding:1px 8px}.book-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;display:block;font-size:26px;font-weight:700;height:50px;letter-spacing:.2em;line-height:1.5;margin:25px auto 10px;text-align:center;width:100%}.book-button:hover{background-color:#505050;border-color:#505050}.loader-container{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.get-tickets-paper::-webkit-scrollbar{width:5px}.get-tickets-paper::-webkit-scrollbar-track{background:#f1f1f1}.get-tickets-paper::-webkit-scrollbar-thumb{background:#888}.get-tickets-paper::-webkit-scrollbar-thumb:hover{background:#555}.get-tickets .get-tickets__selectbox{width:100%}.disabled{pointer-events:none;user-select:none}.hidden{display:none}.event-closed-message{font-family:Bebas Neue;letter-spacing:.5px}.waiting-list{padding:17px 35px 20px}.waiting-list .field-item{margin-bottom:30px}.waiting-list .waiting-list-button{width:100%!important}.waiting-list .waiting-list-button:hover{background-color:#505050}.waiting-list .success-message{margin-bottom:15px;text-align:center}.waiting-list .success-message p{margin:0}.waiting-list .no-tickets-text{font-weight:700;text-align:center}.waiting-list .added-success-message{font-size:22px;margin-bottom:10px}.countdown p{margin:0}.countdown .title{font-weight:700}.countdown .message{font-weight:700;margin-top:20px}.my-ticket{padding:30px}.my-ticket-table{margin-top:30px}.my-ticket .loading{background-color:rgba(0,0,0,.4);height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%}.my-ticket .event-info,.my-ticket .loading{align-items:center;display:flex}.my-ticket thead th{font-weight:700}.my-ticket .event-info img{margin-right:10px;width:50px}.my-ticket .order-details-button{background-color:#32325d;border:none;border-radius:4px;color:#fff;cursor:pointer;padding:10px 14px;transition:all .15s ease}.my-ticket .order-details-button:hover{background-color:#505050}.order-details{margin:0 auto;max-width:940px}.order-details .loading{align-items:center;background-color:rgba(0,0,0,.4);display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:1400}.order-details .layout-title{font-size:24px;font-weight:400}.order-details .sub-title{font-size:18px;font-weight:400;margin:10px 0}.order-details .order-summary-box{margin-top:30px}.order-details .total-row td,.order-details th{color:#fff;font-weight:700}.order-details .tickets-box{margin-top:30px}.order-details .ticket-add-on-table{background-color:#fcf8e3}.order-details .action-button{background-color:#212529;border:1px solid #fff;border-radius:0;color:#fff;cursor:pointer;display:block;font-family:Bebas Neue;font-size:14px;font-weight:400;line-height:normal;margin-bottom:20px;margin-top:20px;min-height:auto;outline:none;overflow:hidden;padding:12px;position:relative;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;width:max-content}.order-details .download-button:hover{background-color:#505050}.order-details .personal-link{padding:20px 0}.resale-modal .field-box{display:flex;margin-bottom:10px}.resale-modal .field-box .icon{align-items:center;display:flex;height:56px;justify-content:center;min-width:44px}.resale-modal .field-box .empty-box{min-width:44px}.resale-modal .resale-action-button button{background-color:#212529;color:#fff;cursor:pointer;width:100%}.resale-modal .resale-action-button button[disabled]{opacity:.7}.resale-modal .resale-action-button button:hover{background-color:#505050;border-color:#505050;width:100%}.confirm-modal .footer{border-top:1px solid #c0bfbf;display:flex;gap:10px;justify-content:flex-end}.confirm-modal .footer button,.confirm-modal .footer button:hover{font-size:12px;min-height:unset;padding:12px 8px;text-transform:unset;width:max-content}.confirm-modal .footer button:hover{background:#505050}
|
|
1
|
+
.button-container{display:flex;justify-content:center;padding:20px}.billing-info-container{margin:0 auto;max-width:800px}.billing-info-container .is-half{width:49%}.billing-info-container p{color:#000}.billing-info-container .main-header{font-size:2rem;font-weight:600}.billing-info-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.billing-info-container__singleField{margin-top:15px}button{margin-top:10px}.account-actions-block{color:#182026;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;margin-top:10px}.login-register-button,.MuiButtonBase-root.MuiButton-root,.MuiButtonBase-root.MuiButton-root:hover{background-color:#212529;border:#f28051;border-radius:5px;color:#fff;cursor:pointer;display:block;font-family:Inter-Bold;font-size:26px;font-weight:700;line-height:1.15;margin-top:10px;min-height:46px;outline:none;overflow:hidden;padding:14px 12px 12px;position:relative;text-align:center;text-overflow:ellipsis;text-transform:uppercase;width:49%}.logo-image-container{margin-top:5px;text-align:center;width:49%}.logo-image-container img{height:30px}.login-block{align-items:center;display:flex;flex-direction:column}.login-register-button:hover{background-color:#505050!important;border-color:#505050!important}.login-register-block{display:flex;justify-content:space-between}@media only screen and (max-width:820px){.billing-info-container{width:90%}.billing-info-container .main-header{font-size:1.5rem}}.email-checking{margin-bottom:15px}.modal-title{align-items:center;background-color:#fff;display:flex;font-family:Inter;font-size:18px;font-weight:700;height:49px;line-height:22px;padding-left:25px;position:relative}.login-modal-body{padding:15px 25px}.login-modal-body input{background:#fff!important}.login-modal-body__email,.login-modal-body__password{margin-bottom:20px}.login-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin:10px 0;outline:none;padding:10px;width:100%}.login-action-button button:hover{background-color:#505050;border-color:#505050}.server_auth__error{color:red;font-family:Inter;font-size:12px;font-style:normal;padding-left:25px;padding-top:15px}.info-text-for-login{font-size:14px;margin-bottom:4px;padding-left:10px}.forgot-password{text-align:center}.forgot-password span{cursor:pointer}.forgot-password span:hover{text-decoration:underline}.signup-modal .signup-container{margin:0 auto;max-width:800px}.signup-modal .title{background-color:#fff;font-family:Inter;font-size:18px;font-weight:700}.signup-modal .signup-container .is-half{width:49%}.signup-modal .signup-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.signup-modal .signup-container__singleField{margin-top:15px}.signup-modal button{margin-top:10px}.signup-modal .signup-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:10px;outline:none;padding:10px;text-transform:uppercase;width:100%}.signup-modal .signup-action-button button:hover:enabled{background-color:#505050;border-color:#505050}.signup-modal .login{margin-top:10px;text-align:center}.signup-modal .login span{cursor:pointer}.signup-modal .login span:hover{text-decoration:underline}.signup-modal button[disabled]{cursor:unset;opacity:.7}.forgot-password-modal .forgot-password-container{margin:0 auto;max-width:800px}.forgot-password-modal .title{background-color:#fff;font-family:Inter;font-size:18px;font-weight:700}.forgot-password-modal .forgot-password-container__singleField{margin-top:15px}.forgot-password-modal .forgot-password-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:10px;outline:none;padding:10px;text-transform:uppercase;width:100%}.forgot-password-modal .forgot-password-action-button button:hover:enabled{background-color:#505050;border-color:#505050}.forgot-password-modal .login{margin-top:10px;text-align:center}.forgot-password-modal .login span{cursor:pointer}.forgot-password-modal .login span:hover{text-decoration:underline}.forgot-password-modal button[disabled]{cursor:unset;opacity:.7}.timer{background-color:#000;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=);background-position:15px;background-repeat:no-repeat;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;margin:0 0 6px;max-width:300px;overflow:hidden;padding:15px 15px 15px 50px;pointer-events:auto;position:absolute;right:15px;width:300px}.timer .close-icon{cursor:pointer;display:flex;position:absolute;right:10px;top:10px}.timer .countdown{font-weight:700;margin-top:10px}.payment_page{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.payment_page .order_info_section{padding:15px 0}.payment_page .order_info_section .order_info_block{padding-bottom:15px;padding-top:15px}.payment_page .order_info_section .order_info_block .field-underline{border-bottom:1px solid #000;padding-bottom:15px}.payment_page .order_info_section .order_info_block .order_info_title{font-size:14px;font-weight:700;padding-bottom:3px}.payment_page .order_info_section .order_info_block .order_info_text{font-size:16px;line-height:1.15;outline:none}.payment_page .MuiBox-root{margin-left:auto;margin-right:auto;padding:20px;text-align:center}.payment_page .payment_info_label{padding:20px 0;text-align:center}.payment_page .payment_form{color:#fff;padding:20px}.payment_page .payment_form input,.payment_page .payment_form label{color:#fff}.payment_page .payment_button{padding-top:20px;text-align:center}.card_form_inner{background:#232323;border-radius:8px;margin:0 auto 20px;min-width:325px;padding:15px;width:50%}.card_form_inner .card_label_text{color:#fff}.card_form_inner .StripeElement{margin:5px 0 10px}.card_label_text{color:#fff}.payment_button{padding-top:15px;text-align:center}.payment_button button{background-color:#212529;border-radius:8px;color:#fff;cursor:pointer;font-size:26px;padding:15px 30px;transition:opacity .5s;width:200px}.payment_button button:hover{opacity:.7}.disabled-payment-button button{opacity:.3;pointer-events:none;user-select:none}.checkout_error_block{color:#e53935;font-weight:600;padding:15px 0}.zip_element p{margin-bottom:0}.zip_element input{background-color:#000;border:none;color:#fff;font-size:18px;margin-top:5px;outline:none;width:100%}.confirmation-page{margin:0 auto;max-width:1024px}.confirmation-page button{margin-top:inherit}.confirmation-page .strong-text{font-weight:700}.confirmation-page .title{color:#333;font-size:24px;font-weight:600}.confirmation-page .share-message-section{background:#dff0d8;border:1px solid #d6e9c6;border-radius:5px;color:#2c7221;display:flex;flex-direction:column;margin:20px 0;padding:15px}.confirmation-page .main{font-size:15px;font-weight:700}.confirmation-page .helper,.confirmation-page .main{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.confirmation-page .helper{font-size:14px;margin-top:5px}.confirmation-page .referral_text_image_section{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.confirmation-page .referral_text_section{margin:10px}.confirmation-page .referral_title_text{color:#f08057;font-size:28px;padding-bottom:10px}.confirmation-page .referral_text{font-size:18px}.confirmation-page .referral_text_image_section img{margin:10px;max-width:200px}.confirmation-page .share_wrapper{column-gap:5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:10px}.confirmation-page .invitation_title{font-size:22px;padding-bottom:12px;padding-top:12px}.confirmation-page .share_section{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px}.confirmation-page .invitation_section{flex:1 1;padding:0 5px}.confirmation-page .share_buttons{display:grid;flex-wrap:wrap;margin:0 -7px}.confirmation-page .convenient_buttons{margin-top:10px}.confirmation-page .social-media-btns{grid-gap:5px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.confirmation-page .sharing-btn{background-color:#000;flex:1 1;min-width:130px}.confirmation-page .sharing-btn a{text-decoration:none}.confirmation-page .share-by-link{background:#000;color:#fff;padding:10px}.confirmation-page .share-by-link.label{margin:0;padding:0;text-align:left}.confirmation-page .share-btn-inner{align-items:center;background-color:#000;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-flex;padding:0;text-align:left;width:100%}.confirmation-page .share-input{background-color:#fff;border:none;outline:none;padding:5px;text-align:left;width:300px}.confirmation-page .share-text{display:block;font-size:13px;font-weight:600;padding-top:8px;width:100%}.confirmation-page .pricing-section_wrapper{background:#e3e3e3;border:1px solid #dcdcdc;display:grid;grid-template-columns:1fr 1fr;margin:10px 0;padding:15px}.confirmation-page .pricing-section_label{font-weight:600}.confirmation-page .pricing-section_sublabel{font-size:14px;font-weight:100}.confirmation-page .pricing-section_price{font-weight:600;text-align:right}.confirmation-page .share-by-link-copy-icon{align-items:center;background-color:#32325d;border-radius:4px;color:#fff;cursor:pointer;display:flex;justify-content:center;margin-left:8px;padding:10px;transition:all .15s ease}.confirmation-page .share-by-link-copy-icon:hover{background-color:#505050}.confirmation-page .share-by-link-copy-icon img{width:14px}.confirmation-page .social-media-sharing{background-color:#000;color:#fff;cursor:pointer;padding:10px;text-align:center}.confirmation-page .share-icon{border-radius:4px;display:inline-flex}@media only screen and (max-width:1050px){.confirmation-page .share_wrapper{column-gap:0;display:grid;grid-template-columns:unset;margin:15px}}@media only screen and (max-width:480px){.confirmation-page .social-media-btns{grid-template-columns:unset}.confirmation-page .share-input{width:250px}}body{margin:0;padding:0}.get-tickets-page{width:100%}.event-detail__tier{background-color:#fff;padding:17px 35px 20px}.event-detail__tier-name{color:#000;font-family:Inter-Bold;font-family:Bebas Neue;font-size:.85rem;font-weight:700;letter-spacing:.2em;line-height:1.3;margin-bottom:8px;margin-top:16px;padding-right:20%;text-transform:uppercase}.event-detail__tier-status{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:8px;width:100%}.event-detail__tier-status.ticket-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;font-weight:700;letter-spacing:.2em;line-height:1.5;margin-bottom:10px;width:200px}.event-tickets-container{align-items:center;display:flex;justify-content:space-between}.event-detail__tier-status.ticket-button.true{background-color:#c1c3c6;border-color:#afb0b1}.event-detail__tier-price{color:#000;font-family:Inter-Bold;font-size:1.5rem;line-height:1;text-align:center}.event-detail__tier-price p{margin:0}.event-detail__tier-price .fees{font-size:14px;margin-top:4px;text-align:left}.event-detail__tier-price .old-price{color:red;font-size:1.3rem;margin-bottom:5px;text-decoration:line-through}.alert-info{align-items:center;background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;display:flex;font-size:1em;justify-content:center;margin:0 35px;padding:8px 15px;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.alert-info svg{margin-right:4px}.event-detail__tier-state{color:#30bc9d;font-family:Inter-Bold;font-size:.75rem;font-weight:300;line-height:1;text-align:right;text-transform:uppercase}.event-detail__tier-state .ticket-not-started-message{color:#000;text-align:left;text-transform:none;width:50px}.promo-code-block input{font-size:14px;padding:1px 8px}.book-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;display:block;font-size:26px;font-weight:700;height:50px;letter-spacing:.2em;line-height:1.5;margin:25px auto 10px;text-align:center;width:100%}.book-button:hover{background-color:#505050;border-color:#505050}.loader-container{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.get-tickets-paper::-webkit-scrollbar{width:5px}.get-tickets-paper::-webkit-scrollbar-track{background:#f1f1f1}.get-tickets-paper::-webkit-scrollbar-thumb{background:#888}.get-tickets-paper::-webkit-scrollbar-thumb:hover{background:#555}.get-tickets .get-tickets__selectbox{width:100%}.disabled{pointer-events:none;user-select:none}.hidden{display:none}.event-closed-message{font-family:Bebas Neue;letter-spacing:.5px}.waiting-list{padding:17px 35px 20px}.waiting-list .field-item{margin-bottom:30px}.waiting-list .waiting-list-button{width:100%!important}.waiting-list .waiting-list-button:hover{background-color:#505050}.waiting-list .success-message{margin-bottom:15px;text-align:center}.waiting-list .success-message p{margin:0}.waiting-list .no-tickets-text{font-weight:700;text-align:center}.waiting-list .added-success-message{font-size:22px;margin-bottom:10px}.countdown p{margin:0}.countdown .title{font-weight:700}.countdown .message{font-weight:700;margin-top:20px}.my-ticket{padding:30px}.my-ticket-table{margin-top:30px}.my-ticket .loading{background-color:rgba(0,0,0,.4);height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%}.my-ticket .event-info,.my-ticket .loading{align-items:center;display:flex}.my-ticket thead th{font-weight:700}.my-ticket .event-info img{margin-right:10px;width:50px}.my-ticket .order-details-button{background-color:#32325d;border:none;border-radius:4px;color:#fff;cursor:pointer;padding:10px 14px;transition:all .15s ease}.my-ticket .order-details-button:hover{background-color:#505050}.order-details{margin:0 auto;max-width:940px}.order-details .loading{align-items:center;background-color:rgba(0,0,0,.4);display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:1400}.order-details .layout-title{font-size:24px;font-weight:400}.order-details .sub-title{font-size:18px;font-weight:400;margin:10px 0}.order-details .order-summary-box{margin-top:30px}.order-details .total-row td,.order-details th{color:#fff;font-weight:700}.order-details .tickets-box{margin-top:30px}.order-details .ticket-add-on-table{background-color:#fcf8e3}.order-details .action-button{background-color:#212529;border:1px solid #fff;border-radius:0;color:#fff;cursor:pointer;display:block;font-family:Bebas Neue;font-size:14px;font-weight:400;line-height:normal;margin-bottom:20px;margin-top:20px;min-height:auto;outline:none;overflow:hidden;padding:12px;position:relative;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;width:max-content}.order-details .download-button:hover{background-color:#505050}.order-details .personal-link{padding:20px 0}.resale-modal .field-box{display:flex;margin-bottom:10px}.resale-modal .field-box .icon{align-items:center;display:flex;height:56px;justify-content:center;min-width:44px}.resale-modal .field-box .empty-box{min-width:44px}.resale-modal .resale-action-button button{background-color:#212529;color:#fff;cursor:pointer;width:100%}.resale-modal .resale-action-button button[disabled]{opacity:.7}.resale-modal .resale-action-button button:hover{background-color:#505050;border-color:#505050;width:100%}.confirm-modal .footer{border-top:1px solid #c0bfbf;display:flex;gap:10px;justify-content:flex-end}.confirm-modal .footer button,.confirm-modal .footer button:hover{font-size:12px;min-height:unset;padding:12px 8px;text-transform:unset;width:max-content}.confirm-modal .footer button:hover{background:#505050}.reset-password{margin:0 auto;max-width:300px;padding:14px}.reset-password .title{font-size:20px;font-weight:700}.reset-password .field-item{margin-top:14px}.reset-password .action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:14px;outline:none;padding:10px;text-transform:uppercase;width:100%}.reset-password .action-button button:hover:enabled{background-color:#505050;border-color:#505050}.reset-password .action-button button[disabled]{cursor:unset;opacity:.7}
|
package/package.json
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -288,6 +288,19 @@ export const postReferralVisits = (eventId: string, referralId: string) =>
|
|
|
288
288
|
referrer: `${referralId}`,
|
|
289
289
|
})
|
|
290
290
|
|
|
291
|
+
// forgot password
|
|
292
|
+
export const forgotPassword = (email: string) =>
|
|
293
|
+
publicRequest.post(`/v1/oauth/restore-password-rn`, { email })
|
|
294
|
+
|
|
295
|
+
// reset password
|
|
296
|
+
interface IResetPasswordData {
|
|
297
|
+
token: string
|
|
298
|
+
password: string
|
|
299
|
+
confirmPassword: string
|
|
300
|
+
}
|
|
301
|
+
export const resetPassword = (data: IResetPasswordData) =>
|
|
302
|
+
publicRequest.post(`/v1/oauth/reset-password-rn`, data)
|
|
303
|
+
|
|
291
304
|
export const processTicket = (hash: string) => {
|
|
292
305
|
return publicRequest.post(`v1/ticket/${hash}/process/`)
|
|
293
306
|
}
|
|
@@ -30,7 +30,8 @@ import {
|
|
|
30
30
|
getStates,
|
|
31
31
|
} from '../../api'
|
|
32
32
|
import { LoginModal } from '../loginModal'
|
|
33
|
-
import {
|
|
33
|
+
import { SignupModal } from '../signupModal'
|
|
34
|
+
import { ForgotPasswordModal } from '../forgotPasswordModal'
|
|
34
35
|
import {
|
|
35
36
|
assingUniqueIds,
|
|
36
37
|
createCheckoutDataBody,
|
|
@@ -95,9 +96,13 @@ export interface IBillingInfoPage {
|
|
|
95
96
|
onSkipBillingPage: (data: any) => void;
|
|
96
97
|
skipPage?: boolean;
|
|
97
98
|
canSkipHolderNames?: boolean;
|
|
99
|
+
onForgotPasswordSuccess?: (res: any) => void;
|
|
100
|
+
onForgotPasswordError?: (e: AxiosError) => void;
|
|
98
101
|
onCountdownFinish?: () => void;
|
|
99
102
|
enableTimer?: boolean;
|
|
100
103
|
logo?: string;
|
|
104
|
+
showForgotPasswordButton?: boolean;
|
|
105
|
+
showSignUpButton?: boolean;
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
const LogicRunner: FC<{
|
|
@@ -213,9 +218,13 @@ export const BillingInfoContainer = ({
|
|
|
213
218
|
onSkipBillingPage = () => {},
|
|
214
219
|
skipPage = false,
|
|
215
220
|
canSkipHolderNames = false,
|
|
221
|
+
onForgotPasswordSuccess = () => {},
|
|
222
|
+
onForgotPasswordError = () => {},
|
|
216
223
|
onCountdownFinish = () => {},
|
|
217
224
|
enableTimer = false,
|
|
218
|
-
logo
|
|
225
|
+
logo,
|
|
226
|
+
showForgotPasswordButton = false,
|
|
227
|
+
showSignUpButton = false
|
|
219
228
|
}: IBillingInfoPage) => {
|
|
220
229
|
const themeMui = createTheme(themeOptions)
|
|
221
230
|
const isWindowDefined = typeof window !== 'undefined'
|
|
@@ -237,7 +246,8 @@ export const BillingInfoContainer = ({
|
|
|
237
246
|
const [showModalLogin, setShowModalLogin] = useState(false)
|
|
238
247
|
const [alreadyHasUser, setAlreadyHasUser] = useState(false)
|
|
239
248
|
const [userExpired, setUserExpired] = useState(false)
|
|
240
|
-
const [
|
|
249
|
+
const [showModalSignup, setShowModalSignup] = useState(false)
|
|
250
|
+
const [showModalForgotPassword, setShowModalForgotPassword] = useState(false)
|
|
241
251
|
const [ticketsQuantity, setTicketsQuantity] = useState<string[]>([])
|
|
242
252
|
const [userValues, setUserValues] = useState<any>({
|
|
243
253
|
firstName: '',
|
|
@@ -792,21 +802,42 @@ export const BillingInfoContainer = ({
|
|
|
792
802
|
onGetProfileDataSuccess(data)
|
|
793
803
|
}}
|
|
794
804
|
onGetProfileDataError={onGetProfileDataError}
|
|
805
|
+
showSignUpButton={showSignUpButton}
|
|
806
|
+
showForgotPasswordButton={showForgotPasswordButton}
|
|
807
|
+
onForgotPassword={() => {
|
|
808
|
+
setShowModalLogin(false)
|
|
809
|
+
setShowModalForgotPassword(true)
|
|
810
|
+
}}
|
|
811
|
+
onSignup={() => {
|
|
812
|
+
setShowModalLogin(false)
|
|
813
|
+
setShowModalSignup(true)
|
|
814
|
+
}}
|
|
795
815
|
/>
|
|
796
816
|
)}
|
|
797
|
-
{
|
|
798
|
-
<
|
|
817
|
+
{showModalSignup && (
|
|
818
|
+
<SignupModal
|
|
799
819
|
onClose={() => {
|
|
800
|
-
|
|
820
|
+
setShowModalSignup(false)
|
|
801
821
|
}}
|
|
802
|
-
|
|
803
|
-
|
|
822
|
+
onLogin={() => {
|
|
823
|
+
setShowModalSignup(false)
|
|
824
|
+
setShowModalLogin(true)
|
|
804
825
|
}}
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
826
|
+
onRegisterSuccess={onRegisterSuccess}
|
|
827
|
+
onRegisterError={onRegisterError}
|
|
828
|
+
/>
|
|
829
|
+
)}
|
|
830
|
+
{showModalForgotPassword && (
|
|
831
|
+
<ForgotPasswordModal
|
|
832
|
+
onClose={() => {
|
|
833
|
+
setShowModalForgotPassword(false)
|
|
808
834
|
}}
|
|
809
|
-
|
|
835
|
+
onLogin={() => {
|
|
836
|
+
setShowModalForgotPassword(false)
|
|
837
|
+
setShowModalLogin(true)
|
|
838
|
+
}}
|
|
839
|
+
onForgotPasswordSuccess={onForgotPasswordSuccess}
|
|
840
|
+
onForgotPasswordError={onForgotPasswordError}
|
|
810
841
|
/>
|
|
811
842
|
)}
|
|
812
843
|
</ThemeProvider>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React, { FC, useState } from 'react'
|
|
2
|
+
import { Field, Form, Formik } from 'formik'
|
|
3
|
+
import axios, { AxiosError } from 'axios'
|
|
4
|
+
import { Modal, Box, CircularProgress } from '@mui/material'
|
|
5
|
+
import { CustomField } from '../common/CustomField'
|
|
6
|
+
import * as Yup from 'yup'
|
|
7
|
+
import { forgotPassword } from '../../api'
|
|
8
|
+
import './style.css'
|
|
9
|
+
|
|
10
|
+
interface IForgotPasswordProps {
|
|
11
|
+
onClose: () => void
|
|
12
|
+
onLogin: () => void
|
|
13
|
+
onForgotPasswordSuccess: (res: any) => void
|
|
14
|
+
onForgotPasswordError: (e: AxiosError) => void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ValuesTypes {
|
|
18
|
+
email: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const style: React.CSSProperties = {
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
top: '50%',
|
|
24
|
+
left: '50%',
|
|
25
|
+
transform: 'translate(-50%, -50%)',
|
|
26
|
+
minWidth: 480,
|
|
27
|
+
backgroundColor: '#fff',
|
|
28
|
+
border: '1px solid white',
|
|
29
|
+
outline: 'none',
|
|
30
|
+
padding: '14px',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const Schema = Yup.object().shape({
|
|
34
|
+
email: Yup.string()
|
|
35
|
+
.email('Invalid email')
|
|
36
|
+
.required('Required'),
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
export const ForgotPasswordModal: FC<IForgotPasswordProps> = ({
|
|
40
|
+
onClose = () => {},
|
|
41
|
+
onLogin = () => {},
|
|
42
|
+
onForgotPasswordSuccess = () => {},
|
|
43
|
+
onForgotPasswordError = () => {},
|
|
44
|
+
}) => {
|
|
45
|
+
const [loading, setLoading] = useState(false)
|
|
46
|
+
|
|
47
|
+
const onForgotPassword = async ({ email }: ValuesTypes) => {
|
|
48
|
+
try {
|
|
49
|
+
setLoading(true)
|
|
50
|
+
const { data } = await forgotPassword(email)
|
|
51
|
+
|
|
52
|
+
onForgotPasswordSuccess(data)
|
|
53
|
+
onClose()
|
|
54
|
+
} catch (e) {
|
|
55
|
+
if (axios.isAxiosError(e)) {
|
|
56
|
+
onForgotPasswordError(e)
|
|
57
|
+
}
|
|
58
|
+
} finally {
|
|
59
|
+
setLoading(false)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const _onClose = loading ? () => {} : onClose
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<Modal
|
|
67
|
+
open={true}
|
|
68
|
+
onClose={_onClose}
|
|
69
|
+
aria-labelledby="modal-modal-title"
|
|
70
|
+
aria-describedby="modal-modal-description"
|
|
71
|
+
className="forgot-password-modal"
|
|
72
|
+
>
|
|
73
|
+
<Box style={style}>
|
|
74
|
+
<div>
|
|
75
|
+
<Formik
|
|
76
|
+
initialValues={{ email: '' }}
|
|
77
|
+
validationSchema={Schema}
|
|
78
|
+
onSubmit={onForgotPassword}
|
|
79
|
+
>
|
|
80
|
+
{({ isValid, dirty, handleSubmit }) => (
|
|
81
|
+
<Form onSubmit={handleSubmit}>
|
|
82
|
+
<div className="forgot-password-container">
|
|
83
|
+
<div className="title">Password Reset</div>
|
|
84
|
+
<div className="forgot-password-container__singleField">
|
|
85
|
+
<Field
|
|
86
|
+
name="email"
|
|
87
|
+
label="Email"
|
|
88
|
+
component={CustomField}
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div className="forgot-password-action-button">
|
|
93
|
+
<button type="submit" disabled={!(isValid && dirty)}>
|
|
94
|
+
{loading ? <CircularProgress size="22px" /> : 'Submit'}
|
|
95
|
+
</button>
|
|
96
|
+
</div>
|
|
97
|
+
<div className="login">
|
|
98
|
+
<span onClick={onLogin}>Back to Log In</span>
|
|
99
|
+
</div>
|
|
100
|
+
</Form>
|
|
101
|
+
)}
|
|
102
|
+
</Formik>
|
|
103
|
+
</div>
|
|
104
|
+
</Box>
|
|
105
|
+
</Modal>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.forgot-password-modal .forgot-password-container {
|
|
2
|
+
max-width: 800px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
}
|
|
5
|
+
.forgot-password-modal .title {
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
font-family: Inter;
|
|
8
|
+
font-weight: 700;
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
}
|
|
11
|
+
.forgot-password-modal .forgot-password-container__singleField {
|
|
12
|
+
margin-top: 15px;
|
|
13
|
+
}
|
|
14
|
+
.forgot-password-modal .forgot-password-action-button button {
|
|
15
|
+
padding: 10px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin-top: 10px;
|
|
18
|
+
border: none;
|
|
19
|
+
border-radius: 0;
|
|
20
|
+
height: 45px;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
font-size: 26px;
|
|
23
|
+
line-height: 18px;
|
|
24
|
+
color: white;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
outline: none;
|
|
27
|
+
background-color: #212529;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
}
|
|
30
|
+
.forgot-password-modal .forgot-password-action-button button:hover:enabled {
|
|
31
|
+
background-color: #505050;
|
|
32
|
+
border-color: #505050;
|
|
33
|
+
}
|
|
34
|
+
.forgot-password-modal .login {
|
|
35
|
+
text-align: center;
|
|
36
|
+
margin-top: 10px;
|
|
37
|
+
}
|
|
38
|
+
.forgot-password-modal .login span {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
.forgot-password-modal .login span:hover {
|
|
42
|
+
text-decoration: underline;
|
|
43
|
+
}
|
|
44
|
+
.forgot-password-modal button[disabled] {
|
|
45
|
+
opacity: .7;
|
|
46
|
+
cursor: unset;
|
|
47
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { PaymentContainer } from './paymentContainer'
|
|
|
4
4
|
export { TicketsContainer } from './ticketsContainer'
|
|
5
5
|
export { MyTicketsContainer } from './myTicketsContainer'
|
|
6
6
|
export { OrderDetailsContainer } from './orderDetailsContainer'
|
|
7
|
+
export { ResetPasswordContainer } from './resetPasswordContainer'
|
|
7
8
|
export { TicketResaleContainer } from './ticketResale'
|
|
@@ -25,8 +25,12 @@ interface Props {
|
|
|
25
25
|
onAuthorizeError?: (e: AxiosError) => void;
|
|
26
26
|
onGetProfileDataSuccess?: (res: any) => void;
|
|
27
27
|
onGetProfileDataError?: (e: AxiosError) => void;
|
|
28
|
+
onForgotPassword?: () => void;
|
|
29
|
+
onSignup?: () => void;
|
|
28
30
|
modalClassname?: string;
|
|
29
31
|
logo?: string;
|
|
32
|
+
showForgotPasswordButton?: boolean;
|
|
33
|
+
showSignUpButton?: boolean;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
const style: React.CSSProperties = {
|
|
@@ -49,15 +53,14 @@ export const LoginModal: FC<Props> = ({
|
|
|
49
53
|
onAuthorizeError = () => {},
|
|
50
54
|
onGetProfileDataSuccess = () => {},
|
|
51
55
|
onGetProfileDataError = () => {},
|
|
56
|
+
onForgotPassword = () => {},
|
|
57
|
+
onSignup = () => {},
|
|
52
58
|
modalClassname = '',
|
|
53
|
-
logo
|
|
59
|
+
logo,
|
|
60
|
+
showForgotPasswordButton = false,
|
|
61
|
+
showSignUpButton = false,
|
|
54
62
|
}) => {
|
|
55
63
|
const [error, setError] = useState('')
|
|
56
|
-
const handleForgotPassword = () => {
|
|
57
|
-
if (typeof window !== 'undefined') {
|
|
58
|
-
window.open(`${CONFIGS.BASE_URL}/password-restore/`)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
64
|
return (
|
|
62
65
|
<Modal
|
|
63
66
|
open={true}
|
|
@@ -199,9 +202,16 @@ export const LoginModal: FC<Props> = ({
|
|
|
199
202
|
<div className="login-action-button">
|
|
200
203
|
<button type="submit">Login</button>
|
|
201
204
|
</div>
|
|
202
|
-
|
|
203
|
-
<
|
|
204
|
-
|
|
205
|
+
{showForgotPasswordButton && (
|
|
206
|
+
<div className="forgot-password">
|
|
207
|
+
<span onClick={onForgotPassword}>Forgot password?</span>
|
|
208
|
+
</div>
|
|
209
|
+
)}
|
|
210
|
+
{showSignUpButton && (
|
|
211
|
+
<div className="forgot-password">
|
|
212
|
+
<span onClick={onSignup}>Sign up</span>
|
|
213
|
+
</div>
|
|
214
|
+
)}
|
|
205
215
|
</div>
|
|
206
216
|
</Form>
|
|
207
217
|
)}
|
|
@@ -61,19 +61,17 @@ const TicketsTable = ({
|
|
|
61
61
|
<TableCell>{ticket.ticket_type}</TableCell>
|
|
62
62
|
<TableCell>{ticket.holder_name}</TableCell>
|
|
63
63
|
<TableCell>{ticket.status}</TableCell>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
</TableCell>
|
|
64
|
+
{ticket.pdf_link && ticket.status !== "Sold" ? (
|
|
65
|
+
<TableCell>
|
|
66
|
+
<span
|
|
67
|
+
aria-hidden={true}
|
|
68
|
+
className="action-button"
|
|
69
|
+
onClick={() => downloadPDF(ticket.pdf_link)}
|
|
70
|
+
>
|
|
71
|
+
Download
|
|
72
|
+
</span>
|
|
73
|
+
</TableCell>
|
|
74
|
+
) : null}
|
|
77
75
|
<TableCell>
|
|
78
76
|
{ticket.is_sellable && (
|
|
79
77
|
<span
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React, { FC, useState } from 'react'
|
|
2
|
+
import { Field, Form, Formik } from 'formik'
|
|
3
|
+
import { CircularProgress } from '@mui/material'
|
|
4
|
+
import { CustomField } from '../common/CustomField'
|
|
5
|
+
import axios, { AxiosError } from 'axios'
|
|
6
|
+
import * as Yup from 'yup'
|
|
7
|
+
import { resetPassword } from '../../api'
|
|
8
|
+
import './style.css'
|
|
9
|
+
|
|
10
|
+
interface IResetPasswordProps {
|
|
11
|
+
token?: string
|
|
12
|
+
onResetPasswordSuccess?: (res: any) => void
|
|
13
|
+
onResetPasswordError?: (e: AxiosError) => void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const Schema = Yup.object().shape({
|
|
17
|
+
password: Yup.string()
|
|
18
|
+
.min(6, 'Password must have 5+ characters')
|
|
19
|
+
.required('Required'),
|
|
20
|
+
password_confirmation: Yup.string()
|
|
21
|
+
.required('Required')
|
|
22
|
+
.oneOf([Yup.ref('password'), null], 'Passwords must match'),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export const ResetPasswordContainer: FC<IResetPasswordProps> = ({
|
|
26
|
+
token: tokenProps = '',
|
|
27
|
+
onResetPasswordSuccess = () => {},
|
|
28
|
+
onResetPasswordError = () => {},
|
|
29
|
+
}) => {
|
|
30
|
+
const [loading, setLoading] = useState(false)
|
|
31
|
+
return (
|
|
32
|
+
<div className="reset-password">
|
|
33
|
+
<div className="title">Change Password</div>
|
|
34
|
+
<Formik
|
|
35
|
+
initialValues={{ password: '', password_confirmation: '' }}
|
|
36
|
+
validationSchema={Schema}
|
|
37
|
+
onSubmit={async (values: any) => {
|
|
38
|
+
try {
|
|
39
|
+
setLoading(true)
|
|
40
|
+
let token
|
|
41
|
+
if (tokenProps) {
|
|
42
|
+
token = tokenProps
|
|
43
|
+
} else {
|
|
44
|
+
if (typeof window !== 'undefined') {
|
|
45
|
+
const params: URLSearchParams = new URL(`${window.location}`)
|
|
46
|
+
.searchParams
|
|
47
|
+
token = params.get('token')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const payload = {
|
|
52
|
+
token,
|
|
53
|
+
...values,
|
|
54
|
+
}
|
|
55
|
+
const res = await resetPassword(payload)
|
|
56
|
+
onResetPasswordSuccess(res)
|
|
57
|
+
} catch (e) {
|
|
58
|
+
if (axios.isAxiosError(e)) {
|
|
59
|
+
onResetPasswordError(e)
|
|
60
|
+
}
|
|
61
|
+
} finally {
|
|
62
|
+
setLoading(false)
|
|
63
|
+
}
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
{({ isValid, dirty }) => (
|
|
67
|
+
<Form>
|
|
68
|
+
<div className="body">
|
|
69
|
+
<div className="field-item">
|
|
70
|
+
<Field
|
|
71
|
+
name="password"
|
|
72
|
+
label="New Password"
|
|
73
|
+
type="password"
|
|
74
|
+
component={CustomField}
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
<div className="field-item">
|
|
78
|
+
<Field
|
|
79
|
+
name="password_confirmation"
|
|
80
|
+
label="Confirm Password"
|
|
81
|
+
type="password"
|
|
82
|
+
component={CustomField}
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div className="action-button">
|
|
87
|
+
<button type="submit" disabled={!(isValid && dirty)}>
|
|
88
|
+
{loading ? <CircularProgress size="22px" /> : 'Submit'}
|
|
89
|
+
</button>
|
|
90
|
+
</div>
|
|
91
|
+
</Form>
|
|
92
|
+
)}
|
|
93
|
+
</Formik>
|
|
94
|
+
</div>
|
|
95
|
+
)
|
|
96
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.reset-password {
|
|
2
|
+
padding: 14px;
|
|
3
|
+
max-width: 300px;
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
}
|
|
6
|
+
.reset-password .title {
|
|
7
|
+
font-size: 20px;
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
}
|
|
10
|
+
.reset-password .field-item {
|
|
11
|
+
margin-top: 14px;
|
|
12
|
+
}
|
|
13
|
+
.reset-password .action-button button {
|
|
14
|
+
padding: 10px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin-top: 14px;
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
height: 45px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
font-size: 26px;
|
|
22
|
+
line-height: 18px;
|
|
23
|
+
color: white;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
outline: none;
|
|
26
|
+
background-color: #212529;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
}
|
|
29
|
+
.reset-password .action-button button:hover:enabled {
|
|
30
|
+
background-color: #505050;
|
|
31
|
+
border-color: #505050;
|
|
32
|
+
}
|
|
33
|
+
.reset-password .action-button button[disabled] {
|
|
34
|
+
opacity: .7;
|
|
35
|
+
cursor: unset;
|
|
36
|
+
}
|