tf-checkout-react 1.0.67 → 1.0.68

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
- .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}.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}.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 .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 -10px}.confirmation-page .referral_text_image_section .referral_text_section{margin:10px}.confirmation-page .referral_text_image_section .referral_title_text{color:#f08057;font-size:28px;padding-bottom:10px}.confirmation-page .referral_text_image_section .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 .share_wrapper .invitation_title{font-size:22px;padding-bottom:12px;padding-top:12px}.confirmation-page .share_wrapper .share_section{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px}.confirmation-page .share_wrapper .share_section .invitation_section{flex:1 1;padding:0 5px}.confirmation-page .share_wrapper .share_section .invitation_section .share_buttons{display:grid;flex-wrap:wrap;margin:0 -7px}.confirmation-page .share_wrapper .share_section .invitation_section .share_buttons .social-media-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.confirmation-page .share_wrapper .share_section .invitation_section .share_buttons .social-media-btns .sharing-btn{min-width:130px}.confirmation-page .share_wrapper .share_section .invitation_section .share-btn-inner.share-by-link-copy{padding:0;text-align:left}.confirmation-page .share_wrapper .share_section .invitation_section .sharing-button{flex:1 1}.confirmation-page .share_wrapper .share_section .invitation_section .convenient_buttons.sharing-btn{display:inline}.confirmation-page .share_wrapper .share_section .invitation_section .share-by-link{background:#000;color:#fff;padding:0}.confirmation-page .share_wrapper .share_section .invitation_section .share-by-link.label{margin:0;padding:0;text-align:left}.confirmation-page .share_wrapper .share_section .invitation_section .sharing-btn{flex:1 1;padding:7px;text-align:center}.confirmation-page .share_wrapper .share_section .invitation_section .share-btn-inner{background:#000;color:#fff;padding:10px}.confirmation-page .share_wrapper .share_section .invitation_section .share-btn-inner .svg_wrapper{display:inline}.confirmation-page .share_wrapper .share_section .invitation_section .share-btn-inner .share-input{background-color:#fff;text-align:left;width:300px}.confirmation-page .share_wrapper .share_section .invitation_section .share-text{display:block;font-size:13px;font-weight:600;padding-top:8px;width:100%}.confirmation-page .share_wrapper .pricing-section_wrapper{background:#e3e3e3;border:1px solid #dcdcdc;display:grid;grid-template-columns:1fr 1fr;margin:10px 0;padding:15px}.confirmation-page .share_wrapper .pricing-section_wrapper.free_price{background:#e9835b;border:1px solid #eb7b4a;color:#fff}.confirmation-page .share_wrapper .pricing-section_label{font-weight:600}.confirmation-page .share_wrapper .pricing-section_sublabel{font-size:14px;font-weight:100}.confirmation-page .share_wrapper .pricing-section_price{font-weight:600;text-align:right}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;font-weight:700;line-height:1;text-align:center}.event-detail__tier-price p{margin:0}.event-detail__tier-price .fees{font-size:14px;font-weight:400;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{background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;font-size:1em;margin:0 35px;padding:8px 15px;text-align:center;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.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}.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}.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 h3{margin:10px 0}.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}.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%}.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 .download-button{background-color:#212529;border:1px solid #fff;border-radius:0;color:#fff;cursor:pointer;display:block;font-family:Bebas Neue;font-size:16px;font-weight:400;line-height:normal;margin-bottom:20px;margin-top:20px;min-height:auto;outline:none;overflow:hidden;padding:12px 0;position:relative;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;width:100%}.order-details .download-button:hover{background-color:#505050}.order-details .personal-link{padding:20px 0}
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}.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}.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;font-weight:700;line-height:1;text-align:center}.event-detail__tier-price p{margin:0}.event-detail__tier-price .fees{font-size:14px;font-weight:400;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{background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;font-size:1em;margin:0 35px;padding:8px 15px;text-align:center;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.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}.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}.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 h3{margin:10px 0}.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}.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%}.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 .download-button{background-color:#212529;border:1px solid #fff;border-radius:0;color:#fff;cursor:pointer;display:block;font-family:Bebas Neue;font-size:16px;font-weight:400;line-height:normal;margin-bottom:20px;margin-top:20px;min-height:auto;outline:none;overflow:hidden;padding:12px 0;position:relative;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;width:100%}.order-details .download-button:hover{background-color:#505050}.order-details .personal-link{padding:20px 0}
@@ -1,6 +1,6 @@
1
1
  export interface IReferralPromotion {
2
2
  label: string;
3
3
  price: string;
4
- id: number | string;
4
+ id?: number | string;
5
5
  subLabel?: string;
6
6
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.67",
2
+ "version": "1.0.68",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -63,20 +63,24 @@
63
63
  "typescript": "^4.4.4"
64
64
  },
65
65
  "dependencies": {
66
- "@emotion/react": "^11.5.0",
67
- "@emotion/styled": "^11.3.0",
66
+ "@emotion/react": "^11.7.0",
67
+ "@emotion/styled": "^11.6.0",
68
68
  "@mui/lab": "^5.0.0-alpha.55",
69
69
  "@mui/material": "^5.2.2",
70
+ "@mui/styles": "^5.2.2",
70
71
  "@stripe/react-stripe-js": "^1.6.0",
71
72
  "@stripe/stripe-js": "^1.21.1",
72
73
  "axios": "^0.24.0",
74
+ "clsx": "^1.1.1",
73
75
  "formik": "^2.2.9",
74
76
  "jwt-decode": "^3.1.2",
75
77
  "lodash": "^4.17.21",
76
78
  "lodash-es": "^4.17.21",
77
79
  "material-ui-phone-number": "^3.0.0",
78
80
  "nanoid": "^3.1.30",
81
+ "prop-types": "^15.7.2",
79
82
  "react-bootstrap": "^2.0.2",
80
- "react-inlinesvg": "^2.3.0"
83
+ "react-inlinesvg": "^2.3.0",
84
+ "react-share": "^4.4.0"
81
85
  }
82
86
  }
@@ -121,12 +121,12 @@ const LogicRunner: FC<{
121
121
  const fetchStates = async () => {
122
122
  try {
123
123
  const res = await getStates(values.country)
124
- const mappedStates = _map(_get(res, 'data.data'), item => ({
124
+ const mappedStates = _map(_get(res, 'data.data'), (item, key) => ({
125
125
  label: item,
126
- value: item,
126
+ value: key,
127
127
  }))
128
128
  setStates(mappedStates)
129
- setFieldValue('state', mappedStates[0]?.label ?? '')
129
+ setFieldValue('state', mappedStates[0]?.value ?? '')
130
130
  onGetStatesSuccess(res.data)
131
131
  } catch (e) {
132
132
  if (axios.isAxiosError(e)) {
@@ -1,51 +1,39 @@
1
1
  /* eslint-disable react/no-unescaped-entities */
2
2
  import React, { useEffect, useRef, useState } from 'react'
3
3
  import './style.css'
4
- import SVG from 'react-inlinesvg'
5
4
  import _map from 'lodash/map'
6
5
  import _get from 'lodash/get'
7
-
8
6
  import { IReferralPromotion } from '../../types'
9
7
  import { getConfirmationData } from '../../api'
10
8
  import { AxiosError } from 'axios'
9
+ import SocialButtons from './social-buttons'
11
10
 
12
11
  export interface IShareButton {
13
12
  mainLabel: string;
14
13
  subLabel: string;
15
- svgSrc: string;
16
-
17
- containerClassName?: string;
18
- containerInnerClassName?: string;
19
- svgClassName?: string;
20
- svgWidth?: string;
21
- svgHeight?: string;
22
- svgFill?: string;
14
+ icon: string;
15
+ link: string;
23
16
  }
24
17
 
25
18
  export interface IConfirmationPage {
26
- referralPromotions: IReferralPromotion[];
27
- shareLink: string;
28
19
  isReferralEnabled: boolean;
20
+ showDefaultShareButtons: boolean;
21
+ messengerAppId: string;
29
22
  shareButtons: IShareButton[];
30
23
  onGetConfirmationDataSuccess: (res: any) => void;
31
24
  onGetConfirmationDataError: (e: AxiosError) => void;
32
25
  }
33
26
 
34
- const defaultSvg =
35
- 'https://img.icons8.com/ios-filled/50/000000/facebook-new.svg'
36
-
37
27
  export const ConfirmationContainer = ({
38
28
  isReferralEnabled,
39
- referralPromotions = [],
29
+ showDefaultShareButtons,
30
+ messengerAppId = '',
40
31
  shareButtons = [],
41
- shareLink = '',
42
32
  onGetConfirmationDataSuccess = () => {},
43
33
  onGetConfirmationDataError = () => {},
44
34
  }: IConfirmationPage) => {
45
35
  const inputRef = useRef(null)
46
- const [data, setData] = useState<any>({})
47
- const showShareButtons = Boolean(shareButtons.length)
48
- const showReferralPromotions = Boolean(referralPromotions.length)
36
+ const [data, setData] = useState<any>(null)
49
37
 
50
38
  // 1. get payment complete data ---> v1/order/${orderHash}/payment/complete/
51
39
 
@@ -61,6 +49,19 @@ export const ConfirmationContainer = ({
61
49
  try {
62
50
  const response = await getConfirmationData(hash)
63
51
  const data = _get(response, 'data.data.attributes')
52
+ data.personal_share_sales = data.personal_share_sales.map((d: any) => {
53
+ const salesData: IReferralPromotion = { label: `If your friends buy ${d.sales} tickets`, price: '' }
54
+ if(d.price === 0) {
55
+ salesData.subLabel = 'Your ticket becomes'
56
+ salesData.price = 'FREE!'
57
+ } else {
58
+ salesData.subLabel = 'Your ticket goes down to'
59
+ salesData.price = data.currency.symbol + d.price?.toFixed(2)
60
+ }
61
+
62
+ return salesData
63
+ })
64
+ data.personal_share_sales.unshift({ label: 'Your ticket is currently', price: data.currency.symbol + data.product_price?.toFixed(2) })
64
65
  setData(data)
65
66
  onGetConfirmationDataSuccess(response.data)
66
67
  } catch (error) {
@@ -69,139 +70,107 @@ export const ConfirmationContainer = ({
69
70
  }
70
71
  })()
71
72
  }, [])
73
+
74
+ const onChangeShareLink = (e: React.ChangeEvent<HTMLInputElement>) => {
75
+ const newData = { ...data, personal_share_link: e.target.value }
76
+ setData(newData)
77
+ }
72
78
 
73
79
  return (
74
80
  <div className="confirmation-page">
75
- <p className="title">Your Tickets are Confirmed!</p>
76
- <div className="share-message-section">
77
- <span className="main">Your tickets have been emailed to you</span>
78
- <span className="helper">Please bring them with you to the event</span>
79
- </div>
80
- { data.disable_referral === false && isReferralEnabled && (
81
+ {data && (
81
82
  <>
82
- <div className="referral_text_image_section">
83
- <div className="referral_text_section">
84
- <div className="referral_title_text">
85
- Your ticket can become
86
- <span className="strong-text"> cheaper </span>
87
- or even
88
- <span className="strong-text"> FREE!</span>
89
- </div>
90
- <div className="referral_text">
91
- <span className="strong-text"> Invite friends </span>
92
- and we'll refund up to
93
- <span className="strong-text"> 100% </span>
94
- of your ticket money, if they buy tickets as well!
95
- </div>
96
- </div>
97
- <img
98
- src="https://www.ticketfairy.com/uploaded/thumbnails/db_file_img_123847_400xauto.jpg"
99
- alt="No Data"
100
- />
83
+ <p className="title">Your Tickets are Confirmed!</p>
84
+ <div className="share-message-section">
85
+ <span className="main">Your tickets have been emailed to you</span>
86
+ <span className="helper">Please bring them with you to the event</span>
101
87
  </div>
102
- <div className="share_wrapper">
103
- <div className="share_section">
104
- <div className="invitation_section">
105
- <div className="invitation_title">
106
- How do you invite your friends?
88
+ { data.disable_referral === false && isReferralEnabled && (
89
+ <>
90
+ <div className="referral_text_image_section">
91
+ <div className="referral_text_section">
92
+ <div className="referral_title_text">
93
+ Your ticket can become
94
+ <span className="strong-text"> cheaper </span>
95
+ or even
96
+ <span className="strong-text"> FREE!</span>
97
+ </div>
98
+ <div className="referral_text">
99
+ <span className="strong-text"> Invite friends </span>
100
+ and we'll refund up to
101
+ <span className="strong-text"> 100% </span>
102
+ of your ticket money, if they buy tickets as well!
103
+ </div>
107
104
  </div>
108
- <div className="share_buttons">
109
- <div className="sharing-btn share-by-link">
110
- <h5 className="sharing-btn share-by-link label">
111
- Send them this link:
112
- </h5>
113
- <div
114
- aria-hidden={true}
115
- className="share-btn-inner share-by-link-copy"
116
- onClick={() =>
117
- navigator.clipboard.writeText(
118
- _get(inputRef, 'current.value')
119
- )
120
- }
121
- >
122
- <input
123
- ref={inputRef}
124
- className="share-input"
125
- value={shareLink}
126
- disabled={true}
127
- />
128
- <div className="svg_wrapper">
129
- <SVG
130
- className="share-icon"
131
- width="25px"
132
- height="25px"
133
- fill="#FFF"
134
- src={defaultSvg}
135
- />
136
- </div>
105
+ <img src={data.product_image} alt="No Data" />
106
+ </div>
107
+ <div className="share_wrapper">
108
+ <div className="share_section">
109
+ <div className="invitation_section">
110
+ <div className="invitation_title">
111
+ How do you invite your friends?
137
112
  </div>
138
- </div>
139
- {showShareButtons && (
140
- <div>
141
- <div className="convenient_buttons sharing-btn">
142
- or use one of these convenient buttons:
143
- </div>
144
- <div className="social-media-btns">
145
- {_map(shareButtons, shareButtonItem => (
113
+ <div className="share_buttons">
114
+ <div className="share-by-link">
115
+ <h5 className="share-by-link label">
116
+ Send them this link:
117
+ </h5>
118
+ <div className="share-btn-inner">
119
+ <input
120
+ ref={inputRef}
121
+ className="share-input"
122
+ value={data.personal_share_link}
123
+ onChange={onChangeShareLink}
124
+ />
146
125
  <div
147
- className={`sharing-btn ${shareButtonItem.containerClassName}`}
126
+ className='share-by-link-copy-icon'
127
+ onClick={() => navigator.clipboard.writeText(
128
+ _get(inputRef, 'current.value')
129
+ )}
148
130
  >
149
- <div
150
- aria-hidden={true}
151
- className={`share-btn-inner ${shareButtonItem.containerInnerClassName}`}
152
- onClick={() => {}}
153
- >
154
- <SVG
155
- className={
156
- shareButtonItem.svgClassName || 'share-icon'
157
- }
158
- width={shareButtonItem.svgWidth || '40px'}
159
- height={shareButtonItem.svgHeight || '40px'}
160
- fill={shareButtonItem.svgFill || '#FFF'}
161
- src={shareButtonItem.svgSrc || defaultSvg}
162
- />
163
- <span className="share-text">
164
- {shareButtonItem.mainLabel}
165
- <br /> {shareButtonItem.subLabel}
166
- </span>
167
- </div>
131
+ <img src="https://img.icons8.com/office/50/000000/copy.png" alt='copy' />
168
132
  </div>
169
- ))}
133
+ </div>
170
134
  </div>
135
+ {(showDefaultShareButtons || !!shareButtons.length) && (
136
+ <SocialButtons
137
+ showDefaultShareButtons={showDefaultShareButtons}
138
+ name={data.product_name}
139
+ appId={messengerAppId}
140
+ shareLink={data.personal_share_link}
141
+ shareButtons={shareButtons}
142
+ />
143
+ )}
171
144
  </div>
172
- )}
145
+ </div>
173
146
  </div>
174
- </div>
175
- </div>
176
- {showReferralPromotions && (
177
- <div className="pricing-section">
178
- <div className="invitation_title">How much cheaper?</div>
179
- {_map(referralPromotions, pricing => {
180
- const isFree = pricing.price === 'FREE'
181
- return (
182
- <div
183
- key={pricing.id}
184
- className={`pricing-section_wrapper ${isFree &&
185
- 'free_price'}`}
186
- >
187
- <div className="pricing-section_label">
188
- {pricing.label || 'Your ticket is currently'}
189
- {pricing.subLabel && (
190
- <div className="pricing-section_sublabel">
191
- {pricing.subLabel || 'Your ticket becomes'}
192
- </div>
193
- )}
194
- </div>
195
- <div className="pricing-section_price">
196
- {' '}
197
- {pricing.price}
147
+ <div className="pricing-section">
148
+ <div className="invitation_title">How much cheaper?</div>
149
+ {_map(data.personal_share_sales, (pricing, index) => {
150
+ return (
151
+ <div
152
+ key={index}
153
+ className='pricing-section_wrapper'
154
+ >
155
+ <div className="pricing-section_label">
156
+ {pricing.label}
157
+ {pricing.subLabel && (
158
+ <div className="pricing-section_sublabel">
159
+ {pricing.subLabel}
160
+ </div>
161
+ )}
162
+ </div>
163
+ <div className="pricing-section_price">
164
+ {' '}
165
+ {pricing.price}
166
+ </div>
198
167
  </div>
199
- </div>
200
- )
201
- })}
168
+ )
169
+ })}
170
+ </div>
202
171
  </div>
203
- )}
204
- </div>
172
+ </>
173
+ )}
205
174
  </>
206
175
  )}
207
176
  </div>
@@ -0,0 +1,116 @@
1
+ import React from 'react';
2
+ import SVG from 'react-inlinesvg'
3
+ import { getImage } from '../../utils/getImage'
4
+ import { IShareButton } from'./index'
5
+ import {
6
+ FacebookShareButton,
7
+ TwitterShareButton,
8
+ FacebookMessengerShareButton,
9
+ FacebookIcon,
10
+ TwitterIcon,
11
+ FacebookMessengerIcon,
12
+ WhatsappShareButton,
13
+ WhatsappIcon
14
+ } from "react-share";
15
+
16
+ interface SocialButtonsTypes {
17
+ shareLink: string;
18
+ name: string;
19
+ appId: string;
20
+ showDefaultShareButtons: boolean;
21
+ shareButtons: IShareButton[]
22
+ }
23
+
24
+ const SocialButtons = ({ showDefaultShareButtons, shareLink, name, appId, shareButtons }: SocialButtonsTypes) => {
25
+ return (
26
+ <>
27
+ <div className="convenient_buttons">
28
+ or use one of these convenient buttons:
29
+ </div>
30
+ <div className="social-media-btns">
31
+ {showDefaultShareButtons && (
32
+ <>
33
+ <FacebookShareButton
34
+ url={shareLink}
35
+ quote={name}
36
+ >
37
+ <div className='social-media-sharing'>
38
+ <div className='share-icon'>
39
+ <FacebookIcon size={32} round />
40
+ </div>
41
+ <span className="share-text">
42
+ Share on
43
+ <br /> Facebook
44
+ </span>
45
+ </div>
46
+ </FacebookShareButton>
47
+ <TwitterShareButton
48
+ url={shareLink}
49
+ title={name}
50
+ >
51
+ <div className='social-media-sharing'>
52
+ <div className='share-icon'>
53
+ <TwitterIcon size={32} round />
54
+ </div>
55
+ <span className="share-text">
56
+ Tweet to your
57
+ <br /> Followers
58
+ </span>
59
+ </div>
60
+ </TwitterShareButton>
61
+ <FacebookMessengerShareButton
62
+ url={shareLink}
63
+ appId={appId}
64
+ >
65
+ <div className='social-media-sharing'>
66
+ <div className='share-icon'>
67
+ <FacebookMessengerIcon size={32} round />
68
+ </div>
69
+ <span className="share-text">
70
+ Message friends on
71
+ <br /> Facebook
72
+ </span>
73
+ </div>
74
+ </FacebookMessengerShareButton>
75
+ <WhatsappShareButton
76
+ url={shareLink}
77
+ title={name}
78
+ >
79
+ <div className='social-media-sharing'>
80
+ <div className='share-icon'>
81
+ <WhatsappIcon size={32} round />
82
+ </div>
83
+ <span className="share-text">
84
+ Message friends on
85
+ <br /> Whatsapp
86
+ </span>
87
+ </div>
88
+ </WhatsappShareButton>
89
+ </>
90
+ )}
91
+ {shareButtons.map((shareButton, index) => (
92
+ <div className='sharing-btn' key={index}>
93
+ <a href={shareButton.link} target="_blank" rel="noopener noreferrer">
94
+ <div className='social-media-sharing'>
95
+ <div className='share-icon'>
96
+ <SVG
97
+ width='32px'
98
+ height='32px'
99
+ fill='#FFF'
100
+ src={getImage(shareButton.icon)}
101
+ />
102
+ </div>
103
+ <span className="share-text">
104
+ {shareButton.mainLabel}
105
+ <br /> {shareButton.subLabel}
106
+ </span>
107
+ </div>
108
+ </a>
109
+ </div>
110
+ ))}
111
+ </div>
112
+ </>
113
+ )
114
+ }
115
+
116
+ export default SocialButtons