diff --git a/assets/css/admin-fluentform.css b/assets/css/admin-fluentform.css index 452c415..5f5308d 100644 --- a/assets/css/admin-fluentform.css +++ b/assets/css/admin-fluentform.css @@ -1,6 +1,6 @@ -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head h5, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head p, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_body, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .mt-4 { +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head h5, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head p, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_body, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .mt-4 { display: none; } diff --git a/assets/css/admin-fluentform.min.css b/assets/css/admin-fluentform.min.css index 91ea8ec..5da38a7 100644 --- a/assets/css/admin-fluentform.min.css +++ b/assets/css/admin-fluentform.min.css @@ -1 +1 @@ -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_body,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head h5,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head p,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .mt-4{display:none} \ No newline at end of file +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_body,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head h5,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head p,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .mt-4{display:none} \ No newline at end of file diff --git a/assets/css/admin-forminator.css b/assets/css/admin-forminator.css index c3af29b..9c4607c 100644 --- a/assets/css/admin-forminator.css +++ b/assets/css/admin-forminator.css @@ -1,6 +1,6 @@ -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-settings-label, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-description, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-form-field, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-form-field:last-child { +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-settings-label, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-description, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-form-field, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-form-field:last-child { display: none; } diff --git a/assets/css/admin-forminator.min.css b/assets/css/admin-forminator.min.css index 83cc4c5..3a29db7 100644 --- a/assets/css/admin-forminator.min.css +++ b/assets/css/admin-forminator.min.css @@ -1 +1 @@ -body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-form-field:last-child,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-description,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-form-field,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-settings-label{display:none} \ No newline at end of file +body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-form-field:last-child,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-description,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-form-field,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-settings-label{display:none} \ No newline at end of file diff --git a/assets/css/admin-kadence-advanced.css b/assets/css/admin-kadence-advanced.css index d9ef861..bde51ca 100644 --- a/assets/css/admin-kadence-advanced.css +++ b/assets/css/admin-kadence-advanced.css @@ -1,10 +1,10 @@ -.hcaptcha-notice label { +.procaptcha-notice label { display: inline-block; font-weight: 500; margin-bottom: 8px; } -.hcaptcha-notice p { +.procaptcha-notice p { background: #edf2f7; padding: 8px; } \ No newline at end of file diff --git a/assets/css/admin-kadence-advanced.min.css b/assets/css/admin-kadence-advanced.min.css index 9286d6b..f28013c 100644 --- a/assets/css/admin-kadence-advanced.min.css +++ b/assets/css/admin-kadence-advanced.min.css @@ -1 +1 @@ -.hcaptcha-notice label{display:inline-block;font-weight:500;margin-bottom:8px}.hcaptcha-notice p{background:#edf2f7;padding:8px} \ No newline at end of file +.procaptcha-notice label{display:inline-block;font-weight:500;margin-bottom:8px}.procaptcha-notice p{background:#edf2f7;padding:8px} \ No newline at end of file diff --git a/assets/css/general.css b/assets/css/general.css index d632a75..a3165c6 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -1,131 +1,131 @@ -#hcaptcha-message, +#procaptcha-message, #setting-error-settings_updated { max-width: 760px; box-sizing: border-box; } -#hcaptcha-options table tbody { +#procaptcha-options table tbody { background: #fff; } -#hcaptcha-options table tbody tr { +#procaptcha-options table tbody tr { display: grid; align-self: start; } -#hcaptcha-options table tbody tr th { +#procaptcha-options table tbody tr th { color: #5c6f8a; } -#hcaptcha-options table tbody tr td { +#procaptcha-options table tbody tr td { padding: 0; margin: 0; position: relative; } /* Section Keys */ -.hcaptcha-section-keys + table { +.procaptcha-section-keys + table { max-width: 760px; } -.hcaptcha-section-keys + table tbody { +.procaptcha-section-keys + table tbody { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "site-key site-key secret-key secret-key" - "sample-hcaptcha sample-hcaptcha check-config reset-notifications"; + "sample-procaptcha sample-procaptcha check-config reset-notifications"; gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-keys + table tbody th { +.procaptcha-section-keys + table tbody th { width: auto; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-site-key { +.procaptcha-section-keys + table tbody tr.procaptcha-general-site-key { grid-area: site-key; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-secret-key { +.procaptcha-section-keys + table tbody tr.procaptcha-general-secret-key { grid-area: secret-key; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-sample-hcaptcha { - grid-area: sample-hcaptcha; +.procaptcha-section-keys + table tbody tr.procaptcha-general-sample-procaptcha { + grid-area: sample-procaptcha; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-check-config { +.procaptcha-section-keys + table tbody tr.procaptcha-general-check-config { grid-area: check-config; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-reset-notifications { +.procaptcha-section-keys + table tbody tr.procaptcha-reset-notifications { grid-area: reset-notifications; } -.hcaptcha-section-keys + table tbody tr th { +.procaptcha-section-keys + table tbody tr th { padding: 0 0 10px 0; } -.hcaptcha-section-keys + table tbody tr td input { +.procaptcha-section-keys + table tbody tr td input { width: 100%; } /* Section Appearance */ -.hcaptcha-section-appearance + table { +.procaptcha-section-appearance + table { max-width: 760px; } -.hcaptcha-section-appearance + table tbody { +.procaptcha-section-appearance + table tbody { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-appearance + table tbody tr th { +.procaptcha-section-appearance + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-appearance + table tbody tr td select { +.procaptcha-section-appearance + table tbody tr td select { width: 100%; } /* Section Custom */ -.hcaptcha-section-custom + table { +.procaptcha-section-custom + table { max-width: 760px; } -.hcaptcha-section-custom + table tbody { +.procaptcha-section-custom + table tbody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-custom + table tbody tr th { +.procaptcha-section-custom + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-custom + table tbody tr td { +.procaptcha-section-custom + table tbody tr td { width: max-content; } -.hcaptcha-section-custom + table tbody tr.hcaptcha-general-config-params td { +.procaptcha-section-custom + table tbody tr.procaptcha-general-config-params td { width: auto; } -.hcaptcha-section-custom + table tbody tr td textarea { +.procaptcha-section-custom + table tbody tr td textarea { width: 100%; } /* Section Other */ -.hcaptcha-section-other + table { +.procaptcha-section-other + table { max-width: 760px; } -.hcaptcha-section-other + table tbody { +.procaptcha-section-other + table tbody { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-areas: @@ -138,85 +138,85 @@ padding: 15px 20px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-off-when-logged-in { +.procaptcha-section-other + table tbody tr.procaptcha-general-off-when-logged-in { grid-area: logged; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-recaptcha-compat-off { +.procaptcha-section-other + table tbody tr.procaptcha-general-recaptcha-compat-off { grid-area: recaptcha; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit { +.procaptcha-section-other + table tbody tr.procaptcha-general-login-limit { grid-area: login-limit; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval { +.procaptcha-section-other + table tbody tr.procaptcha-general-login-interval { grid-area: login-interval; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips { +.procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips { grid-area: whitelisted; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general--network-wide { +.procaptcha-section-other + table tbody tr.procaptcha-general--network-wide { grid-area: network; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay { +.procaptcha-section-other + table tbody tr.procaptcha-general-delay { grid-area: delay; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr th { +.procaptcha-section-other + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-recaptcha-compat-off th, -.hcaptcha-section-other + table tbody tr.hcaptcha-general--network-wide th { +.procaptcha-section-other + table tbody tr.procaptcha-general-recaptcha-compat-off th, +.procaptcha-section-other + table tbody tr.procaptcha-general--network-wide th { padding: 0; } -.hcaptcha-section-other + table tbody tr td { +.procaptcha-section-other + table tbody tr td { width: max-content; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay td { +.procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips td, +.procaptcha-section-other + table tbody tr.procaptcha-general-login-limit td, +.procaptcha-section-other + table tbody tr.procaptcha-general-login-interval td, +.procaptcha-section-other + table tbody tr.procaptcha-general-delay td { width: auto; } -.hcaptcha-section-other + table tbody tr td textarea, -.hcaptcha-section-other + table tbody tr td input { +.procaptcha-section-other + table tbody tr td textarea, +.procaptcha-section-other + table tbody tr td input { width: 100%; } @media (max-width: 600px) { - .hcaptcha-general table tbody tr td { + .procaptcha-general table tbody tr td { width: auto; } - .hcaptcha-section-keys + table tbody { + .procaptcha-section-keys + table tbody { grid-template-areas: unset; } - .hcaptcha-section-keys + table tbody tr { + .procaptcha-section-keys + table tbody tr { grid-area: unset !important; } - .hcaptcha-section-other + table tbody { + .procaptcha-section-other + table tbody { grid-template-areas: unset; } - .hcaptcha-section-other + table tbody tr { + .procaptcha-section-other + table tbody tr { grid-area: unset !important; } - .hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td { + .procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips td { width: auto; } } diff --git a/assets/css/general.min.css b/assets/css/general.min.css index efd673c..737634f 100644 --- a/assets/css/general.min.css +++ b/assets/css/general.min.css @@ -1 +1 @@ -#hcaptcha-message,#setting-error-settings_updated{box-sizing:border-box;max-width:760px}#hcaptcha-options table tbody{background:#fff}#hcaptcha-options table tbody tr{align-self:start;display:grid}#hcaptcha-options table tbody tr th{color:#5c6f8a}#hcaptcha-options table tbody tr td{margin:0;padding:0;position:relative}.hcaptcha-section-keys+table{max-width:760px}.hcaptcha-section-keys+table tbody{display:grid;gap:10px 20px;grid-template-areas:"site-key site-key secret-key secret-key" "sample-hcaptcha sample-hcaptcha check-config reset-notifications";grid-template-columns:repeat(4,1fr);padding:15px 20px}.hcaptcha-section-keys+table tbody th{width:auto}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-site-key{grid-area:site-key}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-secret-key{grid-area:secret-key}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-sample-hcaptcha{grid-area:sample-hcaptcha}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-check-config{grid-area:check-config}.hcaptcha-section-keys+table tbody tr.hcaptcha-reset-notifications{grid-area:reset-notifications}.hcaptcha-section-keys+table tbody tr th{padding:0 0 10px}.hcaptcha-section-keys+table tbody tr td input{width:100%}.hcaptcha-section-appearance+table{max-width:760px}.hcaptcha-section-appearance+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,1fr);padding:15px 20px}.hcaptcha-section-appearance+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-appearance+table tbody tr td select{width:100%}.hcaptcha-section-custom+table{max-width:760px}.hcaptcha-section-custom+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(2,1fr);padding:15px 20px}.hcaptcha-section-custom+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-custom+table tbody tr td{width:max-content}.hcaptcha-section-custom+table tbody tr.hcaptcha-general-config-params td{width:auto}.hcaptcha-section-custom+table tbody tr td textarea{width:100%}.hcaptcha-section-other+table{max-width:760px}.hcaptcha-section-other+table tbody{display:grid;gap:0 20px;grid-template-areas:"logged whitelisted" "recaptcha whitelisted" "network whitelisted" "login-limit login-interval" "delay .";grid-template-columns:repeat(2,1fr);padding:15px 20px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-off-when-logged-in{grid-area:logged}.hcaptcha-section-other+table tbody tr.hcaptcha-general-recaptcha-compat-off{grid-area:recaptcha}.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-limit{grid-area:login-limit;padding-top:15px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-interval{grid-area:login-interval;padding-top:15px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips{grid-area:whitelisted}.hcaptcha-section-other+table tbody tr.hcaptcha-general--network-wide{grid-area:network}.hcaptcha-section-other+table tbody tr.hcaptcha-general-delay{grid-area:delay;padding-top:15px}.hcaptcha-section-other+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-other+table tbody tr.hcaptcha-general--network-wide th,.hcaptcha-section-other+table tbody tr.hcaptcha-general-recaptcha-compat-off th{padding:0}.hcaptcha-section-other+table tbody tr td{width:max-content}.hcaptcha-section-other+table tbody tr.hcaptcha-general-delay td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-interval td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-limit td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips td{width:auto}.hcaptcha-section-other+table tbody tr td input,.hcaptcha-section-other+table tbody tr td textarea{width:100%}@media (max-width:600px){.hcaptcha-general table tbody tr td{width:auto}.hcaptcha-section-keys+table tbody{grid-template-areas:unset}.hcaptcha-section-keys+table tbody tr{grid-area:unset!important}.hcaptcha-section-other+table tbody{grid-template-areas:unset}.hcaptcha-section-other+table tbody tr{grid-area:unset!important}.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips td{width:auto}} \ No newline at end of file +#procaptcha-message,#setting-error-settings_updated{box-sizing:border-box;max-width:760px}#procaptcha-options table tbody{background:#fff}#procaptcha-options table tbody tr{align-self:start;display:grid}#procaptcha-options table tbody tr th{color:#5c6f8a}#procaptcha-options table tbody tr td{margin:0;padding:0;position:relative}.procaptcha-section-keys+table{max-width:760px}.procaptcha-section-keys+table tbody{display:grid;gap:10px 20px;grid-template-areas:"site-key site-key secret-key secret-key" "sample-procaptcha sample-procaptcha check-config reset-notifications";grid-template-columns:repeat(4,1fr);padding:15px 20px}.procaptcha-section-keys+table tbody th{width:auto}.procaptcha-section-keys+table tbody tr.procaptcha-general-site-key{grid-area:site-key}.procaptcha-section-keys+table tbody tr.procaptcha-general-secret-key{grid-area:secret-key}.procaptcha-section-keys+table tbody tr.procaptcha-general-sample-procaptcha{grid-area:sample-procaptcha}.procaptcha-section-keys+table tbody tr.procaptcha-general-check-config{grid-area:check-config}.procaptcha-section-keys+table tbody tr.procaptcha-reset-notifications{grid-area:reset-notifications}.procaptcha-section-keys+table tbody tr th{padding:0 0 10px}.procaptcha-section-keys+table tbody tr td input{width:100%}.procaptcha-section-appearance+table{max-width:760px}.procaptcha-section-appearance+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,1fr);padding:15px 20px}.procaptcha-section-appearance+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-appearance+table tbody tr td select{width:100%}.procaptcha-section-custom+table{max-width:760px}.procaptcha-section-custom+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(2,1fr);padding:15px 20px}.procaptcha-section-custom+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-custom+table tbody tr td{width:max-content}.procaptcha-section-custom+table tbody tr.procaptcha-general-config-params td{width:auto}.procaptcha-section-custom+table tbody tr td textarea{width:100%}.procaptcha-section-other+table{max-width:760px}.procaptcha-section-other+table tbody{display:grid;gap:0 20px;grid-template-areas:"logged whitelisted" "recaptcha whitelisted" "network whitelisted" "login-limit login-interval" "delay .";grid-template-columns:repeat(2,1fr);padding:15px 20px}.procaptcha-section-other+table tbody tr.procaptcha-general-off-when-logged-in{grid-area:logged}.procaptcha-section-other+table tbody tr.procaptcha-general-recaptcha-compat-off{grid-area:recaptcha}.procaptcha-section-other+table tbody tr.procaptcha-general-login-limit{grid-area:login-limit;padding-top:15px}.procaptcha-section-other+table tbody tr.procaptcha-general-login-interval{grid-area:login-interval;padding-top:15px}.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips{grid-area:whitelisted}.procaptcha-section-other+table tbody tr.procaptcha-general--network-wide{grid-area:network}.procaptcha-section-other+table tbody tr.procaptcha-general-delay{grid-area:delay;padding-top:15px}.procaptcha-section-other+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-other+table tbody tr.procaptcha-general--network-wide th,.procaptcha-section-other+table tbody tr.procaptcha-general-recaptcha-compat-off th{padding:0}.procaptcha-section-other+table tbody tr td{width:max-content}.procaptcha-section-other+table tbody tr.procaptcha-general-delay td,.procaptcha-section-other+table tbody tr.procaptcha-general-login-interval td,.procaptcha-section-other+table tbody tr.procaptcha-general-login-limit td,.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips td{width:auto}.procaptcha-section-other+table tbody tr td input,.procaptcha-section-other+table tbody tr td textarea{width:100%}@media (max-width:600px){.procaptcha-general table tbody tr td{width:auto}.procaptcha-section-keys+table tbody{grid-template-areas:unset}.procaptcha-section-keys+table tbody tr{grid-area:unset!important}.procaptcha-section-other+table tbody{grid-template-areas:unset}.procaptcha-section-other+table tbody tr{grid-area:unset!important}.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips td{width:auto}} \ No newline at end of file diff --git a/assets/css/integrations.css b/assets/css/integrations.css index 945e8ed..38ec190 100644 --- a/assets/css/integrations.css +++ b/assets/css/integrations.css @@ -1,16 +1,16 @@ -.hcaptcha-integrations table tbody { +.procaptcha-integrations table tbody { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 10px 20px; } -.hcaptcha-integrations table tr { +.procaptcha-integrations table tr { position: relative; background: #fff; padding: 10px 20px; } -.hcaptcha-integrations table tr:before { +.procaptcha-integrations table tr:before { visibility: hidden; position: absolute; content: ''; @@ -23,14 +23,14 @@ transition: all 1.5s; } -.hcaptcha-integrations table tr.on:before, -.hcaptcha-integrations table tr.off:before { +.procaptcha-integrations table tr.on:before, +.procaptcha-integrations table tr.off:before { visibility: visible; opacity: 0.7; transition: all 1.5s; } -.hcaptcha-integrations table tr:after { +.procaptcha-integrations table tr:after { visibility: hidden; position: absolute; content: ''; @@ -46,8 +46,8 @@ background-image: url( '../images/spinner-white.svg' ); } -.hcaptcha-integrations table tr.on:after, -.hcaptcha-integrations table tr.off:after { +.procaptcha-integrations table tr.on:after, +.procaptcha-integrations table tr.off:after { visibility: visible; opacity: 1; transition: all 1.5s; @@ -56,15 +56,15 @@ background-size: auto 80%; } -.hcaptcha-integrations table tr.on:after { +.procaptcha-integrations table tr.on:after { background-image: url( '../images/spinner-green.svg' ); } -.hcaptcha-integrations table tr.off:after { +.procaptcha-integrations table tr.off:after { background-image: url( '../images/spinner-red.svg' ); } -.hcaptcha-integrations table tr th { +.procaptcha-integrations table tr th { font-size: 16px; height: 28px; padding: 5px 0 0; @@ -76,16 +76,16 @@ width: unset; } -.hcaptcha-integrations-logo { +.procaptcha-integrations-logo { position: relative; } -.hcaptcha-integrations table tr th .hcaptcha-integrations-logo { +.procaptcha-integrations table tr th .procaptcha-integrations-logo { height: 28px; cursor: pointer; } -.hcaptcha-integrations table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations table tr th .procaptcha-integrations-logo:hover::before { content: ''; position: absolute; top: 0; @@ -94,44 +94,44 @@ left: -14px; } -.hcaptcha-integrations > table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations > table tr th .procaptcha-integrations-logo:hover::before { background-color: #d63638; } -.hcaptcha-integrations > table ~ table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations > table ~ table tr th .procaptcha-integrations-logo:hover::before { background-color: #00a32a; } -.hcaptcha-integrations table tr th img { +.procaptcha-integrations table tr th img { max-width: 100%; max-height: 28px; } -.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo { +.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo { cursor: unset; } -.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo:hover::before { display: none; } -.hcaptcha-integrations table tr td { +.procaptcha-integrations table tr td { padding: 0; margin: 0; } -.hcaptcha-disabled-section { +.procaptcha-disabled-section { margin: 20px 0; } @media (max-width: 1279px) { - .hcaptcha-integrations table tbody { + .procaptcha-integrations table tbody { grid-template-columns: repeat(3, minmax(100px, 1fr)); } } @media (max-width: 1023px) { - .hcaptcha-integrations table tbody { + .procaptcha-integrations table tbody { grid-template-columns: repeat(2, minmax(100px, 1fr)); } } diff --git a/assets/css/integrations.min.css b/assets/css/integrations.min.css index 2c3f42b..0c3569c 100644 --- a/assets/css/integrations.min.css +++ b/assets/css/integrations.min.css @@ -1 +1 @@ -.hcaptcha-integrations table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,minmax(100px,1fr))}.hcaptcha-integrations table tr{background:#fff;padding:10px 20px;position:relative}.hcaptcha-integrations table tr:before{background-color:#f0f0f0;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.hcaptcha-integrations table tr.off:before,.hcaptcha-integrations table tr.on:before{opacity:.7;transition:all 1.5s;visibility:visible}.hcaptcha-integrations table tr:after{background-image:url(../images/spinner-white.svg);background-position:50%;background-repeat:no-repeat;background-size:auto 80%;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.hcaptcha-integrations table tr.off:after,.hcaptcha-integrations table tr.on:after{background-position:50%;background-repeat:no-repeat;background-size:auto 80%;opacity:1;transition:all 1.5s;visibility:visible}.hcaptcha-integrations table tr.on:after{background-image:url(../images/spinner-green.svg)}.hcaptcha-integrations table tr.off:after{background-image:url(../images/spinner-red.svg)}.hcaptcha-integrations table tr th{align-items:center;display:flex;flex-wrap:wrap;font-size:16px;height:28px;justify-content:space-between;margin-bottom:20px;padding:5px 0 0;width:unset}.hcaptcha-integrations-logo{position:relative}.hcaptcha-integrations table tr th .hcaptcha-integrations-logo{cursor:pointer;height:28px}.hcaptcha-integrations table tr th .hcaptcha-integrations-logo:hover:before{bottom:0;content:"";left:-14px;position:absolute;top:0;width:4px}.hcaptcha-integrations>table tr th .hcaptcha-integrations-logo:hover:before{background-color:#d63638}.hcaptcha-integrations>table~table tr th .hcaptcha-integrations-logo:hover:before{background-color:#00a32a}.hcaptcha-integrations table tr th img{max-height:28px;max-width:100%}.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo{cursor:unset}.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo:hover:before{display:none}.hcaptcha-integrations table tr td{margin:0;padding:0}.hcaptcha-disabled-section{margin:20px 0}@media (max-width:1279px){.hcaptcha-integrations table tbody{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media (max-width:1023px){.hcaptcha-integrations table tbody{grid-template-columns:repeat(2,minmax(100px,1fr))}} \ No newline at end of file +.procaptcha-integrations table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,minmax(100px,1fr))}.procaptcha-integrations table tr{background:#fff;padding:10px 20px;position:relative}.procaptcha-integrations table tr:before{background-color:#f0f0f0;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.procaptcha-integrations table tr.off:before,.procaptcha-integrations table tr.on:before{opacity:.7;transition:all 1.5s;visibility:visible}.procaptcha-integrations table tr:after{background-image:url(../images/spinner-white.svg);background-position:50%;background-repeat:no-repeat;background-size:auto 80%;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.procaptcha-integrations table tr.off:after,.procaptcha-integrations table tr.on:after{background-position:50%;background-repeat:no-repeat;background-size:auto 80%;opacity:1;transition:all 1.5s;visibility:visible}.procaptcha-integrations table tr.on:after{background-image:url(../images/spinner-green.svg)}.procaptcha-integrations table tr.off:after{background-image:url(../images/spinner-red.svg)}.procaptcha-integrations table tr th{align-items:center;display:flex;flex-wrap:wrap;font-size:16px;height:28px;justify-content:space-between;margin-bottom:20px;padding:5px 0 0;width:unset}.procaptcha-integrations-logo{position:relative}.procaptcha-integrations table tr th .procaptcha-integrations-logo{cursor:pointer;height:28px}.procaptcha-integrations table tr th .procaptcha-integrations-logo:hover:before{bottom:0;content:"";left:-14px;position:absolute;top:0;width:4px}.procaptcha-integrations>table tr th .procaptcha-integrations-logo:hover:before{background-color:#d63638}.procaptcha-integrations>table~table tr th .procaptcha-integrations-logo:hover:before{background-color:#00a32a}.procaptcha-integrations table tr th img{max-height:28px;max-width:100%}.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo{cursor:unset}.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo:hover:before{display:none}.procaptcha-integrations table tr td{margin:0;padding:0}.procaptcha-disabled-section{margin:20px 0}@media (max-width:1279px){.procaptcha-integrations table tbody{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media (max-width:1023px){.procaptcha-integrations table tbody{grid-template-columns:repeat(2,minmax(100px,1fr))}} \ No newline at end of file diff --git a/assets/css/notifications.css b/assets/css/notifications.css index b65832f..389a3b5 100644 --- a/assets/css/notifications.css +++ b/assets/css/notifications.css @@ -1,4 +1,4 @@ -#hcaptcha-notifications { +#procaptcha-notifications { margin: 5px 0 15px; background: #fff; padding: 15px 20px; @@ -6,7 +6,7 @@ box-sizing: border-box; } -#hcaptcha-notifications-header { +#procaptcha-notifications-header { display: flex; margin-bottom: 10px; padding-bottom: 10px; @@ -19,7 +19,7 @@ column-gap: 3px; } -#hcaptcha-notifications-header::before { +#procaptcha-notifications-header::before { content: ''; background-image: url('../images/notification-bell.svg'); background-size: cover; @@ -28,7 +28,7 @@ height: 30px; } -#hcaptcha-notifications-footer { +#procaptcha-notifications-footer { display: flex; justify-content: space-between; margin-top: 10px; @@ -36,32 +36,32 @@ border-top: 1px solid #c3c4c7; } -#hcaptcha-notifications .hcaptcha-notification { +#procaptcha-notifications .procaptcha-notification { margin: 0; } -.hcaptcha-notification .hcaptcha-notification-title { +.procaptcha-notification .procaptcha-notification-title { margin: 7px 0; padding: 2px; line-height: 1.3; font-weight: 600; } -.hcaptcha-notification { +.procaptcha-notification { display: none; } -#hcaptcha-notifications-header + .hcaptcha-notification { +#procaptcha-notifications-header + .procaptcha-notification { display: block; } -#hcaptcha-navigation { +#procaptcha-navigation { display: flex; justify-content: flex-end; column-gap: 3px; } -#hcaptcha-navigation a { +#procaptcha-navigation a { width: 30px; height: 30px; border: 1px solid #2271b1; @@ -74,22 +74,22 @@ box-sizing: border-box; } -#hcaptcha-navigation a.disabled { +#procaptcha-navigation a.disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; cursor: default; } -#hcaptcha-navigation a.prev::after, -#hcaptcha-navigation a.next::after { +#procaptcha-navigation a.prev::after, +#procaptcha-navigation a.next::after { font-size: 12px; } -#hcaptcha-navigation a.prev::after { +#procaptcha-navigation a.prev::after { content: '<' } -#hcaptcha-navigation a.next::after { +#procaptcha-navigation a.next::after { content: '>'; } diff --git a/assets/css/notifications.min.css b/assets/css/notifications.min.css index 6135c9a..fc10007 100644 --- a/assets/css/notifications.min.css +++ b/assets/css/notifications.min.css @@ -1 +1 @@ -#hcaptcha-notifications{background:#fff;box-sizing:border-box;margin:5px 0 15px;max-width:760px;padding:15px 20px}#hcaptcha-notifications-header{align-items:center;border-bottom:1px solid #c3c4c7;column-gap:3px;display:flex;font-size:14px;font-weight:600;justify-content:flex-start;line-height:1.3;margin-bottom:10px;padding-bottom:10px}#hcaptcha-notifications-header:before{background-image:url(../images/notification-bell.svg);background-size:cover;content:"";height:30px;position:relative;width:30px}#hcaptcha-notifications-footer{border-top:1px solid #c3c4c7;display:flex;justify-content:space-between;margin-top:10px;padding-top:10px}#hcaptcha-notifications .hcaptcha-notification{margin:0}.hcaptcha-notification .hcaptcha-notification-title{font-weight:600;line-height:1.3;margin:7px 0;padding:2px}.hcaptcha-notification{display:none}#hcaptcha-notifications-header+.hcaptcha-notification{display:block}#hcaptcha-navigation{column-gap:3px;display:flex;justify-content:flex-end}#hcaptcha-navigation a{background:#f6f7f7;border:1px solid #2271b1;border-radius:3px;box-sizing:border-box;cursor:pointer;font-size:16px;height:30px;line-height:25px;text-align:center;width:30px}#hcaptcha-navigation a.disabled{background:#f6f7f7;border-color:#dcdcde;color:#a7aaad;cursor:default}#hcaptcha-navigation a.next:after,#hcaptcha-navigation a.prev:after{font-size:12px}#hcaptcha-navigation a.prev:after{content:"<"}#hcaptcha-navigation a.next:after{content:">"} \ No newline at end of file +#procaptcha-notifications{background:#fff;box-sizing:border-box;margin:5px 0 15px;max-width:760px;padding:15px 20px}#procaptcha-notifications-header{align-items:center;border-bottom:1px solid #c3c4c7;column-gap:3px;display:flex;font-size:14px;font-weight:600;justify-content:flex-start;line-height:1.3;margin-bottom:10px;padding-bottom:10px}#procaptcha-notifications-header:before{background-image:url(../images/notification-bell.svg);background-size:cover;content:"";height:30px;position:relative;width:30px}#procaptcha-notifications-footer{border-top:1px solid #c3c4c7;display:flex;justify-content:space-between;margin-top:10px;padding-top:10px}#procaptcha-notifications .procaptcha-notification{margin:0}.procaptcha-notification .procaptcha-notification-title{font-weight:600;line-height:1.3;margin:7px 0;padding:2px}.procaptcha-notification{display:none}#procaptcha-notifications-header+.procaptcha-notification{display:block}#procaptcha-navigation{column-gap:3px;display:flex;justify-content:flex-end}#procaptcha-navigation a{background:#f6f7f7;border:1px solid #2271b1;border-radius:3px;box-sizing:border-box;cursor:pointer;font-size:16px;height:30px;line-height:25px;text-align:center;width:30px}#procaptcha-navigation a.disabled{background:#f6f7f7;border-color:#dcdcde;color:#a7aaad;cursor:default}#procaptcha-navigation a.next:after,#procaptcha-navigation a.prev:after{font-size:12px}#procaptcha-navigation a.prev:after{content:"<"}#procaptcha-navigation a.next:after{content:">"} \ No newline at end of file diff --git a/assets/css/settings-base.css b/assets/css/settings-base.css index 0c4f5e5..3e99f98 100644 --- a/assets/css/settings-base.css +++ b/assets/css/settings-base.css @@ -1,28 +1,28 @@ -body.settings_page_hcaptcha { +body.settings_page_procaptcha { background: #f0f2f5; color: #5c6f8a; } -.wrap h1.hcaptcha-settings-header { +.wrap h1.procaptcha-settings-header { font-size: 34px; font-weight: bold; display: flex; align-items: center; } -.hcaptcha-logo { +.procaptcha-logo { height: 64px; margin: 10px 5px 10px 0; } -.hcaptcha-settings-tabs { +.procaptcha-settings-tabs { line-height: 4.5em; background: #fff; margin: 10px -20px 0 -20px; padding: 0 20px; } -.hcaptcha-settings-tab { +.procaptcha-settings-tab { display: inline-block; font-size: 1.1em; text-decoration: none; @@ -31,37 +31,37 @@ body.settings_page_hcaptcha { border-bottom: 2px solid transparent; } -.hcaptcha-settings-tab:hover { +.procaptcha-settings-tab:hover { color: #666; border-bottom-color: #025176 !important; border-bottom: 2px solid; } -.hcaptcha-settings-tab.active { +.procaptcha-settings-tab.active { border-bottom: 2px solid #0075ab; } -#hcaptcha-options h2 { +#procaptcha-options h2 { font-size: 1.5em; color: #5c6f8a; } -#hcaptcha-options h3 { +#procaptcha-options h3 { margin: 1.5em 0 1em; color: #5c6f8a; } -#hcaptcha-options .notice-dismiss:before { +#procaptcha-options .notice-dismiss:before { color: #5c6f8a; } -#hcaptcha-options table tbody tr td { +#procaptcha-options table tbody tr td { padding: 0; margin: 0; position: relative; } -#hcaptcha-options table tr td input[type="checkbox"] { +#procaptcha-options table tr td input[type="checkbox"] { display: inline; border: none; box-shadow: none; @@ -70,7 +70,7 @@ body.settings_page_hcaptcha { width: 0; } -#hcaptcha-options table tr td input[type="checkbox"]::before { +#procaptcha-options table tr td input[type="checkbox"]::before { background: no-repeat url('../images/checkbox-off.svg'); margin: 0; width: 2.4792rem; @@ -80,48 +80,48 @@ body.settings_page_hcaptcha { float: left; } -#hcaptcha-options table tr td input[type="checkbox"]:checked::before { +#procaptcha-options table tr td input[type="checkbox"]:checked::before { background: no-repeat url('../images/checkbox-on.svg'); } -#hcaptcha-options fieldset:disabled { +#procaptcha-options fieldset:disabled { color: #dadada; } -#hcaptcha-options .button-primary { +#procaptcha-options .button-primary { background-color: #026593; color: #ffffff; border-color: #026593; } -#hcaptcha-options .button-primary:hover { +#procaptcha-options .button-primary:hover { background-color: #025176; } -#hcaptcha-options .button-secondary { +#procaptcha-options .button-secondary { background-color: #ffffff; color: #026593; border-color: #026593; } -#hcaptcha-options .button-secondary:hover { +#procaptcha-options .button-secondary:hover { background-color: #cccccc; } -#hcaptcha-options a { +#procaptcha-options a { color: #0075ab; } -#hcaptcha-navigation a { +#procaptcha-navigation a { border-color: #0075ab; } -#hcaptcha-options a.hcaptcha-settings-tab { +#procaptcha-options a.procaptcha-settings-tab { color: #5c6f8a; } /* Helper */ -#hcaptcha-options .helper::before { +#procaptcha-options .helper::before { content: '?'; position: absolute; right: 0; @@ -135,12 +135,12 @@ body.settings_page_hcaptcha { border-radius: 1.2em; } -#hcaptcha-options fieldset + .helper::before { +#procaptcha-options fieldset + .helper::before { transform: translate(25px, -0.8em); top: 50%; } -#hcaptcha-options .helper .helper-content { +#procaptcha-options .helper .helper-content { display: none; position: absolute; top: 0; @@ -153,22 +153,22 @@ body.settings_page_hcaptcha { box-sizing: border-box; } -#hcaptcha-options fieldset + .helper .helper-content { +#procaptcha-options fieldset + .helper .helper-content { top: 50%; transform: translate(25px, 25px); width: calc(100% + 25px); } -#hcaptcha-options .helper:hover { +#procaptcha-options .helper:hover { cursor: help; } -#hcaptcha-options .helper:hover .helper-content { +#procaptcha-options .helper:hover .helper-content { display: block; z-index: 1; } -#hcaptcha-options .helper .helper-content::after { +#procaptcha-options .helper .helper-content::after { content: ''; border: solid 10px transparent; border-bottom-color: #5c6f8a; @@ -178,15 +178,15 @@ body.settings_page_hcaptcha { transform: translateY(-100%); } -#hcaptcha-options .helper .helper-content a { +#procaptcha-options .helper .helper-content a { color: #fff; } -#hcaptcha-message { +#procaptcha-message { z-index: 1; } -#hcaptcha-message p { +#procaptcha-message p { font-size: 13px; font-weight: 600; line-height: 1.5; @@ -194,24 +194,24 @@ body.settings_page_hcaptcha { } @media (max-width: 600px) { - #hcaptcha-options table tbody { + #procaptcha-options table tbody { grid-template-columns: 1fr; } - #hcaptcha-options table tbody tr { + #procaptcha-options table tbody tr { position: relative; } - #hcaptcha-options fieldset + .helper::before { + #procaptcha-options fieldset + .helper::before { transform: translate(0px, -0.7em); } - #hcaptcha-options fieldset + .helper .helper-content { + #procaptcha-options fieldset + .helper .helper-content { transform: translate(0, 25px); width: 100%; } - #hcaptcha-options .helper { + #procaptcha-options .helper { z-index: 1; } } diff --git a/assets/css/settings-base.min.css b/assets/css/settings-base.min.css index 09ded85..0841e4d 100644 --- a/assets/css/settings-base.min.css +++ b/assets/css/settings-base.min.css @@ -1 +1 @@ -body.settings_page_hcaptcha{background:#f0f2f5;color:#5c6f8a}.wrap h1.hcaptcha-settings-header{align-items:center;display:flex;font-size:34px;font-weight:700}.hcaptcha-logo{height:64px;margin:10px 5px 10px 0}.hcaptcha-settings-tabs{background:#fff;line-height:4.5em;margin:10px -20px 0;padding:0 20px}.hcaptcha-settings-tab{border-bottom:2px solid transparent;color:#646970;display:inline-block;font-size:1.1em;margin-right:30px;text-decoration:none}.hcaptcha-settings-tab:hover{border-bottom-color:#025176!important;border-bottom:2px solid;color:#666}.hcaptcha-settings-tab.active{border-bottom:2px solid #0075ab}#hcaptcha-options h2{color:#5c6f8a;font-size:1.5em}#hcaptcha-options h3{color:#5c6f8a;margin:1.5em 0 1em}#hcaptcha-options .notice-dismiss:before{color:#5c6f8a}#hcaptcha-options table tbody tr td{margin:0;padding:0;position:relative}#hcaptcha-options table tr td input[type=checkbox]{border:none;box-shadow:none;display:inline;margin:0 4px 0 0;min-width:0;width:0}#hcaptcha-options table tr td input[type=checkbox]:before{background:no-repeat url(../images/checkbox-off.svg);content:"";display:inline-block;float:left;height:1.3125rem;margin:0;width:2.4792rem}#hcaptcha-options table tr td input[type=checkbox]:checked:before{background:no-repeat url(../images/checkbox-on.svg)}#hcaptcha-options fieldset:disabled{color:#dadada}#hcaptcha-options .button-primary{background-color:#026593;border-color:#026593;color:#fff}#hcaptcha-options .button-primary:hover{background-color:#025176}#hcaptcha-options .button-secondary{background-color:#fff;border-color:#026593;color:#026593}#hcaptcha-options .button-secondary:hover{background-color:#ccc}#hcaptcha-options a{color:#0075ab}#hcaptcha-navigation a{border-color:#0075ab}#hcaptcha-options a.hcaptcha-settings-tab{color:#5c6f8a}#hcaptcha-options .helper:before{background:#5c6f8a;border-radius:1.2em;color:#fff;content:"?";height:1.2em;position:absolute;right:0;text-align:center;top:0;transform:translateY(-26px);width:1.2em}#hcaptcha-options fieldset+.helper:before{top:50%;transform:translate(25px,-.8em)}#hcaptcha-options .helper .helper-content{background:#5c6f8a;box-sizing:border-box;color:#f0f2f5;display:none;padding:.5em 1em;position:absolute;right:0;top:0;transform:translate(1px,10px);width:100%}#hcaptcha-options fieldset+.helper .helper-content{top:50%;transform:translate(25px,25px);width:calc(100% + 25px)}#hcaptcha-options .helper:hover{cursor:help}#hcaptcha-options .helper:hover .helper-content{display:block;z-index:1}#hcaptcha-options .helper .helper-content:after{border:10px solid transparent;border-bottom-color:#5c6f8a;content:"";position:absolute;right:0;top:0;transform:translateY(-100%)}#hcaptcha-options .helper .helper-content a{color:#fff}#hcaptcha-message{z-index:1}#hcaptcha-message p{font-size:13px;font-weight:600;line-height:1.5;margin:.5em 0}@media (max-width:600px){#hcaptcha-options table tbody{grid-template-columns:1fr}#hcaptcha-options table tbody tr{position:relative}#hcaptcha-options fieldset+.helper:before{transform:translateY(-.7em)}#hcaptcha-options fieldset+.helper .helper-content{transform:translateY(25px);width:100%}#hcaptcha-options .helper{z-index:1}} \ No newline at end of file +body.settings_page_procaptcha{background:#f0f2f5;color:#5c6f8a}.wrap h1.procaptcha-settings-header{align-items:center;display:flex;font-size:34px;font-weight:700}.procaptcha-logo{height:64px;margin:10px 5px 10px 0}.procaptcha-settings-tabs{background:#fff;line-height:4.5em;margin:10px -20px 0;padding:0 20px}.procaptcha-settings-tab{border-bottom:2px solid transparent;color:#646970;display:inline-block;font-size:1.1em;margin-right:30px;text-decoration:none}.procaptcha-settings-tab:hover{border-bottom-color:#025176!important;border-bottom:2px solid;color:#666}.procaptcha-settings-tab.active{border-bottom:2px solid #0075ab}#procaptcha-options h2{color:#5c6f8a;font-size:1.5em}#procaptcha-options h3{color:#5c6f8a;margin:1.5em 0 1em}#procaptcha-options .notice-dismiss:before{color:#5c6f8a}#procaptcha-options table tbody tr td{margin:0;padding:0;position:relative}#procaptcha-options table tr td input[type=checkbox]{border:none;box-shadow:none;display:inline;margin:0 4px 0 0;min-width:0;width:0}#procaptcha-options table tr td input[type=checkbox]:before{background:no-repeat url(../images/checkbox-off.svg);content:"";display:inline-block;float:left;height:1.3125rem;margin:0;width:2.4792rem}#procaptcha-options table tr td input[type=checkbox]:checked:before{background:no-repeat url(../images/checkbox-on.svg)}#procaptcha-options fieldset:disabled{color:#dadada}#procaptcha-options .button-primary{background-color:#026593;border-color:#026593;color:#fff}#procaptcha-options .button-primary:hover{background-color:#025176}#procaptcha-options .button-secondary{background-color:#fff;border-color:#026593;color:#026593}#procaptcha-options .button-secondary:hover{background-color:#ccc}#procaptcha-options a{color:#0075ab}#procaptcha-navigation a{border-color:#0075ab}#procaptcha-options a.procaptcha-settings-tab{color:#5c6f8a}#procaptcha-options .helper:before{background:#5c6f8a;border-radius:1.2em;color:#fff;content:"?";height:1.2em;position:absolute;right:0;text-align:center;top:0;transform:translateY(-26px);width:1.2em}#procaptcha-options fieldset+.helper:before{top:50%;transform:translate(25px,-.8em)}#procaptcha-options .helper .helper-content{background:#5c6f8a;box-sizing:border-box;color:#f0f2f5;display:none;padding:.5em 1em;position:absolute;right:0;top:0;transform:translate(1px,10px);width:100%}#procaptcha-options fieldset+.helper .helper-content{top:50%;transform:translate(25px,25px);width:calc(100% + 25px)}#procaptcha-options .helper:hover{cursor:help}#procaptcha-options .helper:hover .helper-content{display:block;z-index:1}#procaptcha-options .helper .helper-content:after{border:10px solid transparent;border-bottom-color:#5c6f8a;content:"";position:absolute;right:0;top:0;transform:translateY(-100%)}#procaptcha-options .helper .helper-content a{color:#fff}#procaptcha-message{z-index:1}#procaptcha-message p{font-size:13px;font-weight:600;line-height:1.5;margin:.5em 0}@media (max-width:600px){#procaptcha-options table tbody{grid-template-columns:1fr}#procaptcha-options table tbody tr{position:relative}#procaptcha-options fieldset+.helper:before{transform:translateY(-.7em)}#procaptcha-options fieldset+.helper .helper-content{transform:translateY(25px);width:100%}#procaptcha-options .helper{z-index:1}} \ No newline at end of file diff --git a/assets/css/system-info.css b/assets/css/system-info.css index e42a8e8..68c7cee 100644 --- a/assets/css/system-info.css +++ b/assets/css/system-info.css @@ -1,9 +1,9 @@ -#hcaptcha-system-info-wrap { +#procaptcha-system-info-wrap { position: relative; max-width: 1000px; } -#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text { +#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text { position: absolute; top: 10px; right: 26px; @@ -11,13 +11,13 @@ cursor: pointer; } -#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before { +#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before { width: 30px; height: 30px; font-size: 30px; } -#hcaptcha-options .helper { +#procaptcha-options .helper { position: absolute; width: 30px; height: 30px; @@ -26,11 +26,11 @@ z-index: 1; } -#hcaptcha-options .helper:hover { +#procaptcha-options .helper:hover { cursor: pointer; } -#hcaptcha-options .helper::before { +#procaptcha-options .helper::before { content: ''; top: 0; left: 0; @@ -38,7 +38,7 @@ background: transparent; } -#hcaptcha-options .helper:hover .helper-content { +#procaptcha-options .helper:hover .helper-content { display: block; z-index: 1; max-width: 300px; @@ -46,7 +46,7 @@ transform: translate(-6px, 38px); } -textarea#hcaptcha-system-info { +textarea#procaptcha-system-info { width: 100%; height: 450px; font-size: 12px; diff --git a/assets/css/system-info.min.css b/assets/css/system-info.min.css index 5eefedf..63b1ce0 100644 --- a/assets/css/system-info.min.css +++ b/assets/css/system-info.min.css @@ -1 +1 @@ -#hcaptcha-system-info-wrap{max-width:1000px;position:relative}#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text{cursor:pointer;opacity:.7;position:absolute;right:26px;top:10px}#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before{font-size:30px;height:30px;width:30px}#hcaptcha-options .helper{height:30px;position:absolute;right:26px;top:10px;width:30px;z-index:1}#hcaptcha-options .helper:hover{cursor:pointer}#hcaptcha-options .helper:before{background:transparent;content:"";left:0;top:0;transform:translate(0)}#hcaptcha-options .helper:hover .helper-content{display:block;max-width:300px;transform:translate(-6px,38px);width:max-content;z-index:1}textarea#hcaptcha-system-info{background:#fff;font-family:Consolas,Monaco,monospace;font-size:12px;height:450px;overflow:auto;padding:20px;white-space:pre;width:100%} \ No newline at end of file +#procaptcha-system-info-wrap{max-width:1000px;position:relative}#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text{cursor:pointer;opacity:.7;position:absolute;right:26px;top:10px}#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before{font-size:30px;height:30px;width:30px}#procaptcha-options .helper{height:30px;position:absolute;right:26px;top:10px;width:30px;z-index:1}#procaptcha-options .helper:hover{cursor:pointer}#procaptcha-options .helper:before{background:transparent;content:"";left:0;top:0;transform:translate(0)}#procaptcha-options .helper:hover .helper-content{display:block;max-width:300px;transform:translate(-6px,38px);width:max-content;z-index:1}textarea#procaptcha-system-info{background:#fff;font-family:Consolas,Monaco,monospace;font-size:12px;height:450px;overflow:auto;padding:20px;white-space:pre;width:100%} \ No newline at end of file diff --git a/assets/js/admin-elementor-pro.js b/assets/js/admin-elementor-pro.js index 0d1f7a4..47f3896 100644 --- a/assets/js/admin-elementor-pro.js +++ b/assets/js/admin-elementor-pro.js @@ -3,22 +3,22 @@ /** * @param config.setup_message * @param config.site_key - * @param config.hcaptcha_theme - * @param config.hcaptcha_size + * @param config.procaptcha_theme + * @param config.procaptcha_size * @param item.field_type * @param item.custom_id * @param item.css_classes */ -class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { +class PROCAPTCHAAdminElementorPro extends elementorModules.editor.utils.Module { /** - * Get hCaptcha form. + * Get procaptcha form. * * @param {Object} item * - * @return {string} hCaptcha form. + * @return {string} procaptcha form. */ - static getHCaptchaForm( item ) { + static getPROCAPTCHAForm( item ) { const config = elementorPro.config.forms[ item.field_type ]; if ( ! config.enabled ) { @@ -29,12 +29,12 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { ); } - let hCaptchaData = 'data-sitekey="' + config.site_key + '"'; - hCaptchaData += ' data-theme="' + config.hcaptcha_theme + '"'; - hCaptchaData += ' data-size="' + config.hcaptcha_size + '"'; - hCaptchaData += ' data-auto="false"'; + let pCAPTCHAData = 'data-sitekey="' + config.site_key + '"'; + pCAPTCHAData += ' data-theme="' + config.procaptcha_theme + '"'; + pCAPTCHAData += ' data-size="' + config.procaptcha_size + '"'; + pCAPTCHAData += ' data-auto="false"'; - return '
'; + return ''; } renderField( inputField, item ) { @@ -43,17 +43,17 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { item.custom_id + '">'; inputField += - '0&&(this.words[T]=~this.words[T]&67108863>>26-x),this._strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){r(typeof f=="number"&&f>=0);var x=f/26|0,T=f%26;return this._expand(x+1),p?this.words[x]=this.words[x]|1< =0);var p=f%26,x=(f-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0&&x++,this.length=Math.min(x,this.length),p!==0){var T=67108863^67108863>>>p< =67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p >>26,I&=67108863,this.words[C]=I}return E!==0&&(this.words[C]=E,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this._strip();var x;if(this.length>1)x=1;else{p&&(f=-f),r(f<=67108863,"Number is too big");var T=this.words[0]|0;x=T===f?0:T Io(eu(p,e.nByteLength));function y(p){const x=r>>zt;return p>x}function v(p){return y(p)?o(-p):p}const S=(p,x,T)=>Ha(p.slice(x,T));class _{constructor(x,T,E){this.r=x,this.s=T,this.recovery=E,this.assertValidity()}static fromCompact(x){const T=e.nByteLength;return x=qt("compactSignature",x,T*2),new _(S(x,0,T),S(x,T,2*T))}static fromDER(x){const{r:T,s:E}=Mo.toSig(qt("DER",x));return new _(T,E)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(x){return new _(this.r,this.s,x)}recoverPublicKey(x){const{r:T,s:E,recovery:C}=this,I=U(qt("msgHash",x));if(C==null||![0,1,2,3].includes(C))throw new Error("recovery id invalid");const k=C===2||C===3?T+e.n:T;if(k>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const g=C&1?"03":"02",R=u.fromHex(g+m(k)),q=l(k),X=o(-I*q),G=o(E*q),de=u.BASE.multiplyAndAddUnsafe(R,X,G);if(!de)throw new Error("point at infinify");return de.assertValidity(),de}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return Ql(this.toDERHex())}toDERHex(){return Mo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Ql(this.toCompactHex())}toCompactHex(){return m(this.r)+m(this.s)}}const b={isValidPrivateKey(p){try{return c(p),!0}catch{return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{const p=BT(e.n);return kz(e.randomBytes(p),e.n)},precompute(p=8,x=u.BASE){return x._setWindowSize(p),x.multiply(BigInt(3)),x}};function w(p,x=!0){return u.fromPrivateKey(p).toRawBytes(x)}function A(p){const x=p instanceof Uint8Array,T=typeof p=="string",E=(x||T)&&p.length;return x?E===i||E===s:T?E===2*i||E===2*s:p instanceof u}function O(p,x,T=!0){if(A(p))throw new Error("first arg must be private key");if(!A(x))throw new Error("second arg must be public key");return u.fromHex(x).multiply(c(p)).toRawBytes(T)}const M=e.bits2int||function(p){const x=Ha(p),T=p.length*8-e.nBitLength;return T>0?x>>BigInt(T):x},U=e.bits2int_modN||function(p){return o(M(p))},V=I1(e.nBitLength);function F(p){if(typeof p!="bigint")throw new Error("bigint expected");if(!(Ai<=p&&p=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function sa(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function qi(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r1||o(h,m)})})}function o(h,m){try{l(r[h](m))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof Qo?Promise.resolve(h.value.v).then(u,c):d(s[0][2],h)}function u(h){o("next",h)}function c(h){o("throw",h)}function d(h,m){h(m),s.shift(),s.length&&o(s[0][0],s[0][1])}}function iO(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof $o=="function"?$o(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(a){return new Promise(function(o,l){a=t[s](a),i(o,l,a.done,a.value)})}}function i(s,a,o,l){Promise.resolve(l).then(function(u){s({value:u,done:o})},a)}}const gn={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Hx={silent:{level:-1},fatal:{level:gn.fatal},error:{level:gn.error},warn:{level:gn.warn},log:{level:gn.log},info:{level:gn.info},success:{level:gn.success},fail:{level:gn.fail},ready:{level:gn.info},start:{level:gn.info},box:{level:gn.info},debug:{level:gn.debug},trace:{level:gn.trace},verbose:{level:gn.verbose}};function Ig(t){return t!==null&&typeof t=="object"}function Og(t,e,n=".",r){if(!Ig(e))return Og(t,{},n,r);const i=Object.assign({},e);for(const s in t){if(s==="__proto__"||s==="constructor")continue;const a=t[s];a!=null&&(r&&r(i,s,a,n)||(Array.isArray(a)&&Array.isArray(i[s])?i[s]=[...a,...i[s]]:Ig(a)&&Ig(i[s])?i[s]=Og(a,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=a))}return i}function sO(t){return(...e)=>e.reduce((n,r)=>Og(n,r,"",t),{})}const aO=sO();function oO(t){return Object.prototype.toString.call(t)==="[object Object]"}function lO(t){return!(!oO(t)||!t.message&&!t.args||t.stack)}let Mg=!1;const Fx=[];class Mn{constructor(e={}){const n=e.types||Hx;this.options=aO({...e,defaults:{...e.defaults},level:Lg(e.level,n),reporters:[...e.reporters||[]]},{types:Hx,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const i={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=Lg(e,this.options.types,this.options.level)}prompt(e,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,n)}create(e){const n=new Mn({...this.options,...e});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const n=this.options.reporters.indexOf(e);if(n>=0)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,n){e&&(e.__write||(e.__write=e.write),e.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){Mg=!0}resumeLogs(){Mg=!1;const e=Fx.splice(0);for(const n of e)n[0]._logFn(n[1],n[2])}mockTypes(e){const n=e||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(e,n){return(...r)=>{if(Mg){Fx.push([this,e,r,n]);return}return this._logFn(e,r,n)}}_logFn(e,n,r){if((e.level||0)>this.level)return!1;const i={date:new Date,args:[],...e,level:Lg(e.level,this.options.types)};!r&&n.length===1&&lO(n[0])?Object.assign(i,n[0]):i.args=[...n],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(`
+`)),i.args.push(`
+`+i.additional.join(`
+`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";const s=(o=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}o&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,ai[a]=s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){const{buffer:n,length:r,finished:i,destroyed:s,outputLen:a,pos:o}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=r,e.finished=i,e.destroyed=s,e.outputLen=a,e.buffer.set(n),e.pos=o,e}}const _f=BigInt(2**32-1),Hg=BigInt(32);function Jx(t,e=!1){return e?{h:Number(t&_f),l:Number(t>>Hg&_f)}:{h:Number(t>>Hg&_f)|0,l:Number(t&_f)|0}}function Yx(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;i{if(t<=0)return e;const n=`${e}`;return n.length(e?sl[t.charCodeAt(0)]:ly[t.charCodeAt(0)])+t.slice(1)),Nf=O2(t=>sl[t.charCodeAt(0)]+t.slice(1));function M2(t){return e=>e?t[e.charCodeAt(0)]+e.slice(1):""}const u9=M2(ly),L2=M2(sl);function c9(t,e=6){return t.length<=2+2*e?t.toString():`${t.substring(0,e)}…${t.slice(-e)}`}function uy(t){return Ae(Nt(t))}const d9=Object.freeze(Object.defineProperty({__proto__:null,BN:te,BN_BILLION:Cf,BN_EIGHT:uM,BN_FIVE:aM,BN_FOUR:sM,BN_HUNDRED:ey,BN_MAX_INTEGER:v2,BN_MILLION:uo,BN_NINE:cM,BN_ONE:Ss,BN_QUINTILL:y2,BN_SEVEN:lM,BN_SIX:oM,BN_SQRT_MAX_INTEGER:_2,BN_TEN:Qg,BN_THOUSAND:dM,BN_THREE:iM,BN_TWO:Ku,BN_ZERO:_n,POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG:i2,U8A_WRAP_ETHEREUM:Ef,U8A_WRAP_POSTFIX:tl,U8A_WRAP_PREFIX:el,_0n:no,_1000n:t6,_100n:e6,_10n:QR,_1Bn:cg,_1Mn:n6,_1Qn:r6,_1n:$s,_2n:qR,_2pow53n:Dw,_3n:ZR,_4n:GR,_5n:XR,_6n:KR,_7n:JR,_8n:YR,_9n:$R,_sqrt2pow53n:Uw,arrayChunk:Fg,arrayFilter:VO,arrayFlatten:bf,arrayRange:BO,arrayShuffle:HO,arrayUnzip:FO,arrayZip:jO,assert:a2,assertReturn:Gi,assertUnreachable:jg,bnFromHex:qo,bnMax:$g,bnMin:g2,bnSqrt:fM,bnToBn:bn,bnToHex:b2,bnToU8a:Pn,bufferToU8a:pM,calcSi:ry,compactAddLength:Kr,compactFromU8a:kf,compactFromU8aLim:ca,compactStripLength:nl,compactToU8a:Vt,detectPackage:s2,extractTime:Yu,findSi:ny,floatToU8a:E2,formatBalance:da,formatDate:CM,formatDecimal:ty,formatElapsed:TM,formatNumber:Pf,hasBigInt:vn,hasBuffer:Gg,hasCjs:o2,hasDirname:GO,hasEsm:XO,hasProcess:JO,hasWasm:KO,hexAddPrefix:Mw,hexFixLength:Lw,hexHasPrefix:Ow,hexStripPrefix:ku,hexToBigInt:Fw,hexToBn:qo,hexToNumber:zw,hexToString:Ww,hexToU8a:kn,identity:pa,isArray:PM,isAscii:iy,isBigInt:Es,isBn:rr,isBoolean:$u,isBuffer:Xg,isChildClass:P2,isClass:sy,isCodec:Xi,isCompact:ay,isError:IM,isFunction:Se,isHex:Oe,isInstanceOf:OM,isIp:UM,isJsonObject:BM,isNull:fa,isNumber:Be,isObject:qn,isObservable:HM,isPromise:FM,isRiscV:WM,isString:Ye,isTestChain:ZM,isToBigInt:Wg,isToBn:qg,isU8a:he,isUndefined:rt,isUtf8:N2,isWasm:XM,lazyMethod:Ln,lazyMethods:ha,logger:ir,loggerFormat:oy,memoize:il,nMax:zO,nMin:WO,nSqrt:ZO,nToBigInt:Zg,nToHex:rM,nToU8a:Yg,nextTick:nc,noop:Ki,numberToHex:R2,numberToU8a:n9,objectClear:I2,objectCopy:r9,objectEntries:i9,objectKeys:s9,objectProperties:ma,objectProperty:Af,objectSpread:ne,objectValues:a9,packageInfo:r2,promisify:o9,stringCamelCase:je,stringLowerFirst:u9,stringPascalCase:Nf,stringShorten:c9,stringToHex:uy,stringToU8a:Nt,stringUpperFirst:L2,stringify:Le,u8aCmp:l2,u8aConcat:ot,u8aConcatStrict:Zn,u8aEmpty:Kg,u8aEq:Gn,u8aFixLength:u2,u8aIsWrapped:Xu,u8aSorted:$O,u8aToBigInt:qd,u8aToBn:Cr,u8aToBuffer:QO,u8aToFloat:c2,u8aToHex:Ae,u8aToNumber:f2,u8aToString:di,u8aToU8a:K,u8aUnwrapBytes:h2,u8aWrapBytes:p2},Symbol.toStringTag,{value:"Module"})),f9=er.crypto;function D2(t){return f9.getRandomValues(t)}const Rf={getRandomValues:D2},h9={crypto:Rf};class p9{constructor(e){P(this,"__internal__bridge");P(this,"abort",()=>{throw new Error("abort")});P(this,"__wbindgen_is_undefined",e=>this.__internal__bridge.getObject(e)===void 0);P(this,"__wbindgen_throw",(e,n)=>{throw new Error(this.__internal__bridge.getString(e,n))});P(this,"__wbg_self_1b7a39e3a92c949c",()=>this.__internal__bridge.addObject(h9));P(this,"__wbg_require_604837428532a733",(e,n)=>{throw new Error(`Unable to require ${this.__internal__bridge.getString(e,n)}`)});P(this,"__wbg_crypto_968f1772287e2df0",e=>this.__internal__bridge.addObject(Rf));P(this,"__wbg_getRandomValues_a3d34b4fee3c2869",e=>this.__internal__bridge.addObject(Rf.getRandomValues));P(this,"__wbg_getRandomValues_f5e14ab7ac8e995d",(e,n,r)=>{Rf.getRandomValues(this.__internal__bridge.getU8a(n,r))});P(this,"__wbg_randomFillSync_d5bd2d655fdf256a",(e,n,r)=>{throw new Error("randomFillsync is not available")});P(this,"__wbindgen_object_drop_ref",e=>{this.__internal__bridge.takeObject(e)});this.__internal__bridge=e}}class m9{constructor(e){P(this,"__internal__createWasm");P(this,"__internal__heap");P(this,"__internal__wbg");P(this,"__internal__cachegetInt32");P(this,"__internal__cachegetUint8");P(this,"__internal__heapNext");P(this,"__internal__wasm");P(this,"__internal__wasmError");P(this,"__internal__wasmPromise");P(this,"__internal__type");this.__internal__createWasm=e,this.__internal__cachegetInt32=null,this.__internal__cachegetUint8=null,this.__internal__heap=new Array(32).fill(void 0).concat(void 0,null,!0,!1),this.__internal__heapNext=this.__internal__heap.length,this.__internal__type="none",this.__internal__wasm=null,this.__internal__wasmError=null,this.__internal__wasmPromise=null,this.__internal__wbg={...new p9(this)}}get error(){return this.__internal__wasmError}get type(){return this.__internal__type}get wasm(){return this.__internal__wasm}async init(e){(!this.__internal__wasmPromise||e)&&(this.__internal__wasmPromise=(e||this.__internal__createWasm)(this.__internal__wbg));const{error:n,type:r,wasm:i}=await this.__internal__wasmPromise;return this.__internal__type=r,this.__internal__wasm=i,this.__internal__wasmError=n,this.__internal__wasm}getObject(e){return this.__internal__heap[e]}dropObject(e){e<36||(this.__internal__heap[e]=this.__internal__heapNext,this.__internal__heapNext=e)}takeObject(e){const n=this.getObject(e);return this.dropObject(e),n}addObject(e){this.__internal__heapNext===this.__internal__heap.length&&this.__internal__heap.push(this.__internal__heap.length+1);const n=this.__internal__heapNext;return this.__internal__heapNext=this.__internal__heap[n],this.__internal__heap[n]=e,n}getInt32(){return(this.__internal__cachegetInt32===null||this.__internal__cachegetInt32.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetInt32=new Int32Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetInt32}getUint8(){return(this.__internal__cachegetUint8===null||this.__internal__cachegetUint8.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetUint8=new Uint8Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetUint8}getU8a(e,n){return this.getUint8().subarray(e/1,e/1+n)}getString(e,n){return di(this.getU8a(e,n))}allocU8a(e){const n=this.__internal__wasm.__wbindgen_malloc(e.length*1);return this.getUint8().set(e,n/1),[n,e.length]}allocString(e){return this.allocU8a(Nt(e))}resultU8a(){const e=this.getInt32()[2],n=this.getInt32()[8/4+1],r=this.getU8a(e,n).slice();return this.__internal__wasm.__wbindgen_free(e,n*1),r}resultString(){return di(this.resultU8a())}}function g9(t,e,n){return async r=>{const i={error:null,type:"none",wasm:null};try{if(e!=null&&e.length){if(typeof WebAssembly!="object"||typeof WebAssembly.instantiate!="function")throw new Error("WebAssembly is not available in your environment")}else throw new Error("No WebAssembly provided for initialization");const s=await WebAssembly.instantiate(e,{wbg:r});i.wasm=s.instance.exports,i.type="wasm"}catch(s){typeof n=="function"?(i.wasm=n(r),i.type="asm"):i.error=`FATAL: Unable to initialize @polkadot/wasm-${t}:: ${s.message}`}return i}}const U2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V2=new Array(256);for(let t=0,e=U2.length;t::Inherent","InherentOfflineReport",!1),Yi("VecDeque<","Vec<",!1),TL(),$2("Bounded",!0),$2("Weak",!1),IL(),RL(),OL("Box<"),NL(),Yi("String","Text"),Yi("Vec ${Le(e)} (typeof ${typeof e})`)}function LL(t){return new Set(Array.from(t).sort(fo))}function DL(t){return new Map(Array.from(t.entries()).sort(([e],[n])=>fo(e,n)))}function bi(t,e){return typeof e=="function"?e:t.createClassUnsafe(e)}function UL(t,e){const n=e.length,r=new Array(n);for(let i=0;ii-a&&(this.process(r,0),a=0);for(let d=a;dc.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;dt&e^~t&n,az=(t,e,n)=>t&e^t&n^e&n,oz=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Va=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ba=new Uint32Array(64);class TT extends kT{constructor(){super(64,32,8,!1),this.A=Va[0]|0,this.B=Va[1]|0,this.C=Va[2]|0,this.D=Va[3]|0,this.E=Va[4]|0,this.F=Va[5]|0,this.G=Va[6]|0,this.H=Va[7]|0}get(){const{A:e,B:n,C:r,D:i,E:s,F:a,G:o,H:l}=this;return[e,n,r,i,s,a,o,l]}set(e,n,r,i,s,a,o,l){this.A=e|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=s|0,this.F=a|0,this.G=o|0,this.H=l|0}process(e,n){for(let d=0;d<16;d++,n+=4)Ba[d]=e.getUint32(n,!1);for(let d=16;d<64;d++){const h=Ba[d-15],m=Ba[d-2],y=Zi(h,7)^Zi(h,18)^h>>>3,v=Zi(m,17)^Zi(m,19)^m>>>10;Ba[d]=v+Ba[d-7]+y+Ba[d-16]|0}let{A:r,B:i,C:s,D:a,E:o,F:l,G:u,H:c}=this;for(let d=0;d<64;d++){const h=Zi(o,6)^Zi(o,11)^Zi(o,25),m=c+h+sz(o,l,u)+oz[d]+Ba[d]|0,v=(Zi(r,2)^Zi(r,13)^Zi(r,22))+az(r,i,s)|0;c=u,u=l,l=o,o=a+m|0,a=s,s=i,i=r,r=m+v|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,a=a+this.D|0,o=o+this.E|0,l=l+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,i,s,a,o,l,u,c)}roundClean(){Ba.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class lz extends TT{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const $l=lo(()=>new TT);const PT=BigInt(0),Wp=BigInt(1),uz=BigInt(2),qp=t=>t instanceof Uint8Array,cz=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Io(t){if(!qp(t))throw new Error("Uint8Array expected");let e="";for(let n=0;n1024)throw new Error(`expected ${s}-1024 bytes of input, got ${r}`);const a=n?Ha(t):Fa(t),o=lt(a,e-Lt)+Lt;return n?tu(o,i):eu(o,i)}const Tz=BigInt(0),D1=BigInt(1);function HT(t,e){const n=(i,s)=>{const a=s.negate();return i?a:s},r=i=>{const s=Math.ceil(e/i)+1,a=2**(i-1);return{windows:s,windowSize:a}};return{constTimeNegate:n,unsafeLadder(i,s){let a=t.ZERO,o=i;for(;s>Tz;)s&D1&&(a=a.add(o)),o=o.double(),s>>=D1;return a},precomputeWindow(i,s){const{windows:a,windowSize:o}=r(s),l=[];let u=i,c=u;for(let d=0;d>=m,S>l&&(S-=h,a+=D1);const _=v,b=v+Math.abs(S)-1,w=y%2!==0,A=S<0;S===0?c=c.add(n(w,s[_])):u=u.add(n(A,s[b]))}return{p:u,f:c}},wNAFCached(i,s,a,o){const l=i._WINDOW_SIZE||1;let u=s.get(i);return u||(u=this.precomputeWindow(i,l),l!==1&&s.set(i,o(u))),this.wNAF(l,u,a)}}}function U1(t){return LT(t.Fp),ja(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...DT(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function Pz(t){const e=U1(t);ja(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=e;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Az,hexToBytes:Nz}=yz,Mo={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=Mo;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Az(r),l:t.subarray(n+2)}},toSig(t){const{Err:e}=Mo,n=typeof t=="string"?Nz(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");const{d:i,l:s}=Mo._parseInt(n.subarray(2)),{d:a,l:o}=Mo._parseInt(s);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(t){const e=u=>Number.parseInt(u[0],16)&8?"00"+u:u,n=u=>{const c=u.toString(16);return c.length&1?`0${c}`:c},r=e(n(t.s)),i=e(n(t.r)),s=r.length/2,a=i.length/2,o=n(s),l=n(a);return`30${n(a+s+4)}02${l}${i}02${o}${r}`}},Ai=BigInt(0),zt=BigInt(1),za=BigInt(2),Gp=BigInt(3),FT=BigInt(4);function Rz(t){const e=Pz(t),{Fp:n}=e,r=e.toBytes||((y,v,S)=>{const _=v.toAffine();return Vr(Uint8Array.from([4]),n.toBytes(_.x),n.toBytes(_.y))}),i=e.fromBytes||(y=>{const v=y.subarray(1),S=n.fromBytes(v.subarray(0,n.BYTES)),_=n.fromBytes(v.subarray(n.BYTES,2*n.BYTES));return{x:S,y:_}});function s(y){const{a:v,b:S}=e,_=n.sqr(y),b=n.mul(_,y);return n.add(n.add(b,n.mul(y,v)),S)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function a(y){return typeof y=="bigint"&&Aie.toString(2).padStart(8,"0")).join("")}function RP(t){return NP(Array.from(tq(t))).slice(0,t.length*8/32)}function IP(t,e){return CP(Nt(e_(t)),Nt(`mnemonic${e_(e)}`)).password}function OP(t,e=kP){const n=e_(t).split(" ");if(n.length%3!==0)throw new Error(TP);const r=n.map(c=>{const d=e.indexOf(c);if(d===-1)throw new Error(TP);return d.toString(2).padStart(11,"0")}).join(""),i=Math.floor(r.length/33)*32,s=r.slice(0,i),a=r.slice(i),o=s.match(/(.{1,8})/g),l=o==null?void 0:o.map(AP);if(!l||l.length%4!==0||l.length<16||l.length>32)throw new Error(PP);const u=K(l);if(RP(u)!==a)throw new Error(nq);return u}function rq(t,e=kP){if(t.length%4!==0||t.length<16||t.length>32)throw new Error(PP);const n=`${NP(Array.from(t))}${RP(t)}`.match(/(.{1,11})/g),r=n==null?void 0:n.map(i=>e[AP(i)]);if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}function iq(t,e){try{OP(t,e)}catch{return!1}return!0}function sq(t,e,n){return!vn||!e&&!n&&wn()?O9(t):OP(t,e)}function t_(t,e,n){return!vn||!e&&!n&&wn()?D9(t):iq(t,e)}function aq(t,e="",n,r=32){if(t_(t)){if(![32,64].includes(r))throw new Error(`Invalid seed length ${r}, expected 32 or 64`)}else throw new Error("Invalid bip39 mnemonic specified");return r===32?!vn||!n&&wn()?L9(t,e):IP(t,e).subarray(0,32):IP(t,e)}function oq(t,e="",n,r){if(t_(t,n,r)){if(!n&&!r&&wn())return M9(t,e)}else throw new Error("Invalid bip39 mnemonic specified");const i=sq(t,n),s=Nt(`mnemonic${e}`);return CP(i,s).password.slice(0,32)}function tm(t,e){return t<(e,n,r)=>zW(e,n,r,t),jP=[["ecdsa",FP("blake2")],["ethereum",FP("keccak")]],Nq=[["ed25519",sP],["sr25519",cP],...jP],Rq=["ed25519","sr25519","ecdsa"];function zP(t,{message:e,publicKey:n,signature:r},i=Nq){return t.isValid=i.some(([s,a])=>{try{if(a(e,r,n))return t.crypto=s,!0}catch{}return!1}),t}function Iq(t,{message:e,publicKey:n,signature:r}){if(![0,1,2].includes(r[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${r[0]}`);const i=Rq[r[0]]||"none";t.crypto=i;try{t.isValid={ecdsa:()=>zP(t,{message:e,publicKey:n,signature:r.subarray(1)},jP).isValid,ed25519:()=>sP(e,r.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>cP(e,r.subarray(1),n)}[i]()}catch{}return t}function Oq(t){return[0,1,2].includes(t[0])&&[65,66].includes(t.length)?Iq:zP}function WP(t,e,n){const r=K(e);if(![64,65,66].includes(r.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${r.length}`);const i=_r(n),s={message:K(t),publicKey:i,signature:r},a={crypto:"none",isValid:!1,isWrapped:Xu(s.message,!0),publicKey:i},o=Xu(s.message,!1),l=Oq(r);return l(a,s),a.crypto!=="none"||a.isWrapped&&!o?a:(s.message=o?h2(s.message):p2(s.message),l(a,s))}const ur=ae("11400714785074694791"),ds=ae("14029467366897019727"),qP=ae("1609587929392839161"),yd=ae("9650029242287828579"),ZP=ae("2870177450012600261"),Fs=ae("0xffffffffffffffff"),Mq=ae(7),Lq=ae(11),Dq=ae(12),Uq=ae(16),Vq=ae(18),Bq=ae(23),Hq=ae(27),Fq=ae(29),au=ae(31),jq=ae(32),zq=ae(33),Wq=ae(64),GP=ae(256);function Hr(t,e){const n=t&Fs;return(n<