Changeset 3253231
- Timestamp:
- 03/10/2025 10:10:59 AM (9 months ago)
- Location:
- woo-checkout-field-editor-pro/trunk
- Files:
-
- 23 edited
-
admin/assets/css/thwcfd-admin.min.css (modified) (1 diff)
-
admin/class-thwcfd-admin-settings-block-fields.php (modified) (1 diff)
-
admin/class-thwcfd-admin-settings-general.php (modified) (1 diff)
-
admin/class-thwcfd-admin-settings.php (modified) (1 diff)
-
admin/class-thwcfd-admin.php (modified) (3 diffs)
-
block/assets/dist/additional-sections-frontend.asset.php (modified) (1 diff)
-
block/assets/dist/additional-sections-frontend.js (modified) (1 diff)
-
block/assets/dist/additional-sections.asset.php (modified) (1 diff)
-
block/assets/dist/additional-sections.js (modified) (1 diff)
-
block/assets/dist/contact-info-section-frontend.asset.php (modified) (1 diff)
-
block/assets/dist/contact-info-section-frontend.js (modified) (1 diff)
-
block/assets/dist/contact-info-section.asset.php (modified) (1 diff)
-
block/assets/dist/contact-info-section.js (modified) (1 diff)
-
block/assets/dist/style-additional-sections-frontend-rtl.css (modified) (1 diff)
-
block/assets/dist/style-additional-sections-frontend.css (modified) (1 diff)
-
block/class-thwcfd-block.php (modified) (9 diffs)
-
changelog.txt (modified) (1 diff)
-
checkout-form-designer.php (modified) (3 diffs)
-
languages/woo-checkout-field-editor-pro.pot (modified) (9 diffs)
-
public/assets/css/thwcfd-public.min.css (modified) (1 diff)
-
public/assets/js/thwcfd-public.min.js (modified) (1 diff)
-
public/class-thwcfd-public-checkout.php (modified) (4 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-checkout-field-editor-pro/trunk/admin/assets/css/thwcfd-admin.min.css
r3221414 r3253231 1 .align-center{text-align:center!important}.woocommerce-message{margin-top:10px}.err_msgs{color:red}.empty-msg-row{padding:20px 0!important;text-align:center}.color-red{color:red!important}.status-active{font-size:15px;color:green}.status-deactive{font-size:15px;color:red}.thpladmin-subtitle{font-size:11px;color:#666}a.button.big-button{font-size:1.1rem;background-color:#fff;border:1px solid #42af42;color:#42af42}a.button.big-button:focus,a.button.big-button:hover{background-color:#42af42;border:1px solid #42af42;box-shadow:0 0 0 1px #42af42;color:#fff}table.thpladmin_fields_table td.sort{cursor:move;font-size:15px;text-align:center}table.thpladmin_fields_table td.sort::before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}.thpladmin-tab{width:100%;border:0 solid #d4d4d1;border-top:0;background-color:#fff;float:left}.thpladmin-tabs-menu{width:100%;margin:0;margin-top:10px;float:left;clear:both;border-bottom:1px solid #bcd4e6}.thpladmin-tabs-menu li{float:left;margin-right:5px;margin-bottom:-1px;border:1px solid #bcd4e6;outline:1px solid transparent;border-radius:4px 4px 0 0;background:#e1ecf4}.thpladmin-tabs-menu li.current{color:#555;position:relative;background-color:#fff;border-bottom:1px solid #fff;box-shadow:none}.thpladmin-tabs-menu li.first{margin-left:20px}.thpladmin-tabs-menu li a{font-size:18px;display:block;padding:12px 20px;text-decoration:none;color:#9fc2db;-webkit-transition:color .2s;transition:color .2s}.thpladmin-tabs-menu li a:focus{outline:0;box-shadow:none}.thpladmin-tabs-menu .current a{color:#2e7da3}.thpladmin-tab-content{padding:0;display:none;min-height:200px;max-height:485px;color:#000}.thpladmin-sections{list-style:outside none none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.thpladmin-sections li{display:inline-block;margin:0;padding:0;white-space:nowrap}.thpladmin-sections a.current{font-weight:600;border:medium none;color:#000}.thpladmin-sections a{line-height:2;padding:.2em;text-decoration:none}.thpladmin-sections .delete_section img,.thpladmin-sections a.edit_section img{width:12px;height:12px}.thpladmin-sections a.add_link{margin-left:30px;background-color:#00a0d2;border:1px solid #0073aa;color:#fff;padding:2px 5px;border-radius:3px}.thpladmin-sections a.add_link:hover{background-color:#0073aa}.thpladmin-form-table td{padding:5px 0}.thpladmin-form-table td.thpladmin-form-section-title{font-weight:700;border-bottom:1px dashed #cecece}.thpladmin_fields_table tr.strikeout td{background:rgba(255,0,0,.4)!important;opacity:.6;text-decoration:line-through}.thpladmin_fields_table tr.thpladmin-disabled td{opacity:.4}.thpladmin_fields_table tr.thpladmin-disabled td.td_select{opacity:1}.thpladmin_fields_table .td_actions{width:90px}.thpladmin_fields_table .td_enabled{width:80px}.thpladmin_fields_table .td_clear{width:65px}.thpladmin_fields_table .td_required{width:85px}.thpladmin_fields_table .td_select{width:45px}.thpladmin_fields_table .td_type{width:150px}.thpladmin_fields_table .td_validate{text-transform:capitalize}.thpladmin_fields_table th.status{white-space:nowrap}.thpladmin_fields_table .dashicons{line-height:inherit}.thpladmin_fields_table .td_actions .dashicons{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;padding:0 2px 2px 2px;box-shadow:0 1px 0 #ccc;webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.thpladmin_fields_table .td_actions .dashicons.disabled{color:#ccc;border:1px solid #e9e9e9;cursor:default}.thpladmin_fields_table .td_actions .dashicons-edit{cursor:pointer}.thpladmin_fields_table .td_actions .dashicons-admin-page{cursor:pointer}.thpladmin-sections .dashicons{cursor:pointer}.thpladmin-sections .dashicons-no{color:#ff4c4c}ul.th-cfe-feature-list,ul.th-cfe-field-list,ul.th-display-field-list,ul.th-display-section-list,ul.th-price-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}ul.th-cfe-field-list,ul.th-display-field-list,ul.th-display-rule-list,ul.th-display-section-list,ul.th-price-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}.th-nice-box{border:1px solid #c3c4c7;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%);background:#fff;margin:1.5rem 0 .75rem 0}.th-nice-box hr{position:absolute;height:0;border:1px solid #ddd}.th-ad-banner{display:flex;height:30%}.th-ad-content{width:90%;background-color:#121933;display:flex;justify-content:center;align-items:center}.th-ad-content-container{display:flex;justify-content:center;align-items:center}.th-ad-content-desc{font-style:normal;font-weight:400;font-size:14px;color:#fff;text-align:left;width:81%}.th-ad-content-desc p{width:100%;height:56%;padding:.3rem 1.5rem;font-size:14px}.btn-get-pro,.btn-try-demo,.btn-upgrade-pro{width:168px;height:42px;background:#6e55ff;border-radius:5px;font-style:normal;font-weight:600;font-size:14px;line-height:166.5%;text-align:center;color:#fff}.trydemo-heading{font-size:22px;color:#121933}.btn-try-demo:hover{color:#000;background-color:#d1d1d1}.btn-try-demo.clicked{color:#000;background-color:#d1d1d1}.btn-try-demo.clicked{color:#000}.btn-try-demo:focus{outline:0;border:none}.btn-get-pro:hover{color:#fff;background-color:#5540ce}.btn-get-pro.clicked{color:#fff;background:#6e55ff}.btn-get-pro:focus{outline:0;border:none}.btn-upgrade-pro:hover{color:#fff;background-color:#5540ce}.btn-upgrade-pro.clicked{color:#fff;background:#6e55ff}.btn-upgrade-pro:focus{outline:0;border:none}.button-get-pro:hover{color:#fff;background-color:#5540ce}.button-get-pro.clicked{color:#fff;background:#6e55ff}.button-get-pro:focus{outline:0;border:none}.claim-discount-btn.clicked,.claim-discount-btn:hover{color:#fff;background-color:#5540ce}.upgrade-pro-btn-div{display:flex;padding:0 2.5rem;align-items:center}@media screen and (min-width:480px) and (max-width:1024px){.th-ad-content{display:grid}.th-ad-terms{display:grid!important}.th-ad-guarantee{padding:1rem;display:flex;justify-content:center;align-items:center}.th-ad-term-head{padding:0 .5rem}.th-try-demo{padding:3rem 5rem 3rem 5rem;display:grid;justify-content:center;align-items:center}.trydemo-heading{width:90%;margin:1rem 2rem}.try-demo-desc{padding:0 5rem!important;width:100%}.btn-get-pro{margin:1rem 1.5rem!important}.th-feautre-desc{padding:1rem 2rem!important;margin:0!important;text-align:left!important}.th-cfe-feature-list-ul{justify-content:flex-start!important}.th-cfe-feature-list{display:grid;margin:-1rem 1rem 2rem!important}ul.th-cfe-feature-list li{height:65px;line-height:22px!important;background:url(crown.svg) 0 0 no-repeat!important;margin:0 3rem!important;text-align:left}.th-get-pro-img{display:none}.th-get-pro-desc{width:70%!important;padding:0 .7rem!important}.th-get-pro-btn{padding:1rem 1rem!important}.th-get-pro-btn .btn-upgrade-pro{width:120px;margin:3rem 0 0 0!important}.th-pro-support{width:83%!important}.th-pro-support-desc{margin:0 .5rem!important}.th-hor-line{width:90%}.th-ad-content-container{display:grid!important;justify-content:center;align-items:center}.th-field-types{margin:0 1rem 0 2rem!important}.th-cfe-field-type-img{display:grid!important}.th-fields{width:86%!important;margin:0 1.5rem!important}.th-fields-img{position:relative;margin:3rem 0!important}.th-fields-section-function{display:grid!important;margin:0 1rem 0 1rem!important}.th-section-function{width:100%!important}.th-display-rule-section-desc{padding:0 0 0 2rem!important}ul.th-display-section-list{padding:0 2.3rem!important}ul.th-display-section-list li{margin:0 1rem 0!important;width:100%!important}.th-fields-function{width:100%!important;display:grid;padding:1rem 0}.th-display-rule-fields{width:100%!important;height:100%!important}.th-price-fields{width:100%!important;height:100%!important;margin:1rem 0!important;top:0!important}.th-price-fields-desc{width:100%!important}.th-price-field-list{margin:0 3.3rem!important;width:90%!important}ul.th-price-list{width:100%!important}.th-faq-tab h3{width:100%!important;align-items:center;display:flex;justify-content:center}.th-faq-tab .th-faq-para{width:96%!important;text-align:left}.accordion-qstn{padding:0 2rem!important;text-align:left}.panel p{padding-left:2rem!important;width:100%!important}.accordion-qstn .accordion-img{margin:.3rem!important}.accordion-qstn .accordion-img-opn{display:none}.switch-to-pro-tab h3{position:relative;top:0!important;width:70%!important;margin-top:-5rem}.switch-to-pro-tab p{top:0!important}.button-get-pro{margin-top:9rem!important}.th-review-section{display:grid!important;margin:2rem 0 0 0!important;width:100%}.review-quote-img img{display:none!important}.review-quote-img{display:flex;padding:0;background-repeat:no-repeat;background-position:center;width:100%;height:10rem}.th-review-navigator{display:none!important}.th-user-review-section{display:grid!important;width:100%!important;padding:8rem 0!important;justify-content:center;align-items:center}.th-review-quote{padding:0 .5rem!important;text-align:center;margin-top:-14rem}.th-user-review{position:absolute!important;margin-top:0;width:96%!important;height:3%!important}.th-user-review h3{position:absolute!important;width:88%!important;margin:1.5rem 5.5rem!important;text-align:center}.th-review-content{width:100%!important;position:relative;padding:3rem;text-align:center;margin:1rem 0!important}.th-user-review .th-review-user-name{margin:-4rem 0;text-align:center;padding:1rem 0;width:100%!important}@media screen and (min-width:612px) and (max-width:1024px){.th-faq-tab{margin:0 2rem 0 2rem!important}.th-review-navigator{display:flex!important;flex-direction:row!important;position:relative;top:18rem}.th-review-nav-btn{margin-left:1rem!important}.th-user-review h3{position:absolute!important;width:80%!important;margin:1.5rem 5.5rem!important;text-align:center}}@media screen and (min-width:300px) and (max-width:611px){.th-faq-tab{margin:2rem 2rem 0 2rem!important}.th-review-navigator{display:flex!important;flex-direction:row!important;position:relative;top:21rem}.th-review-nav-btn{margin-left:1rem!important}}}@media screen and (min-width:2000px){.th-wrapper-main{justify-content:center;align-items:center}.th-try-demo{width:70%;padding:1rem 0 2rem 0!important}.th-cfe-key-feature{width:70%}ul.th-cfe-feature-list{width:74%!important}.th-field-types{width:70%;margin:0!important}.th-fields-section-function{width:70%;margin:1rem 0 1rem 0!important}.th-review-section{width:70%!important;padding:5rem 0 4rem!important}.th-faq-tab{width:70%;margin:3rem 0 1rem 0!important}.th-faq-qstns .accordion{margin:-.5rem 0}.th-switch-to-pro{width:70%!important}.th-user-review{width:50%!important}.th-ad-term-head{width:21rem!important}.th-switch-to-pro{margin:1rem 5.5rem 5rem!important}}.th-wrapper-main{display:flex;flex-direction:column}.next,.prev{display:none}.btn-try-demo{width:203px;height:58px;display:inline-flex;align-items:center;justify-content:center;background:#e4e4e4;color:#000;font-size:16px}.btn-get-pro{width:203px;height:58px;font-size:16px;display:inline-flex;align-items:center;justify-content:center;margin:0 1.5rem}.btn-upgrade-pro{display:flex;justify-content:center;align-items:center}.th-ad-terms{width:40%;background-color:#e6e6e9;display:flex}.th-ad-guarantee{padding:1rem;display:flex;justify-content:center}.th-ad-term-head{font-style:normal;font-weight:700;font-size:14px;color:#59617d;width:17rem;justify-content:center;display:flex;flex-direction:column}.th-ad-term-desc{font-style:normal;font-weight:400;font-size:14px;color:#59617d}.th-try-demo{text-align:center;padding:1rem 0 2rem 0}.th-pro-btn{margin-right:1rem}.try-demo-desc{padding:.2rem 11rem 1rem;font-style:normal;font-weight:400;font-size:16px;line-height:175.43%;text-align:center;color:#121933}.th-cfe-key-feature{position:relative;background:#fffaf5;border-radius:15px;margin:0 2rem 0 2rem}.th-cfe-key-feature .th-feautre-head{position:relative;width:100%;font-style:normal;font-weight:700;font-size:22px;text-align:center;color:#121933;padding:3rem 0 0 0}.th-cfe-key-feature .th-feautre-desc{position:relative;font-style:normal;font-weight:400;font-size:16px;text-align:center;color:#121933;margin:0 8em;line-height:2}.th-cfe-feature-list-ul{display:flex;justify-content:center;text-align:center;margin:2rem;white-space:pre-wrap}ul.th-cfe-feature-list{text-align:right;list-style-position:inside;float:left}.column-break{break-after:column}ul.th-cfe-feature-list li{background:url(crown.svg) 0 0 no-repeat;text-align:start;padding-left:3rem;line-height:25px;font-size:16px;font-weight:600;width:100%;color:#000}.th-list{position:relative;top:-.5rem;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:600;font-size:16px;padding:19px .5rem}.th-get-pro{display:flex;position:relative;background-color:#121933;border-bottom-left-radius:15px;border-bottom-right-radius:15px}.th-get-pro-img{width:10%;justify-content:flex-start;display:flex}.th-wrapper-get-pro{display:flex;justify-content:center;width:90%;align-items:center}.th-get-pro-desc{padding:0 4.7rem}.th-get-pro-btn{display:flex;justify-content:center;align-items:center}.th-get-pro-btn .btn-upgrade-pro{height:58px;font-size:16px}.th-get-pro-desc-head{display:grid;font-style:normal;font-weight:700;font-size:21px;color:#fff}.th-get-pro-desc-contnt{font-style:normal;font-weight:400;font-size:16px;color:#fff}.th-star-support{margin:2rem 0;width:100%;display:flex;flex-direction:column;align-items:center}.th-user-star{display:flex}.th-user-star-desc{font-style:normal;font-weight:700;font-size:18px;text-align:center;color:#000}.th-user-star-img{margin:1rem 0}.th-pro-support{display:flex;margin:-.8rem}.th-pro-support-desc{margin:.5rem 1.5rem;font-style:normal;font-weight:400;font-size:16px;line-height:175.43%;color:#5b5b5b}.th-pro-support-desc em{font-size:18px;color:#121933;font-weight:700;font-style:normal}.th-hor-line{border:1px solid #ddd;margin:2.5rem 0 0;width:94%}.th-field-types{margin:0 4rem 0 2rem}.th-field-types-head{font-style:normal;font-weight:700;font-size:22px;color:#121933}.th-field-types-desc{font-style:normal;font-weight:400;font-size:16px;color:#121933}.th-cfe-field-type-img{display:flex}.th-fields-img{position:relative;margin:5rem 0}.th-fields-img img{width:369px;height:360px}.th-fields{width:50%;margin:0 1.5rem}.th-list-type{top:-2rem;position:relative}ul.th-cfe-field-list{list-style-type:disc}ul.th-cfe-field-list li::marker,ul.th-display-field-list li::marker,ul.th-price-list li::marker{color:#6e55ff;font-size:1.5rem}ul.th-cfe-field-list li{font-style:normal;font-weight:600;font-size:16px;line-height:40px;color:#121933}.th-new-rec{width:53px;height:20px;background:#3c7d0e;border-radius:11px;display:inline-flex;font-style:normal;font-weight:600;font-size:12px;color:#fff;justify-content:center}.th-new-rec p{margin:0}.th-crown{top:.5rem;left:.5rem;position:relative}.th-fields-section-function{position:relative;border-radius:15px;display:flex;margin:1rem 2rem 1rem 2rem}.th-section-function{width:50%;height:100%}.th-cfe-pro{float:right;margin:0 2rem}.th-display-rule-section{position:relative;background:#121933;border-radius:15px;height:100%}.th-display-rule-section-head{color:#fff;font-size:20px;font-weight:bolder;padding-top:2.5rem;padding-left:2rem}.th-display-rule-section-desc{font-size:14px;padding:.5rem 8rem 0 2rem;line-height:24.56px;color:#fff}ul.th-display-section-list{position:relative;font-style:normal;font-weight:600;font-size:14px;line-height:233%;color:#fff;padding:.5rem 3.3rem;list-style-type:disc}ul.th-display-section-list li{margin-bottom:0;font-size:14px}ul.th-display-section-list li::marker{color:#fff;font-size:1.5rem}.display-section-img{display:flex;justify-content:center;align-items:center;flex-direction:column}.display-section-img img{padding-bottom:1rem;max-width:100%;height:auto}.th-fields-function{width:50%;float:right}.th-display-rule-fields{position:relative;width:98%;background:#f3f3f3;border-radius:15px;float:right;height:52%}.th-display-rule-fields-head{font-style:normal;font-weight:700;font-size:20px;color:#121933;padding-top:1rem;padding-left:2rem}.th-display-rule-fields-desc{font-style:normal;font-weight:400;font-size:14px;margin:.5rem 2rem;color:#121933;width:91%;text-align:left;line-height:24.56px}ul.th-display-field-list{list-style-type:disc;padding:.5rem 3.3rem}ul.th-display-field-list li{font-style:normal;font-weight:600;font-size:14px;line-height:200%;color:#121933;margin:0 0}.th-price-fields{position:relative;width:98%;top:10px;float:right;background:#fff;border:1px solid #dfdfdf;border-radius:15px;height:46.7%}.th-price-fields-head{font-style:normal;font-weight:700;font-size:20px;color:#121933;padding-left:2rem;padding-top:1rem}.th-price-fields-desc{font-style:normal;font-weight:400;font-size:14px;color:#121933;width:90%;padding-left:2rem;line-height:24.56px}.th-price-field-list{padding:.5rem 3.5rem;width:100%}ul.th-price-list{list-style-type:disc}ul.th-price-list li{font-weight:600;font-size:14px;color:#121933;padding:.2rem 0}.switch-to-pro-tab{width:100%;display:flex;flex-direction:column;align-items:center;margin:0;transform:matrix(1,0,0,1,0,0)}.th-switch-to-pro{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;width:80%;height:259px;margin:0 4.5rem 3rem;text-align:center;background:#fffaf5;border-radius:21px}.switch-to-pro-heading{font-weight:700;font-size:21px;line-height:164%;text-align:center;color:#121933;margin-top:-4rem}.th-switch-to-pro p{position:relative;color:#121933;font-size:14px;width:85%;margin-top:-.5rem}.button-get-pro{position:absolute;width:203px;height:58px;background:#6e55ff;border-radius:5px;display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:700;font-size:17px;line-height:166.5%;text-align:center;color:#fff;margin-top:7rem}.th-faq-tab{display:flex;justify-content:center;flex-direction:column;margin:2rem 2rem 1rem 2rem}.th-faq-desc{width:100%;display:flex;flex-direction:column;align-items:center}.th-faq-tab h3{position:relative;width:61px;height:33px;font-style:normal;font-weight:700;font-size:22px;line-height:148.93%;color:#121933}.th-faq-tab .th-faq-para{position:relative;width:67%;font-style:normal;font-weight:400;font-size:16px;line-height:188.5%;text-align:center;color:#121933;margin:-1rem}.th-faq-tab .arrow-svg{float:right;bottom:35px;position:relative}.th-faq-qstns{margin:3rem 0}.accordion-qstn{display:flex;justify-content:space-between;padding:0 4rem}.accordion-qstn p{font-style:normal;font-weight:700;font-size:16px;line-height:148.93%;color:#121933}.accordion-qstn .accordion-img-opn{display:none}.panel p,.th-faq-links{padding-left:4rem;text-align:left;width:58rem;overflow-wrap:break-word;font-size:14px;color:#121933;line-height:24.56px}.th-faq-answer,.th-faq-notes{padding-bottom:2rem}#slider{max-width:350px;overflow-y:auto;overflow:hidden;height:auto;margin:50px auto}#slider ul li{position:relative}#slider ul{width:1400px;height:150px;position:relative}#slider ul li img{position:relative;float:left}#buttons{width:350px;margin:-20px auto;display:block}#next{float:right;padding:5px 10px;color:#333;outline:0;border:2px solid #333}#prev{padding:5px 10px;color:#333;outline:0;border:2px solid #333}.th-review-nav-btn.active{background:#6e55ff!important;width:1.5rem!important;height:1.5rem!important}.th-faq-qstns .accordion{box-sizing:border-box;position:relative;width:100%;min-height:109px;background:#fff;border:1px solid #dfdfdf;border-radius:21px;transition:.4s;margin:-.5rem 0}.panel{padding:0 18px;display:none;background-color:#fff;overflow:hidden;border-radius:21px}.th-review-nav-btn-hide{display:none}.th-review-section{display:flex;padding:5rem 0 0;width:100%}.review-quote-img{display:flex;padding:0 3rem}.th-review-navigator{border-left:2px solid #f5f5f5;display:flex;flex-direction:column;justify-content:center;align-items:center}.th-review-nav-btn{width:1rem;height:1rem;background-color:#f0f0f0;border-radius:50%;position:relative;margin-left:-.8rem;margin-bottom:1rem}.th-user-review-section{display:flex;width:100%;padding:3rem 5rem}.th-review-nav-btn li:last-child{width:.5rem;height:.5rem;background-color:#f0f0f0;border-radius:50%;position:relative;left:20px;top:4rem;margin-top:1.5rem}.th-reviews{display:flex}.th-user-review{position:absolute;display:grid}.th-review-quote{padding:1rem 1.5rem}.th-user-review h3{font-style:normal;font-weight:700;font-size:20px;color:#121933;width:78%;margin:1rem 5rem}.th-review-content{width:78%;margin:1rem 5rem}.th-user-review p{font-size:14px;color:#121933;line-height:24.56px}.th-review-user-name{font-weight:700;margin:0 5rem}.th-review-navigator-tab{display:none}ul.feature-list li:marker{content:"\f147";display:inline-block;-webkit-font-smoothing:antialiased;color:#2271b1;margin-right:10px;word-wrap:break-word;font-family:dashicons;font-weight:700}ul.th-cfe-feature-list li::marker{width:1rem}.thwcfd-pro-offer{background:url(../images/discount-popup/popup-flyers.png),linear-gradient(90deg,#4410d8 5%,#4e10d8 18%,#6911d8 40%,#9611d9 69%,#cc12d9 100%);width:100%;height:212px;border-top-left-radius:20px;border-top-right-radius:20px;background-repeat:no-repeat}.thwcfd-pro-discount-popup{position:fixed;width:100%;height:100%;background-color:rgba(0,0,0,.5);position:fixed;z-index:9999;align-items:center;justify-content:center;top:0;right:0}.thwcfd-discount-close-btn{background:0 0;cursor:pointer;border:none}a.thwcfd-discount-close-btn:focus{box-shadow:none}.thwcfd-discount-popup-wrapper{position:relative;width:500px;height:390px;background:#fff;border-radius:20px}.thwcfd-discount-popup-close{justify-content:right;display:flex;padding-right:.5rem;padding-top:.5rem}.thwcfd-discount-desc{margin:-.5rem}.thwcfd-discount-desc-first,.thwcfd-discount-desc-last{font-style:normal;font-weight:500;font-size:16px;line-height:23.83px;text-align:center;color:#fff}.thwcfd-discount-exp-date{font-style:normal;font-size:15px;line-height:26.31px;text-align:center;color:#000;background:#fff;margin:0 8rem;width:50%;border-radius:3px}.thwcfd-discount-desc-middle{font-style:normal;font-weight:700;font-size:50px;line-height:80.34px;text-align:center;color:#fff;margin:-2rem}.thwcfd-pro-offer-para{font-style:normal;font-weight:400;font-size:13px;line-height:175.43%;text-align:center;color:#000;width:398px}.thwcd-pro-claim-offer{display:flex;justify-content:center;flex-direction:column;align-items:center;padding:1rem}.claim-discount-btn-div{width:100%;justify-content:center;display:flex;align-items:center}.claim-discount-btn{background:#6e55ff;width:168px;border-radius:5px;font-style:normal;font-weight:600;font-size:14px;line-height:166.5%;text-align:center;color:#fff;height:42px;align-items:center;display:flex;justify-content:center}.th-flexbox{display:flex;flex-wrap:wrap;justify-content:space-between}.th-title-box{display:flex;align-items:center}.th-title-box img{width:54px;height:54px;margin-right:1.2em;border-radius:6px}.th-title-box h3{flex:1}.th-title-box h3 a{color:#1d2327}.th-title-box h3 a:hover{opacity:.8}.th-flexbox-child{width:100%;height:auto;box-sizing:border-box}.th-plugins-wrapper{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:20px}.th-plugins-wrapper.featured{grid-template-columns:1fr 1fr 1fr;grid-gap:20px;margin-bottom:4em}.th-plugins-child{width:100%;height:auto;box-sizing:border-box;padding:5%;border-radius:2%;border:1px solid #fff;background:#fff;transition:box-shadow .5s;transition:border .5s}.th-plugins-child:hover{border:1px solid #e0e0e0;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%)}.th-plugin-action.updating-message::before{display:inline-block;content:"\f111";font:400 19px/1 dashicons;margin:0 5px 0 -2px;vertical-align:middle;animation:rotation 2s infinite linear}@media only screen and (min-width:45em){.th-flexbox-child{width:49%}}:root{--primary-bg-color:#007cba;--primary-text-color:#0071a1;--primary-border-color:#0071a1;--primary-alt-bg-color:#f3f5f6;--primary-alt-text-color:#0071a1;--primary-alt-border-color:#0071a1}*{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}ol,ul{margin-top:0;margin-bottom:10px}:after,:before{box-sizing:border-box}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{cursor:pointer;color:#337ab7;text-decoration:none;background-color:transparent}.btn-link,a{color:#528ff0}.wp-core-ui select{line-height:2;border-color:#e2e2e2}.pull-right{float:right!important}.ml-30{margin-left:30px!important}.mt-10{margin-top:10px!important}.mt-20{margin-top:20px!important}.p-0{padding:0!important}.ph-5{padding-left:5px!important;padding-right:5px!important}.pv-2{padding-top:2px!important;padding-bottom:2px!important}.thwcfd-wrap div.thwcfd-notice{margin:10px 20px 0 2px}.thwcfd-wrap input[type=number],.thwcfd-wrap input[type=text],.thwcfd-wrap select,.thwcfd-wrap textarea{color:#32373c;line-height:1;min-height:30px;height:36px;width:auto;background-color:#fff;border:1px solid #e2e2e2;border-radius:2px;overflow:hidden;font-size:14px;padding:0 12px;box-shadow:0 0 0 transparent}.thwcfd-wrap textarea{height:auto;overflow:auto;padding:2px 6px;line-height:1.5;resize:vertical}.thwcfd-wrap input[type=number]:disabled,.thwcfd-wrap input[type=text]:disabled,.thwcfd-wrap select:disabled,.thwcfd-wrap textarea:disabled{color:#a0a5aa;border-color:#ddd;background-color:#f7f7f7}.thwcfd-wrap input[type=number]:disabled::placeholder,.thwcfd-wrap input[type=text]:disabled::placeholder,.thwcfd-wrap select:disabled::placeholder,.thwcfd-wrap textarea:disabled::placeholder{color:#a0a5aa}.thwcfd-wrap .btn{display:inline-block;background-image:none;font-size:14px;font-weight:400;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;touch-action:manipulation;line-height:1;border-width:1px;border-style:solid;border-radius:2px;outline:0;margin:0;padding:12px 20px;box-sizing:border-box;-webkit-appearance:none;-webkit-box-sizing:border-box;transition:.1s;-webkit-transition:.1s;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn:hover{opacity:.9}.thwcfd-wrap .btn-small{font-size:13px;padding:8px 10px;border-radius:2px}.thwcfd-wrap .btn-tiny{font-size:13px;padding:5px 5px;border-radius:2px}.thwcfd-wrap .btn-primary{color:#fff;background-color:var(--primary-bg-color);border-color:var(--primary-border-color)}.thwcfd-wrap .btn-primary-alt{color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn-danger{color:#fff;background-color:#f44336;border-color:#c3352b}.thwcfd-wrap .btn:disabled,.thwcfd-wrap .btn[disabled]{color:#cbcbcb;border-color:#cbcbcb;background-color:#fcfcfc;cursor:default}.thwcfd-checkbox{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.thwcfd-checkbox .cb-input,.thwcfd-radio .rb-input{display:block;height:0;margin:0;opacity:0;line-height:normal;box-sizing:border-box;overflow:hidden}.thwcfd-checkbox .cb-el{width:16px;margin-top:2px;margin-right:8px;height:16px;background:#fff;border-radius:2px;float:left;transition:.3s;cursor:pointer;border:1px solid #ccc}.thwcfd-checkbox .cb-el::after{content:'';display:block;width:6px;height:11px;opacity:0;transition:.2s;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(1.5);margin:0 0 0 4px}.thwcfd-checkbox .cb-label{font-size:14px;cursor:pointer;white-space:normal;display:inline-block;font-weight:400;vertical-align:middle}.thwcfd-checkbox :checked+.cb-el{background:#528ff0;border-color:#528ff0}.thwcfd-checkbox :checked+.cb-el::after{opacity:1;transform:rotate(45deg)}.thwcfd-input-wrap{font-weight:400;display:block;margin:24px 0 8px;position:relative}.thwcfd-input-wrap .label{float:left;width:172px;text-align:right;margin-bottom:4px;font-weight:700;position:relative}.thwcfd-input-wrap.required .label::after{content:'*';font-size:12px;position:absolute;margin-left:1px;top:0;color:#f05050}.thwcfd-input-wrap .content{margin-left:190px;position:relative}.thwcfd-input-wrap.small .iel-wrapper{width:260px}.thwcfd-input-wrap .thwcfd-inputtext,.thwcfd-input-wrap .thwcfd-select{width:100%}.thpladmin-modal-mask{position:fixed;background-color:rgba(17,30,60,.6);top:0;left:0;width:100%;height:100%;z-index:9999;overflow:scroll;transition:opacity 250ms ease-in-out}.thpladmin-modal-mask{display:none}.thpladmin-modal .modal-container{position:absolute;background:#fff;border-radius:2px;overflow:hidden;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:960px;min-height:560px;height:80vh;max-height:640px;animation:appear-down 250ms ease-in-out}.thpladmin-modal .modal-close{position:absolute;color:#58666e;font-size:30px;padding:9px 12px 11px;right:8px;top:8px;line-height:20px;cursor:pointer;z-index:10;user-select:none}.thpladmin-modal .form-wizard{max-width:1024px;height:80vh;max-height:640px;min-height:560px;background:#fafafa;position:relative}.thpladmin-modal .wizard aside{padding:24px 0;width:240px;background:#fff;position:absolute;height:100%;border-right:1px solid #eee}.thpladmin-modal .wizard aside p,.thpladmin-modal .wizard aside side-title{padding:0 24px}.thpladmin-modal .wizard aside side-title{font-size:18px;font-weight:700;display:block;margin-bottom:16px}.thpladmin-modal .wizard aside ul{margin:30px 0;padding:0}.thpladmin-modal .wizard aside li{cursor:pointer;list-style:none;padding:10px 24px;margin:4px 0;color:var(--primary-text-color);position:relative}.thpladmin-modal .wizard aside li.text-primary{color:var(--primary-text-color)}.thpladmin-modal .wizard aside li.active{background:var(--primary-bg-color);color:#fff}.thpladmin-modal .wizard aside li.disabled{display:none}.thpladmin-modal .wizard aside li .dashicons{margin-right:6px;line-height:18px;vertical-align:middle}.thpladmin-modal .wizard aside li.active .dashicons::before{color:#fff}.thpladmin-modal .wizard aside li i.i-chevron-right{font-style:normal;color:#fff;position:absolute;right:8px;font-family:dashicons;opacity:0;top:50%;transform:translate(-4px,-50%);transition:.35s}.thpladmin-modal .wizard aside li.active i.i-chevron-right{opacity:1}.thpladmin-modal .form-wizard main{left:0;right:0;padding:30px;position:absolute;bottom:80px;top:0;overflow:auto}.thpladmin-modal .wizard aside~footer,.thpladmin-modal .wizard aside~main{left:240px}.thpladmin-modal .form-wizard main.main-full{bottom:0}.thpladmin-modal .form-wizard main-title{text-transform:uppercase;display:block;font-weight:600;margin-bottom:12px;font-size:14px!important}.thpladmin-modal .form-wizard .sub-title{text-transform:uppercase;font-weight:600;font-size:14px!important}.thpladmin-modal .form-wizard .device-mobile{display:none}.thpladmin-modal .form-wizard .device-desktop{display:inline}.thpladmin-modal .form-wizard footer{left:0;padding:10px 20px;right:0;background:#f6f6f6;border-top:1px solid #e0e0e0;bottom:0;position:absolute;text-align:right;z-index:99999999}.thpladmin-modal .form-wizard footer .Loader{float:left;opacity:0;transition:1s opacity;margin-top:4px;line-height:27px}.thpladmin-modal .form-wizard footer .btn-toolbar>.btn{margin-left:5px}.thpladmin-modal .form-wizard .form{margin-top:0;padding-bottom:0}.thpladmin-modal .form-wizard .data-panel-content{margin-top:30px;padding-bottom:90px}.thwcfd_pp_table{width:100%}.thwcfd_pp_table tr.disabled td.label,.thwcfd_pp_table tr.disabled td.tip{opacity:.5}.thwcfd_pp_table tr.disabled.hide{display:none}.thwcfd_pp_table td{padding:5px 10px}.thwcfd_pp_table.compact td{padding:3px 10px}.thwcfd_pp_table td.h-separator{padding:20px 0!important}.thwcfd_pp_table td.h-separator span{display:block;height:2px;border-top:1px dashed #e6e6e6}.thwcfd_pp_table td.label{width:25%;text-align:right;padding-right:0;font-weight:700}.thwcfd_pp_table td.tip{width:16px;text-align:center;padding:0}.thwcfd_pp_table td.field{padding-left:0}.thwcfd_pp_table input[type=number],.thwcfd_pp_table input[type=text],.thwcfd_pp_table select{width:260px}.thwcfd_pp_table input[type=text].thwcfd-color{width:223px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.thwcfd_pp_table .thpladmin-colorpickpreview{padding:9.5px 15px 8.5px 20px;border:1px solid #e2e2e2;border-radius:2px 0 0 2px;border-right:1;background-color:#fff}.product_page_th_extra_product_options_pro .select2-container .select2-selection{border-radius:2px;border:1px solid #e2e2e2;min-height:36px;padding:0 4px}.thpladmin-options-table{width:100%;margin-bottom:30px}.thpladmin-options-table input[type=text],.thpladmin-options-table select{width:100%;padding:0 6px}.thpladmin-options-table td{padding:2px 0 2px 4px}.thpladmin-options-table td.price{width:70px}.thpladmin-options-table td.price-type{width:110px}.thpladmin-options-table td.action-cell{width:100px}.thpladmin-options-table td.action-cell .btn{margin-left:6px;padding:1px 5px 2px 5px;font-size:18px;line-height:1}.thpladmin-options-table td.action-cell span.sort{cursor:move;font-size:18px;padding:0 1px 1px 1px;border-color:#999}.thpladmin-options-table td.action-cell span.sort::before{content:'\f333';content:'\f228';font-family:Dashicons;text-align:center;vertical-align:middle;line-height:1;color:#999}.thwcfd_tooltip{float:right;display:inline;position:relative;font-size:12px;height:100%;z-index:99999999}.thwcfd_tooltip img{padding:0;vertical-align:middle;cursor:help;border:medium none;height:16px;width:16px}.thwcfd_tooltip:hover:after{background:#333;background:#000;border-radius:5px;bottom:26px;color:#fff;content:attr(title);left:-100px;padding:10px 15px;position:absolute;z-index:9998;width:350px}.thwcfd_tooltip:hover:before{border:solid;border-color:#000 transparent;border-width:6px 6px 0 6px;bottom:20px;content:"";left:50%;position:absolute;z-index:9999}.thwcfd-settings-table{width:100%}.thwcfd-settings-table td{padding:5px 0}.thwcfd-settings-table td.section-title{padding:30px 0 5px 0;text-align:left;font-weight:700;text-transform:capitalize;border-bottom:1px dashed #cecece}.thwcfd-settings-table td.label{width:22%;text-align:left;padding-right:0;font-weight:400}.thwcfd-settings-table td.label span{display:block}.thwcfd-settings-table td.label .description{font-size:.9em}.thwcfd-settings-table td.tip{width:16px;text-align:center;padding:0}.thwcfd-settings-table td.field{padding-left:0}.thwcfd-settings-table textarea{width:90%;font-size:.9em}.iris-picker{z-index:100;display:none;position:absolute!important;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:0 0!important}.iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.thpladmin-colorpickpreview{padding:7px 10px 7px 20px;border:1px solid #7e8993;border-radius:4px;border-right:1;background-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.thwcfd-wrap .thpladmin-colorpick{border-left:0!important;margin-left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.select2-drop-mask{z-index:99999998!important}.select2-drop{z-index:99999999!important}.select2-container{z-index:99999999!important}.select2-container .select2-search--inline .select2-search__field{margin-top:0!important;margin-bottom:0!important;border:0!important}.select2-container .select2-search__field{min-width:0!important;background-image:none!important}.select2-results .select2-results__group{margin:0!important;padding:4px!important}.select2-results .select2-results__option{margin:0!important;padding:4px 4px 4px 8px!important;font-size:.9em}.thwcfd-wrap .select2-container .select2-selection{border-radius:2px!important;border:1px solid #e2e2e2!important;min-height:36px!important;padding:0 4px!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li{font-size:.8em!important;margin:4px 4px 0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-search{margin:0!important;height:26px!important;width:auto!important}.th_quick_widget{position:relative;display:none;height:405px;width:278px;background:#fff;box-shadow:0 0 12px 1px rgb(0 0 0 / 8%);border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}.th_quick_widget-float{position:fixed;right:50px;z-index:99999;bottom:31px}.th_whead{position:relative;width:278px;height:140.5px;z-index:0;background:linear-gradient(270deg,#845de2 0,#6e55ff 100%);border-top-right-radius:10px;border-top-left-radius:10px}.th_whead_close_btn{position:relative;width:15px;height:15px;left:255px;top:10px;display:flex;align-items:center;justify-content:center;background:rgba(31,32,35,.2);border-radius:4px}.th_whead_close_btn:hover{cursor:pointer}.th_whead_close_btn i{border:1px solid red;width:10px;height:10px;color:#fff}.th_whead_icon{position:relative;width:36px;height:36px;left:20px;top:3px;display:flex;justify-content:center;align-items:center;background:#fff;border-radius:10px}.th_quick_widget_heading{padding:2px}.th_whead_t1{position:relative;width:250px;height:19px;left:20px;top:1px;font-style:normal;font-weight:300;font-size:14px;line-height:19px;color:#fff}.th_quick_widget_heading p{margin:1em 0 1.41575em;line-height:.2}.th_whead_t2{position:relative;width:250px;height:19px;left:20px;top:3px;margin-top:9px;font-family:'Open Sans';font-style:normal;font-weight:300;font-size:10px;line-height:19px;color:#fff}.th_quick_wbody{position:relative}.th_quick_widget_body ul{position:relative;top:-29px;left:8px;margin:0}.th_quick_widget_body li{display:flex;align-items:center;width:240px;height:43px;top:540px;background:#fff;box-shadow:0 0 6px 3px rgba(0,0,0,.05);border-radius:10px;list-style:none;margin:10px}.th_quick_widget_body a{text-decoration:none;color:#10144c}.th_quick_widget_body a:hover{color:#d34156}.th_quick_widget_body a:focus{outline:0}.list_icon{display:flex;justify-content:center;align-items:center;width:25px;height:25px;left:29px;top:-1.7px;background:#fdeeff;border-radius:8px;margin:15px}.wbutton{width:240px;height:43px;top:540px;margin:5px 19px;border:1px solid #fff;background:#fff;box-shadow:0 0 6px 3px rgba(0,0,0,.05);border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}.wbutton:first-child{z-index:1;margin-top:-12px}.wbtnicon{display:block;position:absolute;width:25px;height:25px;left:29px;top:-1.7px;background:#fdeeff;border-radius:8px}.icon-a{display:flex;justify-content:center;align-items:center}.icon-b{display:flex;justify-content:center;align-items:center;top:50px;background:#e4efff}.icon-c{display:flex;justify-content:center;align-items:center;top:100px;background:#fff5eb}.icon-d{display:flex;justify-content:center;align-items:center;top:155px;background:#eef0ff}.icon-e{display:flex;justify-content:center;align-items:center;top:210px;background:#fdeeff}.wbtntitle{position:relative;width:190px;height:18px;left:45px;text-align:left;font-family:'Open Sans';font-style:normal;font-weight:400;font-size:13px;line-height:18px;color:#10144c}.widget-popup{width:60px;height:60px;background:#6e55ff;border-radius:40px;margin-top:12px;float:right;margin-left:20px}#th_quick_border_animation{position:absolute;width:60px;height:59.5px;border-radius:35px;animation:pulse 1.2s infinite}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(0,0,0,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px transparent}100%{transform:scale(2);box-shadow:0 0 0 0 transparent}}.widget-popup-icon{margin-top:17px;margin-left:15px;width:25px;height:28px;transform:rotate(45deg)}.widget-popup-icon:hover{cursor:pointer}.thpladmin_fields_table tr.not-editable td.td_actions,.thpladmin_fields_table tr.not-editable td.td_select,.thpladmin_fields_table tr.not-editable td.ui-sortable-handle{pointer-events:none;opacity:.5}.th wcfe_block_field_options .thpladmin-options-table td.price,.thwcfe_block_field_options .thpladmin-options-table td.price-type{display:none}.form_field_order_meta.cb_disable,.form_field_user_meta.cb_disable{pointer-events:none;opacity:.5}.thadmin-block-form.address .thwcfd-select option[value=url]{display:none}1 .align-center{text-align:center!important}.woocommerce-message{margin-top:10px}.err_msgs{color:red}.empty-msg-row{padding:20px 0!important;text-align:center}.color-red{color:red!important}.status-active{font-size:15px;color:green}.status-deactive{font-size:15px;color:red}.thpladmin-subtitle{font-size:11px;color:#666}a.button.big-button{font-size:1.1rem;background-color:#fff;border:1px solid #42af42;color:#42af42}a.button.big-button:focus,a.button.big-button:hover{background-color:#42af42;border:1px solid #42af42;box-shadow:0 0 0 1px #42af42;color:#fff}table.thpladmin_fields_table td.sort{cursor:move;font-size:15px;text-align:center}table.thpladmin_fields_table td.sort::before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}.thpladmin-tab{width:100%;border:0 solid #d4d4d1;border-top:0;background-color:#fff;float:left}.thpladmin-tabs-menu{width:100%;margin:0;margin-top:10px;float:left;clear:both;border-bottom:1px solid #bcd4e6}.thpladmin-tabs-menu li{float:left;margin-right:5px;margin-bottom:-1px;border:1px solid #bcd4e6;outline:1px solid transparent;border-radius:4px 4px 0 0;background:#e1ecf4}.thpladmin-tabs-menu li.current{color:#555;position:relative;background-color:#fff;border-bottom:1px solid #fff;box-shadow:none}.thpladmin-tabs-menu li.first{margin-left:20px}.thpladmin-tabs-menu li a{font-size:18px;display:block;padding:12px 20px;text-decoration:none;color:#9fc2db;-webkit-transition:color .2s;transition:color .2s}.thpladmin-tabs-menu li a:focus{outline:0;box-shadow:none}.thpladmin-tabs-menu .current a{color:#2e7da3}.thpladmin-tab-content{padding:0;display:none;min-height:200px;max-height:485px;color:#000}.thpladmin-sections{list-style:outside none none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.thpladmin-sections li{display:inline-block;margin:0;padding:0;white-space:nowrap}.thpladmin-sections a.current{font-weight:600;border:medium none;color:#000}.thpladmin-sections a{line-height:2;padding:.2em;text-decoration:none}.thpladmin-sections .delete_section img,.thpladmin-sections a.edit_section img{width:12px;height:12px}.thpladmin-sections a.add_link{margin-left:30px;background-color:#00a0d2;border:1px solid #0073aa;color:#fff;padding:2px 5px;border-radius:3px}.thpladmin-sections a.add_link:hover{background-color:#0073aa}.thpladmin-form-table td{padding:5px 0}.thpladmin-form-table td.thpladmin-form-section-title{font-weight:700;border-bottom:1px dashed #cecece}.thpladmin_fields_table tr.strikeout td{background:rgba(255,0,0,.4)!important;opacity:.6;text-decoration:line-through}.thpladmin_fields_table tr.thpladmin-disabled td{opacity:.4}.thpladmin_fields_table tr.thpladmin-disabled td.td_select{opacity:1}.thpladmin_fields_table .td_actions{width:90px}.thpladmin_fields_table .td_enabled{width:80px}.thpladmin_fields_table .td_clear{width:65px}.thpladmin_fields_table .td_required{width:85px}.thpladmin_fields_table .td_select{width:45px}.thpladmin_fields_table .td_type{width:150px}.thpladmin_fields_table .td_validate{text-transform:capitalize}.thpladmin_fields_table th.status{white-space:nowrap}.thpladmin_fields_table .dashicons{line-height:inherit}.thpladmin_fields_table .td_actions .dashicons{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;padding:0 2px 2px 2px;box-shadow:0 1px 0 #ccc;webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.thpladmin_fields_table .td_actions .dashicons.disabled{color:#ccc;border:1px solid #e9e9e9;cursor:default}.thpladmin_fields_table .td_actions .dashicons-edit{cursor:pointer}.thpladmin_fields_table .td_actions .dashicons-admin-page{cursor:pointer}.thpladmin-sections .dashicons{cursor:pointer}.thpladmin-sections .dashicons-no{color:#ff4c4c}ul.th-cfe-feature-list,ul.th-cfe-field-list,ul.th-display-field-list,ul.th-display-section-list,ul.th-price-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}ul.th-cfe-field-list,ul.th-display-field-list,ul.th-display-rule-list,ul.th-display-section-list,ul.th-price-list{-webkit-column-count:2;-moz-column-count:2;column-count:2}.th-nice-box{border:1px solid #c3c4c7;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%);background:#fff;margin:1.5rem 0 .75rem 0}.th-nice-box hr{position:absolute;height:0;border:1px solid #ddd}.th-ad-banner{display:flex;height:30%}.th-ad-content{width:90%;background-color:#121933;display:flex;justify-content:center;align-items:center}.th-ad-content-container{display:flex;justify-content:center;align-items:center}.th-ad-content-desc{font-style:normal;font-weight:400;font-size:14px;color:#fff;text-align:left;width:81%}.th-ad-content-desc p{width:100%;height:56%;padding:.3rem 1.5rem;font-size:14px}.btn-get-pro,.btn-try-demo,.btn-upgrade-pro{width:168px;height:42px;background:#6e55ff;border-radius:5px;font-style:normal;font-weight:600;font-size:14px;line-height:166.5%;text-align:center;color:#fff}.trydemo-heading{font-size:22px;color:#121933}.btn-try-demo:hover{color:#000;background-color:#d1d1d1}.btn-try-demo.clicked{color:#000;background-color:#d1d1d1}.btn-try-demo.clicked{color:#000}.btn-try-demo:focus{outline:0;border:none}.btn-get-pro:hover{color:#fff;background-color:#5540ce}.btn-get-pro.clicked{color:#fff;background:#6e55ff}.btn-get-pro:focus{outline:0;border:none}.btn-upgrade-pro:hover{color:#fff;background-color:#5540ce}.btn-upgrade-pro.clicked{color:#fff;background:#6e55ff}.btn-upgrade-pro:focus{outline:0;border:none}.button-get-pro:hover{color:#fff;background-color:#5540ce}.button-get-pro.clicked{color:#fff;background:#6e55ff}.button-get-pro:focus{outline:0;border:none}.claim-discount-btn.clicked,.claim-discount-btn:hover{color:#fff;background-color:#5540ce}.upgrade-pro-btn-div{display:flex;padding:0 2.5rem;align-items:center}@media screen and (min-width:480px) and (max-width:1024px){.th-ad-content{display:grid}.th-ad-terms{display:grid!important}.th-ad-guarantee{padding:1rem;display:flex;justify-content:center;align-items:center}.th-ad-term-head{padding:0 .5rem}.th-try-demo{padding:3rem 5rem 3rem 5rem;display:grid;justify-content:center;align-items:center}.trydemo-heading{width:90%;margin:1rem 2rem}.try-demo-desc{padding:0 5rem!important;width:100%}.btn-get-pro{margin:1rem 1.5rem!important}.th-feautre-desc{padding:1rem 2rem!important;margin:0!important;text-align:left!important}.th-cfe-feature-list-ul{justify-content:flex-start!important}.th-cfe-feature-list{display:grid;margin:-1rem 1rem 2rem!important}ul.th-cfe-feature-list li{height:65px;line-height:22px!important;background:url(crown.svg) 0 0 no-repeat!important;margin:0 3rem!important;text-align:left}.th-get-pro-img{display:none}.th-get-pro-desc{width:70%!important;padding:0 .7rem!important}.th-get-pro-btn{padding:1rem 1rem!important}.th-get-pro-btn .btn-upgrade-pro{width:120px;margin:3rem 0 0 0!important}.th-pro-support{width:83%!important}.th-pro-support-desc{margin:0 .5rem!important}.th-hor-line{width:90%}.th-ad-content-container{display:grid!important;justify-content:center;align-items:center}.th-field-types{margin:0 1rem 0 2rem!important}.th-cfe-field-type-img{display:grid!important}.th-fields{width:86%!important;margin:0 1.5rem!important}.th-fields-img{position:relative;margin:3rem 0!important}.th-fields-section-function{display:grid!important;margin:0 1rem 0 1rem!important}.th-section-function{width:100%!important}.th-display-rule-section-desc{padding:0 0 0 2rem!important}ul.th-display-section-list{padding:0 2.3rem!important}ul.th-display-section-list li{margin:0 1rem 0!important;width:100%!important}.th-fields-function{width:100%!important;display:grid;padding:1rem 0}.th-display-rule-fields{width:100%!important;height:100%!important}.th-price-fields{width:100%!important;height:100%!important;margin:1rem 0!important;top:0!important}.th-price-fields-desc{width:100%!important}.th-price-field-list{margin:0 3.3rem!important;width:90%!important}ul.th-price-list{width:100%!important}.th-faq-tab h3{width:100%!important;align-items:center;display:flex;justify-content:center}.th-faq-tab .th-faq-para{width:96%!important;text-align:left}.accordion-qstn{padding:0 2rem!important;text-align:left}.panel p{padding-left:2rem!important;width:100%!important}.accordion-qstn .accordion-img{margin:.3rem!important}.accordion-qstn .accordion-img-opn{display:none}.switch-to-pro-tab h3{position:relative;top:0!important;width:70%!important;margin-top:-5rem}.switch-to-pro-tab p{top:0!important}.button-get-pro{margin-top:9rem!important}.th-review-section{display:grid!important;margin:2rem 0 0 0!important;width:100%}.review-quote-img img{display:none!important}.review-quote-img{display:flex;padding:0;background-repeat:no-repeat;background-position:center;width:100%;height:10rem}.th-review-navigator{display:none!important}.th-user-review-section{display:grid!important;width:100%!important;padding:8rem 0!important;justify-content:center;align-items:center}.th-review-quote{padding:0 .5rem!important;text-align:center;margin-top:-14rem}.th-user-review{position:absolute!important;margin-top:0;width:96%!important;height:3%!important}.th-user-review h3{position:absolute!important;width:88%!important;margin:1.5rem 5.5rem!important;text-align:center}.th-review-content{width:100%!important;position:relative;padding:3rem;text-align:center;margin:1rem 0!important}.th-user-review .th-review-user-name{margin:-4rem 0;text-align:center;padding:1rem 0;width:100%!important}@media screen and (min-width:612px) and (max-width:1024px){.th-faq-tab{margin:0 2rem 0 2rem!important}.th-review-navigator{display:flex!important;flex-direction:row!important;position:relative;top:18rem}.th-review-nav-btn{margin-left:1rem!important}.th-user-review h3{position:absolute!important;width:80%!important;margin:1.5rem 5.5rem!important;text-align:center}}@media screen and (min-width:300px) and (max-width:611px){.th-faq-tab{margin:2rem 2rem 0 2rem!important}.th-review-navigator{display:flex!important;flex-direction:row!important;position:relative;top:21rem}.th-review-nav-btn{margin-left:1rem!important}}}@media screen and (min-width:2000px){.th-wrapper-main{justify-content:center;align-items:center}.th-try-demo{width:70%;padding:1rem 0 2rem 0!important}.th-cfe-key-feature{width:70%}ul.th-cfe-feature-list{width:74%!important}.th-field-types{width:70%;margin:0!important}.th-fields-section-function{width:70%;margin:1rem 0 1rem 0!important}.th-review-section{width:70%!important;padding:5rem 0 4rem!important}.th-faq-tab{width:70%;margin:3rem 0 1rem 0!important}.th-faq-qstns .accordion{margin:-.5rem 0}.th-switch-to-pro{width:70%!important}.th-user-review{width:50%!important}.th-ad-term-head{width:21rem!important}.th-switch-to-pro{margin:1rem 5.5rem 5rem!important}}.th-wrapper-main{display:flex;flex-direction:column}.next,.prev{display:none}.btn-try-demo{width:203px;height:58px;display:inline-flex;align-items:center;justify-content:center;background:#e4e4e4;color:#000;font-size:16px}.btn-get-pro{width:203px;height:58px;font-size:16px;display:inline-flex;align-items:center;justify-content:center;margin:0 1.5rem}.btn-upgrade-pro{display:flex;justify-content:center;align-items:center}.th-ad-terms{width:40%;background-color:#e6e6e9;display:flex}.th-ad-guarantee{padding:1rem;display:flex;justify-content:center}.th-ad-term-head{font-style:normal;font-weight:700;font-size:14px;color:#59617d;width:17rem;justify-content:center;display:flex;flex-direction:column}.th-ad-term-desc{font-style:normal;font-weight:400;font-size:14px;color:#59617d}.th-try-demo{text-align:center;padding:1rem 0 2rem 0}.th-pro-btn{margin-right:1rem}.try-demo-desc{padding:.2rem 11rem 1rem;font-style:normal;font-weight:400;font-size:16px;line-height:175.43%;text-align:center;color:#121933}.th-cfe-key-feature{position:relative;background:#fffaf5;border-radius:15px;margin:0 2rem 0 2rem}.th-cfe-key-feature .th-feautre-head{position:relative;width:100%;font-style:normal;font-weight:700;font-size:22px;text-align:center;color:#121933;padding:3rem 0 0 0}.th-cfe-key-feature .th-feautre-desc{position:relative;font-style:normal;font-weight:400;font-size:16px;text-align:center;color:#121933;margin:0 8em;line-height:2}.th-cfe-feature-list-ul{display:flex;justify-content:center;text-align:center;margin:2rem;white-space:pre-wrap}ul.th-cfe-feature-list{text-align:right;list-style-position:inside;float:left}.column-break{break-after:column}ul.th-cfe-feature-list li{background:url(crown.svg) 0 0 no-repeat;text-align:start;padding-left:3rem;line-height:25px;font-size:16px;font-weight:600;width:100%;color:#000}.th-list{position:relative;top:-.5rem;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:600;font-size:16px;padding:19px .5rem}.th-get-pro{display:flex;position:relative;background-color:#121933;border-bottom-left-radius:15px;border-bottom-right-radius:15px}.th-get-pro-img{width:10%;justify-content:flex-start;display:flex}.th-wrapper-get-pro{display:flex;justify-content:center;width:90%;align-items:center}.th-get-pro-desc{padding:0 4.7rem}.th-get-pro-btn{display:flex;justify-content:center;align-items:center}.th-get-pro-btn .btn-upgrade-pro{height:58px;font-size:16px}.th-get-pro-desc-head{display:grid;font-style:normal;font-weight:700;font-size:21px;color:#fff}.th-get-pro-desc-contnt{font-style:normal;font-weight:400;font-size:16px;color:#fff}.th-star-support{margin:2rem 0;width:100%;display:flex;flex-direction:column;align-items:center}.th-user-star{display:flex}.th-user-star-desc{font-style:normal;font-weight:700;font-size:18px;text-align:center;color:#000}.th-user-star-img{margin:1rem 0}.th-pro-support{display:flex;margin:-.8rem}.th-pro-support-desc{margin:.5rem 1.5rem;font-style:normal;font-weight:400;font-size:16px;line-height:175.43%;color:#5b5b5b}.th-pro-support-desc em{font-size:18px;color:#121933;font-weight:700;font-style:normal}.th-hor-line{border:1px solid #ddd;margin:2.5rem 0 0;width:94%}.th-field-types{margin:0 4rem 0 2rem}.th-field-types-head{font-style:normal;font-weight:700;font-size:22px;color:#121933}.th-field-types-desc{font-style:normal;font-weight:400;font-size:16px;color:#121933}.th-cfe-field-type-img{display:flex}.th-fields-img{position:relative;margin:5rem 0}.th-fields-img img{width:369px;height:360px}.th-fields{width:50%;margin:0 1.5rem}.th-list-type{top:-2rem;position:relative}ul.th-cfe-field-list{list-style-type:disc}ul.th-cfe-field-list li::marker,ul.th-display-field-list li::marker,ul.th-price-list li::marker{color:#6e55ff;font-size:1.5rem}ul.th-cfe-field-list li{font-style:normal;font-weight:600;font-size:16px;line-height:40px;color:#121933}.th-new-rec{width:53px;height:20px;background:#3c7d0e;border-radius:11px;display:inline-flex;font-style:normal;font-weight:600;font-size:12px;color:#fff;justify-content:center}.th-new-rec p{margin:0}.th-crown{top:.5rem;left:.5rem;position:relative}.th-fields-section-function{position:relative;border-radius:15px;display:flex;margin:1rem 2rem 1rem 2rem}.th-section-function{width:50%;height:100%}.th-cfe-pro{float:right;margin:0 2rem}.th-display-rule-section{position:relative;background:#121933;border-radius:15px;height:100%}.th-display-rule-section-head{color:#fff;font-size:20px;font-weight:bolder;padding-top:2.5rem;padding-left:2rem}.th-display-rule-section-desc{font-size:14px;padding:.5rem 8rem 0 2rem;line-height:24.56px;color:#fff}ul.th-display-section-list{position:relative;font-style:normal;font-weight:600;font-size:14px;line-height:233%;color:#fff;padding:.5rem 3.3rem;list-style-type:disc}ul.th-display-section-list li{margin-bottom:0;font-size:14px}ul.th-display-section-list li::marker{color:#fff;font-size:1.5rem}.display-section-img{display:flex;justify-content:center;align-items:center;flex-direction:column}.display-section-img img{padding-bottom:1rem;max-width:100%;height:auto}.th-fields-function{width:50%;float:right}.th-display-rule-fields{position:relative;width:98%;background:#f3f3f3;border-radius:15px;float:right;height:52%}.th-display-rule-fields-head{font-style:normal;font-weight:700;font-size:20px;color:#121933;padding-top:1rem;padding-left:2rem}.th-display-rule-fields-desc{font-style:normal;font-weight:400;font-size:14px;margin:.5rem 2rem;color:#121933;width:91%;text-align:left;line-height:24.56px}ul.th-display-field-list{list-style-type:disc;padding:.5rem 3.3rem}ul.th-display-field-list li{font-style:normal;font-weight:600;font-size:14px;line-height:200%;color:#121933;margin:0 0}.th-price-fields{position:relative;width:98%;top:10px;float:right;background:#fff;border:1px solid #dfdfdf;border-radius:15px;height:46.7%}.th-price-fields-head{font-style:normal;font-weight:700;font-size:20px;color:#121933;padding-left:2rem;padding-top:1rem}.th-price-fields-desc{font-style:normal;font-weight:400;font-size:14px;color:#121933;width:90%;padding-left:2rem;line-height:24.56px}.th-price-field-list{padding:.5rem 3.5rem;width:100%}ul.th-price-list{list-style-type:disc}ul.th-price-list li{font-weight:600;font-size:14px;color:#121933;padding:.2rem 0}.switch-to-pro-tab{width:100%;display:flex;flex-direction:column;align-items:center;margin:0;transform:matrix(1,0,0,1,0,0)}.th-switch-to-pro{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;width:80%;height:259px;margin:0 4.5rem 3rem;text-align:center;background:#fffaf5;border-radius:21px}.switch-to-pro-heading{font-weight:700;font-size:21px;line-height:164%;text-align:center;color:#121933;margin-top:-4rem}.th-switch-to-pro p{position:relative;color:#121933;font-size:14px;width:85%;margin-top:-.5rem}.button-get-pro{position:absolute;width:203px;height:58px;background:#6e55ff;border-radius:5px;display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:700;font-size:17px;line-height:166.5%;text-align:center;color:#fff;margin-top:7rem}.th-faq-tab{display:flex;justify-content:center;flex-direction:column;margin:2rem 2rem 1rem 2rem}.th-faq-desc{width:100%;display:flex;flex-direction:column;align-items:center}.th-faq-tab h3{position:relative;width:61px;height:33px;font-style:normal;font-weight:700;font-size:22px;line-height:148.93%;color:#121933}.th-faq-tab .th-faq-para{position:relative;width:67%;font-style:normal;font-weight:400;font-size:16px;line-height:188.5%;text-align:center;color:#121933;margin:-1rem}.th-faq-tab .arrow-svg{float:right;bottom:35px;position:relative}.th-faq-qstns{margin:3rem 0}.accordion-qstn{display:flex;justify-content:space-between;padding:0 4rem}.accordion-qstn p{font-style:normal;font-weight:700;font-size:16px;line-height:148.93%;color:#121933}.accordion-qstn .accordion-img-opn{display:none}.panel p,.th-faq-links{padding-left:4rem;text-align:left;width:58rem;overflow-wrap:break-word;font-size:14px;color:#121933;line-height:24.56px}.th-faq-answer,.th-faq-notes{padding-bottom:2rem}#slider{max-width:350px;overflow-y:auto;overflow:hidden;height:auto;margin:50px auto}#slider ul li{position:relative}#slider ul{width:1400px;height:150px;position:relative}#slider ul li img{position:relative;float:left}#buttons{width:350px;margin:-20px auto;display:block}#next{float:right;padding:5px 10px;color:#333;outline:0;border:2px solid #333}#prev{padding:5px 10px;color:#333;outline:0;border:2px solid #333}.th-review-nav-btn.active{background:#6e55ff!important;width:1.5rem!important;height:1.5rem!important}.th-faq-qstns .accordion{box-sizing:border-box;position:relative;width:100%;min-height:109px;background:#fff;border:1px solid #dfdfdf;border-radius:21px;transition:.4s;margin:-.5rem 0}.panel{padding:0 18px;display:none;background-color:#fff;overflow:hidden;border-radius:21px}.th-review-nav-btn-hide{display:none}.th-review-section{display:flex;padding:5rem 0 0;width:100%}.review-quote-img{display:flex;padding:0 3rem}.th-review-navigator{border-left:2px solid #f5f5f5;display:flex;flex-direction:column;justify-content:center;align-items:center}.th-review-nav-btn{width:1rem;height:1rem;background-color:#f0f0f0;border-radius:50%;position:relative;margin-left:-.8rem;margin-bottom:1rem}.th-user-review-section{display:flex;width:100%;padding:3rem 5rem}.th-review-nav-btn li:last-child{width:.5rem;height:.5rem;background-color:#f0f0f0;border-radius:50%;position:relative;left:20px;top:4rem;margin-top:1.5rem}.th-reviews{display:flex}.th-user-review{position:absolute;display:grid}.th-review-quote{padding:1rem 1.5rem}.th-user-review h3{font-style:normal;font-weight:700;font-size:20px;color:#121933;width:78%;margin:1rem 5rem}.th-review-content{width:78%;margin:1rem 5rem}.th-user-review p{font-size:14px;color:#121933;line-height:24.56px}.th-review-user-name{font-weight:700;margin:0 5rem}.th-review-navigator-tab{display:none}ul.feature-list li:marker{content:"\f147";display:inline-block;-webkit-font-smoothing:antialiased;color:#2271b1;margin-right:10px;word-wrap:break-word;font-family:dashicons;font-weight:700}ul.th-cfe-feature-list li::marker{width:1rem}.thwcfd-pro-offer{background:url(../images/discount-popup/popup-flyers.png),linear-gradient(90deg,#4410d8 5%,#4e10d8 18%,#6911d8 40%,#9611d9 69%,#cc12d9 100%);width:100%;height:212px;border-top-left-radius:20px;border-top-right-radius:20px;background-repeat:no-repeat}.thwcfd-pro-discount-popup{position:fixed;width:100%;height:100%;background-color:rgba(0,0,0,.5);position:fixed;z-index:9999;align-items:center;justify-content:center;top:0;right:0}.thwcfd-discount-close-btn{background:0 0;cursor:pointer;border:none}a.thwcfd-discount-close-btn:focus{box-shadow:none}.thwcfd-discount-popup-wrapper{position:relative;width:500px;height:390px;background:#fff;border-radius:20px}.thwcfd-discount-popup-close{justify-content:right;display:flex;padding-right:.5rem;padding-top:.5rem}.thwcfd-discount-desc{margin:-.5rem}.thwcfd-discount-desc-first,.thwcfd-discount-desc-last{font-style:normal;font-weight:500;font-size:16px;line-height:23.83px;text-align:center;color:#fff}.thwcfd-discount-exp-date{font-style:normal;font-size:15px;line-height:26.31px;text-align:center;color:#000;background:#fff;margin:0 8rem;width:50%;border-radius:3px}.thwcfd-discount-desc-middle{font-style:normal;font-weight:700;font-size:50px;line-height:80.34px;text-align:center;color:#fff;margin:-2rem}.thwcfd-pro-offer-para{font-style:normal;font-weight:400;font-size:13px;line-height:175.43%;text-align:center;color:#000;width:398px}.thwcd-pro-claim-offer{display:flex;justify-content:center;flex-direction:column;align-items:center;padding:1rem}.claim-discount-btn-div{width:100%;justify-content:center;display:flex;align-items:center}.claim-discount-btn{background:#6e55ff;width:168px;border-radius:5px;font-style:normal;font-weight:600;font-size:14px;line-height:166.5%;text-align:center;color:#fff;height:42px;align-items:center;display:flex;justify-content:center}.th-flexbox{display:flex;flex-wrap:wrap;justify-content:space-between}.th-title-box{display:flex;align-items:center}.th-title-box img{width:54px;height:54px;margin-right:1.2em;border-radius:6px}.th-title-box h3{flex:1}.th-title-box h3 a{color:#1d2327}.th-title-box h3 a:hover{opacity:.8}.th-flexbox-child{width:100%;height:auto;box-sizing:border-box}.th-plugins-wrapper{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:20px}.th-plugins-wrapper.featured{grid-template-columns:1fr 1fr 1fr;grid-gap:20px;margin-bottom:4em}.th-plugins-child{width:100%;height:auto;box-sizing:border-box;padding:5%;border-radius:2%;border:1px solid #fff;background:#fff;transition:box-shadow .5s;transition:border .5s}.th-plugins-child:hover{border:1px solid #e0e0e0;box-shadow:0 2px 2px rgb(0 0 0 / 4%),0 4px 4px rgb(0 0 0 / 4%),0 8px 8px rgb(0 0 0 / 4%),0 16px 16px rgb(0 0 0 / 4%)}.th-plugin-action.updating-message::before{display:inline-block;content:"\f111";font:400 19px/1 dashicons;margin:0 5px 0 -2px;vertical-align:middle;animation:rotation 2s infinite linear}@media only screen and (min-width:45em){.th-flexbox-child{width:49%}}:root{--primary-bg-color:#007cba;--primary-text-color:#0071a1;--primary-border-color:#0071a1;--primary-alt-bg-color:#f3f5f6;--primary-alt-text-color:#0071a1;--primary-alt-border-color:#0071a1}*{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}ol,ul{margin-top:0;margin-bottom:10px}:after,:before{box-sizing:border-box}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{cursor:pointer;color:#337ab7;text-decoration:none;background-color:transparent}.btn-link,a{color:#528ff0}.wp-core-ui select{line-height:2;border-color:#e2e2e2}.pull-right{float:right!important}.ml-30{margin-left:30px!important}.mt-10{margin-top:10px!important}.mt-20{margin-top:20px!important}.p-0{padding:0!important}.ph-5{padding-left:5px!important;padding-right:5px!important}.pv-2{padding-top:2px!important;padding-bottom:2px!important}.thwcfd-wrap div.thwcfd-notice{margin:10px 20px 0 2px}.thwcfd-wrap input[type=number],.thwcfd-wrap input[type=text],.thwcfd-wrap select,.thwcfd-wrap textarea{color:#32373c;line-height:1;min-height:30px;height:36px;width:auto;background-color:#fff;border:1px solid #e2e2e2;border-radius:2px;overflow:hidden;font-size:14px;padding:0 12px;box-shadow:0 0 0 transparent}.thwcfd-wrap textarea{height:auto;overflow:auto;padding:2px 6px;line-height:1.5;resize:vertical}.thwcfd-wrap input[type=number]:disabled,.thwcfd-wrap input[type=text]:disabled,.thwcfd-wrap select:disabled,.thwcfd-wrap textarea:disabled{color:#a0a5aa;border-color:#ddd;background-color:#f7f7f7}.thwcfd-wrap input[type=number]:disabled::placeholder,.thwcfd-wrap input[type=text]:disabled::placeholder,.thwcfd-wrap select:disabled::placeholder,.thwcfd-wrap textarea:disabled::placeholder{color:#a0a5aa}.thwcfd-wrap .btn{display:inline-block;background-image:none;font-size:14px;font-weight:400;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;touch-action:manipulation;line-height:1;border-width:1px;border-style:solid;border-radius:2px;outline:0;margin:0;padding:12px 20px;box-sizing:border-box;-webkit-appearance:none;-webkit-box-sizing:border-box;transition:.1s;-webkit-transition:.1s;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn:hover{opacity:.9}.thwcfd-wrap .btn-small{font-size:13px;padding:8px 10px;border-radius:2px}.thwcfd-wrap .btn-tiny{font-size:13px;padding:5px 5px;border-radius:2px}.thwcfd-wrap .btn-primary{color:#fff;background-color:var(--primary-bg-color);border-color:var(--primary-border-color)}.thwcfd-wrap .btn-primary-alt{color:var(--primary-alt-text-color);background-color:var(--primary-alt-bg-color);border-color:var(--primary-alt-border-color)}.thwcfd-wrap .btn-danger{color:#fff;background-color:#f44336;border-color:#c3352b}.thwcfd-wrap .btn:disabled,.thwcfd-wrap .btn[disabled]{color:#cbcbcb;border-color:#cbcbcb;background-color:#fcfcfc;cursor:default}.thwcfd-checkbox{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.thwcfd-checkbox .cb-input,.thwcfd-radio .rb-input{display:block;height:0;margin:0;opacity:0;line-height:normal;box-sizing:border-box;overflow:hidden}.thwcfd-checkbox .cb-el{width:16px;margin-top:2px;margin-right:8px;height:16px;background:#fff;border-radius:2px;float:left;transition:.3s;cursor:pointer;border:1px solid #ccc}.thwcfd-checkbox .cb-el::after{content:'';display:block;width:6px;height:11px;opacity:0;transition:.2s;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(1.5);margin:0 0 0 4px}.thwcfd-checkbox .cb-label{font-size:14px;cursor:pointer;white-space:normal;display:inline-block;font-weight:400;vertical-align:middle}.thwcfd-checkbox :checked+.cb-el{background:#528ff0;border-color:#528ff0}.thwcfd-checkbox :checked+.cb-el::after{opacity:1;transform:rotate(45deg)}.thwcfd-input-wrap{font-weight:400;display:block;margin:24px 0 8px;position:relative}.thwcfd-input-wrap .label{float:left;width:172px;text-align:right;margin-bottom:4px;font-weight:700;position:relative}.thwcfd-input-wrap.required .label::after{content:'*';font-size:12px;position:absolute;margin-left:1px;top:0;color:#f05050}.thwcfd-input-wrap .content{margin-left:190px;position:relative}.thwcfd-input-wrap.small .iel-wrapper{width:260px}.thwcfd-input-wrap .thwcfd-inputtext,.thwcfd-input-wrap .thwcfd-select{width:100%}.thpladmin-modal-mask{position:fixed;background-color:rgba(17,30,60,.6);top:0;left:0;width:100%;height:100%;z-index:9999;overflow:scroll;transition:opacity 250ms ease-in-out}.thpladmin-modal-mask{display:none}.thpladmin-modal .modal-container{position:absolute;background:#fff;border-radius:2px;overflow:hidden;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;max-width:960px;min-height:560px;height:80vh;max-height:640px;animation:appear-down 250ms ease-in-out}.thpladmin-modal .modal-close{position:absolute;color:#58666e;font-size:30px;padding:9px 12px 11px;right:8px;top:8px;line-height:20px;cursor:pointer;z-index:10;user-select:none}.thpladmin-modal .form-wizard{max-width:1024px;height:80vh;max-height:640px;min-height:560px;background:#fafafa;position:relative}.thpladmin-modal .wizard aside{padding:24px 0;width:240px;background:#fff;position:absolute;height:100%;border-right:1px solid #eee}.thpladmin-modal .wizard aside p,.thpladmin-modal .wizard aside side-title{padding:0 24px}.thpladmin-modal .wizard aside side-title{font-size:18px;font-weight:700;display:block;margin-bottom:16px}.thpladmin-modal .wizard aside ul{margin:30px 0;padding:0}.thpladmin-modal .wizard aside li{cursor:pointer;list-style:none;padding:10px 24px;margin:4px 0;color:var(--primary-text-color);position:relative}.thpladmin-modal .wizard aside li.text-primary{color:var(--primary-text-color)}.thpladmin-modal .wizard aside li.active{background:var(--primary-bg-color);color:#fff}.thpladmin-modal .wizard aside li.disabled{display:none}.thpladmin-modal .wizard aside li .dashicons{margin-right:6px;line-height:18px;vertical-align:middle}.thpladmin-modal .wizard aside li.active .dashicons::before{color:#fff}.thpladmin-modal .wizard aside li i.i-chevron-right{font-style:normal;color:#fff;position:absolute;right:8px;font-family:dashicons;opacity:0;top:50%;transform:translate(-4px,-50%);transition:.35s}.thpladmin-modal .wizard aside li.active i.i-chevron-right{opacity:1}.thpladmin-modal .form-wizard main{left:0;right:0;padding:30px;position:absolute;bottom:80px;top:0;overflow:auto}.thpladmin-modal .wizard aside~footer,.thpladmin-modal .wizard aside~main{left:240px}.thpladmin-modal .form-wizard main.main-full{bottom:0}.thpladmin-modal .form-wizard main-title{text-transform:uppercase;display:block;font-weight:600;margin-bottom:12px;font-size:14px!important}.thpladmin-modal .form-wizard .sub-title{text-transform:uppercase;font-weight:600;font-size:14px!important}.thpladmin-modal .form-wizard .device-mobile{display:none}.thpladmin-modal .form-wizard .device-desktop{display:inline}.thpladmin-modal .form-wizard footer{left:0;padding:10px 20px;right:0;background:#f6f6f6;border-top:1px solid #e0e0e0;bottom:0;position:absolute;text-align:right;z-index:99999999}.thpladmin-modal .form-wizard footer .Loader{float:left;opacity:0;transition:1s opacity;margin-top:4px;line-height:27px}.thpladmin-modal .form-wizard footer .btn-toolbar>.btn{margin-left:5px}.thpladmin-modal .form-wizard .form{margin-top:0;padding-bottom:0}.thpladmin-modal .form-wizard .data-panel-content{margin-top:30px;padding-bottom:90px}.thwcfd_pp_table{width:100%}.thwcfd_pp_table tr.disabled td.label,.thwcfd_pp_table tr.disabled td.tip{opacity:.5}.thwcfd_pp_table tr.disabled.hide{display:none}.thwcfd_pp_table td{padding:5px 10px}.thwcfd_pp_table.compact td{padding:3px 10px}.thwcfd_pp_table td.h-separator{padding:20px 0!important}.thwcfd_pp_table td.h-separator span{display:block;height:2px;border-top:1px dashed #e6e6e6}.thwcfd_pp_table td.label{width:25%;text-align:right;padding-right:0;font-weight:700}.thwcfd_pp_table td.tip{width:16px;text-align:center;padding:0}.thwcfd_pp_table td.field{padding-left:0}.thwcfd_pp_table input[type=number],.thwcfd_pp_table input[type=text],.thwcfd_pp_table select{width:260px}.thwcfd_pp_table input[type=text].thwcfd-color{width:223px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.thwcfd_pp_table .thpladmin-colorpickpreview{padding:9.5px 15px 8.5px 20px;border:1px solid #e2e2e2;border-radius:2px 0 0 2px;border-right:1;background-color:#fff}.product_page_th_extra_product_options_pro .select2-container .select2-selection{border-radius:2px;border:1px solid #e2e2e2;min-height:36px;padding:0 4px}.thpladmin-options-table{width:100%;margin-bottom:30px}.thpladmin-options-table input[type=text],.thpladmin-options-table select{width:100%;padding:0 6px}.thpladmin-options-table td{padding:2px 0 2px 4px}.thpladmin-options-table td.price{width:70px}.thpladmin-options-table td.price-type{width:110px}.thpladmin-options-table td.action-cell{width:100px}.thpladmin-options-table td.action-cell .btn{margin-left:6px;padding:1px 5px 2px 5px;font-size:18px;line-height:1}.thpladmin-options-table td.action-cell span.sort{cursor:move;font-size:18px;padding:0 1px 1px 1px;border-color:#999}.thpladmin-options-table td.action-cell span.sort::before{content:'\f333';content:'\f228';font-family:Dashicons;text-align:center;vertical-align:middle;line-height:1;color:#999}.thwcfd_tooltip{float:right;display:inline;position:relative;font-size:12px;height:100%;z-index:99999999}.thwcfd_tooltip img{padding:0;vertical-align:middle;cursor:help;border:medium none;height:16px;width:16px}.thwcfd_tooltip:hover:after{background:#333;background:#000;border-radius:5px;bottom:26px;color:#fff;content:attr(title);left:-100px;padding:10px 15px;position:absolute;z-index:9998;width:350px}.thwcfd_tooltip:hover:before{border:solid;border-color:#000 transparent;border-width:6px 6px 0 6px;bottom:20px;content:"";left:50%;position:absolute;z-index:9999}.thwcfd-settings-table{width:100%}.thwcfd-settings-table td{padding:5px 0}.thwcfd-settings-table td.section-title{padding:30px 0 5px 0;text-align:left;font-weight:700;text-transform:capitalize;border-bottom:1px dashed #cecece}.thwcfd-settings-table td.label{width:22%;text-align:left;padding-right:0;font-weight:400}.thwcfd-settings-table td.label span{display:block}.thwcfd-settings-table td.label .description{font-size:.9em}.thwcfd-settings-table td.tip{width:16px;text-align:center;padding:0}.thwcfd-settings-table td.field{padding-left:0}.thwcfd-settings-table textarea{width:90%;font-size:.9em}.iris-picker{z-index:100;display:none;position:absolute!important;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:0 0!important}.iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.thpladmin-colorpickpreview{padding:7px 10px 7px 20px;border:1px solid #7e8993;border-radius:4px;border-right:1;background-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.thwcfd-wrap .thpladmin-colorpick{border-left:0!important;margin-left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.select2-drop-mask{z-index:99999998!important}.select2-drop{z-index:99999999!important}.select2-container{z-index:99999999!important}.select2-container .select2-search--inline .select2-search__field{margin-top:0!important;margin-bottom:0!important;border:0!important}.select2-container .select2-search__field{min-width:0!important;background-image:none!important}.select2-results .select2-results__group{margin:0!important;padding:4px!important}.select2-results .select2-results__option{margin:0!important;padding:4px 4px 4px 8px!important;font-size:.9em}.thwcfd-wrap .select2-container .select2-selection{border-radius:2px!important;border:1px solid #e2e2e2!important;min-height:36px!important;padding:0 4px!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li{font-size:.8em!important;margin:4px 4px 0 0!important}.thwcfd-wrap .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-search{margin:0!important;height:26px!important;width:auto!important}.th_quick_widget{position:relative;display:none;height:405px;width:278px;background:#fff;box-shadow:0 0 12px 1px rgb(0 0 0 / 8%);border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}.th_quick_widget-float{position:fixed;right:50px;z-index:99999;bottom:31px}.th_whead{position:relative;width:278px;height:140.5px;z-index:0;background:linear-gradient(270deg,#845de2 0,#6e55ff 100%);border-top-right-radius:10px;border-top-left-radius:10px}.th_whead_close_btn{position:relative;width:15px;height:15px;left:255px;top:10px;display:flex;align-items:center;justify-content:center;background:rgba(31,32,35,.2);border-radius:4px}.th_whead_close_btn:hover{cursor:pointer}.th_whead_close_btn i{border:1px solid red;width:10px;height:10px;color:#fff}.th_whead_icon{position:relative;width:36px;height:36px;left:20px;top:3px;display:flex;justify-content:center;align-items:center;background:#fff;border-radius:10px}.th_quick_widget_heading{padding:2px}.th_whead_t1{position:relative;width:250px;height:19px;left:20px;top:1px;font-style:normal;font-weight:300;font-size:14px;line-height:19px;color:#fff}.th_quick_widget_heading p{margin:1em 0 1.41575em;line-height:.2}.th_whead_t2{position:relative;width:250px;height:19px;left:20px;top:3px;margin-top:9px;font-family:'Open Sans';font-style:normal;font-weight:300;font-size:10px;line-height:19px;color:#fff}.th_quick_wbody{position:relative}.th_quick_widget_body ul{position:relative;top:-29px;left:8px;margin:0}.th_quick_widget_body li{display:flex;align-items:center;width:240px;height:43px;top:540px;background:#fff;box-shadow:0 0 6px 3px rgba(0,0,0,.05);border-radius:10px;list-style:none;margin:10px}.th_quick_widget_body a{text-decoration:none;color:#10144c}.th_quick_widget_body a:hover{color:#d34156}.th_quick_widget_body a:focus{outline:0}.list_icon{display:flex;justify-content:center;align-items:center;width:25px;height:25px;left:29px;top:-1.7px;background:#fdeeff;border-radius:8px;margin:15px}.wbutton{width:240px;height:43px;top:540px;margin:5px 19px;border:1px solid #fff;background:#fff;box-shadow:0 0 6px 3px rgba(0,0,0,.05);border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}.wbutton:first-child{z-index:1;margin-top:-12px}.wbtnicon{display:block;position:absolute;width:25px;height:25px;left:29px;top:-1.7px;background:#fdeeff;border-radius:8px}.icon-a{display:flex;justify-content:center;align-items:center}.icon-b{display:flex;justify-content:center;align-items:center;top:50px;background:#e4efff}.icon-c{display:flex;justify-content:center;align-items:center;top:100px;background:#fff5eb}.icon-d{display:flex;justify-content:center;align-items:center;top:155px;background:#eef0ff}.icon-e{display:flex;justify-content:center;align-items:center;top:210px;background:#fdeeff}.wbtntitle{position:relative;width:190px;height:18px;left:45px;text-align:left;font-family:'Open Sans';font-style:normal;font-weight:400;font-size:13px;line-height:18px;color:#10144c}.widget-popup{width:60px;height:60px;background:#6e55ff;border-radius:40px;margin-top:12px;float:right;margin-left:20px}#th_quick_border_animation{position:absolute;width:60px;height:59.5px;border-radius:35px;animation:pulse 1.2s infinite}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(0,0,0,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px transparent}100%{transform:scale(2);box-shadow:0 0 0 0 transparent}}.widget-popup-icon{margin-top:17px;margin-left:15px;width:25px;height:28px;transform:rotate(45deg)}.widget-popup-icon:hover{cursor:pointer}.thpladmin_fields_table tr.not-editable td.td_actions,.thpladmin_fields_table tr.not-editable td.td_select,.thpladmin_fields_table tr.not-editable td.ui-sortable-handle{pointer-events:none;opacity:.5}.thpladmin_fields_table tr.not-deletable td.td_select{opacity:.2;position:relative}.thpladmin_fields_table tr.not-deletable td.td_select input[type=checkbox]{pointer-events:none}.thpladmin_fields_table tr.not-deletable td.td_select::after{content:"remove country field causes checkout error";position:absolute;background:#333;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;top:-25px;left:120%;transform:translateX(-50%);opacity:0;visibility:hidden;transition:opacity .2s ease-in-out;z-index:999}.thpladmin_fields_table tr.not-deletable td.td_select:hover::after{opacity:1;visibility:visible}.thwcfe_block_field_options .thpladmin-options-table td.price,.thwcfe_block_field_options .thpladmin-options-table td.price-type{display:none}.form_field_order_meta.cb_disable,.form_field_user_meta.cb_disable{pointer-events:none;opacity:.5}.thadmin-block-form.address .thwcfd-select option[value=url]{display:none}.th-block-warning-msg{border:1px solid #6e55ff;padding:15px;background-color:#6e55ff;color:#fff;border-radius:5px}.th-warning-message-panel__text{display:flex;align-items:center}.th-warning-img{padding-right:10px;border-right:1px solid;text-align:center;display:flex}.th-warning{padding-left:10px;line-height:1.5em}.th-warning a{color:#ffb915;font-style:italic} -
woo-checkout-field-editor-pro/trunk/admin/class-thwcfd-admin-settings-block-fields.php
r3229165 r3253231 155 155 156 156 $non_editable_field = $name === 'email' ? ' not-editable' : ''; 157 $not_deletable_field = $name === 'country' ? ' not-deletable' : ''; 157 158 ?> 158 <tr class="row_<?php echo esc_attr($i); echo($is_enabled === 1 ? '' : ' thpladmin-disabled'); echo esc_attr($non_editable_field); ?>">159 <tr class="row_<?php echo esc_attr($i); echo($is_enabled === 1 ? '' : ' thpladmin-disabled'); echo esc_attr($non_editable_field); echo esc_attr($not_deletable_field);?>"> 159 160 <td width="1%" class="sort ui-sortable-handle"> 160 161 <input type="hidden" name="f_name[<?php echo esc_attr($i); ?>]" class="f_name" value="<?php echo esc_attr($name); ?>" /> -
woo-checkout-field-editor-pro/trunk/admin/class-thwcfd-admin-settings-general.php
r3221414 r3253231 29 29 30 30 $this->tabs = array( 31 'fields' => __('C heckout Fields', 'woo-checkout-field-editor-pro'),31 'fields' => __('Classic Checkout Fields', 'woo-checkout-field-editor-pro'), 32 32 'block_fields' => __('Block Checkout Fields', 'woo-checkout-field-editor-pro'), 33 33 'advanced_settings' => __('Advanced Settings', 'woo-checkout-field-editor-pro'), -
woo-checkout-field-editor-pro/trunk/admin/class-thwcfd-admin-settings.php
r3221414 r3253231 22 22 public function __construct() { 23 23 $this->tabs = array( 24 'fields' => __('C heckout Fields', 'woo-checkout-field-editor-pro'),24 'fields' => __('Classic Checkout Fields', 'woo-checkout-field-editor-pro'), 25 25 'block_fields' => __('Block Checkout Fields', 'woo-checkout-field-editor-pro'), 26 26 'advanced_settings' => __('Advanced Settings', 'woo-checkout-field-editor-pro'), -
woo-checkout-field-editor-pro/trunk/admin/class-thwcfd-admin.php
r3221414 r3253231 90 90 public function output_settings(){ 91 91 echo '<div class="wrap">'; 92 92 93 echo '<h2>'. esc_html__('Checkout Form', 'woo-checkout-field-editor-pro') .'</h2>'; 93 94 94 $tab = $this->get_current_tab(); 95 95 96 96 echo '<div class="thwcfd-wrap">'; 97 //Block Compatibility Warning 98 $this->compatibility_warning(); 99 97 100 if($tab === 'advanced_settings'){ 98 101 $advanced_settings = THWCFD_Admin_Settings_Advanced::instance(); … … 113 116 echo '</div>'; 114 117 echo '</div>'; 118 } 119 120 public function compatibility_warning(){ 121 122 ?> 123 <div id="th_block_warning" class="th-block-warning-msg"> 124 <div class="th-warning-message-panel__text th-warning-message-panel__text--center"> 125 <div class = "th-warning-img"> 126 <svg width="30" height="30" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg"> 127 <path d="M9.65703 0H0.496145C0.221904 0 0 0.208925 0 0.467124V2.30211C0 2.55966 0.221904 2.76924 0.496145 2.76924H9.65773C9.93127 2.76924 10.1539 2.56031 10.1539 2.30211V0.467124C10.1539 0.209582 9.93197 0 9.65773 0H9.65703Z" fill="white"/> 128 <path d="M14.737 4.61539H3.72396C3.45206 4.61539 3.2308 4.82431 3.2308 5.08251V6.9175C3.2308 7.17504 3.45137 7.38462 3.72396 7.38462H14.7377C15.0096 7.38462 15.2308 7.1757 15.2308 6.9175V5.08251C15.2308 4.82497 15.0103 4.61539 14.7377 4.61539H14.737Z" fill="white"/> 129 <path d="M14.7172 9.23077H12.0522C11.769 9.23077 11.5386 9.4397 11.5386 9.6979V11.5329C11.5386 11.7904 11.7683 12 12.0522 12H14.7172C15.0004 12 15.2309 11.7911 15.2309 11.5329V9.6979C15.2309 9.44036 15.0012 9.23077 14.7172 9.23077Z" fill="white"/> 130 <path d="M9.64009 9.23077H6.97526C6.69202 9.23077 6.46152 9.4397 6.46152 9.6979V11.5329C6.46152 11.7904 6.69129 12 6.97526 12H9.64009C9.92333 12 10.1538 11.7911 10.1538 11.5329V9.6979C10.1538 9.44036 9.92406 9.23077 9.64009 9.23077Z" fill="white"/> 131 <path d="M14.7172 0H12.0522C11.769 0 11.5386 0.208925 11.5386 0.467124V2.30211C11.5386 2.55966 11.7683 2.76924 12.0522 2.76924H14.7172C15.0004 2.76924 15.2309 2.56031 15.2309 2.30211V0.467124C15.2309 0.209582 15.0012 0 14.7172 0Z" fill="white"/> 132 </svg> 133 </div> 134 <div class="th-warning"> 135 136 <span class="th-warning-message-panel__inner-text"> 137 <?php 138 printf( 139 esc_html__("Our Checkout Field Editor now supports WooCommerce Checkout Blocks! Currently, a few field types are available, and more will be added soon. 140 If you're using Block Checkout, make sure to switch to the Block Checkout Fields tab, otherwise, your changes won’t be reflected. Have questions or need help? 141 Reach out to our %s .", 'woocommerce-checkout-field-editor-pro'), 142 '<a href="https://www.themehigh.com/docs/support/" target="_blank" class="quick-widget-support-link">' . esc_html__(' Support team', 'woo-checkout-field-editor-pro') . '</a>' 143 ); 144 ?> 145 </span> 146 </div> 147 </div> 148 </div> 149 <?php 150 115 151 } 116 152 … … 504 540 505 541 // $render_time = apply_filters('thwcfd_show_discount_popup_render_time' , 3 * MONTH_IN_SECONDS); 506 $render_time = apply_filters('thwcfd_show_discount_popup_render_time', 6* MONTH_IN_SECONDS);542 $render_time = apply_filters('thwcfd_show_discount_popup_render_time', 1.5 * MONTH_IN_SECONDS); 507 543 $render_time = $thwcfd_since + $render_time; 508 544 -
woo-checkout-field-editor-pro/trunk/block/assets/dist/additional-sections-frontend.asset.php
r3221414 r3253231 1 <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => ' fdd46edd4fa2ec1cfd8a');1 <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'c8d83d9249bf011a24b9'); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/additional-sections-frontend.js
r3221414 r3253231 1 (()=>{"use strict";var e,o={ 363:(e,o,t)=>{const r=window.wc.blocksCheckout,l=window.wc.wcSettings;function a(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(o=0;o<l;o++)e[o]&&(t=a(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const c=function(){for(var e,o,t=0,r="",l=arguments.length;t<l;t++)(e=arguments[t])&&(o=a(e))&&(r&&(r+=" "),r+=o);return r},s=window.wc.blocksComponents,i=window.wc.wcBlocksData;var n=t(609);const d=window.wp.data,p=(window.wp.coreData,window.lodash),u=window.wp.i18n,h=window.wp.element,m=(0,h.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,h.cloneElement)(e,{width:o,height:o,...t,ref:r})})),_=window.wp.primitives;var w=t(848);const b=(0,w.jsx)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,w.jsx)(_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),f=e=>{const{onChange:o,options:t,label:r,value:l="",className:a,size:n,errorId:p,required:_,errorMessage:f=(0,u.__)("Please select a valid option","woocommerce"),placeholder:k,...v}=e,g=(0,h.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,h.useMemo)((()=>({value:"",label:null!=k?k:(0,u.sprintf)(1 (()=>{"use strict";var e,o={20:(e,o,t)=>{var r=t(609),l=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,o,t){var r,s={},n=null,d=null;for(r in void 0!==t&&(n=""+t),void 0!==o.key&&(n=""+o.key),void 0!==o.ref&&(d=o.ref),o)i.call(o,r)&&!c.hasOwnProperty(r)&&(s[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===s[r]&&(s[r]=o[r]);return{$$typeof:l,type:e,key:n,ref:d,props:s,_owner:a.current}}o.jsx=s,o.jsxs=s},363:(e,o,t)=>{const r=window.wc.blocksCheckout,l=window.wc.wcSettings;function i(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(o=0;o<l;o++)e[o]&&(t=i(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const a=function(){for(var e,o,t=0,r="",l=arguments.length;t<l;t++)(e=arguments[t])&&(o=i(e))&&(r&&(r+=" "),r+=o);return r},c=window.wc.blocksComponents,s=window.wc.wcBlocksData;var n=t(609);const d=window.wp.data,p=(window.wp.coreData,window.lodash),u=window.wp.i18n,h=window.wp.element,m=(0,h.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,h.cloneElement)(e,{width:o,height:o,...t,ref:r})})),_=window.wp.primitives;var w=t(848);const b=(0,w.jsx)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,w.jsx)(_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),f=e=>{const{onChange:o,options:t,label:r,value:l="",className:i,size:n,errorId:p,required:_,errorMessage:f=(0,u.__)("Please select a valid option","woo-checkout-field-editor-pro"),placeholder:k,...v}=e,g=(0,h.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,h.useMemo)((()=>({value:"",label:null!=k?k:(0,u.sprintf)( 2 2 // translators: %s will be label of the field. For example "country/region". 3 3 // translators: %s will be label of the field. For example "country/region". 4 (0,u.__)("Select a %s","woo commerce"),r?.toLowerCase()),disabled:!!_})),[r,k,_]),x=(0,h.useId)(),j=v.id||`wc-blocks-components-select-${x}`,C=p||j,N=(0,h.useMemo)((()=>_&&l?t:[y].concat(t)),[_,l,y,t]),{setValidationErrors:E,clearValidationError:O}=(0,d.useDispatch)(i.VALIDATION_STORE_KEY),{error:S,validationErrorId:$}=(0,d.useSelect)((e=>{const o=e(i.VALIDATION_STORE_KEY);return{error:o.getValidationError(C),validationErrorId:o.getValidationErrorId(C)}}));(0,h.useEffect)((()=>(!_||l?O(C):E({[C]:{message:f,hidden:!0}}),()=>{O(C)})),[O,l,C,f,_,E]);const I=(0,d.useSelect)((e=>e(i.VALIDATION_STORE_KEY).getValidationError(C||"")||{hidden:!0}));return(0,w.jsxs)("div",{className:c(a,{"has-error":!I.hidden}),children:[(0,w.jsx)("div",{className:"wc-blocks-components-select",children:(0,w.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,w.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,w.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==n?n:1,onChange:g,value:l,"aria-invalid":!(!S?.message||S?.hidden),"aria-errormessage":$,...v,children:N.map((e=>(0,w.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,w.jsx)(m,{className:"wc-blocks-components-select__expand",icon:b})]})}),(0,w.jsx)(s.ValidationInputError,{propertyName:C})]})},k=window.wp.compose,v=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:l})=>(0,w.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,w.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,w.jsx)("span",{id:l&&`${l}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,w.jsx)("span",{id:l&&`${l}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,w.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,w.jsx)("span",{id:l&&`${l}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,w.jsx)("span",{id:l&&`${l}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),g=({checked:e,name:o,onChange:t,option:r,disabled:l=!1,highlightChecked:a=!1})=>{const{value:s,label:i,description:n,secondaryLabel:d,secondaryDescription:p}=r;return(0,w.jsxs)("label",{className:c("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&a}),htmlFor:`${o}-${s}`,children:[(0,w.jsx)("input",{id:`${o}-${s}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:s,onChange:e=>t(e.target.value),checked:e,"aria-describedby":c({[`${o}-${s}__label`]:i,[`${o}-${s}__secondary-label`]:d,[`${o}-${s}__description`]:n,[`${o}-${s}__secondary-description`]:p}),"aria-disabled":l,onKeyDown:e=>{l&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,w.jsx)(v,{id:`${o}-${s}`,label:i,secondaryLabel:d,description:n,secondaryDescription:p})]})},y=({className:e="",id:o,selected:t="",onChange:r,options:l=[],disabled:a=!1,highlightChecked:p=!1,title:h="",required:m=!1,errorMessage:_=(0,u.__)("Please select an option","woocommerce"),errorId:b})=>{const f=(0,k.useInstanceId)(y),v=o||f,x=b||v,{setValidationErrors:j,clearValidationError:C}=(0,d.useDispatch)(i.VALIDATION_STORE_KEY),N=(0,d.useSelect)((e=>e(i.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,n.useEffect)((()=>(!m||t?C(x):j({[x]:{message:_,hidden:!0}}),()=>{C(x)})),[t,m,x,_]);const E=(0,n.useMemo)((()=>l.findIndex((e=>e.value===t))),[l,t]);return l.length?(0,w.jsxs)("div",{className:c("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!N.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":p&&0===E,"wc-block-components-radio-control--highlight-checked--last-selected":p&&E===l.length-1,"wc-block-components-radio-control--highlight-checked":p},e),children:[(0,w.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",h||""," "]}),l.map((e=>(0,w.jsx)(g,{highlightChecked:p,name:`radio-control-${v}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:a},`${v}-${e.value}`))),(0,w.jsx)(s.ValidationInputError,{propertyName:x})]}):null},x=y,j=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:l,placeholder:a,...c}=e;return c},C=window.wp.url,N=({field:e,onChange:o=""})=>{const{id:t,label:r,type:l,value:a,placeholder:i,required:d,options:p,title:h,validate:m,property_set:_,enabled:b,cssclass:k}=e,{default:v,checked:g}=_,y=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),N=(0,n.useRef)({});if(!b||"0"===b)return null;const E=e=>{o({[t]:e})};return(0,n.useEffect)((()=>{void 0!==v&&E(v)}),[v]),"checkbox"===l&&(0,n.useEffect)((()=>{void 0!==g&&E(g)}),[g]),"email"!==e.type?"checkbox"===l?(0,w.jsx)(s.CheckboxControl,{checked:a,onChange:E,...j(y),className:c(k?.split(",").map((e=>e.trim()))),required:d},t):"select"===l&&e.options?(0,w.jsx)(f,{...y,label:h||"",className:c(k?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:a,onChange:E,options:y.options,required:d,errorMessage:y.errorMessage||void 0,placeholder:i||null},t):"radio"===l?(0,w.jsx)(x,{...y,selected:a,onChange:E,options:y.options,disabled:!1,highlightChecked:!0,title:h||"",className:c(k?.split(",").map((e=>e.trim())))}):(0,w.jsx)(s.ValidatedTextInput,{ref:e=>N.current[t]=e,...y,type:l,value:a,onChange:E,className:c(k?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,C.isPhoneNumber)(e.value)?"url"!==o||(0,C.isURL)(e.value)?"email"===o&&!(0,C.isEmail)(e.value)&&(e.setCustomValidity((0,u.__)("Please enter a valid email address","woocommerce")),1):(e.setCustomValidity((0,u.__)("Please enter a valid URL","woocommerce")),1):(e.setCustomValidity((0,u.__)("Please enter a valid Phone Number","woocommerce")),1))))(e,m)},t):void 0},E=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/additional-sections","version":"2.0.0","title":"Additional Checkout Sections Block","category":"woocommerce","description":"Render additional Section.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}},"title":{"type":"string","default":"Additional Information"},"description":{"type":"string","default":"Additional Fields"}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woocommerce-checkout-field-editor-pro"}'),O=(0,l.getSetting)("thwcfe-block-integration_data",""),{allSections:S}=O,{additional_info:$}=S,I=(0,l.getSetting)("thwcfe-block-integration_data",""),{allSections:A}=I,{additional_info:V}=A||{};V&&Object.keys(V).length>0&&(0,r.registerCheckoutBlock)({metadata:E,component:({checkoutExtensionData:e})=>{const o=$,{setExtensionData:t}=e,[r,l]=(0,n.useState)({}),a=(0,d.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),u=(0,n.useRef)(!1),h=(0,n.useCallback)((0,p.debounce)((e=>{t("thwcfe-additional-fields",o.id,e)}),1e3),[t]),m=(0,n.useCallback)((e=>{l((o=>({...o,...e})))}),[]);(0,n.useEffect)((()=>(Object.keys(r).length>0&&h(r),()=>{h.cancel()})),[r,h]),(0,n.useEffect)((()=>{if(u.current)return;const e=o.id,t=`thwcfe_sections_${e}`,r=()=>{const o=document.querySelector(`#${e}`),r=document.querySelector(`.${t}`),l=document.querySelector(".wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block");return!!(o&&r&&l)&&(r.parentNode&&r.parentNode.replaceChild(o,r),u.current=!0,!0)},l=new MutationObserver((()=>{r()&&l.disconnect()}));return r()||l.observe(document.body,{childList:!0,subtree:!0}),()=>l.disconnect()}),[]);const _=(0,n.useMemo)((()=>Array.isArray(o.fields)?o.fields:Object.values(o.fields)),[o.fields]),b=o.show_title?s.FormStep:"div";return Object.keys(_).length>0?(0,w.jsx)(b,{id:o.id,className:c("wc-block-checkout__additional-fields",o.cssclass),...o.show_title&&{title:o.title,description:o.subtitle||"",showStepNumber:!0,disabled:a},children:(0,w.jsx)("div",{children:_.map((e=>(0,w.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,w.jsx)(N,{field:{...e,value:r[e.id]||""},onChange:m})},e.id)))})}):null}})},20:(e,o,t)=>{var r=t(609),l=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(e,o,t){var r,i={},n=null,d=null;for(r in void 0!==t&&(n=""+t),void 0!==o.key&&(n=""+o.key),void 0!==o.ref&&(d=o.ref),o)a.call(o,r)&&!s.hasOwnProperty(r)&&(i[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===i[r]&&(i[r]=o[r]);return{$$typeof:l,type:e,key:n,ref:d,props:i,_owner:c.current}}o.jsx=i,o.jsxs=i},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},t={};function r(e){var l=t[e];if(void 0!==l)return l.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,l,a)=>{if(!t){var c=1/0;for(d=0;d<e.length;d++){for(var[t,l,a]=e[d],s=!0,i=0;i<t.length;i++)(!1&a||c>=a)&&Object.keys(r.O).every((e=>r.O[e](t[i])))?t.splice(i--,1):(s=!1,a<c&&(c=a));if(s){e.splice(d--,1);var n=l();void 0!==n&&(o=n)}}return o}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,l,a]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={498:0,185:0,871:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var l,a,[c,s,i]=t,n=0;if(c.some((o=>0!==e[o]))){for(l in s)r.o(s,l)&&(r.m[l]=s[l]);if(i)var d=i(r)}for(o&&o(t);n<c.length;n++)a=c[n],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=r.O(void 0,[185,871],(()=>r(363)));l=r.O(l)})();4 (0,u.__)("Select a %s","woo-checkout-field-editor-pro"),r?.toLowerCase()),disabled:!!_})),[r,k,_]),x=(0,h.useId)(),j=v.id||`wc-blocks-components-select-${x}`,C=p||j,N=(0,h.useMemo)((()=>_&&l?t:[y].concat(t)),[_,l,y,t]),{setValidationErrors:E,clearValidationError:O}=(0,d.useDispatch)(s.VALIDATION_STORE_KEY),{error:S,validationErrorId:$}=(0,d.useSelect)((e=>{const o=e(s.VALIDATION_STORE_KEY);return{error:o.getValidationError(C),validationErrorId:o.getValidationErrorId(C)}}));(0,h.useEffect)((()=>(!_||l?O(C):E({[C]:{message:f,hidden:!0}}),()=>{O(C)})),[O,l,C,f,_,E]);const I=(0,d.useSelect)((e=>e(s.VALIDATION_STORE_KEY).getValidationError(C||"")||{hidden:!0}));return(0,w.jsxs)("div",{className:a(i,{"has-error":!I.hidden}),children:[(0,w.jsx)("div",{className:"wc-blocks-components-select",children:(0,w.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,w.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,w.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==n?n:1,onChange:g,value:l,"aria-invalid":!(!S?.message||S?.hidden),"aria-errormessage":$,...v,children:N.map((e=>(0,w.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,w.jsx)(m,{className:"wc-blocks-components-select__expand",icon:b})]})}),(0,w.jsx)(c.ValidationInputError,{propertyName:C})]})},k=window.wp.compose,v=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:l})=>(0,w.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,w.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,w.jsx)("span",{id:l&&`${l}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,w.jsx)("span",{id:l&&`${l}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,w.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,w.jsx)("span",{id:l&&`${l}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,w.jsx)("span",{id:l&&`${l}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),g=({checked:e,name:o,onChange:t,option:r,disabled:l=!1,highlightChecked:i=!1})=>{const{value:c,label:s,description:n,secondaryLabel:d,secondaryDescription:p}=r;return(0,w.jsxs)("label",{className:a("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&i}),htmlFor:`${o}-${c}`,children:[(0,w.jsx)("input",{id:`${o}-${c}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:c,onChange:e=>t(e.target.value),checked:e,"aria-describedby":a({[`${o}-${c}__label`]:s,[`${o}-${c}__secondary-label`]:d,[`${o}-${c}__description`]:n,[`${o}-${c}__secondary-description`]:p}),"aria-disabled":l,onKeyDown:e=>{l&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,w.jsx)(v,{id:`${o}-${c}`,label:s,secondaryLabel:d,description:n,secondaryDescription:p})]})},y=({className:e="",id:o,selected:t="",onChange:r,options:l=[],disabled:i=!1,highlightChecked:p=!1,title:h="",required:m=!1,errorMessage:_=(0,u.__)("Please select an option","woo-checkout-field-editor-pro"),errorId:b})=>{const f=(0,k.useInstanceId)(y),v=o||f,x=b||v,{setValidationErrors:j,clearValidationError:C}=(0,d.useDispatch)(s.VALIDATION_STORE_KEY),N=(0,d.useSelect)((e=>e(s.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,n.useEffect)((()=>(!m||t?C(x):j({[x]:{message:_,hidden:!0}}),()=>{C(x)})),[t,m,x,_]);const E=(0,n.useMemo)((()=>l.findIndex((e=>e.value===t))),[l,t]);return l.length?(0,w.jsxs)("div",{className:a("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!N.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":p&&0===E,"wc-block-components-radio-control--highlight-checked--last-selected":p&&E===l.length-1,"wc-block-components-radio-control--highlight-checked":p},e),children:[(0,w.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",h||""," "]}),l.map((e=>(0,w.jsx)(g,{highlightChecked:p,name:`radio-control-${v}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:i},`${v}-${e.value}`))),(0,w.jsx)(c.ValidationInputError,{propertyName:x})]}):null},x=y,j=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:l,placeholder:i,...a}=e;return a},C=window.wp.url,N=({field:e,onChange:o=""})=>{const{id:t,label:r,type:l,value:i,placeholder:s,required:d,options:p,title:h,validate:m,property_set:_,enabled:b,cssclass:k}=e,{default:v,checked:g}=_,y=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),N=(0,n.useRef)({});if(!b||"0"===b)return null;const E=e=>{o({[t]:e})};return(0,n.useEffect)((()=>{void 0!==v&&E(v)}),[v]),"checkbox"===l&&(0,n.useEffect)((()=>{void 0!==g&&E(g)}),[g]),"email"!==e.type?"checkbox"===l?(0,w.jsx)(c.CheckboxControl,{checked:i,onChange:E,...j(y),className:a(k?.split(",").map((e=>e.trim()))),required:d},t):"select"===l&&e.options?(0,w.jsx)(f,{...y,label:h||"",className:a(k?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:i,onChange:E,options:y.options,required:d,errorMessage:y.errorMessage||void 0,placeholder:s||null},t):"radio"===l?(0,w.jsx)(x,{...y,selected:i,onChange:E,options:y.options,disabled:!1,highlightChecked:!0,title:h||"",className:a(k?.split(",").map((e=>e.trim())))}):(0,w.jsx)(c.ValidatedTextInput,{ref:e=>N.current[t]=e,...y,type:l,value:i,onChange:E,className:a(k?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,C.isPhoneNumber)(e.value)?"url"!==o||(0,C.isURL)(e.value)?"email"===o&&!(0,C.isEmail)(e.value)&&(e.setCustomValidity((0,u.__)("Please enter a valid email address","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,u.__)("Please enter a valid URL","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,u.__)("Please enter a valid Phone Number","woo-checkout-field-editor-pro")),1))))(e,m)},t):void 0},E=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/additional-sections","version":"2.0.0","title":"Additional Checkout Sections Block","category":"woocommerce","description":"Render additional Section.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}},"title":{"type":"string","default":"Additional Information"},"description":{"type":"string","default":"Additional Fields"}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woocommerce-checkout-field-editor-pro"}'),O=(0,l.getSetting)("thwcfe-block-integration_data",""),{allSections:S}=O,{additional_info:$}=S,I=(0,l.getSetting)("thwcfe-block-integration_data",""),{allSections:A}=I,{additional_info:V}=A||{};V&&Object.keys(V).length>0&&(0,r.registerCheckoutBlock)({metadata:E,component:({checkoutExtensionData:e})=>{const o=$,{setExtensionData:t}=e,[r,l]=(0,n.useState)({}),i=(0,d.useSelect)((e=>e(s.CHECKOUT_STORE_KEY).isProcessing())),u=(0,n.useRef)(!1),h=(0,n.useCallback)((0,p.debounce)((e=>{t("thwcfe-additional-fields",o.id,e)}),1e3),[t]),m=(0,n.useCallback)((e=>{l((o=>({...o,...e})))}),[]);(0,n.useEffect)((()=>(Object.keys(r).length>0&&h(r),()=>{h.cancel()})),[r,h]),(0,n.useEffect)((()=>{if(u.current)return;const e=o.id,t=`thwcfe_sections_${e}`,r=()=>{const o=document.querySelector(`#${e}`),r=document.querySelector(`.${t}`),l=document.querySelector(".wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block");return!!(o&&r&&l)&&(r.parentNode&&r.parentNode.replaceChild(o,r),u.current=!0,!0)},l=new MutationObserver((()=>{r()&&l.disconnect()}));return r()||l.observe(document.body,{childList:!0,subtree:!0}),()=>l.disconnect()}),[]);const _=(0,n.useMemo)((()=>Array.isArray(o.fields)?o.fields:Object.values(o.fields)),[o.fields]),b=o.show_title?c.FormStep:"div";return Object.keys(_).length>0?(0,w.jsx)(b,{id:o.id,className:a("wc-block-checkout__additional-fields",o.cssclass),...o.show_title&&{title:o.title,description:o.subtitle||"",showStepNumber:!0,disabled:i},children:(0,w.jsx)("div",{children:_.map((e=>(0,w.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,w.jsx)(N,{field:{...e,value:r[e.id]||""},onChange:m})},e.id)))})}):null}})},609:e=>{e.exports=window.React},848:(e,o,t)=>{e.exports=t(20)}},t={};function r(e){var l=t[e];if(void 0!==l)return l.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.m=o,e=[],r.O=(o,t,l,i)=>{if(!t){var a=1/0;for(d=0;d<e.length;d++){for(var[t,l,i]=e[d],c=!0,s=0;s<t.length;s++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](t[s])))?t.splice(s--,1):(c=!1,i<a&&(a=i));if(c){e.splice(d--,1);var n=l();void 0!==n&&(o=n)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,l,i]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={498:0,185:0,871:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var l,i,[a,c,s]=t,n=0;if(a.some((o=>0!==e[o]))){for(l in c)r.o(c,l)&&(r.m[l]=c[l]);if(s)var d=s(r)}for(o&&o(t);n<a.length;n++)i=a[n],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=r.O(void 0,[185,871],(()=>r(363)));l=r.O(l)})(); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/additional-sections.asset.php
r3221414 r3253231 1 <?php return array('dependencies' => array('react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => ' 8b824ae6a9eb6135f5db');1 <?php return array('dependencies' => array('react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '1a9d0d4b46e7656e92fa'); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/additional-sections.js
r3221414 r3253231 1 (()=>{"use strict";var e,o={ 314:(e,o,t)=>{const s=window.wp.blocks,r=window.wp.element,n=(0,r.forwardRef)((function({icon:e,size:o=24,...t},s){return(0,r.cloneElement)(e,{width:o,height:o,...t,ref:s})})),c=window.wp.primitives;var i=t(848);const a=(0,i.jsx)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(c.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})}),l=window.wc.wcSettings,d=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/additional-sections","version":"2.0.0","title":"Additional Checkout Sections Block","category":"woocommerce","description":"Render additional Section.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}},"title":{"type":"string","default":"Additional Information"},"description":{"type":"string","default":"Additional Fields"}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woocommerce-checkout-field-editor-pro"}'),p=window.wp.blockEditor,u=window.wp.i18n;function h(e){var o,t,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(o=0;o<r;o++)e[o]&&(t=h(e[o]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}const m=function(){for(var e,o,t=0,s="",r=arguments.length;t<r;t++)(e=arguments[t])&&(o=h(e))&&(s&&(s+=" "),s+=o);return s},b=(0,r.createContext)({showCompanyField:!1,requireCompanyField:!1,showApartmentField:!1,requireApartmentField:!1,showPhoneField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1,hasDarkControls:!1,showFormStepNumbers:!1}),w=((0,r.createContext)({addressFieldControls:()=>null}),window.wc.blocksComponents),_=({children:e,stepHeadingContent:o})=>(0,i.jsxs)("div",{className:"wc-block-components-checkout-step__heading",style:{pointerEvents:"none"},children:[(0,i.jsx)(w.Title,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2",children:e}),!!o&&(0,i.jsx)("span",{className:"wc-block-components-checkout-step__heading-content",children:o})]}),f=({attributes:e,setAttributes:o,className:t="",children:s})=>{const{showFormStepNumbers:n}=(0,r.useContext)(b),{title:c,description:a}=e,l=(0,p.useBlockProps)({className:m("wc-block-components-checkout-step wc-block-components-checkout-step--with-step-number",t,{"wc-block-components-checkout-step--with-step-number":n})});return(0,i.jsxs)("div",{...l,children:[(0,i.jsx)(_,{children:(0,i.jsx)(p.PlainText,{className:"",value:c,onChange:e=>o({title:e}),style:{backgroundColor:"transparent"}})}),(0,i.jsxs)("div",{className:"wc-block-components-checkout-step__container",children:[(0,i.jsx)("p",{className:"wc-block-components-checkout-step__description",children:(0,i.jsx)(p.PlainText,{className:a?"":"wc-block-components-checkout-step__description-placeholder",value:a,placeholder:(0,u.__)("Optional text for this form step.","woocommerce"),onChange:e=>o({description:e}),style:{backgroundColor:"transparent"}})}),(0,i.jsx)("div",{className:"wc-block-components-checkout-step__content",children:s})]})]})},v=(0,i.jsx)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(c.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),k=window.wp.data,g=window.wc.wcBlocksData,x=e=>{const{onChange:o,options:t,label:s,value:c="",className:a,size:l,errorId:d,required:p,errorMessage:h=(0,u.__)("Please select a valid option","woocommerce"),placeholder:b,..._}=e,f=(0,r.useCallback)((e=>{o(e.target.value)}),[o]),x=(0,r.useMemo)((()=>({value:"",label:null!=b?b:(0,u.sprintf)(1 (()=>{"use strict";var e,o={20:(e,o,t)=>{var s=t(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),n=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,o,t){var s,l={},a=null,d=null;for(s in void 0!==t&&(a=""+t),void 0!==o.key&&(a=""+o.key),void 0!==o.ref&&(d=o.ref),o)i.call(o,s)&&!c.hasOwnProperty(s)&&(l[s]=o[s]);if(e&&e.defaultProps)for(s in o=e.defaultProps)void 0===l[s]&&(l[s]=o[s]);return{$$typeof:r,type:e,key:a,ref:d,props:l,_owner:n.current}}o.jsx=l,o.jsxs=l},314:(e,o,t)=>{const s=window.wp.blocks,r=window.wp.element,i=(0,r.forwardRef)((function({icon:e,size:o=24,...t},s){return(0,r.cloneElement)(e,{width:o,height:o,...t,ref:s})})),n=window.wp.primitives;var c=t(848);const l=(0,c.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(n.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})}),a=window.wc.wcSettings,d=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/additional-sections","version":"2.0.0","title":"Additional Checkout Sections Block","category":"woocommerce","description":"Render additional Section.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":false}},"title":{"type":"string","default":"Additional Information"},"description":{"type":"string","default":"Additional Fields"}},"parent":["woocommerce/checkout-fields-block"],"textdomain":"woocommerce-checkout-field-editor-pro"}'),p=window.wp.blockEditor,u=window.wp.i18n;function h(e){var o,t,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(o=0;o<r;o++)e[o]&&(t=h(e[o]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}const m=function(){for(var e,o,t=0,s="",r=arguments.length;t<r;t++)(e=arguments[t])&&(o=h(e))&&(s&&(s+=" "),s+=o);return s},b=(0,r.createContext)({showCompanyField:!1,requireCompanyField:!1,showApartmentField:!1,requireApartmentField:!1,showPhoneField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1,hasDarkControls:!1,showFormStepNumbers:!1}),w=((0,r.createContext)({addressFieldControls:()=>null}),window.wc.blocksComponents),_=({children:e,stepHeadingContent:o})=>(0,c.jsxs)("div",{className:"wc-block-components-checkout-step__heading",style:{pointerEvents:"none"},children:[(0,c.jsx)(w.Title,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2",children:e}),!!o&&(0,c.jsx)("span",{className:"wc-block-components-checkout-step__heading-content",children:o})]}),f=({attributes:e,setAttributes:o,className:t="",children:s})=>{const{showFormStepNumbers:i}=(0,r.useContext)(b),{title:n,description:l}=e,a=(0,p.useBlockProps)({className:m("wc-block-components-checkout-step wc-block-components-checkout-step--with-step-number",t,{"wc-block-components-checkout-step--with-step-number":i})});return(0,c.jsxs)("div",{...a,children:[(0,c.jsx)(_,{children:(0,c.jsx)(p.PlainText,{className:"",value:n,onChange:e=>o({title:e}),style:{backgroundColor:"transparent"}})}),(0,c.jsxs)("div",{className:"wc-block-components-checkout-step__container",children:[(0,c.jsx)("p",{className:"wc-block-components-checkout-step__description",children:(0,c.jsx)(p.PlainText,{className:l?"":"wc-block-components-checkout-step__description-placeholder",value:l,placeholder:(0,u.__)("Optional text for this form step.","woocommerce"),onChange:e=>o({description:e}),style:{backgroundColor:"transparent"}})}),(0,c.jsx)("div",{className:"wc-block-components-checkout-step__content",children:s})]})]})},k=(0,c.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),v=window.wp.data,g=window.wc.wcBlocksData,x=e=>{const{onChange:o,options:t,label:s,value:n="",className:l,size:a,errorId:d,required:p,errorMessage:h=(0,u.__)("Please select a valid option","woo-checkout-field-editor-pro"),placeholder:b,..._}=e,f=(0,r.useCallback)((e=>{o(e.target.value)}),[o]),x=(0,r.useMemo)((()=>({value:"",label:null!=b?b:(0,u.sprintf)( 2 2 // translators: %s will be label of the field. For example "country/region". 3 3 // translators: %s will be label of the field. For example "country/region". 4 (0,u.__)("Select a %s","woo commerce"),s?.toLowerCase()),disabled:!!p})),[s,b,p]),y=(0,r.useId)(),j=_.id||`wc-blocks-components-select-${y}`,N=d||j,C=(0,r.useMemo)((()=>p&&c?t:[x].concat(t)),[p,c,x,t]),{setValidationErrors:E,clearValidationError:O}=(0,k.useDispatch)(g.VALIDATION_STORE_KEY),{error:A,validationErrorId:I}=(0,k.useSelect)((e=>{const o=e(g.VALIDATION_STORE_KEY);return{error:o.getValidationError(N),validationErrorId:o.getValidationErrorId(N)}}));(0,r.useEffect)((()=>(!p||c?O(N):E({[N]:{message:h,hidden:!0}}),()=>{O(N)})),[O,c,N,h,p,E]);const T=(0,k.useSelect)((e=>e(g.VALIDATION_STORE_KEY).getValidationError(N||"")||{hidden:!0}));return(0,i.jsxs)("div",{className:m(a,{"has-error":!T.hidden}),children:[(0,i.jsx)("div",{className:"wc-blocks-components-select",children:(0,i.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,i.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:s}),(0,i.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==l?l:1,onChange:f,value:c,"aria-invalid":!(!A?.message||A?.hidden),"aria-errormessage":I,..._,children:C.map((e=>(0,i.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,i.jsx)(n,{className:"wc-blocks-components-select__expand",icon:v})]})}),(0,i.jsx)(w.ValidationInputError,{propertyName:N})]})};var y=t(609);const j=window.wp.compose,N=({label:e,secondaryLabel:o,description:t,secondaryDescription:s,id:r})=>(0,i.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,i.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,i.jsx)("span",{id:r&&`${r}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,i.jsx)("span",{id:r&&`${r}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||s)&&(0,i.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,i.jsx)("span",{id:r&&`${r}__description`,className:"wc-block-components-radio-control__description",children:t}),s&&(0,i.jsx)("span",{id:r&&`${r}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:s})]})]}),C=({checked:e,name:o,onChange:t,option:s,disabled:r=!1,highlightChecked:n=!1})=>{const{value:c,label:a,description:l,secondaryLabel:d,secondaryDescription:p}=s;return(0,i.jsxs)("label",{className:m("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&n}),htmlFor:`${o}-${c}`,children:[(0,i.jsx)("input",{id:`${o}-${c}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:c,onChange:e=>t(e.target.value),checked:e,"aria-describedby":m({[`${o}-${c}__label`]:a,[`${o}-${c}__secondary-label`]:d,[`${o}-${c}__description`]:l,[`${o}-${c}__secondary-description`]:p}),"aria-disabled":r,onKeyDown:e=>{r&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,i.jsx)(N,{id:`${o}-${c}`,label:a,secondaryLabel:d,description:l,secondaryDescription:p})]})},E=({className:e="",id:o,selected:t="",onChange:s,options:r=[],disabled:n=!1,highlightChecked:c=!1,title:a="",required:l=!1,errorMessage:d=(0,u.__)("Please select an option","woocommerce"),errorId:p})=>{const h=(0,j.useInstanceId)(E),b=o||h,_=p||b,{setValidationErrors:f,clearValidationError:v}=(0,k.useDispatch)(g.VALIDATION_STORE_KEY),x=(0,k.useSelect)((e=>e(g.VALIDATION_STORE_KEY).getValidationError(_)||{hidden:!0}));(0,y.useEffect)((()=>(!l||t?v(_):f({[_]:{message:d,hidden:!0}}),()=>{v(_)})),[t,l,_,d]);const N=(0,y.useMemo)((()=>r.findIndex((e=>e.value===t))),[r,t]);return r.length?(0,i.jsxs)("div",{className:m("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!x.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":c&&0===N,"wc-block-components-radio-control--highlight-checked--last-selected":c&&N===r.length-1,"wc-block-components-radio-control--highlight-checked":c},e),children:[(0,i.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",a||""," "]}),r.map((e=>(0,i.jsx)(C,{highlightChecked:c,name:`radio-control-${b}`,checked:e.value===t,option:e,onChange:o=>{s(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:n},`${b}-${e.value}`))),(0,i.jsx)(w.ValidationInputError,{propertyName:_})]}):null},O=E,A=(window.wc.blocksCheckout,window.wp.url),I=({field:e})=>{const{id:o,label:t,type:s,value:r,placeholder:n,required:c,options:a,title:l,validate:d,enabled:p,cssclass:h,property_set:b}=e,{default:_,checked:f}=b,v=T(e),k=(0,y.useRef)({});if(!p||"0"===p)return null;const g=e=>{};return"checkbox"===s?(0,i.jsx)(w.CheckboxControl,{checked:r,onChange:g,...$(v),className:m(h?.split(",").map((e=>e.trim()))),required:c},o):"select"===s&&e.options?(0,i.jsx)(x,{...v,label:l||"",className:m(h?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${o}`.replaceAll("/","-")),value:r,onChange:g,options:v.options,required:c,errorMessage:v.errorMessage||void 0,placeholder:n||null},o):"radio"===s?(0,i.jsx)(O,{...v,selected:r,onChange:g,options:v.options,disabled:!1,highlightChecked:!0,title:l||"",className:m(h?.split(",").map((e=>e.trim()))),required:c}):(0,i.jsx)(w.ValidatedTextInput,{ref:e=>k.current[o]=e,...v,type:s,value:r,onChange:g,customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,A.isPhoneNumber)(e.value)?"url"!==o||(0,A.isURL)(e.value)?"email"===o&&!(0,A.isEmail)(e.value)&&(e.setCustomValidity((0,u.__)("Please enter a valid email address","woocommerce")),1):(e.setCustomValidity((0,u.__)("Please enter a valid URL","woocommerce")),1):(e.setCustomValidity((0,u.__)("Please enter a valid Phone Number","woocommerce")),1))))(e,d),className:m(h?.split(",").map((e=>e.trim())))},o)},T=e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}),$=e=>{const{errorId:o,errorMessage:t,autoCapitalize:s,autoComplete:r,placeholder:n,...c}=e;return c},V=window.wp.dom,S=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],P=({children:e,style:o={},...t})=>{const s=(0,r.useRef)(null),n=()=>{s.current&&V.focus.focusable.find(s.current).forEach((e=>{S.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))};return(0,r.useLayoutEffect)((()=>{let e,o;return n(),s.current&&(e=new MutationObserver((()=>{clearTimeout(o),o=setTimeout(n,0)})),e.observe(s.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),clearTimeout(o)}}),[]),(0,i.jsx)("div",{ref:s,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...o},...t,children:e})},R=({field:e})=>(0,i.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,i.jsx)(P,{children:(0,i.jsx)(I,{field:e})})},e.id),L=({attributes:e,setAttributes:o})=>{const t=(0,p.useBlockProps)(),{sectionData:s,className:r}=e;if(!s)return(0,i.jsx)("div",{...t});if("object"!=typeof s)return console.error("Invalid section data:",s),(0,i.jsx)("div",{...t,children:(0,u.__)("Error: Invalid section data","woocommerce")});const{fields:n={},show_title:c}=s;if(!(Object.keys(n).length>0))return null;const a=c?f:"div";return(0,i.jsx)("div",{...t,children:(0,i.jsx)(a,{id:s.id,className:m("wc-block-checkout__additional-fields",s.cssclass),...c&&{setAttributes:o,attributes:e},children:(0,i.jsx)("div",{children:Object.entries(n).map((([e,o])=>(0,i.jsx)(R,{field:o},o.id||e)))})})})},D=({attributes:e})=>{const{sectionData:o}=e,t=(s=o?.id,`thwcfe_sections_${s||"default_section"}`);var s;return(0,i.jsx)("div",{className:t})},F=(0,l.getSetting)("thwcfe-block-integration_data",""),{allSections:M}=F,{additional_info:q}=M||{};if(q&&Object.keys(q).length>0){const e=q.title||"Additional Information",o={...d,attributes:{...d.attributes,title:{...d.attributes.title,default:e},description:{...d.attributes.description,default:q.subtitle||""},sectionData:{type:"object",default:q}}};(0,s.registerBlockType)(o,{icon:{src:(0,i.jsx)(n,{icon:a})},edit:L,save:D})}},20:(e,o,t)=>{var s=t(609),r=Symbol.for("react.element"),n=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,o,t){var s,a={},l=null,d=null;for(s in void 0!==t&&(l=""+t),void 0!==o.key&&(l=""+o.key),void 0!==o.ref&&(d=o.ref),o)n.call(o,s)&&!i.hasOwnProperty(s)&&(a[s]=o[s]);if(e&&e.defaultProps)for(s in o=e.defaultProps)void 0===a[s]&&(a[s]=o[s]);return{$$typeof:r,type:e,key:l,ref:d,props:a,_owner:c.current}}o.jsx=a,o.jsxs=a},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},t={};function s(e){var r=t[e];if(void 0!==r)return r.exports;var n=t[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.m=o,e=[],s.O=(o,t,r,n)=>{if(!t){var c=1/0;for(d=0;d<e.length;d++){for(var[t,r,n]=e[d],i=!0,a=0;a<t.length;a++)(!1&n||c>=n)&&Object.keys(s.O).every((e=>s.O[e](t[a])))?t.splice(a--,1):(i=!1,n<c&&(c=n));if(i){e.splice(d--,1);var l=r();void 0!==l&&(o=l)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[t,r,n]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={309:0,185:0};s.O.j=o=>0===e[o];var o=(o,t)=>{var r,n,[c,i,a]=t,l=0;if(c.some((o=>0!==e[o]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(a)var d=a(s)}for(o&&o(t);l<c.length;l++)n=c[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var r=s.O(void 0,[185],(()=>s(314)));r=s.O(r)})();4 (0,u.__)("Select a %s","woo-checkout-field-editor-pro"),s?.toLowerCase()),disabled:!!p})),[s,b,p]),y=(0,r.useId)(),j=_.id||`wc-blocks-components-select-${y}`,N=d||j,C=(0,r.useMemo)((()=>p&&n?t:[x].concat(t)),[p,n,x,t]),{setValidationErrors:E,clearValidationError:O}=(0,v.useDispatch)(g.VALIDATION_STORE_KEY),{error:A,validationErrorId:I}=(0,v.useSelect)((e=>{const o=e(g.VALIDATION_STORE_KEY);return{error:o.getValidationError(N),validationErrorId:o.getValidationErrorId(N)}}));(0,r.useEffect)((()=>(!p||n?O(N):E({[N]:{message:h,hidden:!0}}),()=>{O(N)})),[O,n,N,h,p,E]);const T=(0,v.useSelect)((e=>e(g.VALIDATION_STORE_KEY).getValidationError(N||"")||{hidden:!0}));return(0,c.jsxs)("div",{className:m(l,{"has-error":!T.hidden}),children:[(0,c.jsx)("div",{className:"wc-blocks-components-select",children:(0,c.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,c.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:s}),(0,c.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==a?a:1,onChange:f,value:n,"aria-invalid":!(!A?.message||A?.hidden),"aria-errormessage":I,..._,children:C.map((e=>(0,c.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,c.jsx)(i,{className:"wc-blocks-components-select__expand",icon:k})]})}),(0,c.jsx)(w.ValidationInputError,{propertyName:N})]})};var y=t(609);const j=window.wp.compose,N=({label:e,secondaryLabel:o,description:t,secondaryDescription:s,id:r})=>(0,c.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,c.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,c.jsx)("span",{id:r&&`${r}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,c.jsx)("span",{id:r&&`${r}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||s)&&(0,c.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,c.jsx)("span",{id:r&&`${r}__description`,className:"wc-block-components-radio-control__description",children:t}),s&&(0,c.jsx)("span",{id:r&&`${r}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:s})]})]}),C=({checked:e,name:o,onChange:t,option:s,disabled:r=!1,highlightChecked:i=!1})=>{const{value:n,label:l,description:a,secondaryLabel:d,secondaryDescription:p}=s;return(0,c.jsxs)("label",{className:m("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&i}),htmlFor:`${o}-${n}`,children:[(0,c.jsx)("input",{id:`${o}-${n}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:n,onChange:e=>t(e.target.value),checked:e,"aria-describedby":m({[`${o}-${n}__label`]:l,[`${o}-${n}__secondary-label`]:d,[`${o}-${n}__description`]:a,[`${o}-${n}__secondary-description`]:p}),"aria-disabled":r,onKeyDown:e=>{r&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,c.jsx)(N,{id:`${o}-${n}`,label:l,secondaryLabel:d,description:a,secondaryDescription:p})]})},E=({className:e="",id:o,selected:t="",onChange:s,options:r=[],disabled:i=!1,highlightChecked:n=!1,title:l="",required:a=!1,errorMessage:d=(0,u.__)("Please select an option","woo-checkout-field-editor-pro"),errorId:p})=>{const h=(0,j.useInstanceId)(E),b=o||h,_=p||b,{setValidationErrors:f,clearValidationError:k}=(0,v.useDispatch)(g.VALIDATION_STORE_KEY),x=(0,v.useSelect)((e=>e(g.VALIDATION_STORE_KEY).getValidationError(_)||{hidden:!0}));(0,y.useEffect)((()=>(!a||t?k(_):f({[_]:{message:d,hidden:!0}}),()=>{k(_)})),[t,a,_,d]);const N=(0,y.useMemo)((()=>r.findIndex((e=>e.value===t))),[r,t]);return r.length?(0,c.jsxs)("div",{className:m("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!x.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":n&&0===N,"wc-block-components-radio-control--highlight-checked--last-selected":n&&N===r.length-1,"wc-block-components-radio-control--highlight-checked":n},e),children:[(0,c.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",l||""," "]}),r.map((e=>(0,c.jsx)(C,{highlightChecked:n,name:`radio-control-${b}`,checked:e.value===t,option:e,onChange:o=>{s(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:i},`${b}-${e.value}`))),(0,c.jsx)(w.ValidationInputError,{propertyName:_})]}):null},O=E,A=(window.wc.blocksCheckout,window.wp.url),I=({field:e})=>{const{id:o,label:t,type:s,value:r,placeholder:i,required:n,options:l,title:a,validate:d,enabled:p,cssclass:h,property_set:b}=e,{default:_,checked:f}=b,k=T(e),v=(0,y.useRef)({});if(!p||"0"===p)return null;const g=e=>{};return"checkbox"===s?(0,c.jsx)(w.CheckboxControl,{checked:r,onChange:g,...$(k),className:m(h?.split(",").map((e=>e.trim()))),required:n},o):"select"===s&&e.options?(0,c.jsx)(x,{...k,label:a||"",className:m(h?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${o}`.replaceAll("/","-")),value:r,onChange:g,options:k.options,required:n,errorMessage:k.errorMessage||void 0,placeholder:i||null},o):"radio"===s?(0,c.jsx)(O,{...k,selected:r,onChange:g,options:k.options,disabled:!1,highlightChecked:!0,title:a||"",className:m(h?.split(",").map((e=>e.trim()))),required:n}):(0,c.jsx)(w.ValidatedTextInput,{ref:e=>v.current[o]=e,...k,type:s,value:r,onChange:g,customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,A.isPhoneNumber)(e.value)?"url"!==o||(0,A.isURL)(e.value)?"email"===o&&!(0,A.isEmail)(e.value)&&(e.setCustomValidity((0,u.__)("Please enter a valid email address","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,u.__)("Please enter a valid URL","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,u.__)("Please enter a valid Phone Number","woo-checkout-field-editor-pro")),1))))(e,d),className:m(h?.split(",").map((e=>e.trim())))},o)},T=e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}),$=e=>{const{errorId:o,errorMessage:t,autoCapitalize:s,autoComplete:r,placeholder:i,...n}=e;return n},V=window.wp.dom,S=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],P=({children:e,style:o={},...t})=>{const s=(0,r.useRef)(null),i=()=>{s.current&&V.focus.focusable.find(s.current).forEach((e=>{S.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))};return(0,r.useLayoutEffect)((()=>{let e,o;return i(),s.current&&(e=new MutationObserver((()=>{clearTimeout(o),o=setTimeout(i,0)})),e.observe(s.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),clearTimeout(o)}}),[]),(0,c.jsx)("div",{ref:s,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...o},...t,children:e})},R=({field:e})=>(0,c.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,c.jsx)(P,{children:(0,c.jsx)(I,{field:e})})},e.id),L=({attributes:e,setAttributes:o})=>{const t=(0,p.useBlockProps)(),{sectionData:s,className:r}=e;if(!s)return(0,c.jsx)("div",{...t});if("object"!=typeof s)return console.error("Invalid section data:",s),(0,c.jsx)("div",{...t,children:(0,u.__)("Error: Invalid section data","woocommerce")});const{fields:i={},show_title:n}=s;if(!(Object.keys(i).length>0))return null;const l=n?f:"div";return(0,c.jsx)("div",{...t,children:(0,c.jsx)(l,{id:s.id,className:m("wc-block-checkout__additional-fields",s.cssclass),...n&&{setAttributes:o,attributes:e},children:(0,c.jsx)("div",{children:Object.entries(i).map((([e,o])=>(0,c.jsx)(R,{field:o},o.id||e)))})})})},D=({attributes:e})=>{const{sectionData:o}=e,t=(s=o?.id,`thwcfe_sections_${s||"default_section"}`);var s;return(0,c.jsx)("div",{className:t})},F=(0,a.getSetting)("thwcfe-block-integration_data",""),{allSections:M}=F,{additional_info:q}=M||{};if(q&&Object.keys(q).length>0){const e=q.title||"Additional Information",o={...d,attributes:{...d.attributes,title:{...d.attributes.title,default:e},description:{...d.attributes.description,default:q.subtitle||""},sectionData:{type:"object",default:q}}};(0,s.registerBlockType)(o,{icon:{src:(0,c.jsx)(i,{icon:l})},edit:L,save:D})}},609:e=>{e.exports=window.React},848:(e,o,t)=>{e.exports=t(20)}},t={};function s(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,s),i.exports}s.m=o,e=[],s.O=(o,t,r,i)=>{if(!t){var n=1/0;for(d=0;d<e.length;d++){for(var[t,r,i]=e[d],c=!0,l=0;l<t.length;l++)(!1&i||n>=i)&&Object.keys(s.O).every((e=>s.O[e](t[l])))?t.splice(l--,1):(c=!1,i<n&&(n=i));if(c){e.splice(d--,1);var a=r();void 0!==a&&(o=a)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,r,i]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={309:0,185:0};s.O.j=o=>0===e[o];var o=(o,t)=>{var r,i,[n,c,l]=t,a=0;if(n.some((o=>0!==e[o]))){for(r in c)s.o(c,r)&&(s.m[r]=c[r]);if(l)var d=l(s)}for(o&&o(t);a<n.length;a++)i=n[a],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var r=s.O(void 0,[185],(()=>s(314)));r=s.O(r)})(); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/contact-info-section-frontend.asset.php
r3221414 r3253231 1 <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => ' 7a49df3afe9e4da3f43b');1 <?php return array('dependencies' => array('lodash', 'react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '0a9cc138c6639243576a'); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/contact-info-section-frontend.js
r3221414 r3253231 1 (()=>{"use strict";var e,o={ 82:(e,o,t)=>{const r=window.wc.blocksCheckout,a=window.wc.wcSettings,l=window.wp.i18n,s=window.wp.element,c=(0,s.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,s.cloneElement)(e,{width:o,height:o,...t,ref:r})})),n=window.wp.primitives;var i=t(848);const d=(0,i.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),p=window.wp.data;function u(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=u(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const m=function(){for(var e,o,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=u(e))&&(r&&(r+=" "),r+=o);return r},h=window.wc.wcBlocksData,_=window.wc.blocksComponents,b=e=>{const{onChange:o,options:t,label:r,value:a="",className:n,size:u,errorId:b,required:w,errorMessage:f=(0,l.__)("Please select a valid option","woocommerce"),placeholder:v,...g}=e,k=(0,s.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,s.useMemo)((()=>({value:"",label:null!=v?v:(0,l.sprintf)(1 (()=>{"use strict";var e,o={20:(e,o,t)=>{var r=t(609),a=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,o,t){var r,c={},n=null,d=null;for(r in void 0!==t&&(n=""+t),void 0!==o.key&&(n=""+o.key),void 0!==o.ref&&(d=o.ref),o)l.call(o,r)&&!s.hasOwnProperty(r)&&(c[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===c[r]&&(c[r]=o[r]);return{$$typeof:a,type:e,key:n,ref:d,props:c,_owner:i.current}}o.jsx=c,o.jsxs=c},82:(e,o,t)=>{const r=window.wc.blocksCheckout,a=window.wc.wcSettings,l=window.wp.i18n,i=window.wp.element,s=(0,i.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,i.cloneElement)(e,{width:o,height:o,...t,ref:r})})),c=window.wp.primitives;var n=t(848);const d=(0,n.jsx)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(c.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),p=window.wp.data;function u(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=u(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const h=function(){for(var e,o,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=u(e))&&(r&&(r+=" "),r+=o);return r},m=window.wc.wcBlocksData,_=window.wc.blocksComponents,f=e=>{const{onChange:o,options:t,label:r,value:a="",className:c,size:u,errorId:f,required:b,errorMessage:w=(0,l.__)("Please select a valid option","woo-checkout-field-editor-pro"),placeholder:v,...k}=e,g=(0,i.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,i.useMemo)((()=>({value:"",label:null!=v?v:(0,l.sprintf)( 2 2 // translators: %s will be label of the field. For example "country/region". 3 3 // translators: %s will be label of the field. For example "country/region". 4 (0,l.__)("Select a %s","woo commerce"),r?.toLowerCase()),disabled:!!w})),[r,v,w]),x=(0,s.useId)(),j=g.id||`wc-blocks-components-select-${x}`,C=b||j,E=(0,s.useMemo)((()=>w&&a?t:[y].concat(t)),[w,a,y,t]),{setValidationErrors:N,clearValidationError:O}=(0,p.useDispatch)(h.VALIDATION_STORE_KEY),{error:I,validationErrorId:$}=(0,p.useSelect)((e=>{const o=e(h.VALIDATION_STORE_KEY);return{error:o.getValidationError(C),validationErrorId:o.getValidationErrorId(C)}}));(0,s.useEffect)((()=>(!w||a?O(C):N({[C]:{message:f,hidden:!0}}),()=>{O(C)})),[O,a,C,f,w,N]);const A=(0,p.useSelect)((e=>e(h.VALIDATION_STORE_KEY).getValidationError(C||"")||{hidden:!0}));return(0,i.jsxs)("div",{className:m(n,{"has-error":!A.hidden}),children:[(0,i.jsx)("div",{className:"wc-blocks-components-select",children:(0,i.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,i.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,i.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==u?u:1,onChange:k,value:a,"aria-invalid":!(!I?.message||I?.hidden),"aria-errormessage":$,...g,children:E.map((e=>(0,i.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,i.jsx)(c,{className:"wc-blocks-components-select__expand",icon:d})]})}),(0,i.jsx)(_.ValidationInputError,{propertyName:C})]})};var w=t(609);const f=window.wp.compose,v=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:a})=>(0,i.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,i.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,i.jsx)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,i.jsx)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,i.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,i.jsx)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,i.jsx)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),g=({checked:e,name:o,onChange:t,option:r,disabled:a=!1,highlightChecked:l=!1})=>{const{value:s,label:c,description:n,secondaryLabel:d,secondaryDescription:p}=r;return(0,i.jsxs)("label",{className:m("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&l}),htmlFor:`${o}-${s}`,children:[(0,i.jsx)("input",{id:`${o}-${s}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:s,onChange:e=>t(e.target.value),checked:e,"aria-describedby":m({[`${o}-${s}__label`]:c,[`${o}-${s}__secondary-label`]:d,[`${o}-${s}__description`]:n,[`${o}-${s}__secondary-description`]:p}),"aria-disabled":a,onKeyDown:e=>{a&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,i.jsx)(v,{id:`${o}-${s}`,label:c,secondaryLabel:d,description:n,secondaryDescription:p})]})},k=({className:e="",id:o,selected:t="",onChange:r,options:a=[],disabled:s=!1,highlightChecked:c=!1,title:n="",required:d=!1,errorMessage:u=(0,l.__)("Please select an option","woocommerce"),errorId:b})=>{const v=(0,f.useInstanceId)(k),y=o||v,x=b||y,{setValidationErrors:j,clearValidationError:C}=(0,p.useDispatch)(h.VALIDATION_STORE_KEY),E=(0,p.useSelect)((e=>e(h.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,w.useEffect)((()=>(!d||t?C(x):j({[x]:{message:u,hidden:!0}}),()=>{C(x)})),[t,d,x,u]);const N=(0,w.useMemo)((()=>a.findIndex((e=>e.value===t))),[a,t]);return a.length?(0,i.jsxs)("div",{className:m("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!E.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":c&&0===N,"wc-block-components-radio-control--highlight-checked--last-selected":c&&N===a.length-1,"wc-block-components-radio-control--highlight-checked":c},e),children:[(0,i.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",n||""," "]}),a.map((e=>(0,i.jsx)(g,{highlightChecked:c,name:`radio-control-${y}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:s},`${y}-${e.value}`))),(0,i.jsx)(_.ValidationInputError,{propertyName:x})]}):null},y=k,x=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:a,placeholder:l,...s}=e;return s},j=window.wp.url,C=({field:e,onChange:o=""})=>{const{id:t,label:r,type:a,value:s,placeholder:c,required:n,options:d,title:p,validate:u,property_set:h,enabled:f,cssclass:v}=e,{default:g,checked:k}=h,C=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),E=(0,w.useRef)({});if(!f||"0"===f)return null;const N=e=>{o({[t]:e})};return(0,w.useEffect)((()=>{void 0!==g&&N(g)}),[g]),"checkbox"===a&&(0,w.useEffect)((()=>{void 0!==k&&N(k)}),[k]),"email"!==e.type?"checkbox"===a?(0,i.jsx)(_.CheckboxControl,{checked:s,onChange:N,...x(C),className:m(v?.split(",").map((e=>e.trim()))),required:n},t):"select"===a&&e.options?(0,i.jsx)(b,{...C,label:p||"",className:m(v?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:s,onChange:N,options:C.options,required:n,errorMessage:C.errorMessage||void 0,placeholder:c||null},t):"radio"===a?(0,i.jsx)(y,{...C,selected:s,onChange:N,options:C.options,disabled:!1,highlightChecked:!0,title:p||"",className:m(v?.split(",").map((e=>e.trim())))}):(0,i.jsx)(_.ValidatedTextInput,{ref:e=>E.current[t]=e,...C,type:a,value:s,onChange:N,className:m(v?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,j.isPhoneNumber)(e.value)?"url"!==o||(0,j.isURL)(e.value)?"email"===o&&!(0,j.isEmail)(e.value)&&(e.setCustomValidity((0,l.__)("Please enter a valid email address","woocommerce")),1):(e.setCustomValidity((0,l.__)("Please enter a valid URL","woocommerce")),1):(e.setCustomValidity((0,l.__)("Please enter a valid Phone Number","woocommerce")),1))))(e,u)},t):void 0},E=window.lodash,N=(0,a.getSetting)("thwcfe-block-integration_data",""),{allSections:O}=N,{contact:I}=O,$=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/contact-information-section","version":"2.0.0","title":"Contact Information Section","category":"woocommerce","description":"Adds fields.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}},"text":{"type":"string","default":""},"title":{"type":"string","default":"Contact Information"},"description":{"type":"string","default":"contact Fields"}},"textdomain":"woocommerce-checkout-field-editor-pro","editorStyle":"file:../../../build/style-checkout-section-block.css"}');(0,r.registerCheckoutBlock)({metadata:$,component:({checkoutExtensionData:e,extensions:o})=>{const{setExtensionData:t}=e,[r,a]=(0,w.useState)({}),l=(0,w.useCallback)((0,E.debounce)((e=>{t("thwcfe-additional-fields","contact",e)}),1e3),[t]);(0,w.useEffect)((()=>(Object.keys(r).length>0&&l(r),()=>{l.cancel()})),[r,l]);const s=(0,w.useCallback)((e=>{a((o=>({...o,...e})))}),[]),c=Array.isArray(I.fields)?I.fields:Object.values(I.fields);return(0,i.jsx)("div",{children:c.map((e=>(0,i.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,i.jsx)(C,{field:{...e,value:r[e.id]||""},onChange:s})},e.id)))})}})},20:(e,o,t)=>{var r=t(609),a=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function n(e,o,t){var r,n={},i=null,d=null;for(r in void 0!==t&&(i=""+t),void 0!==o.key&&(i=""+o.key),void 0!==o.ref&&(d=o.ref),o)l.call(o,r)&&!c.hasOwnProperty(r)&&(n[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===n[r]&&(n[r]=o[r]);return{$$typeof:a,type:e,key:i,ref:d,props:n,_owner:s.current}}o.jsx=n,o.jsxs=n},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,r),l.exports}r.m=o,e=[],r.O=(o,t,a,l)=>{if(!t){var s=1/0;for(d=0;d<e.length;d++){for(var[t,a,l]=e[d],c=!0,n=0;n<t.length;n++)(!1&l||s>=l)&&Object.keys(r.O).every((e=>r.O[e](t[n])))?t.splice(n--,1):(c=!1,l<s&&(s=l));if(c){e.splice(d--,1);var i=a();void 0!==i&&(o=i)}}return o}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,a,l]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={213:0,185:0,294:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,l,[s,c,n]=t,i=0;if(s.some((o=>0!==e[o]))){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);if(n)var d=n(r)}for(o&&o(t);i<s.length;i++)l=s[i],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=r.O(void 0,[185,294],(()=>r(82)));a=r.O(a)})();4 (0,l.__)("Select a %s","woo-checkout-field-editor-pro"),r?.toLowerCase()),disabled:!!b})),[r,v,b]),x=(0,i.useId)(),j=k.id||`wc-blocks-components-select-${x}`,C=f||j,E=(0,i.useMemo)((()=>b&&a?t:[y].concat(t)),[b,a,y,t]),{setValidationErrors:N,clearValidationError:O}=(0,p.useDispatch)(m.VALIDATION_STORE_KEY),{error:I,validationErrorId:$}=(0,p.useSelect)((e=>{const o=e(m.VALIDATION_STORE_KEY);return{error:o.getValidationError(C),validationErrorId:o.getValidationErrorId(C)}}));(0,i.useEffect)((()=>(!b||a?O(C):N({[C]:{message:w,hidden:!0}}),()=>{O(C)})),[O,a,C,w,b,N]);const A=(0,p.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(C||"")||{hidden:!0}));return(0,n.jsxs)("div",{className:h(c,{"has-error":!A.hidden}),children:[(0,n.jsx)("div",{className:"wc-blocks-components-select",children:(0,n.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,n.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,n.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==u?u:1,onChange:g,value:a,"aria-invalid":!(!I?.message||I?.hidden),"aria-errormessage":$,...k,children:E.map((e=>(0,n.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,n.jsx)(s,{className:"wc-blocks-components-select__expand",icon:d})]})}),(0,n.jsx)(_.ValidationInputError,{propertyName:C})]})};var b=t(609);const w=window.wp.compose,v=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:a})=>(0,n.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,n.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,n.jsx)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,n.jsx)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,n.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,n.jsx)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,n.jsx)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),k=({checked:e,name:o,onChange:t,option:r,disabled:a=!1,highlightChecked:l=!1})=>{const{value:i,label:s,description:c,secondaryLabel:d,secondaryDescription:p}=r;return(0,n.jsxs)("label",{className:h("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&l}),htmlFor:`${o}-${i}`,children:[(0,n.jsx)("input",{id:`${o}-${i}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:i,onChange:e=>t(e.target.value),checked:e,"aria-describedby":h({[`${o}-${i}__label`]:s,[`${o}-${i}__secondary-label`]:d,[`${o}-${i}__description`]:c,[`${o}-${i}__secondary-description`]:p}),"aria-disabled":a,onKeyDown:e=>{a&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,n.jsx)(v,{id:`${o}-${i}`,label:s,secondaryLabel:d,description:c,secondaryDescription:p})]})},g=({className:e="",id:o,selected:t="",onChange:r,options:a=[],disabled:i=!1,highlightChecked:s=!1,title:c="",required:d=!1,errorMessage:u=(0,l.__)("Please select an option","woo-checkout-field-editor-pro"),errorId:f})=>{const v=(0,w.useInstanceId)(g),y=o||v,x=f||y,{setValidationErrors:j,clearValidationError:C}=(0,p.useDispatch)(m.VALIDATION_STORE_KEY),E=(0,p.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,b.useEffect)((()=>(!d||t?C(x):j({[x]:{message:u,hidden:!0}}),()=>{C(x)})),[t,d,x,u]);const N=(0,b.useMemo)((()=>a.findIndex((e=>e.value===t))),[a,t]);return a.length?(0,n.jsxs)("div",{className:h("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!E.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":s&&0===N,"wc-block-components-radio-control--highlight-checked--last-selected":s&&N===a.length-1,"wc-block-components-radio-control--highlight-checked":s},e),children:[(0,n.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",c||""," "]}),a.map((e=>(0,n.jsx)(k,{highlightChecked:s,name:`radio-control-${y}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:i},`${y}-${e.value}`))),(0,n.jsx)(_.ValidationInputError,{propertyName:x})]}):null},y=g,x=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:a,placeholder:l,...i}=e;return i},j=window.wp.url,C=({field:e,onChange:o=""})=>{const{id:t,label:r,type:a,value:i,placeholder:s,required:c,options:d,title:p,validate:u,property_set:m,enabled:w,cssclass:v}=e,{default:k,checked:g}=m,C=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),E=(0,b.useRef)({});if(!w||"0"===w)return null;const N=e=>{o({[t]:e})};return(0,b.useEffect)((()=>{void 0!==k&&N(k)}),[k]),"checkbox"===a&&(0,b.useEffect)((()=>{void 0!==g&&N(g)}),[g]),"email"!==e.type?"checkbox"===a?(0,n.jsx)(_.CheckboxControl,{checked:i,onChange:N,...x(C),className:h(v?.split(",").map((e=>e.trim()))),required:c},t):"select"===a&&e.options?(0,n.jsx)(f,{...C,label:p||"",className:h(v?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:i,onChange:N,options:C.options,required:c,errorMessage:C.errorMessage||void 0,placeholder:s||null},t):"radio"===a?(0,n.jsx)(y,{...C,selected:i,onChange:N,options:C.options,disabled:!1,highlightChecked:!0,title:p||"",className:h(v?.split(",").map((e=>e.trim())))}):(0,n.jsx)(_.ValidatedTextInput,{ref:e=>E.current[t]=e,...C,type:a,value:i,onChange:N,className:h(v?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,j.isPhoneNumber)(e.value)?"url"!==o||(0,j.isURL)(e.value)?"email"===o&&!(0,j.isEmail)(e.value)&&(e.setCustomValidity((0,l.__)("Please enter a valid email address","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,l.__)("Please enter a valid URL","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,l.__)("Please enter a valid Phone Number","woo-checkout-field-editor-pro")),1))))(e,u)},t):void 0},E=window.lodash,N=(0,a.getSetting)("thwcfe-block-integration_data",""),{allSections:O}=N,{contact:I}=O,$=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/contact-information-section","version":"2.0.0","title":"Contact Information Section","category":"woocommerce","description":"Adds fields.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}},"text":{"type":"string","default":""},"title":{"type":"string","default":"Contact Information"},"description":{"type":"string","default":"contact Fields"}},"textdomain":"woocommerce-checkout-field-editor-pro","editorStyle":"file:../../../build/style-checkout-section-block.css"}');(0,r.registerCheckoutBlock)({metadata:$,component:({checkoutExtensionData:e,extensions:o})=>{const{setExtensionData:t}=e,[r,a]=(0,b.useState)({}),l=(0,b.useCallback)((0,E.debounce)((e=>{t("thwcfe-additional-fields","contact",e)}),1e3),[t]);(0,b.useEffect)((()=>(Object.keys(r).length>0&&l(r),()=>{l.cancel()})),[r,l]);const i=(0,b.useCallback)((e=>{a((o=>({...o,...e})))}),[]),s=Array.isArray(I.fields)?I.fields:Object.values(I.fields);return(0,n.jsx)("div",{children:s.map((e=>(0,n.jsx)("div",{className:"wc-block-checkout__additional-fields__field",children:(0,n.jsx)(C,{field:{...e,value:r[e.id]||""},onChange:i})},e.id)))})}})},609:e=>{e.exports=window.React},848:(e,o,t)=>{e.exports=t(20)}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,r),l.exports}r.m=o,e=[],r.O=(o,t,a,l)=>{if(!t){var i=1/0;for(d=0;d<e.length;d++){for(var[t,a,l]=e[d],s=!0,c=0;c<t.length;c++)(!1&l||i>=l)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,l<i&&(i=l));if(s){e.splice(d--,1);var n=a();void 0!==n&&(o=n)}}return o}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,a,l]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={213:0,185:0,294:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,l,[i,s,c]=t,n=0;if(i.some((o=>0!==e[o]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(c)var d=c(r)}for(o&&o(t);n<i.length;n++)l=i[n],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=r.O(void 0,[185,294],(()=>r(82)));a=r.O(a)})(); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/contact-info-section.asset.php
r3221414 r3253231 1 <?php return array('dependencies' => array('react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => ' 944cee56fd2369745d9d');1 <?php return array('dependencies' => array('react', 'wc-blocks-checkout', 'wc-blocks-components', 'wc-blocks-data-store', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'a213b75969d11ccc6b4d'); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/contact-info-section.js
r3221414 r3253231 1 (()=>{"use strict";var e,o={ 431:(e,o,t)=>{const r=window.wp.blocks,a=window.wp.element,s=(0,a.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,a.cloneElement)(e,{width:o,height:o,...t,ref:r})})),l=window.wp.primitives;var i=t(848);const n=(0,i.jsx)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(l.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})}),c=window.wp.blockEditor,d=window.wp.i18n,p=(0,i.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(l.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),u=window.wp.data;function m(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=m(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const h=function(){for(var e,o,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=m(e))&&(r&&(r+=" "),r+=o);return r},b=window.wc.wcBlocksData,w=window.wc.blocksComponents,_=e=>{const{onChange:o,options:t,label:r,value:l="",className:n,size:c,errorId:m,required:_,errorMessage:f=(0,d.__)("Please select a valid option","woocommerce"),placeholder:v,...g}=e,k=(0,a.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,a.useMemo)((()=>({value:"",label:null!=v?v:(0,d.sprintf)(1 (()=>{"use strict";var e,o={20:(e,o,t)=>{var r=t(609),a=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function n(e,o,t){var r,n={},c=null,d=null;for(r in void 0!==t&&(c=""+t),void 0!==o.key&&(c=""+o.key),void 0!==o.ref&&(d=o.ref),o)i.call(o,r)&&!s.hasOwnProperty(r)&&(n[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===n[r]&&(n[r]=o[r]);return{$$typeof:a,type:e,key:c,ref:d,props:n,_owner:l.current}}o.jsx=n,o.jsxs=n},431:(e,o,t)=>{const r=window.wp.blocks,a=window.wp.element,i=(0,a.forwardRef)((function({icon:e,size:o=24,...t},r){return(0,a.cloneElement)(e,{width:o,height:o,...t,ref:r})})),l=window.wp.primitives;var s=t(848);const n=(0,s.jsx)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(l.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})}),c=window.wp.blockEditor,d=window.wp.i18n,p=(0,s.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(l.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),u=window.wp.data;function h(e){var o,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=h(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const m=function(){for(var e,o,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=h(e))&&(r&&(r+=" "),r+=o);return r},b=window.wc.wcBlocksData,w=window.wc.blocksComponents,f=e=>{const{onChange:o,options:t,label:r,value:l="",className:n,size:c,errorId:h,required:f,errorMessage:_=(0,d.__)("Please select a valid option","woo-checkout-field-editor-pro"),placeholder:v,...k}=e,g=(0,a.useCallback)((e=>{o(e.target.value)}),[o]),y=(0,a.useMemo)((()=>({value:"",label:null!=v?v:(0,d.sprintf)( 2 2 // translators: %s will be label of the field. For example "country/region". 3 3 // translators: %s will be label of the field. For example "country/region". 4 (0,d.__)("Select a %s","woo commerce"),r?.toLowerCase()),disabled:!!_})),[r,v,_]),x=(0,a.useId)(),j=g.id||`wc-blocks-components-select-${x}`,E=m||j,N=(0,a.useMemo)((()=>_&&l?t:[y].concat(t)),[_,l,y,t]),{setValidationErrors:C,clearValidationError:O}=(0,u.useDispatch)(b.VALIDATION_STORE_KEY),{error:I,validationErrorId:A}=(0,u.useSelect)((e=>{const o=e(b.VALIDATION_STORE_KEY);return{error:o.getValidationError(E),validationErrorId:o.getValidationErrorId(E)}}));(0,a.useEffect)((()=>(!_||l?O(E):C({[E]:{message:f,hidden:!0}}),()=>{O(E)})),[O,l,E,f,_,C]);const T=(0,u.useSelect)((e=>e(b.VALIDATION_STORE_KEY).getValidationError(E||"")||{hidden:!0}));return(0,i.jsxs)("div",{className:h(n,{"has-error":!T.hidden}),children:[(0,i.jsx)("div",{className:"wc-blocks-components-select",children:(0,i.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,i.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,i.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==c?c:1,onChange:k,value:l,"aria-invalid":!(!I?.message||I?.hidden),"aria-errormessage":A,...g,children:N.map((e=>(0,i.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,i.jsx)(s,{className:"wc-blocks-components-select__expand",icon:p})]})}),(0,i.jsx)(w.ValidationInputError,{propertyName:E})]})};var f=t(609);const v=window.wp.compose,g=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:a})=>(0,i.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,i.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,i.jsx)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,i.jsx)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,i.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,i.jsx)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,i.jsx)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),k=({checked:e,name:o,onChange:t,option:r,disabled:a=!1,highlightChecked:s=!1})=>{const{value:l,label:n,description:c,secondaryLabel:d,secondaryDescription:p}=r;return(0,i.jsxs)("label",{className:h("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&s}),htmlFor:`${o}-${l}`,children:[(0,i.jsx)("input",{id:`${o}-${l}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:l,onChange:e=>t(e.target.value),checked:e,"aria-describedby":h({[`${o}-${l}__label`]:n,[`${o}-${l}__secondary-label`]:d,[`${o}-${l}__description`]:c,[`${o}-${l}__secondary-description`]:p}),"aria-disabled":a,onKeyDown:e=>{a&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,i.jsx)(g,{id:`${o}-${l}`,label:n,secondaryLabel:d,description:c,secondaryDescription:p})]})},y=({className:e="",id:o,selected:t="",onChange:r,options:a=[],disabled:s=!1,highlightChecked:l=!1,title:n="",required:c=!1,errorMessage:p=(0,d.__)("Please select an option","woocommerce"),errorId:m})=>{const _=(0,v.useInstanceId)(y),g=o||_,x=m||g,{setValidationErrors:j,clearValidationError:E}=(0,u.useDispatch)(b.VALIDATION_STORE_KEY),N=(0,u.useSelect)((e=>e(b.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,f.useEffect)((()=>(!c||t?E(x):j({[x]:{message:p,hidden:!0}}),()=>{E(x)})),[t,c,x,p]);const C=(0,f.useMemo)((()=>a.findIndex((e=>e.value===t))),[a,t]);return a.length?(0,i.jsxs)("div",{className:h("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!N.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":l&&0===C,"wc-block-components-radio-control--highlight-checked--last-selected":l&&C===a.length-1,"wc-block-components-radio-control--highlight-checked":l},e),children:[(0,i.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",n||""," "]}),a.map((e=>(0,i.jsx)(k,{highlightChecked:l,name:`radio-control-${g}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:s},`${g}-${e.value}`))),(0,i.jsx)(w.ValidationInputError,{propertyName:x})]}):null},x=y,j=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:a,placeholder:s,...l}=e;return l},E=(window.wc.blocksCheckout,window.wp.url),N=({field:e,onChange:o=""})=>{const{id:t,label:r,type:a,value:s,placeholder:l,required:n,options:c,title:p,validate:u,property_set:m,enabled:b,cssclass:v}=e,{default:g,checked:k}=m,y=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),N=(0,f.useRef)({});if(!b||"0"===b)return null;const C=e=>{};return"email"!==e.type?"checkbox"===a?(0,i.jsx)(w.CheckboxControl,{checked:s,onChange:C,...j(y),className:h(v?.split(",").map((e=>e.trim()))),required:n},t):"select"===a&&e.options?(0,i.jsx)(_,{...y,label:p||"",className:h(v?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:s,onChange:C,options:y.options,required:n,errorMessage:y.errorMessage||void 0,placeholder:l||null},t):"radio"===a?(0,i.jsx)(x,{...y,selected:s,onChange:C,options:y.options,disabled:!1,highlightChecked:!0,title:p||"",className:h(v?.split(",").map((e=>e.trim())))}):(0,i.jsx)(w.ValidatedTextInput,{ref:e=>N.current[t]=e,...y,type:a,value:s,onChange:C,className:h(v?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,E.isPhoneNumber)(e.value)?"url"!==o||(0,E.isURL)(e.value)?"email"===o&&!(0,E.isEmail)(e.value)&&(e.setCustomValidity((0,d.__)("Please enter a valid email address","woocommerce")),1):(e.setCustomValidity((0,d.__)("Please enter a valid URL","woocommerce")),1):(e.setCustomValidity((0,d.__)("Please enter a valid Phone Number","woocommerce")),1))))(e,u)},t):void 0},C=window.wp.dom,O=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],I=({children:e,style:o={},...t})=>{const r=(0,a.useRef)(null),s=()=>{r.current&&C.focus.focusable.find(r.current).forEach((e=>{O.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))};return(0,a.useLayoutEffect)((()=>{let e,o;return s(),r.current&&(e=new MutationObserver((()=>{clearTimeout(o),o=setTimeout(s,0)})),e.observe(r.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),clearTimeout(o)}}),[]),(0,i.jsx)("div",{ref:r,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...o},...t,children:e})},A=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/contact-information-section","version":"2.0.0","title":"Contact Information Section","category":"woocommerce","description":"Adds fields.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}},"text":{"type":"string","default":""},"title":{"type":"string","default":"Contact Information"},"description":{"type":"string","default":"contact Fields"}},"textdomain":"woocommerce-checkout-field-editor-pro","editorStyle":"file:../../../build/style-checkout-section-block.css"}'),T=(0,window.wc.wcSettings.getSetting)("thwcfe-block-integration_data",""),{allSections:V}=T,{contact:$}=V,S={...A,attributes:{...A.attributes,sectionData:{type:"object",default:$}}};(0,r.registerBlockType)(S,{icon:{src:(0,i.jsx)(s,{icon:n})},edit:({attributes:e,setAttributes:o})=>{const t=(0,c.useBlockProps)(),{sectionData:r}=e,a=Array.isArray(r?.fields)?r.fields:Object.values(r?.fields||{});return(0,i.jsx)("div",{...t,children:a.map((e=>(0,i.jsx)("div",{className:"wc-block-checkout__thwcfe-contact-fields__field",children:(0,i.jsx)(I,{children:(0,i.jsx)(N,{field:e})})},e.id)))})},save:()=>(0,i.jsx)("div",{})})},20:(e,o,t)=>{var r=t(609),a=Symbol.for("react.element"),s=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function n(e,o,t){var r,n={},c=null,d=null;for(r in void 0!==t&&(c=""+t),void 0!==o.key&&(c=""+o.key),void 0!==o.ref&&(d=o.ref),o)s.call(o,r)&&!i.hasOwnProperty(r)&&(n[r]=o[r]);if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===n[r]&&(n[r]=o[r]);return{$$typeof:a,type:e,key:c,ref:d,props:n,_owner:l.current}}o.jsx=n,o.jsxs=n},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var s=t[e]={exports:{}};return o[e](s,s.exports,r),s.exports}r.m=o,e=[],r.O=(o,t,a,s)=>{if(!t){var l=1/0;for(d=0;d<e.length;d++){for(var[t,a,s]=e[d],i=!0,n=0;n<t.length;n++)(!1&s||l>=s)&&Object.keys(r.O).every((e=>r.O[e](t[n])))?t.splice(n--,1):(i=!1,s<l&&(l=s));if(i){e.splice(d--,1);var c=a();void 0!==c&&(o=c)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,a,s]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={924:0,185:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,s,[l,i,n]=t,c=0;if(l.some((o=>0!==e[o]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(n)var d=n(r)}for(o&&o(t);c<l.length;c++)s=l[c],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=r.O(void 0,[185],(()=>r(431)));a=r.O(a)})();4 (0,d.__)("Select a %s","woo-checkout-field-editor-pro"),r?.toLowerCase()),disabled:!!f})),[r,v,f]),x=(0,a.useId)(),j=k.id||`wc-blocks-components-select-${x}`,E=h||j,N=(0,a.useMemo)((()=>f&&l?t:[y].concat(t)),[f,l,y,t]),{setValidationErrors:C,clearValidationError:O}=(0,u.useDispatch)(b.VALIDATION_STORE_KEY),{error:I,validationErrorId:A}=(0,u.useSelect)((e=>{const o=e(b.VALIDATION_STORE_KEY);return{error:o.getValidationError(E),validationErrorId:o.getValidationErrorId(E)}}));(0,a.useEffect)((()=>(!f||l?O(E):C({[E]:{message:_,hidden:!0}}),()=>{O(E)})),[O,l,E,_,f,C]);const T=(0,u.useSelect)((e=>e(b.VALIDATION_STORE_KEY).getValidationError(E||"")||{hidden:!0}));return(0,s.jsxs)("div",{className:m(n,{"has-error":!T.hidden}),children:[(0,s.jsx)("div",{className:"wc-blocks-components-select",children:(0,s.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,s.jsx)("label",{htmlFor:j,className:"wc-blocks-components-select__label",children:r}),(0,s.jsx)("select",{className:"wc-blocks-components-select__select",id:j,size:void 0!==c?c:1,onChange:g,value:l,"aria-invalid":!(!I?.message||I?.hidden),"aria-errormessage":A,...k,children:N.map((e=>(0,s.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value)))},j),(0,s.jsx)(i,{className:"wc-blocks-components-select__expand",icon:p})]})}),(0,s.jsx)(w.ValidationInputError,{propertyName:E})]})};var _=t(609);const v=window.wp.compose,k=({label:e,secondaryLabel:o,description:t,secondaryDescription:r,id:a})=>(0,s.jsxs)("div",{className:"wc-block-components-radio-control__option-layout",children:[(0,s.jsxs)("div",{className:"wc-block-components-radio-control__label-group",children:[e&&(0,s.jsx)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label",children:e}),o&&(0,s.jsx)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label",children:o})]}),(t||r)&&(0,s.jsxs)("div",{className:"wc-block-components-radio-control__description-group",children:[t&&(0,s.jsx)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description",children:t}),r&&(0,s.jsx)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description",children:r})]})]}),g=({checked:e,name:o,onChange:t,option:r,disabled:a=!1,highlightChecked:i=!1})=>{const{value:l,label:n,description:c,secondaryLabel:d,secondaryDescription:p}=r;return(0,s.jsxs)("label",{className:m("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e,"wc-block-components-radio-control__option--checked-option-highlighted":e&&i}),htmlFor:`${o}-${l}`,children:[(0,s.jsx)("input",{id:`${o}-${l}`,className:"wc-block-components-radio-control__input",type:"radio",name:o,value:l,onChange:e=>t(e.target.value),checked:e,"aria-describedby":m({[`${o}-${l}__label`]:n,[`${o}-${l}__secondary-label`]:d,[`${o}-${l}__description`]:c,[`${o}-${l}__secondary-description`]:p}),"aria-disabled":a,onKeyDown:e=>{a&&["ArrowUp","ArrowDown","AllowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}}),(0,s.jsx)(k,{id:`${o}-${l}`,label:n,secondaryLabel:d,description:c,secondaryDescription:p})]})},y=({className:e="",id:o,selected:t="",onChange:r,options:a=[],disabled:i=!1,highlightChecked:l=!1,title:n="",required:c=!1,errorMessage:p=(0,d.__)("Please select an option","woo-checkout-field-editor-pro"),errorId:h})=>{const f=(0,v.useInstanceId)(y),k=o||f,x=h||k,{setValidationErrors:j,clearValidationError:E}=(0,u.useDispatch)(b.VALIDATION_STORE_KEY),N=(0,u.useSelect)((e=>e(b.VALIDATION_STORE_KEY).getValidationError(x)||{hidden:!0}));(0,_.useEffect)((()=>(!c||t?E(x):j({[x]:{message:p,hidden:!0}}),()=>{E(x)})),[t,c,x,p]);const C=(0,_.useMemo)((()=>a.findIndex((e=>e.value===t))),[a,t]);return a.length?(0,s.jsxs)("div",{className:m("wc-block-components-radio-control thwcfe-radio-control",{"has-error":!N.hidden,"wc-block-components-radio-control--highlight-checked--first-selected":l&&0===C,"wc-block-components-radio-control--highlight-checked--last-selected":l&&C===a.length-1,"wc-block-components-radio-control--highlight-checked":l},e),children:[(0,s.jsxs)("div",{className:"wc-block-components-cfe-radio-control__heading",children:[" ",n||""," "]}),a.map((e=>(0,s.jsx)(g,{highlightChecked:l,name:`radio-control-${k}`,checked:e.value===t,option:e,onChange:o=>{r(o),"function"==typeof e.onChange&&e.onChange(o)},disabled:i},`${k}-${e.value}`))),(0,s.jsx)(w.ValidationInputError,{propertyName:x})]}):null},x=y,j=e=>{const{errorId:o,errorMessage:t,autoCapitalize:r,autoComplete:a,placeholder:i,...l}=e;return l},E=(window.wc.blocksCheckout,window.wp.url),N=({field:e,onChange:o=""})=>{const{id:t,label:r,type:a,value:i,placeholder:l,required:n,options:c,title:p,validate:u,property_set:h,enabled:b,cssclass:v}=e,{default:k,checked:g}=h,y=(e=>({id:`section_one-${e?.id}`.replaceAll("/","-"),errorId:`section_${e?.id}`,label:e?.title,autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete,errorMessage:e?.errorMessage,required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.id}`.replaceAll("/","-"),options:e?.options?Object.values(e.options).map((e=>({value:e.key,label:e.text}))):[],...e?.attributes}))(e),N=(0,_.useRef)({});if(!b||"0"===b)return null;const C=e=>{};return"email"!==e.type?"checkbox"===a?(0,s.jsx)(w.CheckboxControl,{checked:i,onChange:C,...j(y),className:m(v?.split(",").map((e=>e.trim()))),required:n},t):"select"===a&&e.options?(0,s.jsx)(f,{...y,label:p||"",className:m(v?.split(",").map((e=>e.trim())),"wc-block-components-select-input",`wc-block-components-select-input-${t}`.replaceAll("/","-")),value:i,onChange:C,options:y.options,required:n,errorMessage:y.errorMessage||void 0,placeholder:l||null},t):"radio"===a?(0,s.jsx)(x,{...y,selected:i,onChange:C,options:y.options,disabled:!1,highlightChecked:!0,title:p||"",className:m(v?.split(",").map((e=>e.trim())))}):(0,s.jsx)(w.ValidatedTextInput,{ref:e=>N.current[t]=e,...y,type:a,value:i,onChange:C,className:m(v?.split(",").map((e=>e.trim()))),customFormatter:o=>"postcode"===e.type?o.trimStart().toUpperCase():o,customValidation:e=>((e,o)=>!((e.required||e.value)&&("phone"!==o||(0,E.isPhoneNumber)(e.value)?"url"!==o||(0,E.isURL)(e.value)?"email"===o&&!(0,E.isEmail)(e.value)&&(e.setCustomValidity((0,d.__)("Please enter a valid email address","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,d.__)("Please enter a valid URL","woo-checkout-field-editor-pro")),1):(e.setCustomValidity((0,d.__)("Please enter a valid Phone Number","woo-checkout-field-editor-pro")),1))))(e,u)},t):void 0},C=window.wp.dom,O=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],I=({children:e,style:o={},...t})=>{const r=(0,a.useRef)(null),i=()=>{r.current&&C.focus.focusable.find(r.current).forEach((e=>{O.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))};return(0,a.useLayoutEffect)((()=>{let e,o;return i(),r.current&&(e=new MutationObserver((()=>{clearTimeout(o),o=setTimeout(i,0)})),e.observe(r.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),clearTimeout(o)}}),[]),(0,s.jsx)("div",{ref:r,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...o},...t,children:e})},A=JSON.parse('{"apiVersion":2,"name":"woocommerce-checkout-field-editor-pro/contact-information-section","version":"2.0.0","title":"Contact Information Section","category":"woocommerce","description":"Adds fields.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}},"text":{"type":"string","default":""},"title":{"type":"string","default":"Contact Information"},"description":{"type":"string","default":"contact Fields"}},"textdomain":"woocommerce-checkout-field-editor-pro","editorStyle":"file:../../../build/style-checkout-section-block.css"}'),T=(0,window.wc.wcSettings.getSetting)("thwcfe-block-integration_data",""),{allSections:V}=T,{contact:$}=V,S={...A,attributes:{...A.attributes,sectionData:{type:"object",default:$}}};(0,r.registerBlockType)(S,{icon:{src:(0,s.jsx)(i,{icon:n})},edit:({attributes:e,setAttributes:o})=>{const t=(0,c.useBlockProps)(),{sectionData:r}=e,a=Array.isArray(r?.fields)?r.fields:Object.values(r?.fields||{});return(0,s.jsx)("div",{...t,children:a.map((e=>(0,s.jsx)("div",{className:"wc-block-checkout__thwcfe-contact-fields__field",children:(0,s.jsx)(I,{children:(0,s.jsx)(N,{field:e})})},e.id)))})},save:()=>(0,s.jsx)("div",{})})},609:e=>{e.exports=window.React},848:(e,o,t)=>{e.exports=t(20)}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.m=o,e=[],r.O=(o,t,a,i)=>{if(!t){var l=1/0;for(d=0;d<e.length;d++){for(var[t,a,i]=e[d],s=!0,n=0;n<t.length;n++)(!1&i||l>=i)&&Object.keys(r.O).every((e=>r.O[e](t[n])))?t.splice(n--,1):(s=!1,i<l&&(l=i));if(s){e.splice(d--,1);var c=a();void 0!==c&&(o=c)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,a,i]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={924:0,185:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,i,[l,s,n]=t,c=0;if(l.some((o=>0!==e[o]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(n)var d=n(r)}for(o&&o(t);c<l.length;c++)i=l[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(d)},t=globalThis.webpackChunkwoo_checkout_field_editor_pro=globalThis.webpackChunkwoo_checkout_field_editor_pro||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=r.O(void 0,[185],(()=>r(431)));a=r.O(a)})(); -
woo-checkout-field-editor-pro/trunk/block/assets/dist/style-additional-sections-frontend-rtl.css
r3221414 r3253231 1 .wc-block-components-radio-control.thwcfe-radio-control{margin-top:10px}.wc-block-components-radio-control.thwcfe-radio-control .wc-block-components-radio-control__input{right:0}.wc-block-components-radio-control.thwcfe-radio-control label.wc-block-components-radio-control__option--checked-option-highlighted{box-shadow:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after{background:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked:after{border:none}.wc-block-components-radio-control .wc-block-components-radio-control__input{right:0}.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus:required{outline:1px solid #cc1818;outline-offset:2px}.wc-block-checkout__additional-fields{margin-bottom:1.5em} 1 .wc-block-components-radio-control.thwcfe-radio-control{margin-top:10px}.wc-block-components-radio-control.thwcfe-radio-control .wc-block-components-radio-control__input{right:0}.wc-block-components-radio-control.thwcfe-radio-control label.wc-block-components-radio-control__option--checked-option-highlighted{box-shadow:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after{background:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked:after{border:none}.wc-block-components-radio-control .wc-block-components-radio-control__input{right:0}.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus:required{outline:1px solid #cc1818;outline-offset:2px}.wc-block-checkout__additional-fields{margin-bottom:1.5em}.block-editor-inner-blocks .wc-blocks-components-select .wc-blocks-components-select__select{max-width:revert} -
woo-checkout-field-editor-pro/trunk/block/assets/dist/style-additional-sections-frontend.css
r3221414 r3253231 1 .wc-block-components-radio-control.thwcfe-radio-control{margin-top:10px}.wc-block-components-radio-control.thwcfe-radio-control .wc-block-components-radio-control__input{left:0}.wc-block-components-radio-control.thwcfe-radio-control label.wc-block-components-radio-control__option--checked-option-highlighted{box-shadow:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after{background:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked:after{border:none}.wc-block-components-radio-control .wc-block-components-radio-control__input{left:0}.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus:required{outline:1px solid #cc1818;outline-offset:2px}.wc-block-checkout__additional-fields{margin-bottom:1.5em} 1 .wc-block-components-radio-control.thwcfe-radio-control{margin-top:10px}.wc-block-components-radio-control.thwcfe-radio-control .wc-block-components-radio-control__input{left:0}.wc-block-components-radio-control.thwcfe-radio-control label.wc-block-components-radio-control__option--checked-option-highlighted{box-shadow:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after{background:none}.wc-block-components-radio-control.thwcfe-radio-control.wc-block-components-radio-control--highlight-checked:after{border:none}.wc-block-components-radio-control .wc-block-components-radio-control__input{left:0}.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus:required{outline:1px solid #cc1818;outline-offset:2px}.wc-block-checkout__additional-fields{margin-bottom:1.5em}.block-editor-inner-blocks .wc-blocks-components-select .wc-blocks-components-select__select{max-width:revert} -
woo-checkout-field-editor-pro/trunk/block/class-thwcfd-block.php
r3229165 r3253231 41 41 add_action('woocommerce_blocks_checkout_block_registration', array($this, 'update_default_fields_data_with_block'), 999); 42 42 add_action('woocommerce_validate_additional_field', array($this, 'validate_additional_field'), 10, 3); 43 add_filter('woocommerce_get_country_locale', array($this, 'update_address_fields_data'), 999); 43 44 if($this->has_block_checkout()){ 44 45 add_filter('woocommerce_default_address_fields', array($this, 'update_default_fields_data'), 999); … … 63 64 return; 64 65 } 66 $remove_optional = apply_filters('thwcfe_remove_optional_label', false); 65 67 $additional_fields = array_diff_key($fieldset, $default_address_fields); 66 68 foreach ($additional_fields as $field_data) { … … 77 79 'id' => 'thwcfe-block/'.$field_data['name'], 78 80 'label' => $field_data['label'], 81 'optionalLabel' => $remove_optional ? $field_data['label'] : sprintf( 82 /* translators: %s Field label. */ 83 __( '%s (optional)', 'woocommerce' ), 84 $field_data['label'] 85 ), 79 86 'placeholder' => $field_data['placeholder'], 80 87 'location' => 'address', … … 103 110 } 104 111 112 public function update_address_fields_data($locale){ 113 114 if(! function_exists('has_block') || ! has_block( 'woocommerce/checkout' )) { 115 return $locale; 116 } 117 $change_default_address_fields = apply_filters('thwcfe_change_default_block_address_fields', true); 118 if (!$change_default_address_fields) { 119 return $locale; 120 } 121 122 $field_set = $this->get_section_field_set('address'); 123 $address_field_keys = array('address_1', 'postcode', 'city', 'state'); 124 $address_fields = array_intersect_key($field_set, array_flip($address_field_keys)); 125 126 foreach ($locale as $key => $value) { 127 $this->update_locale_field($locale, $key, 'address_1', $address_fields); 128 $this->update_locale_field($locale, $key, 'postcode', $address_fields); 129 $this->update_locale_field($locale, $key, 'city', $address_fields); 130 $this->update_locale_field($locale, $key, 'state', $address_fields); 131 } 132 133 return $locale; 134 } 135 136 private function update_locale_field(&$locale, $key, $field_name, $address_fields) { 137 138 if (isset($address_fields[$field_name])) { 139 $locale[$key][$field_name] = [ 140 'required' => $address_fields[$field_name]['required'] ?? true, 141 'hidden' => false, 142 ]; 143 } else { 144 $locale[$key][$field_name] = [ 145 'required' => false, 146 'hidden' => true, 147 ]; 148 } 149 } 150 105 151 public function update_default_fields_data_with_block() { 106 152 … … 117 163 $default_address_fields = THWCFD_Utils_Block::get_core_fields(); 118 164 $field_set = $this->get_section_field_set('address'); 119 165 $remove_optional = apply_filters('thwcfe_remove_optional_label', false); 166 120 167 foreach( $default_address_fields as $key => &$field){ 121 168 if($key === 'email'){ … … 125 172 $field['index'] = $field_set[$key]['priority'] ?? $field['index']; 126 173 $field['label'] = $field_set[$key]['label']?? $field['label']; 174 if($remove_optional){ 175 $field['optionalLabel'] = $field_set[$key]['label']?? $field['optionalLabel']; 176 }else{ 177 $field['optionalLabel'] = $field_set[$key]['label']? $field_set[$key]['label'].' (optional)' : $field['optionalLabel']; 178 } 127 179 $field['required'] = $field_set[$key]['required'] ?? $field['required']; 180 128 181 } else { 129 182 $field['hidden'] = true; … … 193 246 'invalid_email_field', 194 247 sprintf( 195 __('The provided %s is not a valid email address.', 'woo commerce'),248 __('The provided %s is not a valid email address.', 'woo-checkout-field-editor-pro'), 196 249 esc_html($field_properties['title'] ?? 'value') 197 250 ) … … 206 259 'invalid_phone_field', 207 260 sprintf( 208 __('The provided %s is not a valid phone number.', 'woo commerce'),261 __('The provided %s is not a valid phone number.', 'woo-checkout-field-editor-pro'), 209 262 esc_html($field_properties['title'] ?? 'value') 210 263 ) … … 219 272 'invalid_postcode', 220 273 sprintf( 221 __('The provided %s is not a valid postcode.', 'woo commerce'),274 __('The provided %s is not a valid postcode.', 'woo-checkout-field-editor-pro'), 222 275 esc_html($field_properties['title'] ?? 'value') 223 276 ) -
woo-checkout-field-editor-pro/trunk/changelog.txt
r3229214 r3253231 1 1 == Changelog == 2 = 2.1.3 = 3 * Improved the address fields functionality in the Checkout block. 4 * Added WooCommerce 9.7 compatibility. 5 2 6 = 2.1.2 = 3 7 * Added translation support for Checkout block. -
woo-checkout-field-editor-pro/trunk/checkout-form-designer.php
r3229214 r3253231 4 4 * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields). 5 5 * Author: ThemeHigh 6 * Version: 2.1. 26 * Version: 2.1.3 7 7 * Author URI: https://www.themehigh.com 8 8 * Plugin URI: https://www.themehigh.com … … 10 10 * Domain Path: /languages 11 11 * WC requires at least: 3.0.0 12 * WC tested up to: 9. 612 * WC tested up to: 9.7 13 13 */ 14 14 … … 26 26 27 27 if(is_woocommerce_active()) { 28 define('THWCFD_VERSION', '2.1. 2');28 define('THWCFD_VERSION', '2.1.3'); 29 29 !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ )); 30 30 !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ )); -
woo-checkout-field-editor-pro/trunk/languages/woo-checkout-field-editor-pro.pot
r3229165 r3253231 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Checkout Field Editor for WooCommerce 2.1. 1\n"5 "Project-Id-Version: Checkout Field Editor for WooCommerce 2.1.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-checkout-field-editor-pro\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 1-22T12:41:54+00:00\n"12 "POT-Creation-Date: 2025-02-27T11:58:24+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 365 365 msgstr "" 366 366 367 #: admin/class-thwcfd-admin-settings-block-fields.php:21 2367 #: admin/class-thwcfd-admin-settings-block-fields.php:213 368 368 #: admin/assets/js/inc/thwcfd-admin-field.js:92 369 369 #: admin/assets/js/thwcfd-admin.js:607 … … 371 371 msgstr "" 372 372 373 #: admin/class-thwcfd-admin-settings-block-fields.php:2 19373 #: admin/class-thwcfd-admin-settings-block-fields.php:220 374 374 msgid "Duplicate Field" 375 375 msgstr "" 376 376 377 #: admin/class-thwcfd-admin-settings-block-fields.php:23 0377 #: admin/class-thwcfd-admin-settings-block-fields.php:231 378 378 msgid "No checkout fields found. Click on Add Field button to create new fields." 379 379 msgstr "" 380 380 381 #: admin/class-thwcfd-admin-settings-block-fields.php:3 19381 #: admin/class-thwcfd-admin-settings-block-fields.php:320 382 382 #: admin/class-thwcfd-admin-settings-general.php:277 383 383 msgid "Your changes were not saved due to no fields found." 384 384 msgstr "" 385 385 386 #: admin/class-thwcfd-admin-settings-block-fields.php:37 0386 #: admin/class-thwcfd-admin-settings-block-fields.php:371 387 387 #: admin/class-thwcfd-admin-settings-general.php:76 388 388 msgid "Checkout fields successfully reset" 389 389 msgstr "" 390 390 391 #: admin/class-thwcfd-admin-settings-block-fields.php:5 59391 #: admin/class-thwcfd-admin-settings-block-fields.php:560 392 392 msgid "Edit Section" 393 393 msgstr "" … … 395 395 #: admin/class-thwcfd-admin-settings-general.php:31 396 396 #: admin/class-thwcfd-admin-settings.php:24 397 msgid "C heckout Fields"397 msgid "Classic Checkout Fields" 398 398 msgstr "" 399 399 … … 452 452 453 453 #: admin/class-thwcfd-admin.php:56 454 #: admin/class-thwcfd-admin.php:9 2454 #: admin/class-thwcfd-admin.php:93 455 455 msgid "Checkout Form" 456 456 msgstr "" … … 474 474 #: admin/class-thwcfd-admin.php:85 475 475 msgid "Review us" 476 msgstr "" 477 478 #: admin/class-thwcfd-admin.php:142 479 msgid " Support team" 476 480 msgstr "" 477 481 … … 493 497 msgstr "" 494 498 499 #: block/class-thwcfd-block.php:248 500 msgid "The provided %s is not a valid email address." 501 msgstr "" 502 503 #: block/class-thwcfd-block.php:261 504 msgid "The provided %s is not a valid phone number." 505 msgstr "" 506 507 #: block/class-thwcfd-block.php:274 508 msgid "The provided %s is not a valid postcode." 509 msgstr "" 510 495 511 #: includes/class-thwcfd.php:145 496 512 msgid "Quick Feedback" … … 619 635 msgid "Default value must be a number." 620 636 msgstr "" 637 638 #: block/assets/dist/additional-sections-frontend.js:1 639 #: block/assets/dist/additional-sections.js:1 640 #: block/assets/dist/contact-info-section-frontend.js:1 641 #: block/assets/dist/contact-info-section.js:1 642 #: block/assets/js/components/select/index.js:27 643 msgid "Please select a valid option" 644 msgstr "" 645 646 #. translators: %s will be label of the field. For example "country/region". 647 #: block/assets/dist/additional-sections-frontend.js:4 648 #: block/assets/dist/additional-sections.js:4 649 #: block/assets/dist/contact-info-section-frontend.js:4 650 #: block/assets/dist/contact-info-section.js:4 651 #: block/assets/js/components/select/index.js:45 652 msgid "Select a %s" 653 msgstr "" 654 655 #: block/assets/dist/additional-sections-frontend.js:4 656 #: block/assets/dist/additional-sections.js:4 657 #: block/assets/dist/contact-info-section-frontend.js:4 658 #: block/assets/dist/contact-info-section.js:4 659 #: block/assets/js/components/radio-control/index.js:21 660 msgid "Please select an option" 661 msgstr "" 662 663 #: block/assets/dist/additional-sections-frontend.js:4 664 #: block/assets/dist/additional-sections.js:4 665 #: block/assets/dist/contact-info-section-frontend.js:4 666 #: block/assets/dist/contact-info-section.js:4 667 #: block/assets/js/components/custom-validation-handler.js:37 668 msgid "Please enter a valid email address" 669 msgstr "" 670 671 #: block/assets/dist/additional-sections-frontend.js:4 672 #: block/assets/dist/additional-sections.js:4 673 #: block/assets/dist/contact-info-section-frontend.js:4 674 #: block/assets/dist/contact-info-section.js:4 675 #: block/assets/js/components/custom-validation-handler.js:30 676 msgid "Please enter a valid URL" 677 msgstr "" 678 679 #: block/assets/dist/additional-sections-frontend.js:4 680 #: block/assets/dist/additional-sections.js:4 681 #: block/assets/dist/contact-info-section-frontend.js:4 682 #: block/assets/dist/contact-info-section.js:4 683 #: block/assets/js/components/custom-validation-handler.js:23 684 msgid "Please enter a valid Phone Number" 685 msgstr "" -
woo-checkout-field-editor-pro/trunk/public/assets/css/thwcfd-public.min.css
r3221414 r3253231 1 .thwcfd-field-radio label.radio{display:inline-block;margin-right:15px}.thwcfd-optional .required{display:none}.thwcfe-radio-control .wc-block-components-radio-control__option{width:fit-content} 1 .thwcfd-field-radio label.radio{display:inline-block;margin-right:15px}.thwcfd-optional .required{display:none}.thwcfe-radio-control .wc-block-components-radio-control__option{width:fit-content}.thwcfd-field-checkboxgroup .woocommerce-multicheckbox-wrapper label{width:fit-content} -
woo-checkout-field-editor-pro/trunk/public/assets/js/thwcfd-public.min.js
r2495126 r3253231 1 jQuery(document).ready(function($){function field_is_required(field,is_required){is_required?(field.find("label .optional").remove(),field.addClass("validate-required"),field_label_white_space_fix(field), 0===field.find("label .required").length&&field.find("label").append(' <abbr class="required" title="'+wc_address_i18n_params.i18n_required_text+'">*</abbr>')):(field.find("label .required").remove(),field.removeClass("validate-required woocommerce-invalid woocommerce-invalid-required-field"),field_label_white_space_fix(field),0===field.find("label .optional").length&&field.find("label").append(' <span class="optional">('+wc_address_i18n_params.i18n_optional_text+")</span>"))}function address_fields_required_validation_fix(){var thisform=$(".woocommerce-checkout"),locale_fields=$.parseJSON(wc_address_i18n_params.locale_fields);locale_fields&&$.each(locale_fields,function(key,value){var fids=value.split(",");$.each(fids,function(index,fid){var field=thisform.find(fid.trim());field.hasClass("thwcfd-required")?field_is_required(field,!0):field.hasClass("thwcfd-optional")&&field_is_required(field,!1)})})}function field_label_white_space_fix(field){var label=field.find("label").html();label&&(label=label.replace(/(?:^(?: )+)|(?:(?: )+$)/g,""),field.find("label").html(label.trim()))}$("select.thwcfd-enhanced-select").selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced"),$(document.body).bind("country_to_state_changing",function(event,country,wrapper){thwcfd_public_var.is_override_required&&setTimeout(address_fields_required_validation_fix,500)})});1 jQuery(document).ready(function($){function field_is_required(field,is_required){is_required?(field.find("label .optional").remove(),field.addClass("validate-required"),field_label_white_space_fix(field),"undefined"!=typeof thwcfd_public_var&&thwcfd_public_var.is_wc_version_grt_9_x?0===field.find('label .required[aria-hidden="true"]').length&&field.find("label").append(' <span class="required" aria-hidden="true">*</span>'):0===field.find("label .required").length&&field.find("label").append(' <abbr class="required" title="'+wc_address_i18n_params.i18n_required_text+'">*</abbr>')):(field.find("label .required").remove(),field.removeClass("validate-required woocommerce-invalid woocommerce-invalid-required-field"),field_label_white_space_fix(field),0===field.find("label .optional").length&&field.find("label").append(' <span class="optional">('+wc_address_i18n_params.i18n_optional_text+")</span>"))}function address_fields_required_validation_fix(){var thisform=$(".woocommerce-checkout"),locale_fields=$.parseJSON(wc_address_i18n_params.locale_fields);locale_fields&&$.each(locale_fields,function(key,value){var fids=value.split(",");$.each(fids,function(index,fid){var field=thisform.find(fid.trim());field.hasClass("thwcfd-required")?field_is_required(field,!0):field.hasClass("thwcfd-optional")&&field_is_required(field,!1)})})}function field_label_white_space_fix(field){var label=field.find("label").html();label&&(label=label.replace(/(?:^(?: )+)|(?:(?: )+$)/g,""),field.find("label").html(label.trim()))}$("select.thwcfd-enhanced-select").selectWoo({allowClear:!0,placeholder:$(this).data("placeholder")}).addClass("enhanced"),$(document.body).bind("country_to_state_changing",function(event,country,wrapper){thwcfd_public_var.is_override_required&&setTimeout(address_fields_required_validation_fix,500)})}); -
woo-checkout-field-editor-pro/trunk/public/class-thwcfd-public-checkout.php
r3221414 r3253231 32 32 $wcfd_var = array( 33 33 'is_override_required' => $this->is_override_required_prop(), 34 'is_wc_version_grt_9_x' => version_compare(THWCFD_Utils::get_wc_version(), '9.7.0', ">="), 34 35 ); 35 36 wp_localize_script('thwcfd-checkout-script', 'thwcfd_public_var', $wcfd_var); … … 72 73 add_filter('woocommerce_form_field_paragraph', array($this, 'woo_form_field_paragraph'), 10, 4); 73 74 75 //Radio field required indicator fix 76 if(version_compare(THWCFD_Utils::get_wc_version(), '9.7.0', ">=")){ 77 add_filter('woocommerce_form_field_radio', array($this, 'woo_form_field_radio'), 10, 4); 78 } 79 74 80 } 75 81 … … 655 661 if ( $args['required'] ) { 656 662 $args['class'][] = 'validate-required'; 657 $required = ' <abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>'; 663 if(version_compare(THWCFD_Utils::get_wc_version(), '9.7.0', ">=")){ 664 $required =' <span class="required" aria-hidden="true">*</span>'; 665 }else{ 666 $required = ' <abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>'; 667 } 658 668 } else { 659 669 $required = ' <span class="optional">(' . esc_html__( 'optional', 'woocommerce' ) . ')</span>'; … … 856 866 return $field; 857 867 } 868 869 public function woo_form_field_radio($field, $key, $args, $value){ 870 //replace unwanted required indicator from wc version > 9.7. 871 $field = preg_replace('/(<input[^>]*>)(<label[^>]*>)(.*?)( <span class="required" aria-hidden="true">\*<\/span>)/', '$1$2$3', $field); 872 $field = preg_replace('/(<input[^>]*>)(<label[^>]*>)(.*?)( <span class="optional">\(optional\)<\/span>)/', '$1$2$3', $field); 873 return $field; 874 875 } 858 876 859 877 } -
woo-checkout-field-editor-pro/trunk/readme.txt
r3229214 r3253231 2 2 Contributors: ThemeHigh 3 3 Donate link: https://themehigh.com/ 4 Tags: Checkout Manager, Checkout Field Editor, WooCommerce Checkout, WooCommerce Checkout Field, WooCommerce Checkout Addons4 Tags: Checkout Manager, Checkout Field Editor, WooCommerce Checkout, WooCommerce Checkout Field, Custom fields 5 5 Requires at least: 4.9 6 6 Tested up to: 6.7 7 7 Requires PHP: 5.6 8 Stable tag: 2.1. 28 Stable tag: 2.1.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 14 14 == Description == 15 16 = Checkout Field Editor for WooCommerce = 17 WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 20 different types of custom checkout fields to your Checkout page, blended with a simple and user-friendly interface. 18 19 It enables you to edit the default checkout fields of your WooCommerce platform, add new custom fields in the three sections (namely Billing, Shipping and Additional), edit, hide, or delete the default fields, change labels, rearrange checkout fields, validate the checkout fields, add custom css classes etc. 15 **WooCommerce checkout field editor** enables you to edit the default checkout fields of your WooCommerce platform, add, edit, hide, or delete the default fields, change labels, rearrange checkout fields, validate the checkout fields, add custom css classes etc. 16 17 🔥 **#The Ultimate Solution for Customizing WooCommerce Checkout Fields** 18 19 The default WooCommerce checkout field editor offers only basic fields, limiting the ability to collect crucial information. Moreover, manually customizing checkout fields with code is time-consuming and complex and leads to the following issues 20 20 21 ✳️ **Block Compatible →** The plugin is now compatible with the WooCommerce checkout block, allowing text, select, radio, and checkbox fields, along with an additional section. It also supports email, phone, and URL validation for the text field. 22 23 [Try the Demo](https://flydemos.com/wcfe/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=try_demo) | [Documents](https://www.themehigh.com/docs/docs-category/checkout-field-editor-for-woocommerce/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=help_docs) | [Pro Version](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) | [Join Community](http://www.facebook.com/groups/themehigh/) | [Reddit](https://www.reddit.com/r/themehigh/) 24 -------------------------------------------- 25 https://www.youtube.com/watch?v=_iKMe5lGIIM 26 -------------------------------------------- 27 28 = Key Features = 29 = ☞ Custom Checkout Field(s) = 30 Add additional fields to your Checkout page using the Checkout Manager plugin. You can add twenty different types of checkout fields in your WooCommerce checkout page and collect more information from the end-user. The various field types it supports include: 31 32 * Text 33 * Number 34 * Hidden 35 * Password 36 * Email 37 * Phone 38 * Radio 39 * Textarea 40 * Select 41 * Multi Select 42 * Checkbox 43 * Checkbox Group 44 * Datetime local 45 * Date 46 * Month 47 * Time 48 * Week 49 * URL 50 * Heading 51 * Paragraph 52 53 = ☞ Edit Field(s) = 54 Edit the custom fields as per the varying business requirements, including the default ones. 55 56 = ☞ Delete Field(s) = 57 Delete the default WooCommerce checkout fields if needed. 58 59 = ☞ Enable/Disable field(s) = 60 Enable/Disable your custom checkout fields with an easy checkbox option. 61 62 = ☞ Repositioning Checkout fields = 63 Display your Checkout fields at different locations with easy-to-handle drag and drop options. 64 65 = ☞ Add Custom CSS Class = 66 Style your checkout form as per your requirements with simple steps, if you wish to improve your customer engagement. 67 68 = ☞ Display in Emails and Order Details Pages = 69 Showcase or hide the custom checkout fields in the Order Details Page or in your emails using the checkbox option. 70 71 = ☞ Validate the Checkout Fields = 72 Validate the custom checkout fields (including the default ones), and never miss any valuable information from the user. 73 74 = ☞ Override Address Fields = 75 By default, WooCommerce will change the address format based on the countries. Using this plugin, you can prevent the override address field properties and use the values set using the Checkout Manager plugin. 76 77 = ☞ Reset to Default Fields = 78 Using this plugin, you can reset to the original state with the default fields on a single click. 79 80 = ☞ Translate Ready to Other Language = 81 The Checkout Field Editor plugin lets you translate to other languages as it is compatible with WPML, Polylang & Loco Translate translation plugins. To translate dynamic strings, use Polylang or WPML plugin. 82 83 ✳️ Upgrade to the [Pro version](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) to access more sections and advanced conditional logic features along with our **block integration!** 84 85 == Other Popular plugins from Themehigh == 86 87 **[Extra Product Options For WooCommerce](https://wordpress.org/plugins/woo-extra-product-options/)**: This Custom Product addons plugin lets you quickly add additional fields (19 custom field types) and sections to your WooCommerce Product page. 88 89 **[Multi-Step Checkout Options For WooCommerce](https://wordpress.org/plugins/woo-multistep-checkout/)**: The Multistep checkout plugin helps you to split the regular WooCommerce checkout process with simpler steps by creating a better experience for your customers. 90 91 **[Variation Swatches For WooCommerce](https://wordpress.org/plugins/product-variation-swatches-for-woocommerce/)**: Start converting the default WooCommerce product attribute drop-downs into stylish swatches (color, image, radio, and label) using this free variation swatches plugin. 92 93 **[Email Customizer For WooCommerce](https://wordpress.org/plugins/email-customizer-for-woocommerce/)**: Email Customizer, an intuitive template builder that lets you customise your WooCommerce transactional emails using different elements like text, image, divider, etc. 94 95 Join [Themehigh Community](https://www.facebook.com/groups/themehigh/) to get help from similar people. 96 97 == 💎💎 Upgrade to Premium Version Now! == 98 The premium version of WooCommerce Checkout Field Editor (Checkout Manager) Plugin lets you add 24 different types of custom checkout fields and sections to your Checkout page, and make the best out of your Checkout form. 99 100 A range of advanced features that it delivers include 24 custom checkout field types, display sections and fields conditionally, custom validations, compatibility with third-party plugins, developer friendliness with custom hooks, change address display format, price fields with a set of price types etc. 101 102 == Premium Features == 103 104 = ☞ Custom Checkout Sections = 105 Add custom checkout sections apart from the three default sections, viz., Billing, Shipping and Additional sections. The Pro version stands apart from the free version with the same functionality. 106 107 = ☞ 24 Custom field types with File Upload = 108 The Pro version of WooCommerce Checkout Manager supports upto 24 field types, including the File Upload option. The 24 field types it supports are: 109 110 1. Text 111 2. Hidden 112 3. Password 113 4. Telephone 114 5. Email 115 6. Number 116 7. Textarea 117 8. Select 118 9. Multi Select 119 10. Radio 120 11. Checkbox 121 12. Checkbox Group 122 13. Date picker 123 14. Time picker 124 15. File Upload 125 16. Datetime local 126 17. Date 127 18. Month 128 19. Time 129 20. Week 130 21. URL 131 22. Heading 132 23. Label 133 24. Paragraph 134 135 = ☞ Display custom fields at 14 different positions = 136 The free version of the plugin limits the user to display the custom checkout field at only certain positions. The Premium version allows you to display them at 14 different locations. Following are the positions where these checkout sections can be displayed: 137 138 1. Before customer details 139 2. After customer details 140 3. Before billing form 141 4. After billing form 142 5. Before shipping form 143 6. After shipping form 144 7. Before registration form 145 8. After registration form 146 9. Before order notes 147 10. After order notes 148 11. Before terms and conditions 149 12. After terms and conditions 150 13. Before submit button 151 14. After submit button 152 15. Inside a custom step created using WooCommerce MultiStep Checkout 153 154 = ☞ Display Sections and Fields Conditionally = 155 The various custom fields can be displayed only if a set of conditions are met. Following are the conditions with which the fields can be displayed conditionally: 156 157 * Cart Contents 158 * Cart Subtotal 159 * Cart Total 160 * User Roles 161 * Product 162 * Product Variation 163 * Product Category 164 * Based on other field values 165 166 = ☞ Custom Validations = 167 The WooCommerce Checkout Field Editor comes with options to validate the checkout fields before placing the order. Besides the default validations, you can create custom validators to validate your checkout fields. 168 169 = ☞ Create Confirm Field Validators = 170 Using this plugin, you can create confirm field validators and compare the values of two different fields. For example, password and confirm password are the two fields that need to be compared to know whether both the field values match each other. 171 172 = ☞ Price Fields With A Set of Price Types = 173 Add an extra price value to the total price by adding a field with price into the checkout form. You can also add predefined fixed prices using hidden field type in WooCommerce Checkout. Following price types can be added to WooCommerce checkout fields: 174 175 * *Fixed Price*: Set a fixed price for the addon (Extra Field). This fixed amount will be added to the total product price upon selecting the addon. 176 * *Custom Price*: A price entered by the user will be added to the product price. This will help you receive donations, tips and similar things. 177 * *Percentage of Cart Total*: Set the addon price in percentage of the cart total. The specificified percentage amount of the product price will be added to the product price. 178 * *Percentage of Subtotal*: Set the addon price in percentage of the sub total. The corresponding percentage amount of the product price will be added to the product price. 179 * *Percent of Subtotal excluding tax*: Set the addon price in percentage of the subtotal excluding tax price in your locality. So,the corresponding percentage amount of the product price will be added to the subtotal during checkout. 180 * *Dynamic Price*: Set the price per ‘n’ number of units. Then the addon price will be calculated for the total number units selected by the customer and added to the product price. 181 182 = ☞ Change Address Display Format = 183 With the WooCommerce Checkout Field Editor, change the address formats displayed in the Addresses in My Account page, Thank You page and Transactional Emails. The custom fields created using the plugin can also be included in the addresses using the override feature. 184 185 = ☞ Set Repeat Rules = 186 The pro version of the Woocomerce Checkout Manager plugin lets you set repeat rules for the custom fields and sections created based on various criteria like Product Quantity and Cart Count. 187 188 = ☞ Developer Friendly = 189 All the custom fields in the Checkout Field Editor are available through hooks. So, the developers can use the checkout fields to extend the functionality of the fields. 190 191 = ☞ Compatibility with third-party plugins = 192 Pro version of the plugin supports multiple third-party plugins, so as to benefit the user the best from us. Some of them include: 193 194 *WooCommerce PDF Invoices & Packing Slips*: The custom fields created in your Checkout forms can be included in the PDF invoices and packing slips that you provide to the customers. Thus, it allows you to include a set of valuable information to the customers through bills or invoices. 195 196 *WooCommerce Customer / Order CSV Export*: With this WooCommerce plugin, one can download the orders made by the customer in CSV format. Our plugin allows you to include the custom fields in these data and thus download it. 197 198 *Zapier Support*: Another important aspect of the Pro version of WooCommerce Checkout Manager includes that it supports online automation tool Zapier. Zapier allows you to integrate multiple applications and thus makes your job easier to complete. No worries, we do support Zapier! 199 200 *Multi-language Support*: Supporting multiple languages has become an important aspect of the present world, since there are still a lot of people who are not comfortable with the English language. Since our plugin is compatible with the WordPress Multilingual Plugin (WPML), we support multiple languages too. 201 202 -------------------------------------------- 203 *For the complete list of features, Please visit [WooCommerce Checkout Field Editor (Checkout Manager)](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) plugin's official page.* 204 205 Check how it works: 🔗 [Live Demo](https://flydemos.com/wcfe/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=try_demo) 206 -------------------------------------------- 21 ❌ **No Personalization** – Customers expect a seamless, customized experience, but the default setup doesn’t allow it. 22 ❌ **Poor User Experience** – A cluttered checkout page with unnecessary fields can frustrate customers, leading to cart abandonment. 23 ❌ **Reduced Conversions** – An unoptimized checkout process can increase drop-offs and lower sales. 24 25 ==How WooCommerce Checkout Field Editor (Checkout Manager) simplifies customization? == 26 27 ✳️ **Complete Checkout Field Customization →** Effortlessly add, edit, remove, and rearrange fields. 28 29 ✳️ **24+ Field Types→** Add additional field types to your Checkout page. 30 31 ✳️ **Optimized for Conversions →** Create a seamless checkout flow, reducing friction and increasing sales. 32 33 ✳️ **Compatible with Classic & Block Checkout →** Effortlessly customize fields, whether you're using the classic checkout layout or the modern block-based layout . 34 35 ✳️ **Custom Hooks →** Easily Add more functionalities features with developer-friendly custom Hooks. 36 37 **👉Note:** Block Compatibility → Our Checkout Field Editor (Checkout Manager) for WooCommerce now supports WooCommerce Checkout Blocks, allowing customization with Text, Select, Radio, and Checkbox fields, plus validation for Email, Phone, and URL. More field types will be added in upcoming updates. 38 39 [Try Demo]((https://flydemos.com/wcfe/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=try_demo)) | 40 [Documentation](https://www.themehigh.com/docs/docs-category/checkout-field-editor-for-woocommerce/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=help_docs) | 41 [Get Pro ](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) 42 43 ==🔥 EXPLORE WHAT OUR FREE VERSION OFFERS == 44 45 = ✅ ADD FIELDS TYPES TO CHECKOUT PAGE = 46 👉 Easily add up to 20 different checkout field types to gather more customer information using **Classic checkout**. 47 48 1. Text 49 2. Number 50 3. Hidden 51 4. Password 52 5. Email 53 6. Phone 54 7. Radio 55 8. Textarea 56 9. Select 57 10. Multi Select 58 11. Checkbox 59 12. Checkbox Group 60 13. DateTime Local 61 14. Date 62 15. Month 63 16. Time 64 17. Week 65 18. URL 66 19. Heading 67 20. Paragraph 68 69 👉 Also the users can add 4 checkout field types to gather more customer information using **Block checkout**. 70 71 1. Text 72 2. Select 73 3. Radio 74 4. Checkbox 75 76 Users can **edit, delete and enable/disable these fields**. With the simple drag-and-drop interface, users can also easily **reposition fields** to meet their business needs effortlessly. 77 78 = ✅ Validate the Checkout Fields = 79 Validate both custom and default checkout fields to prevent incomplete or incorrect submissions, enhancing the user experience and reducing errors during checkout. 80 81 * **Number**: Restricts input to numerical values 82 * **Email**: Ensures correct email formatting 83 * **Phone**: Validate phone number input 84 * **State & Postcode**: Checks location-based details 85 * **URL**: Allows only properly formatted web addresses 86 87 = ✅ Manage Custom Checkout Field Visibility = 88 - In **Classic checkout** control the visibility of custom checkout fields on the Order Details Page and in emails with a simple checkbox option 89 90 - In **Block checkout** control the visibility of custom checkout fields in the Admin emails, customer emails, admin order details & customer order details with a simple checkbox option 91 92 = ✅ Prevent Address Field Overrides = 93 By default, WooCommerce will change the address format based on the countries. Using this plugin, you can prevent the override address field properties and use the values set using the plugin. You can also change the address formats displayed in the addresses in **My Account page**, **Thank You page** and **Transactional Emails**. 94 95 **👉Note:** The custom fields created using this plugin can also be included in the addresses using the override feature. 96 97 = ✅ One-Click Reset to Default Fields = 98 Restore the original state and revert to default fields effortlessly with a single click. 99 100 = ✅ Easily Translate to Other Languages = 101 The Checkout Field Editor plugin supports WPML, Polylang, and Loco Translate, making it simple to translate fields into different languages. For dynamic strings, use the Polylang or WPML plugin. 102 103 ==🔥 Why Switch to Pro?== 104 105 While the free version of [Checkout Field Editor for WooCommerce](https://flydemos.com/wcfe/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=try_demo%29) offers essential features to enhance your checkout pages, the premium version offers full control over your checkout process & easily customize WooCommerce Checkout Fields – Works with Both Classic & Block Checkout!—ensuring a better customer experience and higher revenue such as: 106 107 **👉 4 additional field types for more flexibility** 108 **👉 Add & edit display sections and fields conditionally** 109 **👉 Custom validations to ensure accurate data** 110 **👉 Price fields with a variety of price types** 111 **👉 Change the address display format** 112 **👉 Developer friendliness with custom hooks** 113 **👉 Compatibility with third-party plugins for extended functionality** 114 115 [GET FULL ACCESS WITH PREMIUM NOW !](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/) 116 117 = 👉 WPML Compatibility = 118 The Extra product options plugin is WPML compatible and it lets you create product pages in multiple languages. 119 120 == 🔥 SEE OUR PREMIUM FEATURES == 121 [Try Demo]((https://flydemos.com/wcfe/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=try_demo)) | [Documentation](https://www.themehigh.com/docs/docs-category/checkout-field-editor-for-woocommerce/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=help_docs) | [Get Pro ](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) 122 123 = ✅ ADD 4 ADDITIONAL FIELDS TYPES TO CHECKOUT PAGE = 124 125 1. File Upload 126 2. Time Picker 127 3. Date Picker 128 4. Label 129 130 = ✅ POSITION SECTIONS AT 14 POSITIONS = 131 Display sections at 14 different locations, offering greater flexibility in organizing your checkout page. 132 133 1. Before customer details 134 2. After customer details 135 3. Before billing form 136 4. After billing form 137 5. Before shipping form 138 6. After shipping form 139 7. Before registration form 140 8. After registration form 141 9. Before order notes 142 10. After order notes 143 11. Before terms & conditions 144 12. After terms & conditions 145 13. Before submit button 146 14. After submit button 147 148 **👉Note:** Additionally, with our [WooCommerce Multistep Checkout plugin](https://www.themehigh.com/product/woocommerce-multi-step-checkout/), you can add custom sections inside a custom step, giving you a total of 15 placement options 149 150 = ✅ DISPLAY SECTIONS & FIELDS BASED ON CONDITIONS = 151 152 Show/hide custom fields only when specific conditions are met. 153 154 - Cart contents 155 - Cart subtotal 156 - Cart total 157 - User Roles 158 - Product 159 - Product Variations 160 - Product Category 161 - Based on other field values 162 163 = ✅ CREATE & APPLY CUSTOM VALIDATIONS FOR CHECKOUT FIELDS = 164 165 You can validate checkout fields before order submission. Along with default validation options, you can create custom validation rules to ensure your fields meet specific requirements 166 167 = ✅ CREATE CONFIRM FIELD VALIDATION = 168 169 You can create confirm field validators to compare the values of two fields. For example, ensure that the 'password' and 'confirm password' fields match before proceeding with the checkout 170 171 = ✅ ADD PRICE FIELDS WITH MULTIPLE PRICE TYPE = 172 173 Add additional price values to the total by including price fields in the checkout form. You can also set predefined fixed prices using hidden fields in WooCommerce Checkout. 174 175 - **Fixed Price:** Add a fixed amount to the total price when the field is selected. 176 177 - **Custom Price:** Let users enter their own price, ideal for donations or tips. 178 179 - **Percentage of Cart Total:** Set the field price as a percentage of the cart total.. 180 181 - **Percentage of Subtotal:** Add a price based on a percentage of the subtotal. 182 183 - **Percentage of Subtotal Excluding Tax :** Add a price based on the percentage subtotal excluding tax. 184 185 - **Dynamic Price:** Set price per unit, with the total calculated based on the number of units selected. 186 187 = ✅ EDIT & PERSONALIZE ADDRESS FORMATS = 188 189 With the WooCommerce Checkout Field Editor, you can customize the address format displayed on the My Account page, Thank You page, and transactional emails. Additionally, you can include custom fields created with the plugin in the address format using the override feature. 190 191 = ✅ SET REPEAT RULES FOR CUSTOM FIELDS = 192 The Pro version of the WooCommerce Checkout Manager plugin allows you to set repeat rules for custom fields and sections based on criteria such as product quantity and cart count only in **classic checkout** 193 194 = ✅ DEVELOPER FRIENDLY = 195 All the custom fields in the Checkout Field Editor are available through hooks. So, the developers can use the checkout fields to extend the functionality of the fields. 196 197 = ✅ SUPPORTED PLUGINS & THEMES = 198 199 👉 PLUGINS 200 201 * WooCommerce PDF Invoices & Packing Slips 202 * WooCommerce Customer/Order CSV Export 203 * Zapier Support 204 * Multi-language Support 205 206 👉 THEMES 207 208 * Astra 209 * WoodMart 210 * Divi 211 * Avada 212 * Flatsome 213 * OceanWP 214 * Storefront etc.. 207 215 208 216 == Why ThemeHigh == 209 Frequent updates are made to improve the plugin with a talented group of developers. Moreover, the dedicated support team will help you set up and customize your dream store with all available features and hooks.217 At themehigh, we specialize in providing thoughtful solutions to help you create your store in the easiest and simplest way possible, providing you with a smooth and enjoyable customization experience. 210 218 211 219 🏆 2 Million+ Customers … … 213 221 🏆 Most Lightweight Plugins 214 222 215 **See a few reviews below;** 216 > amitaugma (@amitaugma) ⭐⭐⭐⭐⭐ 217 > The plugin functionally provides all the necessary tools to successfully build a clean checkout form with conditional and easy to use interface. On top of that, their support is amazing and would take the extra mile to help with any inquires. RECOMMENDED 218 219 > dragoso (@dragoso) ⭐⭐⭐⭐⭐ 223 ==🔥 Explore More == 224 If you like the Extra product option, then consider checking out our other WordPress Plugins: 225 226 👉[Extra Product Options For WooCommerce: ](https://www.themehigh.com/product/woocommerce-extra-product-options/) 227 This Custom Product addons plugin lets you quickly add additional fields (19 custom field types) and sections to your WooCommerce Product page. 228 229 👉 [Variation Swatches for WooCommerce:](https://wordpress.org/plugins/product-variation-swatches-for-woocommerce/) 230 Using the WooCommerce Variation Swatches plugin, you can easily convert default WooCommerce product attribute drop-downs into customizable swatches and display customized product variations. 231 232 👉 [Email Customizer for WooCommerce | Drag and Drop Email Templates Builder:](https://wordpress.org/plugins/email-customizer-for-woocommerce/) 233 Email Customizer is a plugin that helps you effortlessly customise your WooCommerce transactional emails using its intuitive drag-and-drop builder. 234 235 👉 [ MultiStep Checkout for WooCommerce:](https://wordpress.org/plugins/woo-multistep-checkout/) 236 The Multistep checkout plugin helps you split the regular WooCommerce checkout process into multiple steps and create a simpler and more organized checkout experience. 237 238 **Happy Users of Checkout Manager Plugin** 239 240 > **captainprint (@captainprint)**⭐⭐⭐⭐⭐ 241 > I had a great experience with this plugin’s customer service. I ran into an issue, and their team was very helpful. They solved my problem efficiently, and I really appreciated their support. Highly recommend! 242 243 > **giannisdigitup (@giannisdigitup)**⭐⭐⭐⭐ 244 > Fastest support ever! Not asking stupid things and not blamming other plugins for their problems. Provided me with a valid solution in minutes. 245 Good job guys!!! 246 247 > **amitaugma (@amitaugma)** ⭐⭐⭐⭐⭐ 248 > The plugin functionally provides all the necessary tools to successfully build a clean checkout form with conditional and easy to use interface. On top of that, their support is amazing and would take the extra mile to help with any inquires. RECOMMENDED! 249 250 > **dragoso (@dragoso)** ⭐⭐⭐⭐⭐ 220 251 > Support is super speedy and the PRO plugin is totally awesome and works like a charm. Very happy with the purchase! Thank you guys! 221 252 222 > DCM (@bcreativos)⭐⭐⭐⭐⭐253 > **DCM (@bcreativos)** ⭐⭐⭐⭐⭐ 223 254 > Great complement in both versions: Free and paid. Excellent support. Thank you very much recommended 100%. 224 255 225 For more info on ThemeHigh and WooCommerce Checkout Field Editor plugin in specific, check out the following: 226 227 * The [Checkout Field Editor (Checkout Manager) for WooCommerce](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=wcfe_upgrade_link) premium plugin homepage. 228 * The [Knowledge base](https://www.themehigh.com/docs/docs-category/checkout-field-editor-for-woocommerce/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=help_docs). 229 * Other [WordPress Plugins](https://www.themehigh.com/plugins/?utm_source=wcfe_free&utm_medium=readme&utm_campaign=themehigh_plugins) by the ThemeHigh team. 230 * Follow ThemeHigh on [Facebook](https://www.facebook.com/ThemeHigh-319611541768603/), [LinkedIn](https://www.linkedin.com/company/themehigh/), [Twitter](https://twitter.com/themehigh/) & [YouTube](https://www.youtube.com/channel/UC-_uMXaC_21j1Y2_nGjTyvg/). 231 * Join our [Discord Server](https://discord.com/invite/pxqz4aJ6uh). 256 == OTHER USEFUL LINKS== 257 👉 [VIEW ALL FEATURES](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/) 258 👉 [GET DOCUMENTATION](https://www.themehigh.com/docs/category/checkout-field-editor-for-woocommerce/) 259 👉 [GET THEMEHIGH SUPPORT](https://www.themehigh.com/docs/support/) 260 👉 [JOIN COMMUNITY](https://www.facebook.com/groups/themehigh/) 261 👉 FOLLOW US ON [Facebook](https://www.facebook.com/ThemeHigh-319611541768603/), [LinkedIn](https://www.linkedin.com/company/themehigh/), [Twitter](https://twitter.com/themehigh/) , [YouTube](https://www.youtube.com/channel/UC-_uMXaC_21j1Y2_nGjTyvg/) & [Reddit](https://www.reddit.com/r/themehigh). 232 262 233 263 == Installation == … … 245 275 Manual installation method requires downloading the 'Checkout Field Editor (Checkout Manager) for WooCommerce' plugin and uploading it to your web server via your FTP application. The WordPress codex contains [instructions on how to do this here](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation). 246 276 277 247 278 == Frequently Asked Questions == 248 =Is there a possible way to provide a validation other than the predefined validations provided like email, phone etc?= 249 The free version doesn’t provide the feature to create custom validators, but with the Checkout Field Editor for WooCommerce pro version of the plugin, custom validators can be defined based on regular expressions. 250 251 =How to modify the styling properties of fields created using this plugin?= 252 The plugin provides a feature: Class for modifying the styling properties of the fields. 253 <ol> 254 <li>Define a class in the Additional CSS(Appearance >> Customize >> Additional CSS).</li> 255 <li>Enter the name of the created class in the field Class of the Add/Edit pop-up</li> 256 <li>Save the changes</li> 257 </ol> 258 259 The style defined in the class will be applied to the default and custom fields for which this class is included. 260 261 =Can I apply price for the fields created using this plugin?= 262 No, the free version of the plugin doesn’t support the Price feature. With the premium version, you can use 5 different price types. 263 264 =How to make the no options selected for the Select field by default?= 265 By default, the First value of the Select field will be selected. For making the field selected with no options, enter a Pipe symbol(|) before all the options. Enter all the other options after this pipe separated by each other. 266 267 =How can the field be made to display only on admin emails and not in the customer emails?= 268 With the Checkout Field Editor (Checkout Manager) Pro for WooCommerce, the fields can be either displayed on all the emails or not. With the premium version of the plugin, the fields can be displayed in emails for customer or admin optionally. 269 270 =Is it possible to make the State field a select field with drop-down options defined?= 271 Yes. The field must be overridden by creating a field in the same name as the state field(billing_state). Set the field type as Select. Enter the state options for dropdown in the options field pipe separated. 272 273 =Is it possible to include the custom fields to the My Account page as well?= 274 With the free plugin, the fields can be displayed and edited only from the Checkout page. Upgrading to the premium version lets you display the fields at the Checkout page, My Account page, and User profile. The value once entered by the user will be saved so that the user need not have to enter the value every time while they are placing the order. 275 276 = Can I go back to WooCommerce default settings at a later point? = 277 Yes. There is a button 'reset to default fields' to go back to the WooCommerce default fields. 279 There’s a lot of help available on the main plugin website. See: 280 281 🔗 [Plugin Features](https://www.themehigh.com/product/woocommerce-extra-product-options/?utm_source=wepo_free&utm_medium=readme&utm_campaign=wepo_upgrade_link) 282 🔗 [Help Docs](https://www.themehigh.com/docs/category/extra-product-option-for-woocommerce/?utm_source=wepo_free&utm_medium=readme&utm_campaign=help_docs) 283 🔗 [ThemeHigh Support](https://www.themehigh.com/docs/?utm_source=wepo_free&utm_medium=readme&utm_campaign=get_support) 284 285 = Is the plugin compatible with WooCommerce Checkout Blocks? = 286 Yes, the plugin is compatible with WooCommerce Checkout Blocks. Currently, a few field types are available in the block editor, and more will be added in future updates. 287 288 = Why are my checkout fields not appearing on the checkout page? = 289 Could you please confirm how your checkout page is configured? Is it using shortcodes or blocks? 290 291 * If the **checkout page is created using shortcode**, the fields should be added and updated in the Classic Checkout Fields section. 292 * If your **checkout is configured using WooCommerce Blocks**, the fields should be added and updated in the Blocks Checkout Fields section. 293 294 = Can I revert to WooCommerce default checkout fields later?= 295 Yes, the plugin provides a **Reset to Default Fields button**, allowing you to restore the original WooCommerce checkout fields anytime. 296 297 = Can I apply a price to the fields created using this plugin? = 298 No, the free version does not support the price feature. However, [the pro version](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/) enables price additions using six different pricing types, making advanced checkout customizations possible. 299 300 =Can I display custom checkout fields on the My Account page?= 301 In the free version, custom fields can only be displayed and edited on the Checkout page. With the pro version, fields can be shown and edited on: 302 303 * **Checkout Page** 304 * **My Account Page** 305 * **User Profile** (in the WordPress admin) 306 Additionally, values entered by users are saved for future use, reducing the need for re-entering information with each order. 307 308 =How can I modify the styling of fields created using this plugin? = 309 The plugin provides a feature: Class for modifying the styling properties of the fields. 310 **1. Define a class in the Additional CSS(Appearance >> Customize >> Additional CSS)**. 311 **2. Enter the name of the created class in the field Class of the Add/Edit pop-up. Save the changes** 312 **3. The style defined in the class will be applied to the default and custom fields for which this class is included.** 313 314 = How can I set the Select field to have no default selection?= 315 To display the select field without selecting the first option, follow these steps: 316 **1. Leave the first option blank (both Option Text and Option Value).** 317 **2. Provide a text in the placeholder field, if necessary(eg: Select an option)** 318 319 = Can I add custom validation rules beyond the predefined ones? = 320 The free version includes predefined validation rules for fields such as email, phone, etc. If you need custom validation, the pro version allows you to define your own validation rules using regular expressions. 321 322 = Can I repeat a field based on product count or cart quantity? = 323 No, the free version does not support this feature. However, with the pro version, you can configure fields to repeat dynamically based on: 324 325 * **The number of items in the cart** 326 * **The quantity of a specific product** 278 327 279 328 == Screenshots == … … 289 338 290 339 == Changelog == 340 = 2.1.3 = 341 * Improved the address fields functionality in the Checkout block. 342 * Added WooCommerce 9.7 compatibility. 343 291 344 = 2.1.2 = 292 345 * Added translation support for Checkout block.
Note: See TracChangeset
for help on using the changeset viewer.